html,
body {
    margin: 0;
    padding: 0;
}

button {
    display: inline-flex;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

* {
    font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: linear-gradient(160deg, #1c1c1e 0%, #2c2c2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.phone-frame {
    width: 430px;
    max-width: 100%;
    height: 95vh;
    max-height: 890px;
    background: #000000;
    border-radius: 58px;
    padding: 14px;
    box-shadow: 0 0 0 2px #d1d1d6, 0 0 0 3px #a1a1a6, 0 20px 40px rgba(0, 0, 0, 0.4), 0 60px 120px rgba(0, 0, 0, 0.75);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 120px;
    width: 3px;
    height: 36px;
    background: #a1a1a6;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 50px 0 #a1a1a6, 0 90px 0 #a1a1a6;
}

.phone-frame::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 160px;
    width: 3px;
    height: 70px;
    background: #a1a1a6;
    border-radius: 0 3px 3px 0;
}

.phone-screen {
    background: #f2f2f7;
    border-radius: 44px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
}

.phone-notch {
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 20px;
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notch-cam {
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 1px solid #333;
    margin-left: 40px;
}

.status-bar {
    background: transparent;
    padding: 16px 28px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.home-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4px 14px 20px;
    overflow-y: auto;
    background: #f2f2f7;
    position: relative;
    z-index: 1;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px 8px;
}

.app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 32px;
    cursor: pointer;
    padding: 16px 10px 12px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    aspect-ratio: 0.88;
    border: none;
}

.app-btn:active {
    transform: scale(0.94);
    background: #f2f2f7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.app-btn .icon-wrap {
    width: 68%;
    aspect-ratio: 1;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.app-btn .label {
    font-size: 19px;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.3px;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.app-btn .icon {
    display: none;
}

.app-overlay {
    position: absolute;
    inset: 0;
    background: #f2f2f7;
    border-radius: 44px;
    display: none;
    flex-direction: column;
    z-index: 50;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
}

.app-overlay.active {
    display: flex;
}

.home-indicator-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8px;
    z-index: 1000;
    cursor: pointer;
}

.home-indicator {
    width: 134px;
    height: 5px;
    background: #fff;
    mix-blend-mode: difference;
    border-radius: 10px;
    transition: opacity 0.2s;
}

.home-indicator-area:active .home-indicator {
    opacity: 0.5;
}

.aa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
}

.aa-pill-btn {
    background: #f2f2f7;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    height: 36px;
}

.aa-circle-btn {
    background: #f2f2f7;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
}

.aa-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.aa-large-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    padding: 4px 16px 12px;
    margin: 0;
    background: #fff;
}

@media (max-width: 420px) {
    .phone-frame {
        width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }

    .phone-notch {
        display: none;
    }

    .phone-screen,
    .app-overlay {
        border-radius: 0;
    }
}