/* Explainers landing — shared tokens + product-mock components.
   Same design language as the app (public/styles.css): #f3f3f3 canvas, white 16px-radius cards, Wix Madefor Text for
   everything, Archivo for display, black pills, #a4ff70 lime, the four-square logo (violet / blue / tangerine / lime). */
:root {
  --canvas: #f3f3f3;
  --panel: #ffffff;
  --panel-2: #f3f3f3;
  --active: #eae9e9;
  --ink: rgba(0, 0, 0, .95);
  --ink-2: rgba(0, 0, 0, .6);
  --ink-3: rgba(0, 0, 0, .42);
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .16);
  --outline: #969696;
  --lime: #a4ff70;
  --lime-2: #8fe85c;
  --lime-soft: #e6ffd8;
  --lime-ink: #276454;
  --good-ink: #529a2c;
  --tang: #ff8a4c;
  --violet: #7a5bd6;
  --lilac: #c6a8ff;
  --sky: #7fb1ff;
  --bad: #d13b3b;
  --display: 'Archivo', system-ui, sans-serif;
  --sans: 'Wix Madefor Text', system-ui, -apple-system, sans-serif;
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .06);
  --wrap: 1180px;
  --gutter: 40px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #111; --panel: #1a1a1a; --panel-2: #222; --active: #2b2b2b;
    --ink: rgba(255, 255, 255, .94); --ink-2: rgba(255, 255, 255, .62); --ink-3: rgba(255, 255, 255, .42);
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16); --outline: #5a5a5a;
    --lime-soft: #1f3316; --lime-ink: #b8f59a; --good-ink: #9be27a;
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5); --shadow-xl: 0 30px 90px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #111; --panel: #1a1a1a; --panel-2: #222; --active: #2b2b2b;
  --ink: rgba(255, 255, 255, .94); --ink-2: rgba(255, 255, 255, .62); --ink-3: rgba(255, 255, 255, .42);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16); --outline: #5a5a5a;
  --lime-soft: #1f3316; --lime-ink: #b8f59a; --good-ink: #9be27a;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5); --shadow-xl: 0 30px 90px rgba(0, 0, 0, .6); color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 16px/1.5 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.brand .logo { width: 28px; height: 28px; flex: none; }
.brand .by { font: 600 11px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }
.brand .by b { font-weight: 800; color: var(--ink-2); letter-spacing: -.02em; }

/* ---------- controls (lifted from the app) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--outline); background: transparent; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: opacity .15s, background .15s; }
.btn:hover { background: var(--panel); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn.black { background: #000; color: #f3f3f3; border-color: #000; }
.btn.black:hover { opacity: .85; background: #000; }
.btn.lime { background: var(--lime); color: #000; border-color: transparent; }
.btn.lime:hover { background: var(--lime-2); }
:root[data-theme="dark"] .btn.black, .dark-scope .btn.black { background: #f3f3f3; color: #000; border-color: #f3f3f3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.black { background: #f3f3f3; color: #000; border-color: #f3f3f3; } }
.btn .icon { width: 16px; height: 16px; }
/* Symphony-style CTA: dark slab with a lime arrow tile */
.cta-slab { display: inline-flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; border-radius: 12px; background: #1d1d1d; color: #f3f3f3; text-decoration: none; font: 500 22px/1 var(--sans); letter-spacing: -.03em; transition: transform .15s; }
.cta-slab:hover { transform: translateY(-1px); }
.cta-slab .arrow { width: 44px; height: 44px; border-radius: 9px; background: var(--lime); color: #000; display: grid; place-items: center; }
.cta-slab .arrow .icon { width: 22px; height: 22px; stroke-width: 2; }
.lime-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); color: #1a4a3c; font-size: 14px; font-weight: 500; padding: 3px 10px; border-radius: 8px; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.done { color: var(--lime-ink); background: var(--lime-soft); }
.pill.running { color: #b4561a; background: #fff0e6; }
.pill.running .dot { animation: pulse 1.2s infinite; }
.pill.review { color: var(--violet); background: rgba(122, 91, 214, .1); }
@keyframes pulse { 50% { opacity: .35; } }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
button.chip:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- top nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-end { margin-left: auto; } .nav-end .btn:not(.black) { display: none; } }

/* ---------- product mock: composer (the app's home prompt box) ---------- */
.composer { background: var(--panel); border-radius: 16px; padding: 18px 14px 12px 20px; text-align: left; border: 1px solid transparent; transition: box-shadow .15s; }
.composer:focus-within { box-shadow: var(--shadow-lg); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.5; min-height: 78px; padding: 0; display: block; }
.composer textarea::placeholder { color: var(--ink-3); }
.composer-row { display: flex; align-items: center; gap: 4px; margin: 10px 0 0 -6px; flex-wrap: wrap; }
.composer-row .grow { flex: 1; }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 8px; padding: 2px; height: 30px; }
.seg span { display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.seg span.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg .icon { width: 14px; height: 14px; }
.ghost { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.ghost .icon { width: 15px; height: 15px; }
.round { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.round .icon { width: 18px; height: 18px; }
.eta { font-size: 12px; color: var(--ink-3); margin-right: 8px; white-space: nowrap; }
.create { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 9999px; border: 0; background: #000; color: #f3f3f3; font-size: 14px; font-weight: 500; text-decoration: none; }
.create:hover { opacity: .85; }
@media (max-width: 640px) { .composer-row .hide-sm { display: none; } }

/* ---------- product mock: app window (sidebar + film page) ---------- */
.appwin { background: var(--canvas); border-radius: 18px; box-shadow: var(--shadow-xl); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr); font-size: 13px; line-height: 1.45; text-align: left; }
.appwin-side { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.appwin-side .brand { font-size: 16px; padding: 0 4px 14px; }
.appwin-side .brand .logo { width: 22px; height: 22px; }
.appwin-side .ni { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 8px; }
.appwin-side .ni.on { background: var(--active); font-weight: 500; }
.appwin-side .ni .icon { width: 14px; height: 14px; }
.appwin-side .sh { color: var(--ink-3); padding: 14px 10px 4px; font-size: 12px; }
.appwin-side .sf { display: flex; align-items: center; gap: 9px; height: 26px; padding: 0 10px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appwin-side .sf.on { background: var(--active); }
.sdot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--good-ink); display: inline-block; }
.sdot.running { background: var(--tang); animation: pulse 1.2s infinite; }
.sdot.review { background: var(--violet); }
.appwin-main { padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.appwin-top { display: flex; align-items: center; gap: 10px; padding: 2px 6px; font-weight: 500; }
.appwin-top .grow { flex: 1; }
.appwin-top .mini { height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--outline); display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12px; }
.appwin-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 10px; min-height: 0; }
.chatcol, .viewcol { background: var(--panel); border-radius: 14px; padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { font-size: 12.5px; color: var(--ink); }
.msg.user { align-self: flex-end; background: var(--panel-2); border-radius: 12px 12px 4px 12px; padding: 8px 11px; max-width: 88%; }
.msg .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.stage { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.stage .ok { width: 14px; height: 14px; border-radius: 50%; background: var(--lime-soft); color: var(--lime-ink); display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.stage.now { color: var(--ink); font-weight: 500; }
.stage.now .ok { background: #fff0e6; color: #b4561a; animation: pulse 1.2s infinite; }
.ask { margin-top: auto; border: 1px solid var(--line-2); border-radius: 12px; padding: 7px 7px 7px 12px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.ask .send { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #000; color: #f3f3f3; display: grid; place-items: center; }
.ask .send .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.tabs { display: flex; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.tabs span { padding: 4px 9px; border-radius: 7px; }
.tabs span.on { background: var(--active); color: var(--ink); }
.player { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.player video, .player img { width: 100%; height: 100%; object-fit: cover; }
.scrub { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); }
.scrub .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.scrub .bar i { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--ink); border-radius: 4px; }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.scenes div { background: var(--panel-2); border-radius: 8px; padding: 7px 8px; font-size: 11px; color: var(--ink-2); line-height: 1.3; }
.scenes div b { display: block; font-weight: 500; color: var(--ink); font-size: 10.5px; margin-bottom: 2px; }
@media (max-width: 860px) {
  .appwin { grid-template-columns: 1fr; }
  .appwin-side { display: none; }
  .appwin-body { grid-template-columns: 1fr; }
  .chatcol { display: none; }
}

/* ---------- film card (the app's gallery card) ---------- */
.fcard { background: var(--panel); border-radius: 16px; padding: 8px; display: block; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: var(--shadow-lg); }
.fcard .thumb { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--panel-2); position: relative; }
.fcard .thumb img, .fcard .thumb video { width: 100%; height: 100%; object-fit: cover; }
.fcard .body { padding: 10px 8px 4px; }
.fcard .t { font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .m { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.asp { position: absolute; top: 6px; right: 6px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 5px; }

/* ---------- footer ---------- */
.foot { padding: 48px 0 40px; font-size: 13px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .wix { margin-left: auto; }
@media (max-width: 720px) { .foot .wix { margin-left: 0; } }

/* reveal on scroll (pages add .in via IntersectionObserver) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
