:root {
  color-scheme: light dark;
  --fs-0: 0.875rem; --fs-1: 1rem; --fs-2: 1.125rem; --fs-3: 1.375rem; --fs-4: clamp(1.6rem, 3.2vw, 2rem); --fs-5: clamp(2rem, 4vw, 2.5rem); --fs-6: clamp(2.1rem, 5.5vw, 3.25rem);
  --bg: #FCF8F4; --surface: #FFFFFF; --surface-2: #F4ECE5; --line: #ECE1D8; --line-strong: #D6C7BB;
  --ink: #221A15; --ink-2: #6B5D54; --link: #B83E1B;
  --brand: #E8552B; --brand-text: #C7431C; --on-brand: #FFFFFF; --brand-soft: #FBE3DA;
  --accent: #1FA97A; --accent-soft: #DDF4EB; --hero-bg: radial-gradient(1200px 600px at 20% -10%, #FBE3DA 0%, #FCF8F4 60%);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #171210; --surface: #211A16; --surface-2: #2B221D; --line: #34291F; --line-strong: #4E3E32;
  --ink: #F3ECE6; --ink-2: #B5A79B; --link: #FF9B7A;
  --brand: #E8552B; --brand-text: #FF8A62; --on-brand: #FFFFFF; --brand-soft: #3A241B;
  --accent: #34C593; --accent-soft: #14312A; --hero-bg: radial-gradient(1200px 600px at 20% -10%, #33201A 0%, #171210 60%);
} }
/* ---------- tokens: brand block is replaced per site ---------- */

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 750; }
h1 { font-size: var(--fs-6); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-2); }
p, ul, ol { margin: 0 0 1em; }
small, .small { font-size: var(--fs-0); }
.muted { color: var(--ink-2); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap-narrow { max-width: 760px; }
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: var(--fs-0); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .6rem; }
.lead { font-size: var(--fs-2); color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; color: var(--ink); font-size: var(--fs-2); white-space: nowrap; flex: none; }
.brand img, .brand svg { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: .25rem .9rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 480px) { .brand { font-size: var(--fs-1); } .nav { gap: .25rem .7rem; } }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-0); padding: .35rem .1rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 480px) { .nav a.hide-sm { display: none; } }

/* ---------- buttons + badge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: var(--fs-1); line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 62px; width: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }
.cta-row.center { justify-content: center; }
.cta-note { font-size: var(--fs-0); color: var(--ink-2); margin: .5rem 0 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 6vw, 4rem); background: var(--hero-bg); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 35%, transparent); margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: .35rem; }
.hero .app-title { display: block; }
.hero .tagline { font-size: var(--fs-3); font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0 0 1rem; max-width: 22ch; letter-spacing: -0.01em; }
.hero .lead { margin-bottom: 1.5rem; }
.hero-shot { justify-self: center; width: min(100%, 300px); }
.hero-shot img { border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.28); border: 1px solid var(--line); }
@media (max-width: 819px) { .hero-shot { width: min(100%, 250px); } }

/* ---------- storyboard ---------- */
.shots { display: grid; gap: 1.25rem; justify-items: center; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { width: min(100%, 290px); text-align: center; }
.shot img { border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.22); border: 1px solid var(--line); background: var(--surface); }
.shot figcaption { margin-top: .75rem; font-weight: 600; font-size: var(--fs-0); color: var(--ink-2); }
figure { margin: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }
.card h3 { margin-top: .25rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin-bottom: .75rem; }
.card .ico svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; display: grid; place-items: center; font-size: var(--fs-1); }
.steps h3 { font-size: var(--fs-2); margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.price .amount { font-size: var(--fs-5); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: .5rem 0 .25rem; }
.price .amount small { font-size: var(--fs-1); font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.price li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- callout / limits ---------- */
.callout { border: 2px solid var(--accent); background: var(--accent-soft); border-radius: 20px; padding: 1.5rem; }
.callout h2 { display: flex; align-items: center; gap: .6rem; }
.callout h2 svg { width: 30px; height: 30px; flex: none; fill: var(--accent); }
.callout ul { margin: 0; padding-left: 1.2rem; }
.callout li { margin: .4rem 0; }
.callout li strong { color: var(--ink); }

/* ---------- permissions ---------- */
.perms { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.perms li { display: grid; grid-template-columns: 1fr; gap: .15rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; }
@media (min-width: 640px) { .perms li { grid-template-columns: 220px 1fr; } }
.perms b { font-weight: 700; }
.perms span { color: var(--ink-2); }
.perms .no { color: var(--ink-2); }
.perms .no b::before { content: "✕ "; color: var(--brand-text); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: .25rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: .85rem 2rem .85rem 0; list-style: none; position: relative; font-size: var(--fs-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .75rem; font-size: 1.5rem; color: var(--brand-text); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 1rem; max-width: 70ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--ink-2); font-size: var(--fs-0); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a { color: var(--ink-2); }

/* ---------- docs (privacy / terms) ---------- */
.doc { padding: 2.5rem 0 4rem; }
.doc .meta { color: var(--ink-2); font-size: var(--fs-0); margin-bottom: 1.5rem; }
.notice { background: var(--surface-2); border-left: 4px solid var(--brand); padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; font-size: var(--fs-0); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1.5rem 0 2rem; }
.toc h2 { font-size: var(--fs-1); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { break-inside: avoid; padding: .15rem 0; }
.doc h2 { font-size: var(--fs-3); margin-top: 2.25rem; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.5rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--fs-0); margin: 1rem 0; }
.doc th, .doc td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink-2); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* ---------- home page app cards ---------- */
.app-card { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: start; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.app-card img { width: 72px; height: 72px; border-radius: 18px; }
.app-card h3 { margin: 0 0 .2rem; }
.app-card p { color: var(--ink-2); margin: 0 0 .5rem; }
.app-card .go { font-weight: 700; color: var(--link); }

/* ---------- misc ---------- */
.pill { display: inline-block; font-size: var(--fs-0); font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.big404 { font-size: clamp(4rem, 18vw, 9rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--brand-text); margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .app-card { transition: none; } }
