/* ==========================================================================
   Tasando landing
   Tokens mirror tasa-prop-web/public/css/tokens.css (charcoal + market emerald).
   Shape rule: buttons/inputs 12px, cards 20px, outer bezels 26px, badges pill.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --canvas: #202428;
  --chrome: #181b1f;
  --surface: #262b30;
  --elevated: #2c3238;
  --elevated-hover: #343c44;
  --line: #2e353c;
  --line-strong: #404a54;
  --fg-strong: #f4f5f6;
  --fg: #e2e8f0;
  --fg-soft: #cbd5e1;
  --fg-muted: #94a3b8;

  --accent: #14b8a6;
  --accent-strong: #0d9488;
  --accent-text: #5eead4;
  --accent-icon: #2dd4bf;
  --on-accent: #042f2e;
  --accent-wash: rgb(20 184 166 / 0.12);
  --accent-wash-strong: rgb(20 184 166 / 0.2);
  --accent-line: rgb(20 184 166 / 0.35);
  --accent-deep: #042f2e;

  --negative-icon: #fb7185;
  --shadow-tint: rgb(0 0 0 / 0.35);
  --highlight: rgb(255 255 255 / 0.06);
  --nav-bg: rgb(24 27 31 / 0.72);
  color-scheme: dark;
}

[data-theme="light"] {
  --canvas: #f8fafc;
  --chrome: #ffffff;
  --surface: #ffffff;
  --elevated: #ffffff;
  --elevated-hover: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --fg-strong: #111418;
  --fg: #2a3036;
  --fg-soft: #3c444c;
  --fg-muted: #5b6570;

  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-text: #115e59;
  --accent-icon: #0d9488;
  --on-accent: #f0fdfa;
  --accent-wash: rgb(20 184 166 / 0.1);
  --accent-wash-strong: rgb(20 184 166 / 0.16);
  --accent-line: rgb(13 148 136 / 0.35);
  --accent-deep: #f0fdfa;

  --negative-icon: #e11d48;
  --shadow-tint: rgb(32 36 40 / 0.1);
  --highlight: rgb(255 255 255 / 0.9);
  --nav-bg: rgb(255 255 255 / 0.78);
  color-scheme: light;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-btn: 12px;
  --r-card: 20px;
  --r-bezel: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--fg-strong); margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--r-btn);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(5rem, 10vw, 8rem) 0; }

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 800;
  max-width: 22ch;
  text-wrap: balance;
}

.section-lead { margin-top: 1rem; font-size: 1.0625rem; color: var(--fg-muted); max-width: 52ch; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }

.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-btn);
  background: var(--chrome);
  border: 1px solid var(--line-strong);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark path { fill: none; stroke: var(--accent); stroke-width: 16; stroke-linejoin: miter; }
.brand-mark line { stroke: var(--accent); stroke-width: 11; stroke-linecap: round; }

.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--fg-strong); }
.brand-name span { color: var(--accent); font-weight: 600; }
[data-theme="light"] .brand-name span { color: var(--accent-strong); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  white-space: nowrap;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn i { font-size: 1.15em; }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.8rem 0.8rem 0.8rem 1.35rem; font-size: 1rem; }
.btn-lg.btn-ghost { padding: 0.8rem 1.35rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgb(16 185 129 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-primary:hover { background: #22c793; box-shadow: 0 14px 36px -12px rgb(16 185 129 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3); }

.btn-icon {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgb(11 31 23 / 0.14);
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-ghost {
  background: var(--surface);
  color: var(--fg-strong);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--elevated-hover); border-color: var(--accent-line); }
.btn-ghost i { color: var(--accent-icon); }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-soft);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn:hover { background: var(--elevated-hover); color: var(--accent-icon); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--accent-text);
}
.text-link i { transition: transform 0.35s var(--ease); }
.text-link:hover i { transform: translateX(4px); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-wash-strong);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Nav ---------- */

.nav-sentinel { position: absolute; top: 0; left: 0; height: 24px; width: 1px; }

.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 1rem var(--gutter) 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: calc(var(--container) - 2 * var(--gutter) + 2rem);
  height: 64px;
  margin: 0 auto;
  padding: 0 0.75rem 0 0.9rem;
  border-radius: var(--r-card);
  border: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.is-scrolled .nav {
  background: var(--nav-bg);
  border-color: var(--line);
  box-shadow: 0 16px 40px -20px var(--shadow-tint);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  display: block; padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--fg-strong); background: var(--elevated); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100dvh, 900px);
  display: flex; align-items: center;
  padding: 7.5rem 0 4.5rem;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgb(16 185 129 / 0.13), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(75% 70% at 60% 40%, #000 30%, transparent 80%);
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
[data-theme="light"] .hero h1 em { color: var(--accent-strong); }

.hero-sub { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--fg-muted); max-width: 44ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero-visual { position: relative; margin: 0; }
.hero-visual figcaption { margin-top: 2.75rem; font-size: 0.8rem; color: var(--fg-muted); text-align: right; }

/* Double bezel: tray + core */
.bezel {
  padding: 7px;
  border-radius: var(--r-bezel);
  background: linear-gradient(160deg, var(--accent-line), var(--line) 45%);
  box-shadow: 0 40px 80px -40px var(--shadow-tint), 0 0 0 1px var(--line);
}

.result-card {
  border-radius: calc(var(--r-bezel) - 7px);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background:
    radial-gradient(120% 80% at 0% 0%, var(--accent-deep), transparent 60%),
    var(--surface);
  box-shadow: inset 0 1px 0 var(--highlight);
}

.hero-grid > *, .video > *, .access-grid > *, .faq-grid > *, .roi-panel > * { min-width: 0; }

.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; }

.result-pdf {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}

.result-address { margin-top: 1.25rem; display: grid; gap: 0.2rem; }
.result-address strong { color: var(--fg-strong); font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.25; }
.result-address span { color: var(--fg-muted); font-size: 0.875rem; }

.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }

.metric {
  display: grid; gap: 0.3rem; align-content: start;
  padding: 1rem;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
}
.metric-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.metric-value {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-value.is-accent { color: var(--accent); }
[data-theme="light"] .metric-value.is-accent { color: var(--accent-text); }
.metric-foot { font-size: 0.78rem; color: var(--fg-muted); }

.result-range {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
}
.range-head { display: flex; justify-content: space-between; align-items: center; }
.range-tol { font-size: 0.75rem; font-weight: 700; color: var(--accent-text); }
.range-bar { position: relative; height: 8px; margin: 0.9rem 0 0.6rem; }
.range-fill {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(16 185 129 / 0.25), var(--accent), rgb(16 185 129 / 0.25));
  transform-origin: center;
}
.range-marker {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fg-strong);
  border: 4px solid var(--accent);
  transform: translate(-50%, -50%);
}
.range-values { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; color: var(--fg-soft); font-variant-numeric: tabular-nums; }

.float-chip {
  position: absolute; left: -1.75rem; bottom: 2.2rem;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.75rem;
  border-radius: 14px;
  background: var(--chrome);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px -20px var(--shadow-tint);
}
.float-chip > i {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-wash-strong);
  color: var(--accent-icon);
  font-size: 1.25rem;
}
.float-chip span { display: grid; line-height: 1.3; }
.float-chip strong { font-size: 0.85rem; color: var(--fg-strong); }
.float-chip small { font-size: 0.75rem; color: var(--fg-muted); }

/* ---------- Before / After ---------- */

.compare .section-title { max-width: 24ch; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.compare-col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-card); }
.compare-col h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.5rem; }
.compare-col li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem 0; font-size: 1rem; }
.compare-col li i { flex: none; margin-top: 0.2rem; font-size: 1.1rem; }

.compare-before { border: 1px dashed var(--line-strong); color: var(--fg-muted); }
.compare-before h3 { color: var(--fg-soft); }
.compare-before li i { color: var(--negative-icon); }

.compare-after {
  background: linear-gradient(160deg, var(--accent-deep), var(--surface) 70%);
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 1px 0 var(--highlight), 0 30px 60px -40px rgb(16 185 129 / 0.45);
}
.compare-after li { color: var(--fg-strong); }
.compare-after li i { color: var(--accent-icon); }

/* ---------- Steps / demo video ---------- */

.steps { background: var(--chrome); border-block: 1px solid var(--line); }
[data-theme="light"] .steps { background: var(--surface); }

.steps-intro { max-width: 640px; margin-bottom: 2.75rem; }

.step-visual {
  display: grid; gap: 0.6rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--highlight);
  font-size: 0.8rem;
}

/* ----- Video frame: captions left, animated app shot right, chapter controls below.
   Real DOM text throughout (not canvas-scaled), so it reflows and stays legible at
   any width; only the app shot itself (.demo) uses a fixed-design-width scale. ----- */

.video {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-bezel);
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  box-shadow: 0 40px 80px -40px var(--shadow-tint), inset 0 1px 0 var(--highlight);
  overflow: hidden;
}
[data-theme="light"] .video { background: var(--elevated); }

.video::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(480px 360px at 82% 40%, var(--accent-wash-strong), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, var(--accent-wash), transparent 70%);
  pointer-events: none;
}

/* ----- Hero variant: no caption panel (the hero already carries its own h1/sub),
   so the app shot is the only content — single column, sits inside .bezel like the
   old result-card did, and the chapter buttons shrink to bare numbered pills. ----- */

.video-hero {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: calc(var(--r-bezel) - 7px);
  border: 0;
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-deep), transparent 60%), var(--surface);
  box-shadow: inset 0 1px 0 var(--highlight);
  overflow: visible;
}
[data-theme="light"] .video.video-hero { background: radial-gradient(120% 80% at 0% 0%, var(--accent-deep), transparent 60%), var(--surface); }
.video-hero::before { content: none; }

.video-hero .video-screen { max-width: 100%; }

.video-hero .video-controls {
  grid-column: auto;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 0;
  border-top: 0;
}
.video-hero .video-chapter { flex: 0 0 auto; }
.video-hero .video-bar { width: 28px; }

.video-copy {
  position: relative; z-index: 1;
  display: grid; gap: 0.85rem;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.video-copy.is-swapping { opacity: 0; transform: translateY(8px); }

.video-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  justify-self: start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-wash); border: 1px solid var(--accent-line);
}
.video-kicker i { font-size: 0.9rem; color: var(--accent-icon); }
.video-title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.video-text { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.55; max-width: 32ch; }

/* grid-template-columns: minmax(0, 1fr), not the default auto track, so the column
   stretches to the available width instead of shrinking to the shots' min-content. */
.video-screen { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 560px; }
.video-screen .demo {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.video-screen .demo.is-active { opacity: 1; pointer-events: auto; }

.video-controls {
  grid-column: 1 / -1;
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.video-play {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  color: var(--fg-strong);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video-play:hover { background: var(--elevated-hover); border-color: var(--accent-line); }

.video-chapter {
  flex: 1 1 150px; min-width: 0;
  display: grid; gap: 0.5rem;
  padding: 0; border: 0; background: none;
  font: inherit; text-align: left;
  cursor: pointer;
}
.video-chapter span:first-child {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 700; color: var(--fg-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s var(--ease);
}
.video-chapter span:first-child b { color: var(--fg-muted); font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease); }
.video-chapter.is-active span:first-child, .video-chapter:hover span:first-child { color: var(--fg-strong); }
.video-chapter.is-active span:first-child b { color: var(--accent-text); }
.video-bar { display: block; height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.video-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); font-style: normal; }

/* ----- App shot: fixed-design-width artboard scaled to whatever width it's given,
   so the mini interface always lays out identically, just smaller or larger. ----- */

.step-visual.demo {
  position: relative;
  padding: 0;
  gap: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  aspect-ratio: 440 / var(--h);
  background: var(--canvas);
  user-select: none;
}

.demo-stage {
  position: absolute; left: 0; top: 0;
  width: 440px; height: calc(var(--h) * 1px);
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
}

.demo[data-demo="load"] { --h: 264; }
.demo[data-demo="review"] { --h: 306; }
.demo[data-demo="report"] { --h: 254; }

.demo-stage :is(h4, h5, p) { margin: 0; line-height: 1.25; }

.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 9px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.demo-brand { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 10.5px; color: var(--fg-strong); letter-spacing: -0.01em; }
.demo-brand b { color: var(--accent-text); font-weight: 700; }
.demo-mark svg { width: 70%; height: 70%; }
.demo-mark {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px;
  background: var(--accent-deep); border: 1px solid var(--accent-line); color: var(--accent-icon); font-size: 9px; font-weight: 800;
}
.demo-stepper { display: flex; align-items: center; gap: 4px; }
.demo-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 6px;
  border: 1.5px solid var(--line-strong); color: var(--fg-muted);
  font-size: 8.5px; font-weight: 700; opacity: 0.6;
}
.demo-pill i { display: grid; place-items: center; width: 11px; height: 11px; border-radius: 50%; background: var(--elevated); font-style: normal; font-size: 7px; }
.demo-pill.is-on { border-color: var(--accent); color: var(--fg-strong); opacity: 1; }
.demo-pill.is-on i { background: var(--accent); color: var(--on-accent); }
.demo-track { width: 22px; height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.demo-track span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.5s var(--ease); }
.demo-track.is-full span { width: 100%; }

.demo-body { display: grid; gap: 7px; padding: 9px; }

.demo-card {
  display: grid; gap: 6px;
  padding: 8px;
  border-radius: 9px;
  background: var(--elevated);
  border: 1px solid var(--line-strong);
}
.demo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.demo-card-title { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 9.5px; color: var(--fg-strong); }
.demo-card-title .ico {
  display: grid; place-items: center; width: 15px; height: 15px; border-radius: 5px;
  background: var(--accent-wash-strong); border: 1px solid var(--accent-line); color: var(--accent-icon); font-size: 9px;
}

.demo-label { font-size: 7.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); }

.demo-input {
  display: flex; align-items: center;
  min-height: 20px; padding: 0 7px;
  border-radius: 6px;
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  color: var(--fg-strong); font-size: 9px; font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-input.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash-strong); }
.demo-caret { display: none; width: 1px; height: 10px; margin-left: 1px; background: var(--accent-icon); animation: demo-blink 0.9s steps(1) infinite; }
.demo-input.is-focus .demo-caret { display: block; }

.demo-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.demo-seg span {
  display: grid; place-items: center; height: 19px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--canvas);
  color: var(--fg-soft); font-size: 8.5px; font-weight: 600;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.demo-seg span.is-on { background: var(--accent-wash-strong); border-color: var(--accent); color: var(--fg-strong); box-shadow: 0 0 10px var(--accent-wash-strong); }

.demo-sups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.demo-sups .demo-input { justify-content: flex-start; font-variant-numeric: tabular-nums; }
.demo-sub { font-size: 7px; color: var(--fg-muted); margin-bottom: 2px; }

.demo-surfbar { display: flex; height: 4px; border-radius: 3px; overflow: hidden; background: var(--line); }
.demo-surfbar span { width: 0; transition: width 0.6s var(--ease); }
.demo-surfbar .s1 { background: #10b981; }
.demo-surfbar .s2 { background: #0ea5e9; }
.demo-surfbar .s3 { background: #f59e0b; }
.demo-surfcap { display: flex; justify-content: space-between; font-size: 7px; color: var(--fg-muted); }
.demo-surfcap b { color: var(--fg-strong); }

.demo-submit {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 24px; border-radius: 7px;
  background: var(--accent-strong); color: #fff;
  font-size: 9px; font-weight: 800;
  box-shadow: 0 6px 14px rgb(5 150 105 / 0.3);
  transition: transform 0.15s, background 0.2s;
}
.demo-submit.is-press { transform: scale(0.96); background: var(--accent); }
.demo-submit .demo-spin { width: 8px; height: 8px; }
.demo-submit.is-busy .ph-lightning { display: none; }

.demo-split { grid-template-columns: 1.55fr 1fr; align-items: stretch; }
.demo-geo { grid-template-rows: auto auto 1fr auto; align-content: stretch; }
.demo-geo .demo-status { justify-self: start; }
.demo-geo .demo-map { height: auto; min-height: 90px; }
.demo-body-dock { padding-bottom: 54px; }
.demo-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1.5px 6px; border-radius: 999px;
  font-size: 7px; font-weight: 700;
  color: var(--accent-icon); background: var(--accent-wash); border: 1px solid var(--accent-line);
}
.demo-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: demo-pulse 1.2s ease-in-out infinite; }
.demo-status.is-wait { color: #fbbf24; background: rgb(245 158 11 / 0.12); border-color: rgb(245 158 11 / 0.35); }

.demo-map { position: relative; height: 58px; border-radius: 6px; overflow: hidden; background: #ece8e1; }
.demo-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-map .demo-pin {
  position: absolute; inset: auto; left: 52%; top: 50%;
  width: 14px; height: 18px; margin: -18px 0 0 -7px;
  opacity: 0; transform: translateY(-26px);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.35));
}
.demo-pin.is-drop { animation: demo-drop 0.55s cubic-bezier(0.3, 1.5, 0.6, 1) forwards; }
.demo-geo-foot { display: flex; justify-content: space-between; align-items: center; font-size: 7.5px; color: var(--fg-muted); }
.demo-geo-foot b { color: var(--fg-strong); font-weight: 700; }
.demo-geo-foot code { font-family: ui-monospace, monospace; font-size: 7px; color: var(--fg-muted); }

.demo-count {
  padding: 1.5px 6px; border-radius: 999px;
  font-size: 7px; font-weight: 800; letter-spacing: 0.03em;
  color: var(--accent-text); background: var(--accent-wash-strong); border: 1px solid var(--accent-line);
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s;
}
.demo-count.is-bump { transform: scale(1.12); }

.demo-table { display: grid; border-radius: 7px; border: 1px solid var(--line); background: var(--canvas); overflow: hidden; }
.demo-thead, .demo-row { display: grid; grid-template-columns: 12px 1fr auto 46px; align-items: center; gap: 6px; padding: 0 7px; }
.demo-thead { height: 17px; font-size: 6.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--fg-muted); border-bottom: 1px solid var(--line); }
.demo-thead span:last-child, .demo-row .usd { text-align: right; }
.demo-thead .hl { color: var(--accent-text); }
.demo-row {
  height: 25px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s;
}
.demo-row:last-child { border-bottom: 0; }
.demo-row.is-in { opacity: 1; transform: none; }
.demo-row.is-hover { background: var(--elevated-hover); }
.demo-row.is-off { opacity: 0.4; }
.demo-row.is-off .usd { text-decoration: line-through; color: var(--fg-muted); }
.demo-row .t { min-width: 0; }
.demo-row .t strong { display: block; font-size: 8px; font-weight: 700; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row .t small { display: block; font-size: 6.8px; color: var(--fg-muted); }
.demo-row .t small b { color: var(--fg-soft); }
.demo-row .usd { font-size: 8.5px; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }

.demo-check {
  display: grid; place-items: center; width: 11px; height: 11px; border-radius: 3px;
  background: #0b72e7; color: #fff; font-size: 8px; font-weight: 900;
  transition: background 0.15s, box-shadow 0.15s;
}
.demo-check::after { content: "✓"; line-height: 1; }
.is-off .demo-check { background: transparent; box-shadow: inset 0 0 0 1.2px var(--fg-muted); }
.is-off .demo-check::after { content: ""; }

.demo-portal { padding: 1.5px 5px; border-radius: 4px; font-size: 6.8px; font-weight: 700; white-space: nowrap; border: 1px solid; }
.demo-portal.zp { color: #d8b4fe; background: rgb(168 85 247 / 0.2); border-color: rgb(168 85 247 / 0.5); }
.demo-portal.ap { color: #6ee7b7; background: rgb(16 185 129 / 0.12); border-color: rgb(16 185 129 / 0.45); }
.demo-portal.ml { color: #fcd34d; background: rgb(245 158 11 / 0.15); border-color: rgb(245 158 11 / 0.5); }
[data-theme="light"] .demo-portal.zp { color: #7e22ce; }
[data-theme="light"] .demo-portal.ap { color: #047857; }
[data-theme="light"] .demo-portal.ml { color: #92400e; }

.demo-dock {
  position: absolute; left: 9px; right: 9px; bottom: 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 6px 7px;
  border-radius: 9px;
  background: var(--chrome);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px var(--shadow-tint);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.demo-dock.is-in { opacity: 1; transform: none; }
.demo-dock-left { display: grid; gap: 2px; min-width: 0; }
.demo-tag {
  justify-self: start;
  padding: 1px 4px; border-radius: 3px;
  font-size: 6px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--accent-text); background: var(--accent-wash-strong); border: 1px solid var(--accent-line);
}
.demo-dock-left strong { font-size: 7.5px; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-sug {
  display: grid; justify-items: center;
  padding: 3px 9px; border-radius: 7px;
  background: var(--accent-strong); color: #fff;
  box-shadow: 0 4px 12px rgb(16 185 129 / 0.3);
  transition: transform 0.2s, box-shadow 0.3s;
}
.demo-sug small { font-size: 5.8px; font-weight: 800; letter-spacing: 0.08em; opacity: 0.85; }
.demo-sug b { font-size: 9.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.demo-sug.is-flash { transform: scale(1.06); box-shadow: 0 0 0 3px var(--accent-wash-strong), 0 4px 16px rgb(16 185 129 / 0.5); }
.demo-pdfbtn {
  display: flex; align-items: center; gap: 3px;
  padding: 3px 6px; border-radius: 6px;
  background: #fff; color: #111418;
  font-size: 7.5px; font-weight: 800;
}
.demo-pdfbtn i { color: #059669; }

.demo-hero {
  display: grid; gap: 5px;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-deep), var(--elevated) 70%);
}
.demo-badge {
  justify-self: start;
  padding: 1.5px 6px; border-radius: 999px;
  font-size: 6.8px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--accent-text); background: var(--accent-wash-strong); border: 1px solid var(--accent-line);
}
.demo-hero h4 { font-size: 11px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.01em; }
.demo-hero p { font-size: 7.5px; color: var(--fg-muted); margin-top: -3px; }
.demo-actions { position: relative; display: flex; gap: 4px; }
.demo-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 4px 7px; border-radius: 6px;
  font-size: 7.8px; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--fg-soft); background: var(--canvas);
  transition: transform 0.15s, background 0.2s;
}
.demo-btn.is-primary { border-color: transparent; background: var(--accent-strong); color: #fff; box-shadow: 0 4px 10px rgb(5 150 105 / 0.3); }
.demo-btn.is-press { transform: scale(0.95); }
.demo-spin { display: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: demo-rot 0.7s linear infinite; }
.is-busy .demo-spin { display: block; }
.is-busy .ph-file-pdf, .is-busy .ph-caret-down { display: none; }

.demo-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.demo-metric { padding: 6px 7px; border-radius: 7px; background: var(--canvas); border: 1px solid var(--line); }
.demo-metric small { display: block; font-size: 6.2px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent-text); }
.demo-metric b { font-size: 11px; font-weight: 800; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.demo-metric.is-accent b { color: var(--accent-text); }

.demo-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 3;
  width: 172px;
  display: grid; gap: 1px;
  padding: 4px;
  border-radius: 8px;
  background: var(--chrome);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px var(--shadow-tint);
  opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.demo-menu.is-open { opacity: 1; transform: none; }
.demo-menu div { display: grid; grid-template-columns: 14px 1fr; gap: 1px 5px; padding: 4px 5px; border-radius: 5px; transition: background 0.2s; }
.demo-menu div.is-hover { background: var(--elevated-hover); }
.demo-menu i { grid-row: span 2; color: var(--accent-icon); font-size: 11px; }
.demo-menu b { font-size: 7.8px; color: var(--fg-strong); }
.demo-menu b em { margin-left: 3px; padding: 0 3px; border-radius: 3px; font-style: normal; font-size: 5.8px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent-text); background: var(--accent-wash-strong); vertical-align: 1px; }
.demo-menu small { font-size: 6.5px; color: var(--fg-muted); }

/* PDF viewer: the cover rises, then the comparables and values pages fan out.
   Mirrors the real report layout (cover sidebar, summary table, value zones). */
.demo-pdf {
  position: absolute; left: 0; right: 0; top: 31px; bottom: 0; z-index: 2;
  background: rgb(12 14 16 / 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.demo-pdf.is-open { opacity: 1; }

.pdf-page {
  position: absolute; left: 50%; top: 50%;
  width: 124px; height: 175px;
  padding: 9px 8px 7px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 2px;
  background: #fff; color: #111418;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.45);
  font-size: 4px; line-height: 1.3;
  transform: translate(-50%, -38%) scale(0.92);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease);
}
.is-open .pdf-cover { opacity: 1; transform: translate(-50%, -50%); }
.pdf-left, .pdf-right { transform: translate(-50%, -50%) scale(0.94); }
.is-fan .pdf-left { opacity: 1; transform: translate(-142%, -47%) rotate(-5deg); }
.is-fan .pdf-right { opacity: 1; transform: translate(42%, -47%) rotate(5deg); }

.pdf-cover { flex-direction: row; gap: 0; padding: 0; overflow: hidden; }
.pc-side {
  flex: 0 0 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 14px 0 8px;
  background: #059669; color: #fff;
}
.pc-side small { font-size: 2.6px; font-weight: 700; letter-spacing: 0.08em; writing-mode: vertical-rl; transform: rotate(180deg); }
.pc-logo { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 2px; background: #fff; color: #059669; }
.pc-logo svg { width: 10px; height: 10px; }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 7px 7px; }
.pc-kicker { font-size: 2.8px; font-weight: 700; letter-spacing: 0.08em; color: #b48a2c; }
.pc-title { font-size: 8px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #047857; }
.pc-rule { width: 14px; height: 1.4px; background: #c9a24a; }
.pc-place { font-size: 3px; color: #94a3b8; }
.pc-map { position: relative; height: 50px; margin-top: 5px; border-radius: 2px; overflow: hidden; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); }
.pc-map > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-maptag { position: absolute; left: 3px; top: 3px; padding: 1px 3px; border-radius: 1.5px; background: #1f2937; color: #fff; font-size: 2.8px; font-weight: 700; }
.pc-pin { position: absolute; left: 50%; top: 50%; width: 8px; height: 10px; margin: -10px 0 0 -4px; }
.pc-meta { display: flex; gap: 10px; margin-top: auto; }
.pc-meta span, .pc-sign span { display: grid; gap: 1px; }
.pc-meta small { font-size: 2.6px; font-weight: 700; letter-spacing: 0.06em; color: #94a3b8; }
.pc-meta b { font-size: 4.2px; font-weight: 700; }
.pc-sign { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; padding-top: 4px; border-top: 0.5px solid #e2e8f0; }
.pc-sign b { font-size: 4px; }
.pc-sign small { font-size: 2.6px; color: #64748b; }
.pc-sign > small { color: #b48a2c; font-weight: 700; letter-spacing: 0.06em; }

.pp-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 3px; border-bottom: 0.8px solid #059669; }
.pp-head b { font-size: 5.8px; font-weight: 800; letter-spacing: -0.01em; }
.pp-head small { font-size: 2.6px; font-weight: 700; letter-spacing: 0.08em; color: #b48a2c; }
.pp-lead { font-size: 2.9px; color: #64748b; }
.pp-table { display: grid; }
.pp-th, .pp-tr { display: grid; grid-template-columns: 5px 1fr 13px 20px 12px; gap: 2px; align-items: center; }
.pp-th { padding-bottom: 2px; border-bottom: 0.5px solid #e2e8f0; font-size: 2.4px; font-weight: 700; color: #94a3b8; letter-spacing: 0.04em; }
.pp-tr { padding: 2.6px 0; border-bottom: 0.5px solid #f1f5f9; font-size: 2.9px; }
.pp-tr i, .pp-th i { font-style: normal; color: #94a3b8; }
.pp-tr b { display: block; font-size: 3.1px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tr small { display: block; font-size: 2.4px; color: #94a3b8; }
.pp-tr em, .pp-th em { font-style: normal; color: #475569; }
.pp-tr strong { color: #047857; font-weight: 800; }
.pp-tr u, .pp-th u { text-decoration: none; }
.pp-tr u { color: #b48a2c; font-weight: 700; }
.pp-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 3px; border-top: 0.5px solid #e2e8f0; font-size: 2.4px; color: #94a3b8; }

.pp-main { position: relative; display: grid; justify-items: center; gap: 1px; margin-top: 5px; padding: 6px 4px 4px; border: 0.8px solid #c9a24a; border-radius: 3px; }
.pp-main em, .pp-pair em { position: absolute; top: -2.5px; left: 50%; translate: -50% 0; padding: 0.6px 3px; border-radius: 3px; font-style: normal; font-size: 2.3px; font-weight: 800; white-space: nowrap; color: #fff; }
.pp-main em { background: #b48a2c; }
.pp-main b { font-size: 9px; font-weight: 800; color: #b48a2c; letter-spacing: -0.02em; }
.pp-main small { font-size: 2.6px; color: #94a3b8; }
.pp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 3px; }
.pp-pair div { position: relative; display: grid; justify-items: center; padding: 5px 2px 3px; border-radius: 3px; border: 0.6px solid; }
.pp-pair b { font-size: 5.6px; font-weight: 800; }
.pp-sell { border-color: #a7f3d0 !important; background: #f0fdf7; }
.pp-sell em { background: #059669; }
.pp-sell b { color: #047857; }
.pp-hold { border-color: #fecdd3 !important; background: #fff5f6; }
.pp-hold em { background: #dc2626; }
.pp-hold b { color: #dc2626; }
.pp-sub { margin-top: 3px; padding-bottom: 1.5px; border-bottom: 0.6px solid #059669; font-size: 3.2px; font-weight: 700; }
.pp-hist { display: flex; align-items: flex-end; gap: 3px; height: 30px; padding: 0 4px; border-left: 0.5px solid #cbd5e1; border-bottom: 0.5px solid #cbd5e1; }
.pp-hist span { position: relative; flex: 1; height: 0; transition: height 0.6s var(--ease) 0.35s; }
.is-fan .pp-hist span { height: var(--h); }
.pp-hist span b { position: absolute; top: -4px; left: 0; right: 0; text-align: center; font-size: 2.4px; font-weight: 700; }
.pp-hist .g { background: #3f9142; }
.pp-hist .g b { color: #3f9142; }
.pp-hist .y { background: #b8b800; }
.pp-hist .y b { color: #8a8a00; }
.pp-hist .r { background: #d33434; }
.pp-hist .r b { color: #d33434; }
.pp-zones { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 2.2px; font-weight: 800; color: #fff; text-align: center; }
.pp-zones span { padding: 1.4px 0; }
.pp-zones span:nth-child(1) { background: #3f9142; }
.pp-zones span:nth-child(2) { background: #b8b800; }
.pp-zones span:nth-child(3) { background: #d33434; }

.demo-toast {
  position: absolute; right: 9px; top: 42px; z-index: 4;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 8px 5px 6px;
  border-radius: 8px;
  background: var(--chrome);
  border: 1px solid var(--accent-line);
  box-shadow: 0 8px 20px var(--shadow-tint);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.demo-toast.is-in { opacity: 1; transform: none; }
.demo-toast i { color: var(--accent-icon); font-size: 13px; }
.demo-toast strong { display: block; font-size: 7.8px; color: var(--fg-strong); }
.demo-toast small { display: block; font-size: 6.5px; color: var(--fg-muted); }

.demo-cursor {
  position: absolute; left: 0; top: 0; z-index: 10;
  width: 14px; height: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--x, 70%), var(--y, 110%));
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
}
.demo-cursor.is-on { opacity: 1; }
.demo-cursor::after {
  content: ""; position: absolute; left: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(0.4);
}
.demo-cursor.is-click::after { animation: demo-ripple 0.45s ease-out; }

@keyframes demo-blink { 50% { opacity: 0; } }
@keyframes demo-pulse { 50% { opacity: 0.35; } }
@keyframes demo-rot { to { transform: rotate(360deg); } }
@keyframes demo-drop {
  0% { opacity: 0; transform: translateY(-26px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes demo-ripple {
  0% { opacity: 0.55; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.8); }
}

@media (prefers-reduced-motion: reduce) {
  .step-visual.demo *, .step-visual.demo *::before, .step-visual.demo *::after { transition: none !important; animation: none !important; }
}

/* ---------- Demo video ---------- */

.demo {
  position: relative;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.demo-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.demo-head .section-title {
  margin-inline: auto;
}

.demo-head .section-lead {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: var(--fg-muted);
}

.demo-frame-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.demo-bezel {
  padding: 8px;
  border-radius: var(--r-bezel);
  background: linear-gradient(160deg, var(--accent-line), var(--line) 50%);
  box-shadow: 0 40px 80px -40px var(--shadow-tint), 0 0 0 1px var(--line);
}

.demo-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border-top-left-radius: calc(var(--r-bezel) - 8px);
  border-top-right-radius: calc(var(--r-bezel) - 8px);
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.window-title i {
  color: var(--accent-icon);
  font-size: 1rem;
}

.window-spacer {
  width: 42px;
}

.demo-screen {
  overflow: hidden;
  border-bottom-left-radius: calc(var(--r-bezel) - 8px);
  border-bottom-right-radius: calc(var(--r-bezel) - 8px);
  background: #000;
  aspect-ratio: 16 / 9;
}

.demo-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Interactive PDF trial ---------- */

.pdf-demo {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .pdf-demo {
  background: var(--elevated);
}

.pdf-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.pdf-upload-box {
  margin-top: 1.75rem;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-card);
  border: 2px dashed var(--line-strong);
  background: var(--canvas);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.upload-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-wash-strong);
  color: var(--accent-icon);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.upload-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--fg-strong);
}
.upload-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}

.upload-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--accent-line);
  margin-top: 0.75rem;
}
.upload-status.is-hidden {
  display: none;
}

/* Variant Selector */
.pdf-variant-box {
  margin-top: 1.5rem;
}

.variant-box-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.variant-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 5px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--line-strong);
}

.variant-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  white-space: nowrap;
}
.variant-tab:hover {
  color: var(--fg-strong);
}
.variant-tab.is-active {
  background: var(--surface);
  color: var(--accent-text);
  border-color: var(--accent-line);
  font-weight: 700;
  box-shadow: 0 4px 12px -2px var(--shadow-tint);
}
[data-theme="light"] .variant-tab.is-active {
  background: #ffffff;
  color: var(--accent-text);
  border-color: var(--accent-line);
}

.status-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-info i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--negative-icon);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.btn-text-danger:hover {
  background: rgb(251 113 133 / 0.12);
}

.pdf-demo-perks {
  list-style: none;
  margin: 1.75rem 0;
  display: grid;
  gap: 0.85rem;
}
.pdf-demo-perks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--fg-soft);
  line-height: 1.45;
}
.pdf-demo-perks li i {
  color: var(--accent-icon);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.pdf-demo-perks strong {
  color: var(--fg-strong);
}

.pdf-demo-actions {
  display: grid;
  gap: 0.65rem;
}
.action-caption {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* Sheet Preview (Paper representation) */
.pdf-demo-visual {
  position: relative;
}

.sheet-preview-bezel {
  padding: 8px;
  border-radius: var(--r-bezel);
  background: linear-gradient(160deg, var(--accent-line), var(--line) 45%);
  box-shadow: 0 40px 80px -40px var(--shadow-tint), 0 0 0 1px var(--line);
}

.sheet-preview-card {
  border-radius: calc(var(--r-bezel) - 8px);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #ffffff;
  color: #1e293b;
  font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #059669;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
}

.sheet-brand-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sheet-logo {
  /* Explicit height: SVGs with only a viewBox have no intrinsic size and collapse to 0x0 with max-* alone */
  height: 44px;
  width: auto;
  max-height: 44px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.sheet-logo.is-hidden {
  display: none;
}

.sheet-logo-placeholder {
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  background: #f8fafc;
}
.sheet-logo-placeholder.is-hidden {
  display: none;
}

.placeholder-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
}

.sheet-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.sheet-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #047857;
  background: #ecfdf5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
}

.sheet-date,
.sheet-id {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 550;
}

.sheet-property {
  margin-bottom: 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sheet-prop-main h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.sheet-prop-main p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.15rem 0 0;
}

.sheet-prop-tags {
  display: flex;
  gap: 0.35rem;
}
.sheet-prop-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #334155;
  background: #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.sheet-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.sheet-metric-card {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sheet-metric-card.highlight {
  background: #f0fdf4;
  border-color: #86efac;
}

.sm-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}
.highlight .sm-label {
  color: #047857;
}

.sm-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #065f46;
  line-height: 1.1;
}
.sm-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  margin-top: 0.15rem;
}

.sm-value-range {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.sheet-mini-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  margin-top: 0.45rem;
  overflow: hidden;
}
.sheet-mini-bar span {
  display: block;
  height: 100%;
  background: #10b981;
  border-radius: 3px;
}

.sheet-table-section {
  margin-bottom: 1.15rem;
}

.sheet-table-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.sheet-variant-view.is-hidden {
  display: none !important;
}

/* Variant: Photos */
.sheet-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.sheet-photo-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.sheet-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #cbd5e1;
}

.sheet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.sheet-card-body {
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.sheet-card-body strong {
  font-size: 0.72rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.sheet-card-body span {
  font-size: 0.64rem;
  color: #64748b;
  display: block;
}

.sheet-card-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.35rem;
}

.sheet-card-price em {
  font-style: normal;
  font-size: 0.66rem;
  color: #64748b;
}

.sheet-card-price strong {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 800;
}

/* Variant: Maps */
.sheet-map-box {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.75rem;
  background: #f1f5f9;
}

.sheet-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.sheet-map-references {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.map-ref-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.map-ref-item.target {
  background: #fef2f2;
  border-color: #fecaca;
}

.pin-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pin-badge.target {
  background: #ef4444;
}

.ref-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ref-details strong {
  color: #0f172a;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-details span {
  color: #64748b;
  font-size: 0.62rem;
}

.sheet-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: #94a3b8;
}
.sheet-footer strong {
  color: #475569;
}

.sheet-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---------- Method bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.25rem;
  margin-top: 3rem;
}

.cell {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--highlight);
}
.cell h3 { font-size: 1.2rem; font-weight: 700; }
.cell p { margin-top: 0.6rem; color: var(--fg-muted); font-size: 0.95rem; max-width: 42ch; }
.cell-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: auto;
  border-radius: 12px;
  background: var(--accent-wash-strong);
  color: var(--accent-icon);
  font-size: 1.4rem;
}
.cell-icon + h3 { margin-top: 1.5rem; }

.cell-calc { grid-column: span 4; grid-row: span 2; }
.cell-rule {
  grid-column: span 2; grid-row: span 2;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(16 185 129 / 0.35), transparent 60%),
    var(--accent-deep);
  border-color: var(--accent-line);
}
.cell-rule h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.15; }
.cell-rule p { color: var(--fg-soft); }
.cell-m2, .cell-range, .cell-map { grid-column: span 2; }
.cell-map {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--surface);
}

.calc { display: grid; gap: 0.5rem; margin-top: auto; padding-top: 2rem; font-variant-numeric: tabular-nums; }
.calc-row {
  display: grid; grid-template-columns: 1fr auto 5.5rem; gap: 1rem; align-items: center;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--fg-soft);
}
.calc-row span:nth-child(2) { color: var(--fg-muted); font-size: 0.9rem; }
.calc-row strong { text-align: right; color: var(--fg-strong); }
.calc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 1.1rem 0;
  font-weight: 700; color: var(--fg-soft);
}
.calc-total strong { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
[data-theme="light"] .calc-total strong { color: var(--accent-text); }

/* ---------- ROI ---------- */

.roi { padding-top: 0; }

.roi-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-bezel);
  background:
    radial-gradient(80% 120% at 0% 100%, rgb(16 185 129 / 0.18), transparent 60%),
    var(--chrome);
  border: 1px solid var(--line-strong);
}
[data-theme="light"] .roi-panel { background: radial-gradient(80% 120% at 0% 100%, rgb(16 185 129 / 0.14), transparent 60%), var(--surface); }

.roi-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; text-wrap: balance; }
.roi-copy p { margin-top: 1rem; color: var(--fg-muted); max-width: 46ch; }

.roi-calc {
  padding: 1.75rem;
  border-radius: var(--r-card);
  background: var(--canvas);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--highlight);
}
[data-theme="light"] .roi-calc { background: var(--elevated); }

.roi-label { display: block; font-weight: 700; color: var(--fg-strong); }

.roi-input { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.roi-count {
  flex: none;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--r-btn);
  background: var(--accent-wash-strong);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-weight: 800; font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  flex: 1; min-width: 0;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 26%), var(--line-strong) var(--fill, 26%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fg-strong);
  border: 5px solid var(--accent);
  transition: transform 0.25s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fg-strong);
  border: 5px solid var(--accent);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.roi-result { display: grid; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.roi-price { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; color: var(--fg-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.roi-unit { color: var(--fg-muted); font-size: 0.9rem; }

/* ---------- Early access + pricing ---------- */

.access-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.access-steps { display: grid; gap: 1.5rem; margin-top: 2.75rem; }
.access-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.access-steps li > i {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-wash-strong);
  color: var(--accent-icon);
  font-size: 1.3rem;
}
.access-steps h3 { font-size: 1.05rem; font-weight: 700; }
.access-steps p { margin-top: 0.2rem; color: var(--fg-muted); font-size: 0.95rem; }

.plan {
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--r-card);
  background: linear-gradient(170deg, var(--accent-deep), var(--surface) 55%);
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 1px 0 var(--highlight), 0 40px 80px -50px rgb(16 185 129 / 0.55);
}

.plan-head h3 { font-size: 1.15rem; font-weight: 700; }

.plan-price { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 1.25rem; }
.plan-amount { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; color: var(--fg-strong); line-height: 1; }
.plan-per { color: var(--fg-muted); font-weight: 600; }
.plan-note { margin-top: 0.6rem; color: var(--accent-text); font-size: 0.9rem; font-weight: 600; }

.plan-list { display: grid; gap: 0.75rem; margin: 1.75rem 0 2rem; }
.plan-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--fg-soft); }
.plan-list i { flex: none; margin-top: 0.25rem; color: var(--accent-icon); }

.plan-login { margin-top: 1rem; text-align: center; font-size: 0.9rem; color: var(--fg-muted); }
.plan-login a { font-weight: 700; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.plan-fine { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--fg-muted); }

/* ---------- FAQ ---------- */

.faq { padding-top: 2rem; }
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.faq-list { display: grid; gap: 0.75rem; }

.faq-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--accent-line); }

.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--fg-strong);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--elevated);
  color: var(--accent-icon);
  transition: transform 0.4s var(--ease);
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 1.35rem 1.25rem; color: var(--fg-muted); max-width: 62ch; }

/* ---------- Final CTA ---------- */

.final { padding-top: 2rem; }

.final-panel {
  position: relative;
  overflow: hidden;
  display: grid; justify-items: center; gap: 2rem;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--r-bezel);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 120%, rgb(16 185 129 / 0.35), transparent 70%),
    var(--chrome);
  border: 1px solid var(--accent-line);
}
[data-theme="light"] .final-panel { background: radial-gradient(70% 90% at 50% 120%, rgb(16 185 129 / 0.22), transparent 70%), var(--surface); }
.final-panel h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; max-width: 24ch; text-wrap: balance; }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* 3D logo: the SVG fallback holds the space until <model-viewer> has loaded the GLB. */
.final-logo {
  position: relative;
  display: grid; place-items: center;
  width: clamp(7rem, 14vw, 10rem); aspect-ratio: 1;
  margin-bottom: -0.75rem;
}
.final-logo::before {
  content: "";
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-wash-strong), transparent 70%);
  filter: blur(18px);
}
.final-logo-fallback,
.final-logo model-viewer { grid-area: 1 / 1; width: 100%; height: 100%; }
.final-logo-fallback { width: 62%; height: 62%; color: var(--accent-icon); transition: opacity 0.6s var(--ease); }
.final-logo model-viewer {
  --poster-color: transparent;
  --progress-bar-height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.final-logo.is-3d-ready model-viewer { opacity: 1; }
.final-logo.is-3d-ready .final-logo-fallback { opacity: 0; }

/* ---------- Footer ---------- */

.footer { padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 2rem; align-items: start; }
.footer-brand p { margin-top: 0.75rem; color: var(--fg-muted); font-size: 0.9rem; }
.footer-legal { color: var(--fg-muted); font-size: 0.82rem; max-width: 58ch; }
.footer-copy { color: var(--fg-muted); font-size: 0.82rem; white-space: nowrap; }

/* ---------- Reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .js .range-fill { transform: scaleX(0.2); transition: transform 1.2s var(--ease) 0.5s; }
  .js .hero-visual.is-visible .range-fill { transform: scaleX(1); }

  .float-chip { animation: chip-in 0.9s var(--ease) 0.9s both; }
  @keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 7rem; }
  .hero h1 { max-width: 16ch; }
  .hero-visual { max-width: 560px; }
  .float-chip { left: auto; right: -0.5rem; bottom: -1.25rem; }
  .video { grid-template-columns: 1fr; }
  .video-screen { max-width: 460px; margin: 0 auto; }
  .pdf-demo-grid { grid-template-columns: 1fr; }
  .pdf-demo-visual { max-width: 600px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-calc { grid-column: span 2; grid-row: auto; }
  .cell-rule { grid-column: span 2; grid-row: auto; }
  .cell-m2, .cell-range { grid-column: span 1; }
  .cell-map { grid-column: span 2; }
  .roi-panel { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav { height: 58px; padding: 0 0.5rem 0 0.6rem; }
  .brand-name { font-size: 1.1rem; }
  .hero { padding: 6.25rem 0 3.5rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual figcaption { margin-top: 2rem; }
  .result-metrics { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .video { padding: 1.25rem; }
  .video-controls { gap: 0.6rem 1rem; }
  .video-chapter { flex-basis: 100%; }
  .sheet-property { flex-direction: column; align-items: flex-start; }
  .sheet-numbers { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell-calc, .cell-rule, .cell-m2, .cell-range, .cell-map { grid-column: auto; }
  .calc-row { grid-template-columns: 1fr auto auto; gap: 0.6rem; padding: 0.75rem 0.85rem; font-size: 0.875rem; }
  .calc-row span:nth-child(2) { font-size: 0.8rem; }
  .nav-cta { display: none; }
  .final-ctas .btn { width: 100%; }
}

@media (max-width: 360px) {
  .nav-actions .icon-btn { display: none; }
}
