:root {
    --bg: #f8f2e5;
    --bg-deep: #f0e8d6;
    --surface: #fffdf8;
    --brand: #2d4a3e;
    --brand-mid: #3b6150;
    --brand-deep: #1f352c;
    --brand-soft: #e6eee8;
    --gold: #c9a24a;
    --gold-soft: #f6ecd2;
    --ink: #1a2a24;
    --ink-deep: #13201b;
    --muted: #5c6b64;
    --text: #1a2a24;
    --line: rgba(45, 74, 62, 0.14);
    --green: #2f9e6b;
    --radius: 16px;
    --shadow: 0 18px 50px -20px rgba(31, 53, 44, 0.35);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.md-site {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html.md-site,
body.md-page {
    overflow-x: hidden;
    background-color: var(--bg);
}

body.md-page {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
    line-height: 1.55;
    padding-top: 68px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.4rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease, color 0.18s ease;
}
.btn i { font-size: 1.15em; line-height: 1; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.04rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(45, 74, 62, 0.35); }
.btn-primary:hover { background: var(--brand-mid); box-shadow: 0 8px 24px rgba(45, 74, 62, 0.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 1.3rem 0.62rem 1rem;
    border-radius: 12px;
    background: var(--ink-deep);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px -10px rgba(19, 32, 27, 0.6);
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #000; box-shadow: 0 14px 30px -12px rgba(19, 32, 27, 0.7); }
.store-badge i { font-size: 1.9rem; line-height: 1; color: #7ee2a8; }
.store-badge span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 0.64rem; letter-spacing: 0.08em; opacity: 0.8; }
.store-badge b { font-size: 1.12rem; font-weight: 600; }
.store-badge--light { background: #fff; color: var(--ink); }
.store-badge--light:hover { background: var(--gold-soft); }
.store-badge--light i { color: var(--brand); }
.store-badge--dark { margin-top: 1.1rem; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease;
}
.link-btn:hover { color: var(--gold); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(248, 242, 229, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-nav.is-scrolled {
    background: rgba(255, 253, 248, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px -14px rgba(31, 53, 44, 0.4);
}
.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 68px;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
}
.nav-brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-links {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}
.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--muted);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--brand); background: rgba(45, 74, 62, 0.08); }
.nav-links a.active { color: var(--brand); background: rgba(45, 74, 62, 0.13); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 4.5rem;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::before { width: 580px; height: 580px; right: -170px; top: -210px; background: rgba(45, 74, 62, 0.1); }
.hero::after { width: 420px; height: 420px; left: -180px; bottom: -230px; background: rgba(201, 162, 74, 0.14); }
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-copy h1 {
    margin: 1.1rem 0 1rem;
    font-size: clamp(2.1rem, 3.4vw + 0.8rem, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
}
.accent {
    color: var(--brand);
    background: linear-gradient(transparent 68%, rgba(201, 162, 74, 0.35) 68%);
}
.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 34rem;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin: 1.9rem 0 1.5rem; }
.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.hero-points i { color: var(--green); margin-right: 0.3rem; }

/* Phone mockup */
.hero-visual { position: relative; padding: 1.5rem 0; display: flex; justify-content: center; }
.phone {
    position: relative;
    width: 300px;
    padding: 12px;
    border-radius: 42px;
    background: var(--ink-deep);
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    transform: rotate(-3deg);
}
.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 90px;
    height: 20px;
    margin-left: -45px;
    border-radius: 999px;
    background: var(--ink-deep);
    z-index: 2;
}
.phone-screen {
    position: relative;
    border-radius: 32px;
    background: var(--bg);
    padding: 2.6rem 1rem 1.2rem;
    overflow: hidden;
    display: grid;
    gap: 0.7rem;
}
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-top small { display: block; font-size: 0.68rem; color: var(--muted); }
.app-top b { font-size: 1rem; color: var(--ink); }
.app-top img { width: 34px; height: 34px; }
.app-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--muted);
}
.app-label { font-size: 0.74rem; font-weight: 700; color: var(--ink); margin-top: 0.2rem; }
.app-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.app-card {
    display: grid;
    gap: 0.1rem;
    padding: 0.65rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.app-card i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.app-card b { font-size: 0.76rem; color: var(--ink); }
.app-card small { font-size: 0.64rem; color: var(--muted); }
.app-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.app-row > i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--gold-soft);
    color: #8a6a1f;
}
.app-row div { flex: 1; display: grid; gap: 0.3rem; }
.app-row b { font-size: 0.7rem; color: var(--ink); }
.app-progress { display: block; height: 5px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.app-progress span { display: block; height: 100%; width: var(--p); background: var(--brand); border-radius: inherit; animation: fill 1.2s ease-out both; }
@keyframes fill { from { width: 0; } }
.app-fab {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.3rem;
    box-shadow: 0 8px 18px -6px rgba(31, 53, 44, 0.45);
    animation: pulse 2s ease-in-out infinite;
}
.app-fab em {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
@keyframes pulse { 50% { transform: scale(1.08); } }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.95rem;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    animation: float 5s ease-in-out infinite;
    z-index: 3;
}
.float-card i { font-size: 1.4rem; color: var(--brand); }
.float-card b { display: block; font-size: 0.82rem; color: var(--ink); }
.float-card small { font-size: 0.72rem; color: var(--muted); }
.float-a { left: -30px; top: 30%; }
.float-b { right: -30px; bottom: 10%; animation-delay: -2.5s; }
.float-b i { color: var(--green); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Strip */
.strip { background: var(--brand); color: #fff; }
.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    text-align: center;
}
.strip-grid div { display: grid; gap: 0.25rem; justify-items: center; }
.strip-grid div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.strip-grid strong { font-size: 1.8rem; color: var(--gold); line-height: 1; }
.strip-grid span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); }
.section-head {
    max-width: 660px;
    margin: 0 auto 3rem;
    text-align: center;
}
.section h2 {
    margin: 0.9rem 0 0.7rem;
    font-size: clamp(1.7rem, 1.6vw + 1rem, 2.4rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.section-head p,
.channels-copy p { color: var(--muted); font-size: 1.04rem; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.feature {
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(45, 74, 62, 0.35);
}
.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.feature h3 { font-size: 1.04rem; color: var(--ink); margin-bottom: 0.4rem; }
.feature p { font-size: 0.92rem; color: var(--muted); }

/* Steps */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed rgba(45, 74, 62, 0.35);
    z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 0.4rem; }
.step-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 0 7px var(--bg), 0 8px 20px rgba(45, 74, 62, 0.35);
}
.step h3 { font-size: 1.04rem; color: var(--ink); margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* Browse cards */
.channels {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}
.channels-copy .btn { margin-top: 1.4rem; }
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stack-card {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    display: grid;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stack-card i { font-size: 1.5rem; color: var(--brand); }
.stack-card b { color: var(--ink); font-size: 1.05rem; }
.stack-card small { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 0.8rem; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(45, 74, 62, 0.35); box-shadow: 0 10px 30px -20px rgba(31, 53, 44, 0.45); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.96rem; }
.faq details a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* CTA */
.cta { padding: 0 0 5.5rem; }
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.8rem 3rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(201, 162, 74, 0.3), transparent 45%),
        linear-gradient(120deg, var(--brand-mid), var(--brand-deep));
    color: #fff;
    box-shadow: 0 30px 60px -30px rgba(31, 53, 44, 0.6);
}
.cta-card h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); letter-spacing: -0.015em; margin-bottom: 0.35rem; color: #fff; }
.cta-card p { opacity: 0.9; }

/* Footer */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, 0.72); padding-top: 3.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-brand .nav-brand { color: #fff; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.92rem; max-width: 22rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.15s ease; word-break: break-word; }
.footer-col a i { margin-right: 0.3rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.3rem;
    padding-bottom: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
}
.footer-bottom i { color: var(--gold); }
.footer-bottom-links { display: inline-flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.footer-login {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-login:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--gold); }

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: none !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html.md-site { scroll-behavior: auto; }
    .reveal, .float-card, .app-fab, .app-progress span { animation: none; transition: none; opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid,
    .channels { grid-template-columns: 1fr; gap: 2.8rem; }
    .hero-copy { text-align: center; }
    .hero-copy .lead { margin: 0 auto; }
    .hero-cta,
    .hero-points { justify-content: center; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem 1.5rem 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 30px -18px rgba(31, 53, 44, 0.45);
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-actions { margin-left: auto; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
    .strip-grid div:nth-child(3) { border-left: none; }
    .cta-card { flex-direction: column; text-align: center; padding: 2.4rem 1.6rem; }
}

@media (max-width: 575px) {
    .container { padding: 0 1.1rem; }
    .hero { padding: 2.8rem 0 3.5rem; }
    .section { padding: 4rem 0; }
    .feature-grid,
    .steps,
    .stack-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .nav-actions .btn-primary { display: none; }
    .float-card { display: none; }
    .phone { width: 270px; transform: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
