:root {
    --brand: #3ddc84;
    --brand-deep: #1f9d58;
    --brand-ink: #0b3d22;
    --accent: #ffd23f;
    --accent-2: #ff6b6b;
    --bg: #f7fbf1;
    --surface: #ffffff;
    --tint: #e7f6e3;
    --text: #191d17;
    --muted: #55604f;
    --line: #dbe6d6;
    --shadow: 0 10px 30px rgba(20, 60, 30, 0.12);
    --radius: 20px;
    --font-head: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111412;
        --surface: #1b201c;
        --tint: #172219;
        --text: #e3e8e0;
        --muted: #a5b0a0;
        --line: #2b332c;
        --brand-deep: #3ddc84;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; }

a { color: var(--brand-deep); }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 720px) {
    .wrap { padding: 0 32px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    background: var(--brand);
    color: var(--brand-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-small { min-height: 40px; padding: 6px 18px; font-size: 0.95rem; }

.btn-play { background: #111; color: #fff; padding: 10px 24px 10px 18px; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play small { font-size: 0.7rem; font-weight: 500; opacity: 0.8; }
@media (prefers-color-scheme: dark) {
    .btn-play { box-shadow: 0 0 0 1px #3a423b inset; }
}

.btn-invert { background: #fff; color: #111; }

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
}
.brand img { border-radius: 10px; }
.brand-small { font-size: 1.1rem; }
.brand-small img { border-radius: 6px; }

.topnav { display: none; gap: 28px; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--text); }
@media (min-width: 720px) { .topnav { display: flex; } }

/* Hero */
.hero {
    padding: 48px 0 56px;
    background:
        radial-gradient(600px 300px at 85% 20%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 70%),
        radial-gradient(500px 260px at 5% 90%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero-inner {
    display: grid;
    gap: 48px;
    align-items: center;
}
@media (min-width: 900px) {
    .hero { padding: 80px 0 96px; }
    .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

.eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 0.9rem;
}

.hl {
    background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 70%, transparent) 62%);
}
@media (prefers-color-scheme: dark) {
    .hl { background: none; color: var(--brand); }
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }

/* Phone mockup */
.phone {
    justify-self: center;
    width: min(300px, 78vw);
    aspect-ratio: 9 / 18.5;
    padding: 12px;
    border-radius: 44px;
    background: #121512;
    box-shadow: var(--shadow), 0 0 0 2px #2a2f2a inset;
    transform: rotate(3deg);
    animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(-10px); }
}
.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: #000;
    color: #fff;
}
.clip {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #ffb347, #ff6b6b 55%, #8e44ad);
}
.clip-emoji { font-size: 5rem; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle {
    0%, 100% { transform: rotate(-6deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.08); }
}
.clip-bar {
    position: absolute;
    left: 16px; right: 16px; top: 16px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}
.clip-bar span {
    display: block;
    height: 100%;
    background: #fff;
    animation: progress 6s linear infinite;
}
@keyframes progress { from { width: 0; } to { width: 100%; } }

.clip-meta {
    position: absolute;
    left: 16px; right: 64px; bottom: 64px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.clip-meta p { margin: 0; font-size: 0.85rem; }
.clip-meta strong { font-size: 0.95rem; }
.avatar {
    flex: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}
.clip-actions {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-around;
    padding: 14px 10px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    min-height: 56px;
    padding: 16px 52px 16px 20px;
    position: relative;
    font-weight: 700;
    font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--brand-deep);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* Final CTA */
.final {
    padding: 72px 0;
    background: var(--brand);
    color: var(--brand-ink);
    text-align: center;
}
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.final-inner img { border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); margin-bottom: 8px; }
.final h2 { margin-bottom: 16px; }
.final .btn-invert { background: #111; color: #fff; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 12px 0; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
