/* Marketing + legal pages. Colour tokens, fonts and dark mode come from style.css. */

body.site { background: var(--bg); }
.site-main { display: block; padding: 0; max-width: none; }
.site-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 720px) { .site-wrap { padding-left: 32px; padding-right: 32px; } }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.site-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.site-nav .brand-lg { font-size: 26px; gap: 10px; justify-self: start; }
.brand-icon { border-radius: 22%; display: block; flex: none; }
.site-links { display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-links a:hover { color: var(--ink); }
.site-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.btn-gray { background: var(--line-2); color: var(--ink); }
.btn-gray:hover { background: var(--line); color: var(--ink); }
@media (max-width: 719px) {
    .hide-sm { display: none; }
    .site-nav-inner { grid-template-columns: 1fr auto; }
    .site-nav .brand-lg { font-size: 22px; }
}

/* Shared type */
.sec-title { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.sec-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card); }

/* Store button */
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.store-btn small { display: block; margin-bottom: 3px; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: 0.8; }
a.store-btn:hover { background: var(--primary-hover); color: var(--on-primary); }
.store-btn-soon { cursor: default; }
.store-btn-light { background: var(--bg); color: var(--ink); }
a.store-btn-light:hover { background: var(--surface); color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 80px; padding-bottom: 88px; gap: 56px; } }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin: 18px 0 0; max-width: 34em; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* Phone mock: the sentence types, the rows appear, Save turns to Saved, three cards land
   around the phone while a caption and four bars follow along. The base rules are the still
   picture (reduced motion): every card shown, "Saved", full bars, the last caption. */
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.phone { position: relative; width: 290px; padding: 11px; border-radius: 46px; background: #1C1915; box-shadow: 0 30px 60px rgba(60, 40, 20, 0.22), 0 0 0 1.5px #3a352d inset; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; z-index: 5; }
.phone-screen { min-height: 500px; padding: 62px 16px 20px; border-radius: 36px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; overflow: hidden; box-sizing: border-box; }
.ph-date { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.ph-said { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--you); color: var(--on-you); font-size: 14px; font-weight: 500; line-height: 1.35; }
.typed { display: inline-block; }
.ph-rows { list-style: none; margin: 0; padding: 4px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.ph-rows li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.ph-rows li:last-child { border-bottom: 0; }
.ph-rows span { color: var(--muted); font-size: 13px; }
.ph-save { position: relative; margin-top: auto; padding: 13px; border-radius: 14px; background: var(--primary); color: var(--on-primary); text-align: center; font-size: 15px; font-weight: 600; }
.ph-save .done { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; background: var(--you); color: var(--on-you); }

.stage { position: relative; padding: 0 28px 24px; }
.float { position: absolute; z-index: 6; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-pop); border: 1px solid var(--line); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.float b { display: block; }
.float small { color: var(--muted); font-size: 12px; }
.f-map { top: 250px; left: 0; flex-direction: column; gap: 2px; padding: 8px 10px 10px; color: var(--you); }
.f-map svg { width: 84px; height: 84px; --mi-base: var(--ink); --mi-base-opacity: .12; }
.f-map small { color: var(--ink-2); font-weight: 600; }
.f-five { top: 372px; right: 0; }
.f-five em { padding: 3px 9px; border-radius: 999px; background: var(--you-tint); color: var(--you-ink); font-style: normal; font-weight: 700; font-size: 12px; }
.f-say { bottom: -18px; left: 8px; max-width: 220px; }
.float .av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--friend); color: var(--on-friend); font-weight: 700; font-size: 14px; }
/* Narrow screens: the map sits on the phone's empty top corner, clear of the rows */
@media (max-width: 719px) {
    .f-map { top: -24px; }
    .f-map svg { width: 60px; height: 60px; }
}
@media (min-width: 720px) {
    .stage { padding: 0 56px 24px; }
    .f-map { left: -24px; } .f-five { right: -30px; } .f-say { left: -10px; }
}

.cap { width: 290px; margin-top: 34px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bars i { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bars i::after { content: ""; display: block; height: 100%; background: var(--you); transform-origin: left; }
.words { position: relative; height: 34px; margin-top: 12px; text-align: center; font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.words span { position: absolute; inset: 0; visibility: hidden; }
.words span:nth-child(4) { visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
    .typed { animation: hero-type 12s infinite both 0.45s; }
    .ph-rows li { animation: hero-row 12s ease infinite both; animation-delay: calc(3.3s + var(--i) * 0.35s); }
    .ph-save { animation: hero-press 12s ease infinite both 4.8s; }
    .ph-save .done { animation: hero-done 12s ease infinite both 5.0s; }
    .float { animation: 12s cubic-bezier(.2, .9, .3, 1.3) infinite both; }
    .f-map { animation-name: hero-land1; animation-delay: 5.6s; }
    .f-five { animation-name: hero-land2; animation-delay: 8.1s; }
    .f-say { animation-name: hero-land3; animation-delay: 9.2s; }
    .bars i::after { animation: 12s linear infinite both; }
    .bars i:nth-child(1)::after { animation-name: hero-bar1; }
    .bars i:nth-child(2)::after { animation-name: hero-bar2; }
    .bars i:nth-child(3)::after { animation-name: hero-bar3; }
    .bars i:nth-child(4)::after { animation-name: hero-bar4; }
    .words span { visibility: visible; animation: 12s ease infinite both; }
    .words span:nth-child(1) { animation-name: hero-w1; }
    .words span:nth-child(2) { animation-name: hero-w2; }
    .words span:nth-child(3) { animation-name: hero-w3; }
    .words span:nth-child(4) { animation-name: hero-w4; }
}
/* Captions: Say 0-3s, Check 3-5.5s, See it add up 5.5-8s, Friends 8-11.5s; cards leave at about 11.3s */
@keyframes hero-type { 0% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(28, end); } 20%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes hero-row { 0% { opacity: 0; transform: translateY(8px); } 4%, 66% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; } }
@keyframes hero-press { 0%, 100% { transform: none; } 2% { transform: scale(.94); } 4% { transform: none; } }
@keyframes hero-done { 0% { opacity: 0; } 3%, 50% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes hero-land1 { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 5%, 45% { opacity: 1; transform: none; } 49%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes hero-land2 { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 5%, 26% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes hero-land3 { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 5%, 17% { opacity: 1; transform: none; } 21%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes hero-bar1 { 0% { transform: scaleX(0); } 25%, 97% { transform: scaleX(1); } 99%, 100% { transform: scaleX(0); } }
@keyframes hero-bar2 { 0%, 25% { transform: scaleX(0); } 46%, 97% { transform: scaleX(1); } 99%, 100% { transform: scaleX(0); } }
@keyframes hero-bar3 { 0%, 46% { transform: scaleX(0); } 67%, 97% { transform: scaleX(1); } 99%, 100% { transform: scaleX(0); } }
@keyframes hero-bar4 { 0%, 67% { transform: scaleX(0); } 95%, 97% { transform: scaleX(1); } 99%, 100% { transform: scaleX(0); } }
@keyframes hero-w1 { 0%, 23% { opacity: 1; transform: none; } 26%, 97% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes hero-w2 { 0%, 23% { opacity: 0; transform: translateY(8px); } 26%, 44% { opacity: 1; transform: none; } 47%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes hero-w3 { 0%, 44% { opacity: 0; transform: translateY(8px); } 47%, 65% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes hero-w4 { 0%, 65% { opacity: 0; transform: translateY(8px); } 68%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-8px); } }

/* The real recording */
.clip { padding-top: 56px; padding-bottom: 24px; display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; }
.clip-frame { width: min(290px, 100%); padding: 11px; border-radius: 46px; background: #1C1915; box-shadow: 0 30px 60px rgba(60, 40, 20, 0.22), 0 0 0 1.5px #3a352d inset; box-sizing: border-box; }
.clip-video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1174; border-radius: 36px; background: var(--bg); }
@media (min-width: 800px) {
    .clip { grid-template-columns: 1fr auto; gap: 64px; text-align: left; justify-items: stretch; }
    .clip-frame { justify-self: center; }
}

/* Steps */
.steps, .messy, .features, .faq { padding-top: 56px; padding-bottom: 24px; }
.step-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-grid .card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step-grid h3 { font-size: 22px; }
.step-grid p { margin: 0; color: var(--ink-2); line-height: 1.45; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--you-tint); color: var(--you-ink); font-weight: 700; font-size: 14px; }
.mini { margin: auto 0 0; padding-top: 14px; }
.mini-said { align-self: flex-start; margin-top: 14px; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--field); font-size: 14px; }
.mini-rows { list-style: none; margin-bottom: 0; padding: 12px 14px; border-radius: 14px; background: var(--field); display: grid; gap: 6px; font-size: 14px; }
.mini-rows li { display: flex; justify-content: space-between; gap: 10px; }
.mini-rows span { color: var(--muted); white-space: nowrap; }
.mini-note { color: var(--muted); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 6px; background: var(--bar-past); }
.mini-bars i.on { background: var(--you); }

/* Messy input */
.messy { text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.chips span { padding: 10px 16px; border: 1px solid var(--chip-border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 15px; }
.chips span:nth-child(even) { background: var(--surface-2); }

/* Feature rows */
.features { display: grid; gap: 64px; padding-top: 72px; }
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) {
    .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
    .feature.flip .feature-copy { order: 2; }
}
.feature h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.feature p { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.feature-art { padding: 22px; display: grid; gap: 4px; }
.pr-row, .lock-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pr-row span, .lock-row span { flex: 1; }
.pr-row em { padding: 2px 8px; border-radius: 999px; background: var(--you-tint); color: var(--you-ink); font-size: 12px; font-style: normal; font-weight: 700; }
.spark { width: 100%; height: 54px; margin-top: 14px; }
.lock-row:last-child, .feed-item:last-child { border-bottom: 0; }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--neutral-tint); color: var(--neutral-ink); font-size: 13px; font-weight: 600; }
.pill.ok { background: var(--you-tint); color: var(--you-ink); }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.35; }
.feed-item > div { flex: 1; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--you); color: var(--on-you); font-weight: 700; }
.av.clay { background: var(--friend); color: var(--on-friend); }
.feed-item .kudos-btn { flex: none; white-space: nowrap; }
.tick .num { display: inline-grid; overflow: hidden; }
.tick .num > span { grid-area: 1 / 1; }
.tick .was { visibility: hidden; }

/* Scroll-in motion. The rules above are the finished picture (no script, reduced motion).
   With motion allowed, a .reveal block waits paused on its first frame until the page script
   adds .in as it scrolls into view, then plays once. */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal:not(.in) * { animation-play-state: paused !important; }
    .chips span, .pr-row, .feed-item, .lock-row { animation: reveal-rise .6s cubic-bezier(.2, .8, .3, 1) both; }
    .step-grid > li { animation: reveal-rise .4s cubic-bezier(.2, .8, .3, 1) both; }
    .pr-row:nth-child(2), .feed-item:nth-child(2), .lock-row:nth-child(2) { animation-delay: .12s; }
    .pr-row:nth-child(3), .lock-row:nth-child(3) { animation-delay: .24s; }
    .step-grid > li:nth-child(2) { animation-delay: .06s; } .step-grid > li:nth-child(3) { animation-delay: .12s; }
    .chips span:nth-child(2) { animation-delay: .06s; } .chips span:nth-child(3) { animation-delay: .12s; }
    .chips span:nth-child(4) { animation-delay: .18s; } .chips span:nth-child(5) { animation-delay: .24s; }
    .chips span:nth-child(6) { animation-delay: .3s; } .chips span:nth-child(7) { animation-delay: .36s; }
    .mini-bars i { transform-origin: bottom; animation: reveal-grow .5s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(.6s + var(--n, 0) * .07s); }
    .mini-bars i:nth-child(2) { --n: 1; } .mini-bars i:nth-child(3) { --n: 2; } .mini-bars i:nth-child(4) { --n: 3; }
    .mini-bars i:nth-child(5) { --n: 4; } .mini-bars i:nth-child(6) { --n: 5; }
    .spark polyline { stroke-dasharray: 1; animation: reveal-draw 1.2s ease-out .4s both; }
    .pr-row em { animation: reveal-pop .45s cubic-bezier(.2, .9, .3, 1.3) 1.4s both; }
    .tick { animation: tick-on .4s ease 1.1s both; }
    .tick .was { visibility: visible; animation: tick-out .3s ease 1.1s both; }
    .tick .now { animation: tick-in .3s ease 1.1s both; }
    .lock-row .pill { animation: reveal-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(.5s + var(--n, 0) * .15s); }
    .lock-row:nth-child(2) .pill { --n: 1; } .lock-row:nth-child(3) .pill { --n: 2; }
}
@keyframes reveal-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes reveal-grow { from { transform: scaleY(0); } }
@keyframes reveal-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes reveal-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
@keyframes tick-on { 0% { background: var(--field); color: var(--ink); } 50% { transform: scale(1.1); } }
@keyframes tick-out { to { opacity: 0; transform: translateY(-100%); } }
@keyframes tick-in { from { opacity: 0; transform: translateY(100%); } }

/* FAQ */
.faq-list { margin-top: 24px; max-width: 760px; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); line-height: 1.5; }

/* Closing */
.closer { margin-top: 72px; padding-top: 56px; padding-bottom: 56px; border-radius: 28px; background: var(--primary); color: var(--on-primary); text-align: center; display: grid; justify-items: center; gap: 24px; max-width: calc(1080px - 40px); width: calc(100% - 40px); }
@media (min-width: 720px) { .closer { max-width: calc(1080px - 64px); width: calc(100% - 64px); } }
.closer h2 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; text-wrap: balance; }

/* Footer */
.site-foot { margin-top: 56px; border-top: 1px solid var(--line-2); padding: 36px 0 40px; }
.site-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot p { margin: 8px 0 0; }
.site-foot p.site-fine { margin: 24px auto 0; text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.site-foot nav a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.site-fine { color: var(--muted-2); font-size: 13px; margin-top: 24px; }

/* Legal / support pages */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; }
.legal .updated { margin: 8px 0 28px; color: var(--muted); }
.legal h2 { margin: 34px 0 8px; font-size: 22px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; font-size: 16px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal ol { margin: 0; }
.legal a:not(.btn) { color: var(--you-ink); }
