/* ════════════════════════════════════════════════════════════
   LightVault — alt selling page
   Design tokens lifted from the real app (public/index.html)
   ════════════════════════════════════════════════════════════ */
/* tokens — ONE-FOR-ONE from the Railway app's POLISH LAYER (the live look) */
:root {
  /* declared dark so Chrome Auto Dark Mode never re-inverts the page
     (it was flipping the LightVault icon white in the phone animation) */
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #121212;
  --surface2: #181818;
  --border: #1f1f1f;
  --accent: #d9dde0;
  --accent-dim: #8a95a0;
  --accent-glow: rgba(201, 214, 223, 0.12);
  --red: #ff5858;
  --red-dim: #e84848;
  --text: #ebe8e4;
  --muted: #6a6a6a;
  --green: #4caf7d;
  --warm: #f5c542;
  --setting-red: #c43030;
  --power-blue: #3b8fe0;
  --card-bg: #131313;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

/* ── no visible native scrollbars anywhere (scrolling still works) ── */
html { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
html::-webkit-scrollbar, body::-webkit-scrollbar,
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { scrollbar-width: none; }

html, body { margin: 0; padding: 0; max-width: 100vw; }
/* horizontal clip + bounce-block on the ROOT only: overflow-x on body makes
   body its own scroll container, and overscroll-behavior:none there swallows
   every wheel/touch scroll before it can chain up to the page. */
html { overflow-x: hidden; overscroll-behavior-y: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  /* vertical scrolling only — the page never wiggles left/right */
  touch-action: pan-y;
}
/* the feature wall and tab strips keep their own horizontal drag, contained */
.wall, .af-tabs { touch-action: pan-x; overscroll-behavior-x: contain; }
/* inside the app frame: locked off — vertical only, no scroll chaining */
.appframe, .af-detail, .af-prelight, .af-wfview, .phone-screen {
  touch-action: pan-y;
}
/* NO overscroll containment on the in-app overlays: when their content fits
   (the usual case) contain makes them swallow every wheel/touch and the page
   freezes halfway over a card. Chaining to the page is the right behavior. */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0; }
em { font-style: italic; }

/* ── progress rail ── */
.progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: transparent; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--red), var(--warm)); }

/* ── nav — exact clone of the LightVault topbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  /* wordmark alone owns the center cell — equal 1fr sides keep it dead-center
     no matter how wide the icon groups get; the $10 pill rides at the end of nav-left */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(255,255,255,.05); }
.nav-left { display: flex; gap: 7px; align-items: center; min-width: 0; }
.nav-left .nav-seven { margin-left: 4px; }
.nav-right { display: flex; gap: 7px; align-items: center; justify-content: flex-end; min-width: 0; }
.nav-brand { display: flex; justify-content: center; align-items: center; gap: 10px; min-width: 0; }
.nav-seven {
  background: var(--red); color: #fff; font-weight: 800; font-size: 11.5px;
  border-radius: 7px; padding: 6px 10px; letter-spacing: .02em; flex: none;
  box-shadow: 0 8px 20px -8px rgba(255,88,88,.5);
  transition: background .2s, transform .15s;
}
.nav-seven:hover { background: var(--red-dim); transform: translateY(-1px); }
.nav-wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; padding: 8px 18px; white-space: nowrap;
}
.nav-wordmark::before {
  content: ""; display: inline-block; width: 18px; height: 18px; flex: none;
  background: var(--red);
  clip-path: polygon(58% 0%, 0% 58%, 42% 58%, 36% 100%, 100% 36%, 58% 36%);
}
.nav-search {
  height: 36px; width: 116px; flex: 0 1 auto; min-width: 38px; border-radius: 10px; padding: 0 14px;
  font-size: 13.5px; color: var(--muted); text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid transparent;
  transition: background .2s;
}
.nav-search:hover { background: rgba(255,255,255,.08); }
.nav-note {
  position: fixed; z-index: 130; width: 260px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 15px; font-size: 12.5px; line-height: 1.6; color: var(--accent-dim);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.nav-note b { color: var(--text); }
.nav-note.show { opacity: 1; transform: none; }
/* footer mark — same red bolt */
.nav-mark {
  width: 13px; height: 13px; flex: none;
  background: var(--red);
  clip-path: polygon(58% 0%, 0% 58%, 42% 58%, 36% 100%, 100% 36%, 58% 36%);
}

/* ── buttons ── */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dim); }
.btn-ghost { border: 1px solid var(--border); color: var(--accent); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent-dim); }
.btn-big { font-size: 17px; padding: 17px 38px; }

/* ════════ HERO ════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
/* soft hand-off into the demo — no hard black seam at the hero's edge */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26vh;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,.55) 55%, var(--bg) 96%);
  pointer-events: none; z-index: 2;
}
/* faint contact sheet behind everything, revealed by spotlight mask */
.hero-sheet {
  position: absolute; inset: -6%;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  padding: 30px; opacity: 0; pointer-events: none;
  transform: rotate(-4deg) scale(1.06);
}
.hero-sheet .hs-card {
  border-radius: 12px; border: 1px solid rgba(255,255,255,.07);
  background: var(--surface); aspect-ratio: 4/5; overflow: hidden; position: relative;
}
.hero-sheet .hs-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%), rgba(245,197,66,.32), transparent 55%),
              radial-gradient(circle at 75% 80%, rgba(141,183,255,.10), transparent 50%);
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 330px at var(--mx, 50%) var(--my, 42%), rgba(245,197,66,.16), rgba(10,10,10,0) 60%);
  transition: background .05s linear;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; padding: 90px 24px 60px; }
.hero-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: .3em; color: var(--warm);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(38px, 7vw, 76px); font-weight: 800; letter-spacing: -.02em;
}
.hero-title em { color: var(--warm); font-style: normal; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; will-change: transform, opacity; }
.hero-sub {
  max-width: 620px; margin: 28px auto 0; font-size: clamp(15px, 2vw, 18px);
  color: var(--accent-dim);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
/* down chevron — no verbiage, just points the way */
.hero-down {
  position: absolute; bottom: 22px; left: 0; right: 0; margin: 0 auto; width: max-content;
  display: grid; gap: 0; padding: 10px 18px; z-index: 3;
}
.hero-down .chev {
  width: 20px; height: 20px; margin-top: -11px;
  border-right: 2.5px solid var(--warm); border-bottom: 2.5px solid var(--warm);
  transform: rotate(45deg); border-radius: 2px;
  animation: chevDrop 1.7s ease-in-out infinite;
}
.hero-down .chev:last-child { animation-delay: .18s; opacity: .55; }
@keyframes chevDrop {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .35; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ════════ PROBLEM STRIP ════════ */
.strip { padding: 18vh 24px; }
.strip-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 26px; }
.strip-line { font-size: clamp(22px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.01em; }
.strip-line .dim, .strip-answer .dim { color: var(--muted); font-weight: 500; }
.strip-q { color: var(--red); }
.strip-answer { font-size: clamp(22px, 3.4vw, 36px); font-weight: 800; margin-top: 16px; color: var(--warm); }

/* ════════ SECTION HEADS ════════ */
.section-head { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; }
.section-kicker { font-size: 11px; font-weight: 800; letter-spacing: .3em; color: var(--warm); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.section-sub { margin-top: 16px; color: var(--accent-dim); font-size: 15.5px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ════════ DEMO — try ribbon ════════ */
.demo {
  padding: 0 0 5vh;
  background: radial-gradient(ellipse 90% 30% at 50% 0%, rgba(245,197,66,.05), transparent 70%);
}
.demo .section-head { padding-top: 7vh; }
.try-label {
  font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #0a0a0a;
  background: var(--warm); border-radius: 999px; padding: 6px 14px; flex: none;
}

/* locked border-glow spec — gold, breathing 1.7s full cycle */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(255, 196, 51, 0.95);
    box-shadow: 0 0 22px rgba(240, 170, 26, 0.95), 0 40px 110px rgba(0,0,0,.6);
  }
  50% {
    border-color: rgba(255, 196, 51, 0.30);
    box-shadow: 0 0 22px rgba(240, 170, 26, 0.45), 0 40px 110px rgba(0,0,0,.6);
  }
}
.appframe.glow, .createframe.glow {
  border: 2px solid rgba(255, 196, 51, 0.95);
  box-shadow: 0 0 22px rgba(240, 170, 26, 0.95), 0 40px 110px rgba(0,0,0,.6);
  animation: borderGlow 1.7s ease-in-out infinite;
}

/* ── Remove Distractions demo — segmented credit pill, one-for-one with the live app:
   4 slots behind the label = 4 removals a month; a click fills the next slot ── */
@keyframes rdGlow {
  0%, 100% { border-color: rgba(255, 196, 51, 0.95); box-shadow: 0 0 10px rgba(240, 170, 26, 0.8); }
  50% { border-color: rgba(255, 196, 51, 0.30); box-shadow: 0 0 10px rgba(240, 170, 26, 0.35); }
}
.rd-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 0 6px; border-top: 1px solid rgba(255,255,255,.05); }
/* untouched pill pulses the locked gold glow so they know to click — stops on first use */
.rd-pill[data-used="0"] { animation: rdGlow 1.7s ease-in-out infinite; }
.rd-pill {
  position: relative; width: 168px; height: 30px; padding: 2px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  overflow: hidden; border-radius: 999px; cursor: pointer;
  background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); transition: background 0.2s, border-color 0.2s;
}
.rd-pill:hover { background: rgba(45, 156, 219, 0.16); border-color: rgba(45,156,219,.7); }
.rd-pill-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.55); white-space: nowrap; pointer-events: none;
}
.rd-seg { min-width: 0; height: 100%; background: rgba(255,255,255,0.08); transition: background 0.2s; }
.rd-seg:first-child { border-radius: 999px 2px 2px 999px; }
.rd-seg:last-child { border-radius: 2px 999px 999px 2px; }
.rd-pill[data-used="1"] .rd-seg:nth-child(-n+1),
.rd-pill[data-used="2"] .rd-seg:nth-child(-n+2),
.rd-pill[data-used="3"] .rd-seg:nth-child(-n+3) { background: #2d9cdb; }
.rd-pill[data-used="4"] { background: rgba(225, 61, 61, 0.92); border-color: rgba(255,255,255,0.2); }
.rd-pill[data-used="4"] .rd-seg { background: rgba(255,255,255,0.22); }
.rd-hint { font-size: 9.5px; font-style: italic; color: var(--muted); }
/* real-app layout: Remove Distractions UNDER the photo, bottom CENTER of the
   card (matches the app-side move) — wrap is content-width so "click me"
   centers under the pill itself */
.rd-under { align-items: center; width: max-content; margin-left: auto; margin-right: auto; border-top: 0; padding: 10px 2px 0; }
/* CAMERA SETTINGS block above the photo + Expand pill on it */
.dt-cam-label { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin: 2px 2px 5px; }
.dt-cam-row { font-family: var(--mono); font-size: 16.5px; font-weight: 700; letter-spacing: .03em; margin: 0 2px 11px; }
.dt-expand {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(18,18,20,.85); border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 7px 15px; font-size: 11.5px; font-weight: 600; color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rd-note {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(5,5,5,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.rd-note.show { opacity: 1; pointer-events: auto; cursor: pointer; }
.rd-note-inner {
  max-width: 440px; background: #161618; border: 1px solid rgba(255,196,51,.4);
  border-radius: 16px; padding: 26px 28px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.rd-kicker { font-size: 10px; font-weight: 800; letter-spacing: .22em; color: var(--warm); margin-bottom: 11px; }
.rd-note-inner p:not(.rd-kicker) { font-size: 14.5px; line-height: 1.7; color: var(--accent); }
.rd-meta {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.rd-meta b { color: var(--warm); font-weight: 800; }
/* 4th-click "you're invested" pill — warm, not pushy */
.rd-buy {
  margin-top: 18px; padding: 11px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--warm); color: #111; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 8px 28px rgba(245,197,66,.35); transition: transform .15s ease;
}
.rd-buy:hover { transform: translateY(-1px); }
.buy-flash { animation: buyFlash 1.3s ease-in-out 2; }
@keyframes buyFlash { 50% { box-shadow: 0 0 0 7px rgba(245,197,66,.45); } }

/* the clean photo fades in over the original — same crop, no flash.
   .scene-photo.rd-fade beats the later .scene-photo transition rule. */
.scene-photo.rd-fade { opacity: 0; transition: opacity 1.6s ease, transform .4s ease; z-index: 2; }
.scene-photo.rd-fade.in { opacity: 1; }

/* ── WHO DESIGNED IT — old-notes pill, peek overlay, tether flag ── */
.notes-pill {
  display: inline-block; margin: 0 3px; padding: 4px 13px; border-radius: 999px;
  border: 1px solid rgba(245,197,66,.5); background: rgba(245,197,66,.08);
  color: var(--warm); font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer;
  transition: background .2s; vertical-align: 1px;
}
.notes-pill:hover { background: rgba(245,197,66,.2); }
.tether-flag { color: #e25555; font-weight: 800; }
.notes-peek {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(5,5,5,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.notes-peek.show { opacity: 1; pointer-events: auto; cursor: pointer; }
.notes-peek-inner { max-width: min(430px, 92vw); text-align: center; }
.notes-peek-inner img {
  width: 100%; max-height: 76vh; object-fit: contain; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.notes-peek-cap { margin-top: 10px; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ── create-from-scratch panel (the preset system + live card) ── */
.cf-cam-lock { font-size: 10.5px; font-style: italic; color: var(--muted); letter-spacing: .02em; }
.createframe {
  max-width: 880px; margin: 0 auto;
  background: var(--surface); border-radius: 18px;
  padding: 22px 24px 24px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start;
}
.cf-side { display: grid; gap: 10px; justify-items: center; }
/* the live preview is a one-for-one real card now — same width feel, 4/5 photo */
.cf-preview { width: 100%; max-width: 235px; }
.cf-card { cursor: default; }
.cf-card .card-name { font-size: 15px; }
.cf-card .card-meta { padding: 12px 12px 12px; }
.cf-card .card-key-light { margin: 12px -14px 0; font-size: 9.5px; padding: 8px 12px; }
.cf-card .dt-pill { font-size: 10.5px; padding: 5px 10px; }
.cf-ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px;
  color: var(--muted); font-size: 30px;
}
.cf-ph i { font-style: normal; font-size: 10px; letter-spacing: .08em; }
.cf-pill b { font-weight: 800; }
.cf-stock { font-style: normal; opacity: .45; font-size: 10px; }
@media (max-width: 760px) {
  .createframe { grid-template-columns: 1fr; }
  .cf-side { justify-items: center; }
}
.cf-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.cf-title { font-size: 18px; font-weight: 800; }
.cf-sub { font-size: 12px; color: var(--muted); }
.cf-name {
  width: 100%; height: 40px; border-radius: 10px; padding: 0 14px; margin-bottom: 16px;
  font-size: 14.5px; font-weight: 600; color: var(--text); outline: none;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.cf-name:focus { border-color: var(--accent); }
.cf-group { margin-bottom: 15px; }
.cf-group-title { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); margin-bottom: 8px; }
.cf-group-title i { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: lowercase; }
.cf-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cf-pill {
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; padding: 6px 12px; border-radius: 20px;
  transition: all .2s; user-select: none;
}
.cf-pill:hover { border-color: var(--accent); color: var(--accent); }
.cf-pill.sel { border-color: var(--green); color: var(--green); background: rgba(76,175,125,.1); }
/* partially-stocked pill — one-for-one with the live app's .gear-pill.qty-half:
   green fill walks left-to-right one section per click (inline style sets the %) */
.cf-pill.qty-half { border-color: var(--green); color: var(--green); background: linear-gradient(to right, rgba(76,175,125,.18) 50%, transparent 50%); }
.cf-cam { font-family: var(--mono); font-size: 12.5px; color: var(--accent); background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; display: inline-block; }
.cf-save { display: block; width: 100%; margin-top: 6px; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 13px; }
.cf-save:hover { background: var(--red-dim); }
.cf-done { display: none; margin-top: 12px; font-size: 13.5px; color: var(--green); font-weight: 600; }
.cf-done.show { display: block; }
.cf-done b { font-weight: 800; }

/* ════════ DEMO — app frame ════════ */
.appframe {
  position: relative;
  max-width: 880px; margin: 0 auto; min-height: 640px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 40px 110px rgba(0,0,0,.6);
  overflow: hidden;
  display: flex; flex-direction: column;
}
/* topbar — one-for-one with the live app (glass bar, brand pill w/ red bolt) */
/* flex (not 1fr/auto/1fr grid): the wordmark centers in the LEFTOVER space so the
   gaps either side of it stay even — exactly how the live app's top bar sits */
.af-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(10,10,10,.85);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.af-brand { flex: 1; display: flex; justify-content: center; min-width: 0; }
.af-left { display: flex; gap: 8px; align-items: center; }
.af-icon-btn {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.02); color: var(--accent-dim);
  border: 1px solid rgba(255,255,255,.13);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.af-icon-btn:hover { color: var(--text); background: rgba(255,255,255,.07); }
.af-icon-btn.on { color: var(--red); }
.af-bulb-btn { color: var(--warm); }
.af-brand h1 {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 6px 14px;
}
.af-brand h1::before {
  content: ""; display: inline-block; width: 14px; height: 14px; flex: none;
  background: var(--red);
  clip-path: polygon(58% 0%, 0% 58%, 42% 58%, 36% 100%, 100% 36%, 58% 36%);
}
.af-top-actions { display: flex; gap: 8px; flex: none; align-items: center; justify-content: flex-end; }
.af-search-box {
  height: 38px; width: 150px; border-radius: 12px; padding: 0 14px;
  font-size: 13.5px; color: var(--text); outline: none;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.13);
  transition: background .2s, border-color .2s;
}
.af-search-box::placeholder { color: var(--muted); }
.af-search-box:focus { background: rgba(255,255,255,.08); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(201,214,223,.15); }
.af-add-btn { width: auto; padding: 0 14px; gap: 7px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.af-add-label { line-height: 1; }

/* MY SETUPS / build code / STUDIO row */
.af-row2 { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.af-setups-pill, .af-env {
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; white-space: nowrap; transition: background .2s;
}
.af-setups-pill:hover, .af-env:hover { background: rgba(255,255,255,.09); }
.af-count { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 2px; }
.af-caret { opacity: .6; font-size: 10px; }
.af-buildcode {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,.35); padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
}
.af-env { margin-left: auto; }

.af-envmenu {
  display: none; position: absolute; top: 110px; right: 18px; z-index: 30;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; min-width: 160px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.af-envmenu.open { display: block; }
.af-envmenu button {
  display: block; width: 100%; text-align: left; font-size: 13px;
  padding: 9px 12px; border-radius: 8px; color: var(--accent-dim);
}
.af-envmenu button:hover { background: var(--accent-glow); color: var(--text); }
.af-envmenu button.on { color: var(--warm); font-weight: 700; }

/* light-count tab strip — ghost pills, active = red w/ glow (live app) */
.af-tabs { display: flex; gap: 8px; padding: 14px 18px 4px; overflow-x: auto; }
.af-tabs button {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; flex: none;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid transparent;
  border-radius: 999px; padding: 9px 16px; transition: all .18s ease;
}
.af-tabs button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.af-tabs button.on {
  color: #fff; background: var(--red);
  box-shadow: 0 6px 18px -6px rgba(255,88,88,.55);
}
.af-workflow-tab { border: 1px dashed rgba(255,255,255,.15) !important; background: transparent !important; }
.af-workflow-tab.on { color: var(--green) !important; border-color: var(--green) !important; background: rgba(76,175,125,.08) !important; box-shadow: none !important; }

.af-wfbar {
  display: none; align-items: center; justify-content: space-between;
  margin: 10px 18px 0; padding: 10px 14px;
  background: rgba(76,175,125,.12); border: 1px solid var(--green); border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--green);
}
.af-wfbar.show { display: flex; }
.af-wf-go { background: var(--green); color: #06130c; font-weight: 800; font-size: 12.5px; border-radius: 8px; padding: 7px 14px; margin-right: 6px; }
.af-wf-clear { color: var(--accent-dim); font-size: 12.5px; padding: 7px 8px; }

.af-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 16px 18px 22px; flex: 1; align-content: start;
}
.af-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13.5px; padding: 60px 10px; }
.af-empty-env { padding: 70px 30px; line-height: 2; }
.af-empty-env b { font-size: 17px; font-weight: 800; color: var(--text); }
.af-empty-env span { display: inline-block; max-width: 420px; font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 6px; }

/* ── setup cards ── */
.af-grid > * { min-width: 0; }
/* card anatomy — ONE-FOR-ONE with the live app's setup-card */
.card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05); background: var(--card-bg);
  display: flex; flex-direction: column;
  cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-2px); border-color: rgba(255,255,255,.12);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.75), 0 0 0 1px rgba(255,88,88,.08);
}
.card.selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 14px 38px rgba(0,0,0,.45); }
.card.is-one { box-shadow: 0 0 0 2px rgba(245,197,66,.25); }
.card-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface2); flex: none; }
/* multi-angle carousel — same artwork, different "angles" */
.angle-wrap { position: absolute; inset: 0; transition: transform .35s ease; }
.angle-wrap.angle-2 { transform: scaleX(-1); }
.angle-wrap.angle-3 { transform: scale(1.22); }
.angle-wrap.angle-4 { transform: scaleX(-1) scale(1.22); }
/* EXAMPLE marker = white rubber-stamp banner, centered across the card top,
   transparent, corners following the card's curve (same ink as .pha-stamp) */
.angle-chip {
  /* borderless EXAMPLE word, top-left, all white */
  position: absolute; top: 10px; left: 12px; z-index: 3;
  text-align: left; font-size: 9.5px; font-weight: 900; letter-spacing: .26em; text-indent: 0;
  color: rgba(255,255,255,.92);
  background: transparent; pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.pnav {
  position: absolute; bottom: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pnav:hover { background: rgba(0,0,0,.8); }
.pnav.left { right: calc(50% + 26px); }
.pnav.right { left: calc(50% + 26px); }
.pdots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3;
}
.pdots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.pdots span.on { background: #fff; }
.swipe-chip {
  /* sits 1/4in (24px) above the carousel dots (dots top edge = 24px) */
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.card-photo::after {
  content: ""; position: absolute; inset: 55% 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
}
.scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; transition: transform .4s ease; }
.card:hover .scene-photo { transform: scale(1.03); }
.card-meta { padding: 18px 18px 14px; text-align: center; flex: 1; }
.card-name { font-size: 16.5px; font-weight: 700; letter-spacing: -.005em; line-height: 1.15; }
.card-name .pencil { font-size: 10px; color: var(--muted); }
.card-settings {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; opacity: .85; color: var(--muted); margin-top: 8px;
}
.cs-f { color: var(--warm); font-weight: 600; }
.cs-sh { color: var(--green); font-weight: 600; }
.cs-iso { color: var(--setting-red); font-weight: 600; }
.cs-pw { color: var(--power-blue); font-weight: 600; }
.card-key-light {
  margin: 13px -18px 0; padding: 11px 18px;
  border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09);
  text-align: center; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.72); font-weight: 500; font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-key-label { color: rgba(255,255,255,.42); font-weight: 600; letter-spacing: .28em; margin-right: 6px; }
.card-wfbtn {
  display: block; width: 100%; padding: 13px; flex: none;
  border-top: 1px solid rgba(255,255,255,.04);
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s, background .2s;
}
.card-wfbtn:hover { color: var(--text); background: var(--surface2); }
.card-wfbtn.active { color: var(--green); }
.card-footrow { display: flex; border-top: 1px solid var(--border); flex: none; }
.card-tabbtn {
  flex: 1; padding: 9px 10px; font-size: 12.5px; color: var(--muted);
  border-right: 1px solid var(--border); transition: color .2s;
}
.card-tabbtn:hover { color: var(--text); }
.card-star {
  flex: 1; padding: 8px 10px; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, transform .15s;
}
.card-star.on { color: var(--warm); }
.card-star:active { transform: scale(1.2); }
.card-check {
  position: absolute; inset: 0; z-index: 4; display: none;
  background: rgba(76,175,125,.16);
  align-items: center; justify-content: center;
}
.card-check span {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  color: #06130c; font-size: 20px; font-weight: 800; line-height: 40px; text-align: center;
}
.appframe.wf-select .card-check { display: flex; opacity: 0; }
.appframe.wf-select .card.selected .card-check { opacity: 1; }

/* ── CSS studio scenes (the "photos") ── */
.scene { position: absolute; inset: 0; background: #0d0d0f; }
.scene .glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.scene .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.07)); }
.scene .subject {
  position: absolute; bottom: 26%; left: 50%; transform: translateX(-50%);
  width: 26%; aspect-ratio: 1/2.1; border-radius: 46% 46% 18% 18%;
  background: linear-gradient(160deg, #2c2c30, #131316 70%);
}
.scene .subject::before {
  content: ""; position: absolute; top: -24%; left: 50%; transform: translateX(-50%);
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(160deg, #38383d, #17171a 75%);
}
.scene .stand {
  position: absolute; bottom: 26%; width: 2.5%; height: 44%;
  background: linear-gradient(#222, #161616); transition: opacity .8s;
}
.scene .stand::before {
  content: ""; position: absolute; top: -7%; left: 50%; transform: translateX(-50%);
  width: 700%; aspect-ratio: 1.45/1; border-radius: 10px;
  background: linear-gradient(145deg, #3a3a3f, #1b1b1f);
  border: 1px solid rgba(255,255,255,.1);
}
.scene .stand.gone { opacity: 0; }
.scene .softglow { position: absolute; mix-blend-mode: screen; border-radius: 50%; }

/* ── detail / prelight / wf overlays inside frame ── */
.af-detail, .af-prelight, .af-wfview {
  position: absolute; inset: 0; z-index: 40; display: none;
  background: rgba(10,10,10,.97); overflow-y: auto;
}
.af-detail.open, .af-prelight.open, .af-wfview.open { display: block; }
/* the open detail is IN-FLOW, not an inner scroller — only the page scrolls,
   so touch can never latch/stick inside the card (the grid hides meanwhile) */
.af-detail.open { position: static; inset: auto; overflow: visible; z-index: auto; }
.appframe.dt-open .af-grid { display: none; }
/* while a setup is open: light-count tabs AND the MY SETUPS / STUDIO row step
   aside too (everything returns on X) */
.appframe.dt-open .af-tabs { display: none; }
.appframe.dt-open .af-row2 { display: none; }

/* EXAMPLE banner across the top of an opened example setup */
.dt-example {
  text-align: center; font-weight: 900; font-size: 12px; letter-spacing: .34em; text-indent: .34em;
  color: rgba(255,255,255,.95); background: rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.12); padding: 10px 0;
}
/* tight header: content rides up close under the X */
.dt-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 2px; }
.dt-title { font-size: 19px; font-weight: 800; }
/* glowing "click to go back" tag riding beside the X (Go To card) */
.dt-back-hint {
  margin-left: auto; margin-right: 10px; flex: none;
  font-size: 10px; font-style: italic; letter-spacing: .04em; color: var(--warm);
  border: 1px solid rgba(255,196,51,.6); border-radius: 999px; padding: 5px 11px;
  animation: rdGlow 1.7s ease-in-out infinite; white-space: nowrap;
}
/* exit button: clean black round X (glow dropped per Marvin — header is clear now) */
.dt-close {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #0a0a0a; color: #fff; font-size: 19px; line-height: 1; padding: 0;
  border: 1px solid rgba(255,255,255,.35);
}
.dt-close:hover { color: #fff; background: #1a1a1c; }
/* REFERENCES placeholder box */
.dt-refbox {
  border: 1px dashed rgba(255,255,255,.22); border-radius: 10px;
  padding: 14px 14px; font-size: 12px; font-style: italic; color: var(--muted);
}
.dt-body { padding: 0 20px 26px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; }
.dt-photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--border); background: var(--surface2); }
.dt-photo .scene { position: absolute; }
.dt-aibtn {
  position: absolute; bottom: 12px; right: 12px; z-index: 5;
  background: rgba(10,10,10,.7); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--text);
  font-size: 12px; font-weight: 700; border-radius: 9px; padding: 8px 12px;
}
.dt-aibtn:hover { border-color: var(--accent-dim); }
.dt-section { margin-bottom: 16px; }
.dt-label { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); margin-bottom: 8px; }
.dt-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.dt-pill {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
}
.dt-mono {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; line-height: 1.8;
}
.dt-mono b { color: var(--warm); font-weight: 600; }
/* Light Power grid — one row per light, exactly like the live app:
   role blocked-off bold white, modifier plain, f-stop gold, power blue */
.dt-power {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
}
.dt-powrow { line-height: 1.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-role { color: #fff; font-weight: 700; letter-spacing: 0.05em; }
.dt-sep { color: var(--muted); }
/* modifiers stack vertically — one row per light, same as the live app */
.dt-mods { display: flex; flex-direction: column; gap: 6px; }
.dt-modrow {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 12px; width: max-content; max-width: 100%;
}
.dt-notes { font-size: 13px; color: var(--accent-dim); line-height: 1.7; }
.dt-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.dt-prelight { background: var(--red); color: #fff; font-weight: 800; font-size: 13px; border-radius: 10px; padding: 12px 18px; }
.dt-prelight:hover { background: var(--red-dim); }
.dt-ghost { border: 1px solid var(--border); color: var(--accent-dim); font-size: 13px; font-weight: 600; border-radius: 10px; padding: 12px 16px; }
.dt-ghost:hover { color: var(--text); border-color: var(--accent-dim); }

/* AI bubble */
.ai-bubble {
  position: absolute; left: 12px; right: 12px; bottom: 58px; z-index: 6;
  background: rgba(14,14,16,.96); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; display: none;
}
.ai-bubble.open { display: block; }
.ai-row { display: flex; gap: 8px; }
.ai-row input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 12.5px; padding: 9px 11px; outline: none;
}
.ai-go { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 0 16px; }
.ai-credits { display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.ai-seg { width: 17px; height: 5px; border-radius: 3px; background: var(--border); }
.ai-seg.on { background: var(--green); }
.ai-credits em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 5px; }
.ai-working { font-size: 11.5px; color: var(--warm); margin-top: 8px; display: none; }
.ai-working.show { display: block; }

/* prelight */
.pl-inner { min-height: 100%; padding: 22px; background: linear-gradient(rgba(196,48,48,.16), rgba(10,10,10,0) 40%); }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pl-title { font-size: 17px; font-weight: 800; color: var(--red); letter-spacing: .06em; }
.pl-sub { font-size: 12px; color: var(--accent-dim); margin-bottom: 16px; }
.pl-skip { color: var(--muted); font-size: 12.5px; }
.pl-skip:hover { color: var(--text); }
.pl-bar { height: 5px; border-radius: 3px; background: var(--surface2); margin-bottom: 18px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0%; background: var(--green); transition: width .3s; }
.pl-list { display: grid; gap: 9px; max-width: 540px; }
.pl-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px 15px; font-size: 14px; font-weight: 600;
  transition: border-color .2s, opacity .2s;
}
.pl-item .box {
  width: 21px; height: 21px; border-radius: 6px; border: 2px solid var(--muted);
  flex: none; display: grid; place-items: center; font-size: 13px; color: #06130c;
}
.pl-item.done { border-color: var(--green); opacity: .65; }
.pl-item.done .box { background: var(--green); border-color: var(--green); }
.pl-item.done .pl-name { text-decoration: line-through; }
.pl-done-msg { margin-top: 18px; font-size: 15px; font-weight: 800; color: var(--green); display: none; }
.pl-done-msg.show { display: block; }

/* workflow view */
.wf-inner { min-height: 100%; padding: 22px; display: flex; flex-direction: column; }
.wf-head { display: flex; justify-content: space-between; align-items: baseline; }
.wf-title { font-size: 15px; font-weight: 800; color: var(--green); letter-spacing: .08em; }
.wf-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wf-stage { flex: 1; display: grid; grid-template-columns: 200px 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.wf-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; position: relative; border: 1px solid var(--border); }
.wf-info h3 { font-size: 19px; margin-bottom: 8px; }
.wf-next { background: var(--green); color: #06130c; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 13px 24px; margin-top: 18px; }
.wf-exit { color: var(--muted); font-size: 12.5px; margin-left: 12px; }
.wf-exit:hover { color: var(--text); }

/* toast */
.af-toast {
  /* FIXED to the viewport — the old absolute-in-appframe toast fired off-screen */
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  z-index: 260; background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 12.5px; font-weight: 600;
  border-radius: 10px; padding: 10px 16px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; max-width: 84%; text-align: center;
}
.af-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.demo-foot { max-width: 620px; margin: 26px auto 0; padding: 0 24px; text-align: center; color: var(--accent-dim); font-size: 13.5px; }
.demo-foot strong { color: var(--text); }

/* ── REAL chip on Marvin's go-to card ── */
.card.is-real::after {
  content: "● REAL — MARVIN'S GO-TO"; position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #0a0a0a;
  background: var(--warm); border-radius: 6px; padding: 3px 7px;
}

/* ── photo mark — placeholder until the real frames drop in ── */
.scene.photo-mark {
  background:
    radial-gradient(circle at 50% 42%, rgba(245,197,66,.08), transparent 60%),
    #0d0d0f;
  border: 1.5px dashed rgba(245,197,66,.4); border-radius: inherit;
  display: grid; place-items: center;
}
.photo-mark .pm-cross { position: absolute; width: 34px; height: 34px; }
.photo-mark .pm-cross::before, .photo-mark .pm-cross::after {
  content: ""; position: absolute; background: rgba(245,197,66,.55);
}
.photo-mark .pm-cross::before { left: 50%; top: 0; bottom: 0; width: 1.5px; }
.photo-mark .pm-cross::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.photo-mark .pm-label {
  position: absolute; bottom: 14%; left: 10%; right: 10%; text-align: center;
  font-size: 9.5px; font-weight: 800; letter-spacing: .16em; color: rgba(245,197,66,.75);
  line-height: 1.9;
}
.photo-mark .pm-label i { display: block; font-style: normal; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-transform: lowercase; }

/* ── the pocket — same card in an iPhone frame ── */
.pocket { display: grid; justify-items: center; gap: 16px; margin: 9vh auto 0; padding: 0 24px; }
.home-pill {
  width: max-content; margin: 0 auto 20px;
  font-size: 10px; font-weight: 800; letter-spacing: .2em; color: var(--accent-dim);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 16px;
}
.goto-tag { font-size: 10px; font-weight: 800; letter-spacing: .22em; color: var(--muted); }
/* "GO-TO" reads green in the tag line ONLY — the card name in the interface stays white */
.goto-hl { color: var(--green); }
.section-sub .goto-hl { font-weight: 600; }
.goto-tag.center { text-align: center; }
.goto-tagline { margin-top: -8px; font-size: 13.5px; font-style: italic; color: var(--accent-dim); text-align: center; }
.phone-wrap { display: flex; align-items: center; gap: 16px; }
.goto-quote-vert {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 13px; font-style: italic; color: var(--accent-dim);
  letter-spacing: .04em; white-space: nowrap; align-self: center;
}
/* TRY IT cue above the glowing interface */
.touch-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 9vh auto 22px; padding: 0 24px; }
.touch-cue-text {
  font-size: 12.5px; color: var(--accent-dim); font-style: italic;
  text-align: center; max-width: 520px; line-height: 1.7; text-wrap: balance;
}
.touch-cue .goto-tag { margin-top: 10px; }
/* STEP INSIDE cue rides tight under the section sub — no dead gap before TRY IT */
.touch-cue.cue-tight { margin-top: 18px; }
.phone {
  position: relative; width: min(340px, calc(100vw - 48px)); aspect-ratio: 9 / 18.6;
  border-radius: 46px; background: #050505;
  border: 2.5px solid #2c2c30;
  box-shadow: 0 0 0 4px #0e0e10, 0 36px 90px rgba(0,0,0,.65);
  padding: 14px 12px; overflow: hidden;
}
.phone-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 14px; background: #000;
  border: 1px solid #1c1c1f; z-index: 5;
}
.phone-screen {
  height: 100%; border-radius: 34px; background: var(--bg);
  overflow-y: auto; padding: 40px 10px 18px;
}
/* phone chrome — the live app's mobile topbar, one-for-one */
.ph-topbar {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: 10px;
}
.ph-ico {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: rgba(255,255,255,.04); color: var(--accent-dim);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
  filter: grayscale(1) brightness(1.4);
}
.ph-bulb { filter: none; }
.ph-brand {
  margin: 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px; padding: 5px 9px; white-space: nowrap;
}
.ph-brand::before {
  content: ""; display: inline-block; width: 11px; height: 11px; flex: none;
  background: var(--red);
  clip-path: polygon(58% 0%, 0% 58%, 42% 58%, 36% 100%, 100% 36%, 58% 36%);
}
.ph-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ph-pill {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .14em;
  padding: 6px 11px; white-space: nowrap; color: var(--text);
}
.ph-pill i { font-style: normal; color: var(--red); }
/* the setup card sits a notch smaller than the screen — cleaner, like a real list cell */
.ph-card { cursor: default; max-width: 86%; margin: 0 auto; }
.ph-card .card-name { font-size: 14.5px; }
.ph-card .card-meta { padding: 12px 12px 11px; }

/* ── iPhone add-to-Home-Screen animation stage ── */
/* transform-origin lives on the BASE class — if it only exists on .s-zoom, removing
   the class snaps the anchor back to center mid-zoom (the "nasty jump") before the
   zoom-out even starts. Same origin in and out = one smooth glide both ways. */
.pha { position: relative; height: 100%; overflow: hidden; transition: transform 1.8s cubic-bezier(.4,0,.2,1); transform-origin: 90% 94%; }
/* watch-only demo — the stage's contents are inert, and the phone itself
   swallows the gesture: a finger on the phone moves NOTHING (no inner pan,
   no page scroll dragging the phone under the finger). Scroll beside it. */
.pha, .pha * { pointer-events: none; user-select: none; -webkit-user-select: none; }
.phone, .phone-screen { touch-action: none; overscroll-behavior: none; }
/* intro zoom: dives into the glowing dots corner, then eases back out */
.pha.s-zoom { transform: scale(1.9); }
.pha-view { position: absolute; inset: 0; transition: opacity .4s ease; }
.pha-app { display: flex; flex-direction: column; opacity: 0; }
.s-app .pha-app, .s-menu .pha-app, .s-sheet .pha-app, .s-more .pha-app { opacity: 1; }
.s-home .pha-app { opacity: 0; }
/* the app OPENED from the home screen — full screen, no Safari bar.
   Solid bg + .pha.s-open specificity so the home view can't bleed through. */
.pha-openapp { display: flex; flex-direction: column; opacity: 0; pointer-events: none; z-index: 4; transition: opacity .45s ease; background: #0b0b0d; }
.pha.s-open .pha-openapp { opacity: 1; }
.pha.s-open .pha-home { opacity: 0; }
.pha-clean {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96); z-index: 6;
  background: rgba(12,12,14,.9); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 11px 19px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: #fff;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.s-clean .pha-clean { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pha-code { font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; color: #3c3c40; }
/* 2-up grid like reference photo 1: cards at their REAL app proportions —
   row 1 fully in frame, row 2 cut ~half by the Safari bar (scroll implied) */
/* max-content rows: cards size to their real content and NEVER get crushed to
   fit the fixed phone height — row 2 just gets cut deeper (scroll implied) */
.pha-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; gap: 9px; flex: 1; overflow: hidden; align-content: start; min-height: 0; padding-bottom: 40px; }
.pha-card { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
/* rubber-stamp EXAMPLE band — WHITE ink, centered on the card's photo */
.pha-stamp {
  position: absolute; left: 4%; right: 4%; top: 50%; transform: translateY(-50%); z-index: 4;
  text-align: center; font-weight: 900; font-size: 15px; letter-spacing: .32em;
  color: rgba(255,255,255,.95); text-indent: .32em;
  border: 3px double rgba(255,255,255,.85); border-radius: 7px; padding: 7px 0;
  background: rgba(10,10,10,.35); pointer-events: none;
  text-shadow: 0 0 1px rgba(255,255,255,.5);
}
.pha-photo { flex: none; aspect-ratio: 4 / 5; min-height: 0; background: var(--surface2); position: relative; }
.pha-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pha-swipe { position: absolute; right: 7px; bottom: 7px; font-size: 6.5px; font-weight: 800; letter-spacing: .14em; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 7px; }
/* Add to Home Screen — green pulse right before the scripted press */
@keyframes athFlash {
  0%, 100% { background: transparent; box-shadow: none; }
  50% { background: rgba(74,222,128,.30); box-shadow: inset 0 0 0 1px rgba(74,222,128,.85); }
}
.pha-row.flash-green { animation: athFlash .55s ease-in-out 2; border-radius: 7px; }
.pha-pdots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 9px; display: flex; gap: 3px; }
.pha-pdots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.pha-pdots i.on { background: #fff; }
.pha-arr { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: rgba(255,255,255,.7); }
/* names wrap — second word drops to a lower line, nothing cut off */
/* rebalanced hierarchy — every row readable, clean air between pieces */
.pha-name { flex: none; font-size: 13.5px; font-weight: 700; text-align: center; padding: 9px 6px 3px; line-height: 1.25; }
.pha-set, .pha-key, .pha-wf, .pha-foot { flex: none; }
.pha-name i { font-style: normal; font-size: 8px; color: var(--muted); }
/* de-squeezed per Marvin's cramped-windows-ref: tall line-height + real vertical
   padding so settings/KEY digits never clip at the strip bottoms on phone width */
.pha-set { font-family: var(--mono); font-size: 10px; line-height: 1.45; text-align: center; padding: 3px 8px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pha-key {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .02em; line-height: 1.45; color: var(--accent-dim);
  text-align: center; padding: 8px 9px 9px; border-top: 1px solid rgba(255,255,255,.05);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pha-wf { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.45; color: var(--accent-dim); border-top: 1px solid rgba(255,255,255,.05); padding: 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pha-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 8px; line-height: 1.45; color: var(--muted); border-top: 1px solid rgba(255,255,255,.05); padding: 7px 10px 9px; }
.pha-foot span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pha-foot .pha-star { font-size: 10px; }
/* Safari bottom bar — address pill + the dots circle at its right (photo 1) */
.pha-bar {
  position: absolute; left: -13px; right: -13px; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 12px; background: rgba(10,10,12,.94);
  border-top: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pha-url {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255,255,255,.09); border-radius: 12px; padding: 9px 12px;
  font-size: 10.5px; color: var(--text); white-space: nowrap; overflow: hidden;
}
.pha-url span { color: var(--muted); font-size: 10px; }
.pha-dots {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 14px; letter-spacing: .05em; color: var(--text); line-height: 0;
  background: rgba(255,255,255,.09); border: 1px solid transparent; border-radius: 50%;
}
/* the dots glow the whole time the app face is up — eyes land there before the tap */
.pha.s-app:not(.s-menu):not(.s-sheet):not(.s-more) .pha-dots {
  border-color: rgba(255,196,51,.95);
  animation: rdGlow 1.7s ease-in-out infinite;
}
/* ⋯ context menu — reference photo 2: icons left, footer Bookmarks/All Tabs */
.pha-menu {
  position: absolute; right: 0; bottom: 54px; z-index: 4; min-width: 168px;
  background: rgba(34,34,37,.97); border-radius: 13px; padding: 2px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.s-menu .pha-menu { opacity: 1; transform: translateY(0) scale(1); }
.pha-mrow { display: flex; align-items: center; gap: 9px; padding: 9px 13px; font-size: 11.5px; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .2s; }
.pha-mrow .mi { width: 14px; text-align: center; color: var(--accent-dim); font-size: 11px; display: inline-flex; justify-content: center; }
.pha-mrow.hl { background: rgba(255,255,255,.12); }
.pha-msep { height: 5px; background: rgba(0,0,0,.35); }
.pha-mfoot { display: flex; justify-content: space-around; padding: 9px 12px; font-size: 9px; color: var(--accent-dim); }
/* share sheet — reference photos 3 (collapsed) and 4 (More list) */
.pha-sheet {
  position: absolute; left: -8px; right: -8px; bottom: -8px; z-index: 5;
  background: rgba(28,28,30,.98); border-radius: 16px 16px 0 0; padding: 12px 12px 14px;
  transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.9,.25,1);
  box-shadow: 0 -16px 40px rgba(0,0,0,.6);
  max-height: 88%; overflow: hidden;
}
.s-sheet .pha-sheet, .s-more .pha-sheet { transform: translateY(0); }
.pha-sheet-head { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.pha-sheet-head img { width: 34px; height: 34px; border-radius: 8px; }
.pha-sheet-head b { display: block; font-size: 10.5px; line-height: 1.25; padding-right: 20px; }
.pha-sheet-head .pha-dom { display: block; font-size: 8.5px; color: var(--muted); }
.pha-opt { display: inline-block; margin-top: 4px; font-size: 8px; color: var(--accent-dim); background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 8px; }
.pha-x { position: absolute; top: 0; right: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--muted); font-size: 12px; line-height: 1; display: grid; place-items: center; }
.pha-people, .pha-apps { display: flex; gap: 14px; padding: 10px 4px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pp { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; }
.pp b { font-weight: 500; font-size: 7px; color: var(--accent-dim); white-space: nowrap; overflow: hidden; max-width: 50px; text-overflow: ellipsis; }
.ppa, .ppb { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.ppa-mac { background: linear-gradient(145deg, #3a4150, #23262e); position: relative; }
.ppa-mac::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #2f7cf6; border: 2px solid #1c1c1e; }
.ppa-1 { background: linear-gradient(145deg, #7a4dd8, #4a2a8a); }
.ppa-2 { background: linear-gradient(145deg, #2f8a5e, #1a4d34); }
.ppa-3 { background: linear-gradient(145deg, #4d6fd8, #2a3e8a); }
.ppa-1::after, .ppa-2::after, .ppa-3::after { content: ""; position: absolute; }
.ppb-air { background: radial-gradient(circle at 50% 55%, #2f7cf6 18%, #1d4e9e 60%, #16365f); font-size: 11px; }
.ppb-msg { background: linear-gradient(180deg, #5dd663, #2da838); }
.ppb-mail { background: linear-gradient(180deg, #5fa8f5, #2470d8); font-size: 11px; }
.ppb-jrn { background: linear-gradient(145deg, #d85fb0, #5f4dd8); }
.pha-acts { display: flex; gap: 9px; padding: 10px 2px 4px; }
.pa { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pa span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.09); display: grid; place-items: center; font-size: 12px; color: var(--text); transition: background .2s; }
.pa b { font-weight: 500; font-size: 6.5px; color: var(--accent-dim); text-align: center; line-height: 1.2; }
.pa.hl span { background: rgba(255,255,255,.25); }
.pa .vm-less { display: none; }
.s-more .pa .vm-more { display: none; }
.s-more .pa .vm-less { display: block; }
/* the More list (photo 4) appears when the sheet expands */
.pha-list { display: none; margin-top: 8px; background: rgba(44,44,47,.9); border-radius: 11px; padding: 0 2px; }
.s-more .pha-list { display: block; }
.pha-row { display: flex; align-items: center; gap: 9px; padding: 8.5px 11px; font-size: 10.5px; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .2s; }
.pha-row:last-child { border-bottom: 0; }
.pha-row .mi { width: 14px; text-align: center; color: var(--accent-dim); font-size: 10px; display: inline-flex; justify-content: center; }
.pha-row.hl { background: rgba(255,255,255,.14); border-radius: 8px; }
.pha-home {
  opacity: 0; pointer-events: none; z-index: 1;
  /* minmax(0,1fr): min-content of the icon items must never widen the columns */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px;
  align-content: start; padding: 16px 6px;
  background: radial-gradient(circle at 30% 12%, #232336, #0b0b10 70%);
  border-radius: 0 0 30px 30px;
}
.s-home .pha-home { opacity: 1; }
.pha-ico { aspect-ratio: 1; border-radius: 24%; }
.pha-ico-0 { background: linear-gradient(145deg, #3a3a42, #1c1c22); }
.pha-ico-1 { background: linear-gradient(145deg, #2e3a4e, #141a24); }
.pha-ico-2 { background: linear-gradient(145deg, #46343c, #1d1418); }
.pha-ico-3 { background: linear-gradient(145deg, #33422f, #131a12); }
.pha-lv { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: scale(0); }
.s-home.lv-in .pha-lv { transform: scale(1); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.pha-lv img { width: 100%; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.pha-lv span { font-size: 8px; color: var(--accent-dim); letter-spacing: .02em; }
/* frosted-glass dock bar — one-for-one feel with the real home screen */
.pha-dock {
  position: absolute; left: 5%; right: 5%; bottom: 10px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px;
  padding: 10px; border-radius: 26px;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.09);
}
.pha-dico { aspect-ratio: 1; border-radius: 24%; position: relative; overflow: hidden; }
/* Safari — blue dial + compass needle */
.pha-dico-0 { background: radial-gradient(circle at 50% 45%, #6db9f7 25%, #2a6fd1 70%, #1c4f9e); }
.pha-dico-0::before { content: ""; position: absolute; inset: 16%; border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%; }
.pha-dico-0::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #fff 50%, #e23b3b 50%); }
/* Messages — green + white bubble */
.pha-dico-1 { background: linear-gradient(180deg, #69dd6f, #2da838); }
.pha-dico-1::after { content: ""; position: absolute; left: 18%; right: 18%; top: 24%; bottom: 30%; background: #fff; border-radius: 46% 46% 46% 12%; }
/* Maps — map panes + road + pin */
.pha-dico-2 { background: linear-gradient(115deg, #e8ecf1 0 38%, #cfe8cd 38% 62%, #f5e9c8 62% 100%); }
.pha-dico-2::before { content: ""; position: absolute; left: 10%; right: 28%; top: 48%; height: 13%; background: #5fa8f5; transform: rotate(-18deg); border-radius: 3px; }
.pha-dico-2::after { content: ""; position: absolute; right: 20%; top: 16%; width: 24%; height: 24%; background: #e23b3b; border-radius: 50% 50% 50% 0; transform: rotate(45deg); }
/* Calculator — dark body, button dots, orange ops column */
.pha-dico-3 { background: linear-gradient(180deg, #2b2b2e, #141416); }
.pha-dico-3::after {
  content: ""; position: absolute; left: 22%; top: 28%; width: 13%; height: 13%; border-radius: 50%; background: #9a9aa0;
  box-shadow: 8px 0 0 #9a9aa0, 16px 0 0 #f59222, 0 8px 0 #9a9aa0, 8px 8px 0 #9a9aa0, 16px 8px 0 #f59222, 0 16px 0 #9a9aa0, 8px 16px 0 #9a9aa0, 16px 16px 0 #f59222;
}
/* page dots above the dock, like the real screen */
.pha-pgdots { position: absolute; left: 0; right: 0; bottom: 74px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.pha-pgdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pha-pgdots i.on { background: rgba(255,255,255,.95); }
.pha-tap {
  /* GREEN tap ripple — same circle/pulse, you can SEE what got clicked */
  position: absolute; width: 30px; height: 30px; border-radius: 50%; z-index: 6;
  background: rgba(76,175,125,.6); box-shadow: 0 0 14px rgba(76,175,125,.55);
  transform: scale(0); pointer-events: none;
}
.pha-tap.pop { animation: phaTap .55s ease; }
@keyframes phaTap { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.ph-card .card-settings { font-size: 10.5px; }
.ph-card .card-key-light { margin: 12px -14px 0; font-size: 9.5px; padding: 8px 12px; }
.ph-card .card-wfbtn { font-size: 10.5px; padding: 10px; }
.ph-card .card-tabbtn { font-size: 10.5px; padding: 8px; }

/* ── demo foot: sits lower, stands out, Import/Create shine ── */
.demo-foot-big {
  margin-top: 11vh !important;
  font-size: 16.5px; line-height: 1.75; color: var(--accent);
}
.df-shine {
  color: var(--warm); font-weight: 800;
  text-shadow: 0 0 14px rgba(245,197,66,.35);
}

/* ── the color code (why shutter/f-stop/ISO wear colors) ── */
.colorcode { max-width: 620px; margin: 11vh auto 0; padding: 0 24px; }
.colorcode h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; margin: 10px 0 26px; }
.cc-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cc-chip {
  flex: none; min-width: 76px; text-align: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.cc-row p { font-size: 14px; line-height: 1.65; color: var(--accent-dim); }
.cc-row p b { color: var(--text); }

/* ════════ FEATURE WALL ════════ */
.features { padding: 4vh 0 10vh; }
.wall-wrap { position: relative; margin-top: 44px; }
.wall {
  display: flex; gap: 16px; padding: 10px 6vw 26px;
  overflow-x: auto; cursor: grab; user-select: none;
  -webkit-overflow-scrolling: touch;
}
.wall.dragging { cursor: grabbing; }
.wcard {
  flex: none; width: 290px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 22px 20px 20px; position: relative;
  /* tiles fill their frame: demos anchor to the bottom, text-only tiles center */
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.wcard:hover { transform: translateY(-5px); border-color: #333; }
.wcard::before {
  /* group chip rides centered at the top of the tile, not off to the right */
  content: attr(data-group); position: static; align-self: center;
  margin-bottom: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--muted);
}
.wcard h3 { font-size: 16.5px; font-weight: 800; margin: 4px 0 9px; text-align: center; }
.wcard p { font-size: 13px; color: var(--accent-dim); line-height: 1.6; text-align: center; }
.wdemo { margin-top: auto; padding-top: 16px; }
/* text-only tiles: chip stays pinned top, title+text center in the leftover space */
.wcard:not(:has(.wdemo)) h3 { margin-top: auto; }
.wcard:not(:has(.wdemo)) p { margin-bottom: auto; }
/* center the demo rows + footers so the whole tile reads symmetric */
.wdemo-carousel, .wdemo-pills, .wdemo-refs, .wdemo-tabs, .wdemo-clone, .wdemo-wf, .wdemo-ai { justify-content: center; }
.wdemo-prelight { justify-items: center; }
.wdemo-mono, .wdemo-crown, .wcard-try { text-align: center; }
.wdemo-carousel { display: flex; gap: 6px; }
.wdemo-carousel span { height: 52px; flex: 1; border-radius: 8px; background: linear-gradient(150deg, #232327, #121214); border: 1px solid var(--border); }
.wdemo-carousel span:first-child { background: radial-gradient(circle at 30% 25%, rgba(245,197,66,.4), #121214 70%); }
.wdemo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wdemo-pills button {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 5px 10px; transition: all .15s;
}
.wdemo-pills button.picked { color: #0a0a0a; background: var(--warm); border-color: var(--warm); }
.wdemo-mono { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; line-height: 1.8; }
.wdemo-refs { display: flex; gap: 7px; }
.wdemo-refs span { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--accent-dim); border: 1px dashed var(--border); border-radius: 8px; padding: 12px 14px; }
.wdemo-tabs { display: flex; gap: 6px; }
.wdemo-tabs span { font-size: 10.5px; font-weight: 700; color: var(--accent-dim); border: 1px solid var(--border); border-radius: 13px; padding: 5px 11px; }
.wdemo-tabs span.on { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }
.wdemo-crown { font-size: 21px; color: var(--red); letter-spacing: .2em; }
.wdemo-clone { display: flex; gap: 8px; }
.wdemo-clone span { width: 44px; height: 56px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--border); }
.wdemo-clone span:last-child { border-style: dashed; opacity: .6; }
.wdemo-prelight { display: grid; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent-dim); }
.wdemo-prelight span:nth-child(-n+2) { color: var(--green); }
.wdemo-wf { display: flex; align-items: center; gap: 7px; }
.wdemo-wf span { width: 26px; height: 26px; border-radius: 50%; background: rgba(76,175,125,.15); border: 1px solid var(--green); color: var(--green); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.wdemo-wf em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--green); margin-left: 5px; }
.wdemo-ai { display: flex; align-items: center; gap: 5px; }
.wdemo-ai .seg { width: 19px; height: 6px; border-radius: 3px; background: var(--border); }
.wdemo-ai .seg.on { background: var(--green); }
.wdemo-ai em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 6px; }
.wall-cue { text-align: center; font-size: 10.5px; letter-spacing: .26em; color: var(--muted); }
.wcard-tap { cursor: pointer; }
.wcard-try { display: block; margin-top: 14px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--red); }

/* ── gear pop-up dropdown sections (styled like the app's New Setup bars) ── */
.gp-sec { margin-top: 10px; }
.gp-bar {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; text-align: left;
}
.gp-bar i { font-style: normal; font-size: 9px; letter-spacing: .04em; color: #4a4a4a; text-transform: none; margin-right: auto; padding-left: 8px; }
.gp-caret { transition: transform .2s; }
.gp-sec.open .gp-caret { transform: rotate(180deg); }
.gp-body { display: none; }
.gp-sec.open .gp-body { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 2px 2px; }
.gp-note { margin-top: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ── Prelight try-it overlay ── */
.plx {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,5,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.plx.open { display: flex; }
.plx-inner {
  width: min(860px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px 26px;
}
.plx-head { display: flex; justify-content: space-between; align-items: center; }
.plx-title { font-size: 16px; font-weight: 800; color: var(--red); letter-spacing: .06em; }
.plx-close { color: var(--muted); font-size: 24px; padding: 4px 10px; }
.plx-close:hover { color: var(--text); }
.plx-sub { font-size: 13.5px; color: var(--accent-dim); margin: 6px 0 18px; max-width: 560px; }
.plx-sub b { color: var(--text); }
.plx-stage { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.plx-photo {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--border); background: var(--surface2);
}
.plx-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) brightness(.35); transform: scale(1.1);
  transition: filter .9s ease, transform .9s ease;
}
.plx-photo img.clear { filter: none; transform: none; }
.plx-veil {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .22em;
  color: rgba(255,255,255,.85); background: rgba(0,0,0,.25);
  line-height: 2.2; transition: opacity .6s;
}
.plx-veil i { display: block; font-style: normal; font-weight: 500; letter-spacing: .05em; color: var(--accent-dim); text-transform: lowercase; font-size: 11px; }
.plx-veil.lift { opacity: 0; pointer-events: none; }
.plx-list { display: grid; gap: 9px; }
.plx-bar { height: 5px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.plx-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.plx-done { display: none; font-size: 14px; font-weight: 800; color: var(--green); margin-top: 8px; }
.plx-done.show { display: block; }
@media (max-width: 700px) {
  .plx-stage { grid-template-columns: 1fr; }
  .plx-photo { max-width: 250px; margin: 0 auto; }
}

/* ════════ DESIGNER ════════ */
.designer { padding: 14vh 24px; background: linear-gradient(rgba(18,18,18,0), rgba(18,18,18,.55) 18%, rgba(18,18,18,.55) 82%, rgba(18,18,18,0)); }
.designer-inner { max-width: 760px; margin: 0 auto; }
.designer-copy h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.designer-copy p { color: var(--accent-dim); font-size: 15px; line-height: 1.75; margin-bottom: 18px; }
/* THEN/NOW frames removed 2026-06-11 per Marvin */

/* ════════ PRICING ════════ */
.pricing { padding: 14vh 24px 16vh; }
.price-card {
  max-width: 460px; margin: 44px auto 0; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 44px 36px 38px; position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 140px; border-radius: 50%;
  background: radial-gradient(rgba(245,197,66,.18), transparent 70%);
  pointer-events: none;
}
.price-big { font-size: 92px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price-cur { font-size: 38px; vertical-align: 28px; color: var(--warm); }
.price-period { font-size: 18px; letter-spacing: 0; color: var(--muted); margin-left: 6px; vertical-align: 16px; }
.price-line { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 26px; }
.price-list { list-style: none; margin: 0 0 30px; padding: 0; text-align: left; display: grid; gap: 11px; }
.price-list li { font-size: 14px; color: var(--accent-dim); padding-left: 26px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.price-foot { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ════════ WAITLIST MODAL ════════ */
body.waitlist-open { overflow: hidden; }
.waitlist-modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 22px; background: rgba(0,0,0,.72); opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.waitlist-modal.show { opacity: 1; pointer-events: auto; }
.waitlist-panel {
  width: min(440px, 100%); position: relative; text-align: left;
  background: #121212; border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 26px 26px; box-shadow: 0 22px 70px rgba(0,0,0,.62);
}
.waitlist-panel h2 { font-size: 30px; line-height: 1.05; letter-spacing: 0; margin: 10px 0 12px; }
.waitlist-copy { color: var(--accent-dim); font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.waitlist-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.04);
  color: var(--accent); font-size: 24px; line-height: 1; cursor: pointer;
}
.waitlist-form { display: grid; gap: 12px; }
.waitlist-label { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.waitlist-form input[type="email"] {
  width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.06); color: var(--accent); font: inherit;
  padding: 0 15px; outline: none;
}
.waitlist-form input[type="email"]:focus { border-color: rgba(245,197,66,.75); box-shadow: 0 0 0 3px rgba(245,197,66,.12); }
.waitlist-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { min-height: 18px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.waitlist-form .btn[disabled] { opacity: .72; cursor: wait; }

/* ════════ FOOTER ════════ */
.foot { padding: 50px 24px 60px; text-align: center; border-top: 1px solid var(--border); }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .22em; margin-bottom: 12px; }
.foot p { font-size: 12.5px; color: var(--muted); }

/* ── reveal helpers ── */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].shown { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
/* static verification mode (?static=1): everything visible, no motion */
html.static { scroll-behavior: auto; }
.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }
.static [data-reveal], .static .reveal-line, .static .hero-title .ch,
.static .strip-line, .static .strip-answer { opacity: 1 !important; transform: none !important; }
/* hero lines rise in via CSS so they can never be stuck invisible */
.reveal-line { opacity: 0; animation: riseIn .8s ease forwards; }
.hero-kicker.reveal-line { animation-delay: .25s; }
.hero-sub.reveal-line { animation-delay: .75s; }
.hero-ctas.reveal-line { animation-delay: .95s; }
.hero-down.reveal-line { animation-delay: 1.2s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ════════ MOBILE ════════ */
@media (max-width: 860px) {
  .nav { padding: 10px 12px; gap: 6px; }
  .nav-wordmark { font-size: 13px; letter-spacing: .2em; padding: 6px 11px; }
  .nav-wordmark::before { width: 13px; height: 13px; }
  .nav-search { width: 38px; min-width: 38px; padding: 0; font-size: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
    background-repeat: no-repeat; background-position: center; background-size: 17px;
  }
  .nav .af-add-label { display: none; }
  .nav .af-add-btn { padding: 0; width: 38px; }
  .hero-sheet { grid-template-columns: repeat(3, 1fr); }
  .af-grid { grid-template-columns: repeat(2, 1fr); padding: 14px 12px 18px; }
  .af-topbar { padding: 12px 10px; gap: 6px; }
  .af-brand h1 { font-size: 11px; letter-spacing: .2em; padding: 5px 9px; }
  .af-brand h1::before { width: 11px; height: 11px; }
  .af-search-box {
    width: 38px; padding: 0; min-width: 38px; font-size: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
    background-repeat: no-repeat; background-position: center; background-size: 17px;
  }
  .af-search-box:focus { width: 120px; padding: 0 10px; font-size: 15px; background-image: none; }
  .af-add-label { display: none; }
  .af-add-btn { padding: 0; width: 38px; }
  .af-row2 { padding: 12px 10px 0; }
  .af-buildcode { display: none; }
  .card-name { font-size: 16px; }
  .card-key-light { font-size: 9.5px; }
  .dt-body { grid-template-columns: 1fr; }
  .wf-stage { grid-template-columns: 1fr; }
  .wf-photo { max-width: 220px; }
  .appframe { border-radius: 14px; margin: 0 10px; min-height: 0; }
  .wall { padding: 10px 18px 22px; }
  .wcard { width: 252px; }
}
/* OS-level invert (Smart Invert etc.): counter-flip images so logos/photos stay true */
@media (inverted-colors: inverted) {
  img { filter: invert(1); }
}

@media (max-width: 480px) {
  .af-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-meta { padding: 9px 10px 10px; }
  .card-name { font-size: 12px; }
  .hero-ctas .btn { width: 100%; }
  .price-big { font-size: 74px; }
  .price-period { display: block; margin: 4px 0 0; vertical-align: baseline; }
  .waitlist-panel { padding: 28px 20px 22px; border-radius: 16px; }
  .waitlist-panel h2 { font-size: 26px; }
  /* phone-width nav: compress every piece so nothing touches the centered wordmark */
  .nav { gap: 8px; padding: 10px 8px; }
  .nav .af-icon-btn { width: 32px; height: 32px; border-radius: 9px; }
  .nav-seven { font-size: 10.5px; padding: 5px 7px; border-radius: 6px; }
  .nav-left .nav-seven { margin-left: 2px; }
  .nav-wordmark { font-size: 11px; letter-spacing: .14em; padding: 5px 9px; gap: 6px; }
  .nav-wordmark::before { width: 11px; height: 11px; }
  .nav-search { width: 32px; min-width: 32px; background-size: 15px; }
}
