:root {
    color-scheme: light;
    --background: rgba(254, 250, 224, 1);
    --surface: #ffffff;
    --text: #181816;
    --muted: #66645e;
    --border: #ded9cf;
    --accent-strong: #12483e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(221, 161, 94, 1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
}

.brand {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-links a {
    font-size: 0.96rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent-strong);
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
}

.hero-intro {
    grid-column: 1;
    grid-row: 1;
    padding-top: 56px;
    text-align: center;
}

.hero h1,
.content h1 {
    color: rgba(34, 136, 51, 1);
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.lede {
    max-width: 680px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.phone-showcase {
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 2;
    place-items: center;
    min-height: 590px;
    padding: 24px;
}

.iphone {
    position: relative;
    width: min(290px, 78vw);
    padding: 8px;
    border: 2px solid #535452;
    border-radius: 50px;
    background: #171817;
    box-shadow:
        0 30px 55px rgba(24, 24, 22, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.iphone-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 1320 / 2868;
    overflow: hidden;
    border-radius: 41px;
    background: #efe9d8;
}

.iphone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iphone-button {
    position: absolute;
    width: 4px;
    border-radius: 3px 0 0 3px;
    background: #3c3d3b;
}

.iphone-button-silent {
    top: 90px;
    left: -5px;
    height: 27px;
}

.iphone-button-volume-up,
.iphone-button-volume-down {
    left: -5px;
    height: 48px;
}

.iphone-button-volume-up {
    top: 133px;
}

.iphone-button-volume-down {
    top: 190px;
}

.iphone-button-power {
    top: 148px;
    right: -5px;
    height: 76px;
    border-radius: 0 3px 3px 0;
}

.feature-grid {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.feature {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.feature h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.feature p,
.content p {
    color: var(--muted);
}

.feature-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: auto;
    padding-top: 18px;
    object-fit: cover;
}

.content {
    max-width: 820px;
}

.content h2 {
    margin: 36px 0 10px;
    font-size: 1.35rem;
}

.content p {
    margin: 12px 0;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: 36px;
}

.contact-panel,
.form-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.contact-panel {
    padding: 24px;
}

.contact-panel h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.form-panel {
    overflow: hidden;
}

.site-footer {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 44px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 780px) {
    .nav {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .nav-links {
        margin-left: auto;
    }

    .page {
        padding: 44px 0;
    }

    .hero,
    .support-layout {
        grid-template-columns: 1fr;
    }

    .phone-showcase {
        min-height: auto;
        padding: 12px 0 8px;
    }

    .hero-intro {
        grid-column: auto;
        grid-row: auto;
        padding-top: 0;
    }

    .phone-showcase,
    .feature-grid {
        grid-column: auto;
        grid-row: auto;
    }

    .feature {
        min-height: auto;
    }
}
