/* ------------------------------
   Global
------------------------------ */

:root {
    --background: #f7f2e8;
    --surface: #eee3cf;
    --surface-light: #fffaf1;

    --text-primary: #26231f;
    --text-secondary: #655f57;

    --accent: #9b6845;
    --accent-dark: #74492f;

    --border: #d8c7ad;

    --max-width: 1180px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text-primary);
    background: var(--background);

    line-height: 1.6;
}


img {
    max-width: 100%;
}


a {
    color: inherit;
}


.container {
    width: min(90%, var(--max-width));
    margin-inline: auto;
}


/* ------------------------------
   Header
------------------------------ */

.site-header {
    background: rgba(247, 242, 232, 0.95);

    border-bottom: 1px solid var(--border);
}


.header-content {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    text-decoration: none;
}


.brand-icon {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    object-fit: cover;
}


.brand-name {
    font-size: 1.35rem;
    font-weight: 750;
}


.main-nav {
    display: flex;
    align-items: center;

    gap: 28px;
}


.main-nav a {
    color: var(--text-secondary);

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;
}


.main-nav a:hover {
    color: var(--accent-dark);
}


/* ------------------------------
   Hero
------------------------------ */

.hero {
    padding: 65px 0 85px;
}


.hero-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(300px, 0.95fr);

    align-items: center;

    gap: 80px;
}


.eyebrow {
    margin: 0 0 14px;

    color: var(--accent-dark);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.hero h1 {
    max-width: 700px;

    margin: 0;

    font-size: clamp(3rem, 6vw, 5.7rem);

    line-height: 0.98;
    letter-spacing: -0.055em;
}


.hero h1 span {
    color: var(--accent);
}


.hero-description {
    max-width: 620px;

    margin: 28px 0 0;

    color: var(--text-secondary);

    font-size: 1.15rem;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 20px;

    margin-top: 36px;
}


/* ------------------------------
   Buttons
------------------------------ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 12px 22px;

    border-radius: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    color: white;

    background: var(--accent-dark);
}


.button-primary:hover {
    background: #5f3924;
}


.button-secondary {
    color: var(--text-primary);

    background: transparent;

    border: 1px solid var(--border);
}

.store-badge-link {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 64px;
}

.store-badge {
    display: block;
    width: auto;
}

.store-badge-apple {
    height: 56px;
}

.store-badge-google {
    height: 124px;
}


.button-secondary:hover {
    background: var(--surface);
}


/* ------------------------------
   Phone Preview
------------------------------ */

.hero-preview {
    display: flex;
    justify-content: center;
}


.phone-placeholder {
    width: min(310px, 80vw);

    padding: 10px;

    border-radius: 42px;

    background: #252321;

    box-shadow:
        0 30px 70px rgba(40, 30, 20, 0.2);
}


.app-screenshot {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 32px;
}


/* ------------------------------
   Features
------------------------------ */

.features {
    padding: 100px 0;

    background: var(--surface-light);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.section-heading {
    max-width: 680px;

    margin-bottom: 50px;
}


.section-heading h2 {
    margin: 0;

    font-size: clamp(2.3rem, 4vw, 3.5rem);

    line-height: 1.05;
    letter-spacing: -0.04em;
}


.section-heading > p:last-child {
    color: var(--text-secondary);

    font-size: 1.1rem;
}


.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


.feature-card {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--background);
}


.feature-card h3 {
    margin-top: 0;

    font-size: 1.2rem;
}


.feature-card p {
    margin-bottom: 0;

    color: var(--text-secondary);
}

/* ------------------------------
   How It Works
------------------------------ */

.how-it-works {
    padding: 110px 0;
}


.how-heading {
    margin-bottom: 80px;
}


.how-step {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.8fr);

    align-items: center;

    gap: 100px;

    margin-bottom: 120px;
}


.how-step:last-child {
    margin-bottom: 0;
}


.how-step-reverse .how-text {
    order: 2;
}


.how-step-reverse .how-visual {
    order: 1;
}


.how-text {
    max-width: 520px;
}


.step-number {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 0.85rem;
    font-weight: 800;

    letter-spacing: 0.1em;
}


.how-text h3 {
    margin: 0;

    font-size: clamp(2rem, 4vw, 3.2rem);

    line-height: 1.05;
    letter-spacing: -0.04em;
}


.how-text p {
    margin-top: 22px;

    color: var(--text-secondary);

    font-size: 1.1rem;
}


.how-visual {
    display: flex;
    justify-content: center;
}


.how-visual img {
    display: block;

    width: min(320px, 100%);

    border: 8px solid #252321;
    border-radius: 36px;

    box-shadow:
        0 25px 60px rgba(40, 30, 20, 0.16);
}

/* ------------------------------
   Interior Pages
------------------------------ */

.page-hero {
    padding: 90px 0 70px;

    border-bottom: 1px solid var(--border);
}


.page-hero h1 {
    max-width: 800px;

    margin: 0;

    font-size: clamp(2.8rem, 6vw, 5rem);

    line-height: 1;
    letter-spacing: -0.05em;
}


.page-hero > .container > p:last-child {
    max-width: 680px;

    margin-top: 24px;

    color: var(--text-secondary);

    font-size: 1.15rem;
}

/* ------------------------------
   Legal Pages
------------------------------ */

.legal-section {
    padding: 80px 0 110px;
}


.legal-content {
    max-width: 850px;
}


.legal-updated {
    margin-top: 0;
    margin-bottom: 40px;

    color: var(--text-secondary);

    font-size: 0.9rem;
    font-weight: 600;
}


.legal-content h2 {
    margin-top: 52px;
    margin-bottom: 16px;

    font-size: 1.6rem;

    line-height: 1.2;
    letter-spacing: -0.02em;
}


.legal-content p {
    margin: 0 0 20px;

    color: var(--text-secondary);

    font-size: 1rem;

    line-height: 1.8;
}


.legal-content ul {
    margin: 0 0 26px;

    padding-left: 24px;

    color: var(--text-secondary);
}


.legal-content li {
    margin-bottom: 12px;

    line-height: 1.7;
}


.legal-content a {
    color: var(--accent-dark);

    font-weight: 600;
}


.legal-content a:hover {
    text-decoration: none;
}

.legal-page-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
}


/* ------------------------------
   Support
------------------------------ */

.support-section {
    padding: 90px 0 110px;
}


.support-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}


.support-card {
    padding: 36px;

    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: 20px;
}


.support-card h2 {
    margin-top: 0;

    font-size: 1.4rem;
}


.support-card p {
    color: var(--text-secondary);
}


.support-email {
    margin-top: 18px;

    font-size: 0.9rem;
}


/* ------------------------------
   Footer
------------------------------ */

.site-footer {
    padding: 36px 0;
}


.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;

    color: var(--text-secondary);

    font-size: 0.9rem;
}


.footer-brand p {
    margin-top: 0;
    margin-bottom: 14px;
}


.social-links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 18px;

    max-width: 720px;
}


.social-links a,
.footer-nav a {
    text-decoration: none;
}


.social-links a:hover,
.footer-nav a:hover {
    color: var(--accent-dark);
}


.footer-nav {
    display: flex;

    gap: 22px;

    flex-shrink: 0;
}


.footer-content nav {
    display: flex;

    gap: 22px;
}


.footer-content a {
    text-decoration: none;
}


.footer-content a:hover {
    color: var(--accent-dark);
}


/* ------------------------------
   Mobile
------------------------------ */

@media (max-width: 800px) {

    .header-content {
        min-height: 68px;
    }


    .main-nav {
        gap: 16px;
    }


    .main-nav a {
        font-size: 0.85rem;
    }


    .hero {
        padding: 65px 0 80px;
    }


    .hero-content {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }


    .hero-preview {
        order: 2;
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }


    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

        .how-it-works {
        padding: 80px 0;
    }


    .how-heading {
        margin-bottom: 60px;
    }


    .how-step {
        grid-template-columns: 1fr;

        gap: 45px;

        margin-bottom: 90px;
    }


    .how-step-reverse .how-text,
    .how-step-reverse .how-visual {
        order: initial;
    }


    .how-text {
        max-width: none;
    }

        .page-hero {
        padding: 65px 0 55px;
    }


    .support-section {
        padding: 65px 0 80px;
    }


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

        .legal-section {
        padding: 60px 0 80px;
    }


    .legal-content h2 {
        margin-top: 42px;

        font-size: 1.4rem;
    }

    .footer-content {
    flex-direction: column;

    align-items: flex-start;
    }


    .footer-nav {
        width: 100%;
    }


    .social-links {
        gap: 10px 16px;
    }

}


@media (max-width: 520px) {

    .header-content {
        flex-direction: column;

        align-items: flex-start;

        padding-top: 16px;
        padding-bottom: 16px;

        gap: 10px;
    }


    .main-nav {
        width: 100%;

        justify-content: space-between;
    }


    .hero-actions {
        flex-direction: column;
    }


    .button {
        width: 100%;
    }

    .store-badge-link {
        align-self: flex-start;
    }

}