/* SocialForest landing page in Ambient, Video Factory's design language
   (VideoFactory's docs/design/ambient.md, tokens from frontend/src/styles/looks/ambient.css):
   glass over light. Translucent cards float over a soft glow drawn from the channel colours; one
   typeface (Manrope); ink pill buttons; the teal accent only for the logo, links, focus and
   selected states. Light and dark follow the visitor's system, as the app does by default. */

/* Manrope, self-hosted from the app (OFL, assets/fonts/manrope-LICENSE.txt) */
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ambient light (the app's :root[data-look='ambient']) */
:root {
  color-scheme: light;
  --font: "Manrope Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --surface-radius: 22px;
  --thumb-radius: 10px;

  --background: oklch(0.975 0.006 250);
  --foreground: oklch(0.2 0.02 260);
  --card: oklch(1 0 0 / 62%);
  --popover: oklch(1 0 0 / 82%);
  --edge: oklch(1 0 0 / 75%);
  --field: oklch(1 0 0 / 70%);
  --nav: oklch(1 0 0 / 45%);
  --tile: oklch(1 0 0 / 60%);
  --muted: oklch(0.2 0.02 260 / 5%);
  --muted-foreground: oklch(0.47 0.02 260);
  --secondary: oklch(1 0 0 / 70%);
  --accent: oklch(0.2 0.02 260 / 6%);
  --border: oklch(0.2 0.02 260 / 8%);
  --input: oklch(0.2 0.02 260 / 16%);
  --ring: oklch(0.6 0.1 195);

  --primary: oklch(0.22 0.02 260);
  --primary-foreground: oklch(0.99 0 0);
  --brand: oklch(0.6 0.1 195);
  --brand-foreground: oklch(0.99 0 0);
  --brand-soft: oklch(0.93 0.035 195);
  --brand-ink: oklch(0.45 0.09 195);

  --warning-soft: oklch(0.95 0.06 85 / 85%);
  --warning-ink: oklch(0.47 0.11 62);
  --destructive-ink: oklch(0.5 0.19 27);

  --channel-1: oklch(0.6 0.15 145);
  --channel-2: oklch(0.55 0.08 62);
  --channel-3: oklch(0.58 0.11 200);
  --channel-4: oklch(0.57 0.19 25);
  --channel-5: oklch(0.55 0.19 300);
  --channel-7: oklch(0.58 0.15 250);

  --surface-shadow: 0 10px 34px -16px oklch(0.3 0.06 260 / 24%);
  --menu-shadow: 0 22px 54px -18px oklch(0.3 0.06 260 / 38%);
  --shadow-xs: 0 1px 2px 0 oklch(0 0 0 / 5%);
  --glow-strength: 32%;
  --glow-strength-2: 18%;

  /* the crowd: grey heads face away, the right viewers (brand) face you */
  --head-1: oklch(0.2 0.02 260 / 9%);
  --head-2: oklch(0.2 0.02 260 / 15%);
  --eye: oklch(0.2 0.02 260);

  /* what shows in each theme: the logo's two versions, the switch's two icons */
  --show-light: block;
  --show-dark: none;
}

/* Ambient dark (the app's :root.dark[data-look='ambient']): the system's dark, unless the switch chose light,
   or the switch's dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: oklch(0.15 0.02 270);
    --foreground: oklch(0.96 0.005 260);
    --card: oklch(0.26 0.02 270 / 50%);
    --popover: oklch(0.24 0.02 270 / 86%);
    --edge: oklch(1 0 0 / 9%);
    --field: oklch(1 0 0 / 5%);
    --nav: oklch(0.15 0.02 270 / 40%);
    --tile: oklch(1 0 0 / 5%);
    --muted: oklch(1 0 0 / 6%);
    --muted-foreground: oklch(0.74 0.015 260);
    --secondary: oklch(1 0 0 / 7%);
    --accent: oklch(1 0 0 / 8%);
    --border: oklch(1 0 0 / 8%);
    --input: oklch(1 0 0 / 18%);
    --ring: oklch(0.78 0.1 195);
    --primary: oklch(0.97 0.005 260);
    --primary-foreground: oklch(0.18 0.02 270);
    --brand: oklch(0.78 0.1 195);
    --brand-foreground: oklch(0.18 0.02 270);
    --brand-soft: oklch(0.32 0.05 195);
    --brand-ink: oklch(0.85 0.08 195);
    --warning-soft: oklch(0.34 0.07 75 / 70%);
    --warning-ink: oklch(0.9 0.11 82);
    --destructive-ink: oklch(0.86 0.11 25);
    --channel-1: oklch(0.72 0.15 145);
    --channel-2: oklch(0.68 0.08 65);
    --channel-3: oklch(0.72 0.11 200);
    --channel-4: oklch(0.68 0.18 25);
    --channel-5: oklch(0.68 0.17 300);
    --channel-7: oklch(0.72 0.14 250);
    --surface-shadow: 0 16px 40px -20px oklch(0 0 0 / 60%);
    --menu-shadow: 0 24px 60px -20px oklch(0 0 0 / 80%);
    --glow-strength: 40%;
    --glow-strength-2: 24%;
    --head-1: oklch(1 0 0 / 8%);
    --head-2: oklch(1 0 0 / 14%);
    --eye: oklch(0.15 0.02 270);
    --show-light: none;
    --show-dark: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.15 0.02 270);
  --foreground: oklch(0.96 0.005 260);
  --card: oklch(0.26 0.02 270 / 50%);
  --popover: oklch(0.24 0.02 270 / 86%);
  --edge: oklch(1 0 0 / 9%);
  --field: oklch(1 0 0 / 5%);
  --nav: oklch(0.15 0.02 270 / 40%);
  --tile: oklch(1 0 0 / 5%);
  --muted: oklch(1 0 0 / 6%);
  --muted-foreground: oklch(0.74 0.015 260);
  --secondary: oklch(1 0 0 / 7%);
  --accent: oklch(1 0 0 / 8%);
  --border: oklch(1 0 0 / 8%);
  --input: oklch(1 0 0 / 18%);
  --ring: oklch(0.78 0.1 195);
  --primary: oklch(0.97 0.005 260);
  --primary-foreground: oklch(0.18 0.02 270);
  --brand: oklch(0.78 0.1 195);
  --brand-foreground: oklch(0.18 0.02 270);
  --brand-soft: oklch(0.32 0.05 195);
  --brand-ink: oklch(0.85 0.08 195);
  --warning-soft: oklch(0.34 0.07 75 / 70%);
  --warning-ink: oklch(0.9 0.11 82);
  --destructive-ink: oklch(0.86 0.11 25);
  --channel-1: oklch(0.72 0.15 145);
  --channel-2: oklch(0.68 0.08 65);
  --channel-3: oklch(0.72 0.11 200);
  --channel-4: oklch(0.68 0.18 25);
  --channel-5: oklch(0.68 0.17 300);
  --channel-7: oklch(0.72 0.14 250);
  --surface-shadow: 0 16px 40px -20px oklch(0 0 0 / 60%);
  --menu-shadow: 0 24px 60px -20px oklch(0 0 0 / 80%);
  --glow-strength: 40%;
  --glow-strength-2: 24%;
  --head-1: oklch(1 0 0 / 8%);
  --head-2: oklch(1 0 0 / 14%);
  --eye: oklch(0.15 0.02 270);
  --show-light: none;
  --show-dark: block;
}

/* The glow: four soft pools of light in channel colours, fixed to the window (as in the app). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 6% 0%, color-mix(in oklab, var(--channel-1) var(--glow-strength), transparent), transparent 70%),
    radial-gradient(38% 50% at 96% 4%, color-mix(in oklab, var(--channel-5) var(--glow-strength), transparent), transparent 70%),
    radial-gradient(50% 55% at 64% 100%, color-mix(in oklab, var(--channel-3) var(--glow-strength), transparent), transparent 72%),
    radial-gradient(30% 40% at 28% 72%, color-mix(in oklab, var(--channel-4) var(--glow-strength-2), transparent), transparent 70%);
}

/* People who ask for less transparency get solid surfaces and no glow. */
@media (prefers-reduced-transparency: reduce) {
  :root { --card: oklch(1 0 0); --popover: oklch(1 0 0); --nav: oklch(0.975 0.006 250); --field: oklch(1 0 0); }
  :root[data-theme="dark"] { --card: oklch(0.2 0.018 270); --popover: oklch(0.22 0.02 270); --nav: oklch(0.15 0.02 270); --field: oklch(0.18 0.018 270); }
  body::before { display: none; }
}
@media (prefers-reduced-transparency: reduce) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --card: oklch(0.2 0.018 270); --popover: oklch(0.22 0.02 270); --nav: oklch(0.15 0.02 270); --field: oklch(0.18 0.018 270); }
}
/* Browsers without backdrop-filter: the floating surfaces become nearly opaque. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --popover: oklch(1 0 0 / 97%); --nav: oklch(0.975 0.006 250 / 95%); }
  :root[data-theme="dark"] { --popover: oklch(0.24 0.02 270 / 97%); --nav: oklch(0.15 0.02 270 / 95%); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --popover: oklch(0.24 0.02 270 / 97%); --nav: oklch(0.15 0.02 270 / 95%); } }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; isolation: isolate; }
img, svg { max-width: 100%; }
a { color: var(--brand-ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--popover); color: var(--foreground);
  padding: 10px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: var(--menu-shadow); }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: clamp(26px, 4vw, 48px); }
.label { font-size: 0.8125rem; line-height: 1.4; font-weight: 600; color: var(--muted-foreground); margin: 0 0 8px; }
h2 { font-weight: 750; font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
.sub { font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem); color: var(--muted-foreground); margin: 0; max-width: 60ch; }
.soft { color: var(--muted-foreground); }
.meta { font-size: 0.8125rem; line-height: 1.4; color: var(--muted-foreground); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- primitives: card, button, field, chip ---------- */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--surface-radius); box-shadow: var(--surface-shadow); min-width: 0; }
.tile { background: var(--tile); border-radius: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 0; font: 600 0.95rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground); transition: opacity 0.15s ease, background-color 0.15s ease; }
.btn:hover { opacity: 0.9; }
.btn.outline { background: var(--secondary); color: var(--foreground); border: 1px solid var(--edge); box-shadow: var(--shadow-xs); }
.btn.outline:hover { opacity: 1; background: var(--accent); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 0.875rem; font-weight: 500; }
.btn[disabled] { opacity: 0.5; cursor: progress; }

input[type="email"], input[type="text"] { font: 400 1rem/1.2 var(--font); color: var(--foreground); background: var(--field);
  border: 1px solid var(--input); border-radius: var(--radius); height: 44px; padding: 0 14px; width: 100%; box-shadow: var(--shadow-xs); }
input::placeholder { color: var(--muted-foreground); opacity: 1; }
input:focus-visible { outline-offset: 1px; }

.chip { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; white-space: nowrap; background: var(--muted); color: var(--foreground); font-variant-numeric: tabular-nums; }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip.warning { background: var(--warning-soft); color: var(--warning-ink); }

/* ---------- header: the app's glass bar ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav); border-bottom: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); padding-top: env(safe-area-inset-top, 0px); }
.nav-row { display: flex; align-items: center; gap: 16px; height: 60px; }
.nav .logo { display: block; margin-right: auto; }
.nav .logo img { height: 28px; width: auto; display: block; }
.nav-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 0.875rem;
  font-weight: 500; color: var(--muted-foreground); text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.nav-link:hover { background: var(--accent); color: var(--foreground); }
.only-light { display: var(--show-light) !important; }
.only-dark { display: var(--show-dark) !important; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px; border: 0; padding: 0;
  background: transparent; color: var(--muted-foreground); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.icon-btn:hover { background: var(--accent); color: var(--foreground); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(36px, 6vw, 80px) clamp(28px, 5vw, 56px); }
.hero .label { color: var(--brand-ink); }
.hero h1 { font-weight: 750; font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 span { display: block; color: var(--muted-foreground); }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.2rem); line-height: 1.55; color: var(--muted-foreground); margin: 0 0 26px; max-width: 38ch; }
.fine { font-size: 0.8125rem; color: var(--muted-foreground); margin: 10px 0 0; }
.hero-pic { position: relative; width: 100%; max-width: 420px; aspect-ratio: 42 / 50; justify-self: end; }
.hero-pic .crowd { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the phone: content, so it stays dark in both themes */
.phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56%; aspect-ratio: 9 / 19;
  border-radius: 30px; background: #070b14; padding: 7px; box-shadow: 0 30px 60px -22px oklch(0.2 0.05 260 / 55%), 0 0 0 1px oklch(1 0 0 / 10%); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 30% 20%, #1d2b4a 0%, #0f172a 55%, #0a0f1d 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 18% 9% 24%; gap: 4px; container-type: inline-size; }
.screen .k1 { font-weight: 600; font-size: 8.5cqi; line-height: 1.12; color: #94a3b8; }
.screen .k2 { font-weight: 800; font-size: 13cqi; line-height: 1.02; letter-spacing: -0.03em; }
.screen .k3 { font-weight: 800; font-size: 13cqi; line-height: 1.05; letter-spacing: -0.03em; color: #0f172a; background: #34d399; align-self: flex-start; padding: 0 5px 2px; border-radius: 4px; }
.screen .gapline { margin-top: 8px; }
.screen .cap { position: absolute; left: 9%; right: 18%; bottom: 13%; font-weight: 700; font-size: 6cqi; line-height: 1.25; }
.screen .cap em { font-style: normal; color: #2dd4bf; }
.screen .rail { position: absolute; right: 6%; bottom: 14%; display: flex; flex-direction: column; gap: 9px; }
.screen .rail svg { width: 7.5cqi; height: 7.5cqi; fill: none; stroke: #fff; stroke-width: 2; opacity: 0.9; }
.screen .who { position: absolute; left: 9%; bottom: 6.5%; font-weight: 600; font-size: 5cqi; opacity: 0.85; display: flex; gap: 6px; align-items: center; }
.screen .who b { width: 6.5cqi; height: 6.5cqi; border-radius: 50%; background: #2dd4bf; display: inline-block; }
.screen .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 20%); }
.screen .bar i { display: block; width: 38%; height: 100%; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .screen .bar i { animation: play 9s linear infinite; }
  @keyframes play { from { width: 0; } to { width: 100%; } }
}

/* crowds */
.crowd .g1 { fill: var(--head-1); } .crowd .g2 { fill: var(--head-2); } .crowd .t { fill: var(--brand); }
.crowd .eye { fill: var(--eye); } .crowd .ring { fill: none; stroke: var(--brand); stroke-width: 3; }

/* ---------- sign-up ---------- */
.signup { width: 100%; max-width: 480px; }
.f-email { display: flex; gap: 8px; flex-wrap: wrap; }
.f-email input { flex: 1 1 220px; min-width: 0; }
.f-more { display: grid; gap: 14px; }
.f-more .lead-in { font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.f-more label { display: grid; gap: 6px; font-weight: 600; font-size: 0.875rem; }
.f-more label small { color: var(--muted-foreground); font-weight: 400; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.radios legend { font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; padding: 0; }
.radios label { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--edge);
  background: var(--secondary); box-shadow: var(--shadow-xs); border-radius: 999px; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.radios label:has(input:checked) { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.radios input { accent-color: var(--brand); margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.consent { font-size: 0.8125rem; color: var(--muted-foreground); margin: 10px 0 0; }
.error { color: var(--destructive-ink); font-size: 0.875rem; margin: 8px 0 0; }
.done { background: var(--tile); border-radius: 14px; padding: 14px 16px; }
.done b { display: block; margin-bottom: 2px; font-weight: 700; }
.done p { margin: 0; color: var(--muted-foreground); }
.done a { font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pain ---------- */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pain { padding: 20px 22px; }
.pain h3 { font-size: 1.06rem; margin: 0 0 6px; }
.pain p { margin: 0; color: var(--muted-foreground); }

/* ---------- gap and bridge ---------- */
.gap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.gap p { margin: 0 0 14px; color: var(--muted-foreground); font-size: 1.06rem; max-width: 48ch; }
.gap p:last-child { margin-bottom: 0; }
.gap strong { color: var(--foreground); font-weight: 700; }
.gap svg { width: 100%; height: auto; display: block; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 20px; }
.step .pic { aspect-ratio: 4 / 3; padding: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: center; font-size: 0.8125rem; overflow: hidden; }
.step .body { padding: 6px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.step .n { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.step h3 { margin: 0; font-size: 1.06rem; line-height: 1.3; }
.step p { margin: 0; color: var(--muted-foreground); font-size: 0.95rem; }
.mini-lbl { font-size: 0.75rem; color: var(--muted-foreground); font-weight: 500; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--edge); min-width: 0; }
.mini-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mini-thumb { align-self: center; width: 31%; aspect-ratio: 9 / 16; border-radius: var(--thumb-radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--channel-7), var(--channel-5)); }
.mini-thumb i { position: absolute; left: 12%; height: 6%; border-radius: 3px; background: #fff; }
.mini-thumb i:nth-child(1) { top: 30%; width: 60%; }
.mini-thumb i:nth-child(2) { top: 40%; width: 76%; background: #34d399; }
.mini-thumb i:nth-child(3) { bottom: 14%; width: 50%; height: 4%; opacity: 0.75; }
.mini-btns { display: flex; gap: 6px; }
.mini-btns b { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--primary); color: var(--primary-foreground); }
.mini-btns b + b { background: var(--secondary); color: var(--foreground); border: 1px solid var(--edge); }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to bottom, var(--channel-5), var(--channel-3)); }
.mini-bars i.low { opacity: 0.4; }

/* ---------- ideas: the app's section cards and list rows ---------- */
.ideas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.card-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 10px; }
.card-head h3 { margin: 0; font-size: 0.875rem; }
.card-head .meta { margin-left: auto; }
.lrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); }
.lrow .t { font-weight: 600; font-size: 0.925rem; line-height: 1.35; }
.lrow .meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.lrow:last-child { padding-bottom: 14px; }
.src { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tile); color: var(--muted-foreground); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.thumb { width: 40px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; }
.thumb.c2 { background: linear-gradient(160deg, var(--channel-2), var(--channel-4)); }
.thumb.c3 { background: linear-gradient(160deg, var(--channel-3), var(--channel-7)); }
.thumb.c1 { background: linear-gradient(160deg, var(--channel-1), var(--channel-3)); }
.dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex: none; }
.dot.c7 { background: var(--channel-7); } .dot.c2 { background: var(--channel-2); }
.example { font-size: 0.8125rem; color: var(--muted-foreground); margin: 14px 0 0; }

/* ---------- reels (shown once the real Reels are in assets/reels/) ---------- */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.reel { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 0; }
.reel video { width: 100%; max-width: 220px; aspect-ratio: 9 / 16; border-radius: 16px; background: #0f172a; object-fit: cover; }
.reel figcaption { font-weight: 600; font-size: 0.875rem; }

/* ---------- in charge ---------- */
.charge { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0 0; padding: 8px; list-style: none; }
.charge li { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.charge svg { width: 28px; height: 28px; }
.charge svg circle { fill: var(--brand-soft); }
.charge svg path { fill: none; stroke: var(--brand-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.charge h3 { font-size: 1rem; margin: 4px 0 0; }
.charge p { margin: 0; color: var(--muted-foreground); font-size: 0.925rem; }

/* ---------- built in public ---------- */
.build { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(22px, 4vw, 36px); }
.build img { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; display: block; background: var(--brand-soft); }
.build h2 { margin-bottom: 10px; }
.build p { margin: 0 0 14px; color: var(--muted-foreground); font-size: 1.06rem; max-width: 56ch; }
.build a { font-weight: 600; text-decoration: none; }
.build a:hover { text-decoration: underline; }

/* ---------- not for you, faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; margin-top: 28px; align-items: start; }
.notfor { padding: 20px 22px; }
.notfor h3 { margin: 0 0 8px; font-size: 1rem; }
.notfor ul { margin: 0; padding-left: 1.1em; color: var(--muted-foreground); }
.notfor li + li { margin-top: 4px; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground); transform: rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--foreground); background: var(--accent); }
.faq details:first-child summary { border-radius: var(--surface-radius) var(--surface-radius) 0 0; }
.faq details:last-child:not([open]) summary { border-radius: 0 0 var(--surface-radius) var(--surface-radius); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted-foreground); max-width: 64ch; }

/* ---------- last call, footer ---------- */
.last { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding: clamp(26px, 5vw, 56px); }
.last h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -0.035em; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  padding-block: 28px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.8125rem; color: var(--muted-foreground); }
.foot .tagline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot img { height: 22px; width: auto; display: block; }
.foot nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.foot .nav-link { height: 32px; padding: 0 12px; font-size: 0.8125rem; }

/* ---------- +b: the sign-up bar on phones ---------- */
.bar-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.bar-cta .in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px;
  background: var(--popover); border: 1px solid var(--edge); border-radius: 999px; box-shadow: var(--menu-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); font-weight: 600; font-size: 0.875rem; }
@media (prefers-reduced-motion: no-preference) {
  .bar-cta { transition: transform 0.2s ease, opacity 0.2s ease; }
  .bar-cta.off { transform: translateY(110%); opacity: 0; }
}
.bar-cta.off { visibility: hidden; }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  .steps, .reels, .charge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-row .nav-link { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero, .gap, .ideas, .last, .build { grid-template-columns: minmax(0, 1fr); }
  .hero-pic { justify-self: center; max-width: 320px; }
  .pains { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
  .build { gap: 20px; }
  .build img { width: 112px; height: 112px; }
  .nav .logo img { height: 26px; }
}
@media (min-width: 761px) { .bar-cta { display: none; } }
@media (max-width: 480px) {
  .steps, .charge { grid-template-columns: minmax(0, 1fr); }
  .step .pic { aspect-ratio: auto; min-height: 136px; }
  .mini-thumb { width: 64px; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .f-email .btn { flex: 1 1 100%; }
}
