:root {
    --bg: #d7ffa8;
    --brown: #481300;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    background: var(--bg);
    color: var(--brown);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: auto;
}

.page {
    overflow: clip;
}

.site-header {
    padding: 12px 0;
}

.nav-shell {
    width: calc(100% - 40px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 110px;
    padding-top: 11px;
}

.cta {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1000;

    background: var(--brown);
    color: var(--bg);
    padding: 12px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cta img {
    height: 16px;
}

.brand {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding-left: 8px;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 15px;
}

.nav a:hover {
    opacity: 0.68;
}

.nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hero {
    text-align: center;
    padding: 40px 0 80px;
    position: relative;
    font-weight: 500;
    overflow: clip;
}

.hero h1 {
    font-size: 260px;
    line-height: 0.9;
    margin: 20px 0 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero h1 span {
    display: block;
    font-size: 80px;
    letter-spacing: -0.01em;
}

.hero-branch {
    position: absolute;
    top: 60px;
    width: 380px;
}

.hero-branch.left {
    left: 0;
    transform: scaleX(-1);
}

.hero-branch.right {
    right: 0;
}

/* -------------------- */
/* IPHONE STACK */
/* -------------------- */

.iphone-stack {
    position: relative;
    width: 900px;
    height: 520px;
    margin: 60px auto 40px;
}

.iphone {
    position: absolute;
    transition: transform 0.4s ease;
}

/* center phone (largest) */

.iphone.center {
    width: 360px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* left phone */

.iphone.left {
    width: 300px;
    left: 80px;
    top: 60px;
    z-index: 2;
}

/* right phone */

.iphone.right {
    width: 300px;
    right: 80px;
    top: 60px;
    z-index: 1;
}

/* -------------------- */

.section-intro {
    text-align: center;
    max-width: 520px;
    margin: 20px auto 40px;
    margin-top: 260px;
}

.section-intro h2 {
    font-size: 48px;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: -0.008em;
}

.section-intro p {
    font-size: 24px;
    line-height: 1.4em;
    font-weight: 400 !important;
    margin: 0;
}

.app-store {
    background: var(--brown);
    color: var(--bg);
    padding: 14px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.app-store img {
    height: 16px;
}

.feature-phone {
    max-width: 460px;
    /*background-color: grey;*/
    padding: 0px 0px 0px 120px;
}

.feature {
    padding: 120px 0;
    position: relative;
}

.policy-section {
    padding: 40px 0 120px;
}

.legal-page {
    padding: 40px 0 120px;
}

.legal-hero {
    padding: 48px 0 32px;
    text-align: center;
}

.legal-hero h1 {
    margin: 0;
    font-size: 92px;
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.legal-intro {
    max-width: 32ch;
    margin: 18px auto 0;
    font-size: 22px;
    line-height: 1.45;
}

.policy-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid rgba(72, 19, 0, 0.16);
    border-radius: 28px;
    background: rgba(255, 251, 231, 0.55);
    backdrop-filter: blur(8px);
}

.policy-eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.72;
}

.policy-card h2 {
    margin: 0 0 28px;
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.policy-content {
    display: grid;
    gap: 24px;
}

.policy-content section {
    padding-top: 20px;
    border-top: 1px solid rgba(72, 19, 0, 0.12);
}

.policy-content section:first-child {
    padding-top: 0;
    border-top: 0;
}

.policy-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 500;
}

.policy-content p {
    margin: 0;
    max-width: 62ch;
    font-size: 18px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: center;
}

.feature-grid.reverse .feature-copy {
    order: 2;
}

.feature-copy h2 {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.008em;
    margin-bottom: 20px;
}

.feature-copy p {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.008em;
    max-width: 510px;
    margin: 0;
}

.mode-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.mode-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(72, 19, 0, 0.1);
    font-size: 14px;
}

.mode-pill.active {
    background: rgba(72, 19, 0, 0.2);
}

.start-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: var(--brown);
    color: var(--bg);
    border: none;
    font-family: inherit;
    font-size: 18px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(72, 19, 0, 0.2);
}

.dot.active {
    background: var(--brown);
}

.decor-branch {
    position: absolute;
    width: 380px;
}

.feature-1 .decor-branch {
    left: 0;
    top: -120px;
    transform: scaleX(-1);
}

.feature-2 .decor-branch {
    right: 0;
    bottom: 380px;
}

.spacer {
    height: 200px;
}

.bottom-mushroom {
    display: block;
    margin: 0 auto;
    width: 220px;
}

/* parallax for branches */

.hero-branch,
.decor-branch {
    --parallax-y: 0px;
    will-change: transform;
}

.hero-branch.left,
.feature-1 .decor-branch {
    transform: translate3d(0, var(--parallax-y), 0) scaleX(-1);
}

.hero-branch.right,
.feature-2 .decor-branch {
    transform: translate3d(0, var(--parallax-y), 0);
}

/* hero title smooth appear */

.hero h1,
.hero h1 span {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 1s ease forwards;
}

.hero h1 span {
    animation-delay: 0.25s;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .site-header {
        padding-top: 16px;
    }

    .hero h1 {
        font-size: 180px;
    }

    .hero h1 span {
        font-size: 64px;
    }

    .hero-branch,
    .decor-branch {
        width: 280px;
    }

    .iphone-stack {
        width: 100%;
        max-width: 760px;
        height: 420px;
    }

    .iphone.center {
        width: 300px;
    }

    .iphone.left,
    .iphone.right {
        width: 250px;
        top: 50px;
    }

    .iphone.left {
        left: 40px;
    }

    .iphone.right {
        right: 40px;
    }

    .feature-grid {
        gap: 40px;
    }

    .feature-phone {
        max-width: 100%;
        padding-left: 40px;
    }

    .legal-hero h1 {
        font-size: 72px;
    }

    .legal-intro {
        max-width: 28ch;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .nav-shell {
        width: min(calc(100% - 32px), var(--container));
        flex-wrap: wrap;
        gap: 16px;
        padding-right: 0;
        justify-content: center;
        padding-top: 0;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 18px;
    }

    .cta {
        position: static;
        margin-left: auto;
    }

    .hero {
        padding: 24px 0 56px;
    }

    .hero h1 {
        font-size: 96px;
        margin-top: 24px;
    }

    .hero h1 span {
        font-size: 40px;
    }

    .hero-branch,
    .decor-branch {
        width: 180px;
    }

    .iphone-stack {
        position: relative;
        width: 100%;
        max-width: 520px;
        height: 460px;
        margin: 40px auto 32px;
    }

    .iphone,
    .iphone.center,
    .iphone.left,
    .iphone.right {
        position: absolute;
        margin: 0;
    }

    .iphone.center {
        width: 220px;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .iphone.left {
        width: 180px;
        left: 24px;
        top: 44px;
    }

    .iphone.right {
        width: 180px;
        right: 24px;
        top: 44px;
    }

    .section-intro {
        margin-top: 56px;
    }

    .section-intro h2,
    .feature-copy h2,
    .policy-card h2 {
        font-size: 38px;
    }

    .legal-hero h1 {
        font-size: 48px;
    }

    .legal-intro {
        font-size: 18px;
    }

    .section-intro p,
    .feature-copy p {
        font-size: 20px;
    }

    .feature {
        padding: 88px 0;
    }

    .feature-copy {
        text-align: center;
    }

    .feature-copy p {
        margin: 0 auto;
    }

    .feature-grid,
    .feature-grid.reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .feature-grid.reverse .feature-copy {
        order: 0;
    }

    .feature-phone {
        padding-left: 0;
        margin: 0 auto;
        max-width: min(100%, 360px);
    }

    .policy-section {
        padding-top: 0;
        padding-bottom: 80px;
    }

    .policy-card {
        padding: 28px 22px;
    }

    .policy-content p {
        font-size: 17px;
    }

    .spacer {
        height: 120px;
    }

    .bottom-mushroom {
        width: 160px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 10px 0 0;
    }

    .brand {
        padding-left: 0;
        font-size: 22px;
    }

    .nav-shell {
        gap: 14px;
    }

    .nav {
        gap: 10px 14px;
        font-size: 14px;
    }

    .cta,
    .app-store {
        width: auto;
        justify-content: center;
    }

    .hero {
        padding: 12px 0 44px;
    }

    .hero h1 {
        font-size: clamp(68px, 22vw, 96px);
        line-height: 0.88;
        margin-top: 18px;
    }

    .hero h1 span {
        font-size: clamp(28px, 8vw, 40px);
        margin-top: 10px;
    }

    .hero-branch,
    .decor-branch {
        display: none;
    }

    .continents {
        padding-top: 6px;
    }

    .iphone-stack {
        max-width: 360px;
        height: 370px;
        margin: 28px auto 24px;
    }

    .iphone.center {
        width: 160px;
    }

    .iphone.left {
        width: 132px;
        left: 8px;
        top: 42px;
    }

    .iphone.right {
        width: 132px;
        right: 8px;
        top: 42px;
    }

    .section-intro {
        margin-top: 32px;
        max-width: 100%;
    }

    .section-intro h2,
    .feature-copy h2,
    .policy-card h2 {
        font-size: 32px;
        line-height: 1;
        margin-bottom: 14px;
    }

    .section-intro p,
    .feature-copy p,
    .legal-intro {
        font-size: 18px;
        line-height: 1.5;
    }

    .section-intro br {
        display: none;
    }

    .feature {
        padding: 72px 0;
    }

    .feature-grid,
    .feature-grid.reverse {
        gap: 22px;
    }

    .policy-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .policy-content {
        gap: 20px;
    }

    .policy-content section {
        padding-top: 16px;
    }

    .policy-content h3 {
        font-size: 20px;
    }

    .policy-content p {
        font-size: 16px;
        line-height: 1.55;
    }

    .legal-page {
        padding: 20px 0 72px;
    }

    .legal-hero {
        padding: 24px 0 18px;
    }

    .legal-hero h1 {
        font-size: clamp(38px, 12vw, 48px);
        line-height: 0.98;
    }

    .policy-section {
        padding-bottom: 64px;
    }

    .spacer {
        height: 72px;
    }

    .bottom-mushroom {
        width: 126px;
    }
}
