/* =========================================================
   MediaHub — Landing
   Signal / terminal aesthetic. Dark, monospace-accented.
   ========================================================= */

:root {
  /* hue is driven by --accent-h so Tweaks can rotate the signal color */
  --accent-h: 145;
  --accent: oklch(0.82 0.17 var(--accent-h));
  --accent-dim: oklch(0.82 0.17 var(--accent-h) / 0.16);
  --accent-line: oklch(0.82 0.17 var(--accent-h) / 0.35);

  --bg: oklch(0.165 0.008 250);
  --bg-2: oklch(0.195 0.009 250);
  --surface: oklch(0.215 0.011 250);
  --surface-2: oklch(0.25 0.012 250);
  --line: oklch(0.32 0.012 250);
  --line-soft: oklch(0.28 0.011 250);

  --fg: oklch(0.96 0.004 250);
  --fg-mid: oklch(0.78 0.008 250);
  --fg-dim: oklch(0.62 0.009 250);
  --fg-faint: oklch(0.5 0.009 250);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow .num { color: var(--accent); }

/* faint signage grid background */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(0.32 0.012 250 / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.32 0.012 250 / 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.35em;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15.5px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: oklch(0.2 0.03 var(--accent-h));
  font-weight: 600;
}
.btn-primary:hover { background: oklch(0.87 0.17 var(--accent-h)); }
.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--fg-dim); background: oklch(0.96 0.004 250 / 0.04); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- live dot ---------- */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.82 0.17 var(--accent-h) / 0.55); }
  70%  { box-shadow: 0 0 0 9px oklch(0.82 0.17 var(--accent-h) / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.82 0.17 var(--accent-h) / 0); }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: oklch(0.165 0.008 250 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.55em; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark {
  width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--accent); font-size: 20px; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { font-size: 14.5px; color: var(--fg-mid); transition: color .2s ease; font-family: var(--font-mono); letter-spacing: 0.02em; }
.nav-links a.lnk:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links .lnk { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(60px, 9vw, 120px); }
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em;
  color: var(--fg-mid);
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line); border-radius: 100px;
  background: oklch(0.215 0.011 250 / 0.5);
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 78px);
  margin-top: 26px;
  letter-spacing: -0.035em;
}
.hero h1 .glow { color: var(--accent); }
.hero .lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-mid);
  max-width: 30em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 38px; flex-wrap: wrap;
}
.hero-meta .stat .n { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.hero-meta .stat .l { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-top: 2px; }

/* =========================================================
   PLAYER PREVIEW (animated)
   ========================================================= */
.player {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 14px;
  box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.7), 0 0 0 1px oklch(1 0 0 / 0.02) inset;
}
.player-bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-dim); padding: 4px 6px 12px;
}
.player-bar .right { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: oklch(0.13 0.008 250);
  border: 1px solid var(--line-soft);
}
.slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .7s ease;
  background-size: 22px 22px;
}
.slide.active { opacity: 1; }
.slide .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .caption .ttl { font-size: clamp(20px, 3.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.slide .caption .file { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
.slide .kind {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
}
.slide .badge-promo {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 6px;
  background: oklch(1 0 0 / 0.1); color: var(--fg);
}

/* progress + playlist */
.player-foot { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 4px 4px; }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 3px; }
.playlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pl-item {
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 11px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.pl-item .idx { color: var(--fg-faint); }
.pl-item.active { border-color: var(--accent-line); color: var(--fg); background: var(--accent-dim); }
.pl-item.active .idx { color: var(--accent); }
.pl-item .name { display: block; margin-top: 3px; letter-spacing: 0.02em; }

/* live toast */
.live-toast {
  position: absolute; right: 18px; top: -14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  background: var(--surface); border: 1px solid var(--accent-line); color: var(--fg);
  padding: 8px 13px; border-radius: 100px;
  box-shadow: 0 16px 30px -16px oklch(0 0 0 / 0.7);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.live-toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================
   LOGO / TRUST STRIP
   ========================================================= */
.strip { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: 26px; flex-wrap: wrap; justify-content: center; }
.strip .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.strip .logo { font-weight: 600; font-size: 17px; color: var(--fg-dim); letter-spacing: -0.01em; opacity: 0.85; transition: color .2s ease; }
.strip .logo:hover { color: var(--fg); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; letter-spacing: -0.03em; }
.head p { margin-top: 18px; color: var(--fg-mid); font-size: clamp(16px, 1.4vw, 19px); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 30px 26px 28px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0; transition: opacity .3s ease;
}
.step:hover::before { opacity: 1; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 21px; margin-top: 18px; letter-spacing: 0.02em; }
.step p { color: var(--fg-mid); margin-top: 10px; font-size: 15.5px; }
.step .line { position: absolute; right: 22px; top: 28px; color: var(--fg-faint); font-family: var(--font-mono); font-size: 12px; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature {
  position: relative; padding: 32px 30px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-3px); }
.feature .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.feature .tag b { color: var(--fg-faint); font-weight: 400; }
.feature h3 { font-size: 23px; margin-top: 16px; }
.feature p { color: var(--fg-mid); margin-top: 12px; font-size: 15.5px; }
.feature .meta { margin-top: 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.feature .meta span { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-dim); display: inline-flex; align-items: center; gap: 6px; }
.feature .meta span::before { content: "▸"; color: var(--accent); }

/* =========================================================
   USE CASES
   ========================================================= */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cases { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: border-color .25s ease, transform .25s ease;
}
.case:hover { border-color: var(--line); transform: translateY(-3px); }
.case .thumb { aspect-ratio: 4/3; background-size: 18px 18px; position: relative; border-bottom: 1px solid var(--line-soft); }
.case .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: oklch(1 0 0 / 0.4); letter-spacing: 0.1em; }
.case .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case .body { padding: 20px 22px 24px; }
.case .body .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.case .body h3 { font-size: 19px; margin-top: 10px; }
.case .body p { color: var(--fg-mid); font-size: 14.5px; margin-top: 8px; }

/* =========================================================
   COMPARISON
   ========================================================= */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
.col {
  border-radius: var(--radius); padding: 30px 30px 34px; border: 1px solid var(--line-soft);
}
.col.old { background: var(--bg-2); }
.col.new { background: var(--surface); border-color: var(--accent-line); position: relative; }
.col h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.col .sub { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 22px; }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.col li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-mid); }
.col li .ic { flex: none; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; margin-top: 1px; font-family: var(--font-mono); }
.col.old li .ic { background: oklch(0.3 0.012 250); color: var(--fg-faint); }
.col.new li .ic { background: var(--accent-dim); color: var(--accent); }
.col.new::after { content: "RECOMENDADO"; position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--accent); }

/* =========================================================
   PRICING
   ========================================================= */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 920px) { .prices { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price {
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 32px 30px 34px; background: var(--surface);
  display: flex; flex-direction: column;
}
.price.feature-plan { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-dim), var(--surface)); }
.price .pname { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.price.feature-plan .pname { color: var(--accent); }
.price .amt { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price .amt .v { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.price .amt .per { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
.price .desc { color: var(--fg-mid); font-size: 14.5px; margin-top: 12px; min-height: 2.6em; }
.price ul { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 13px; flex: 1; }
.price li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--fg-mid); }
.price li::before { content: "✓"; color: var(--accent); font-family: var(--font-mono); flex: none; }
.price .btn { width: 100%; justify-content: center; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line-soft); }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--fg);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; letter-spacing: -0.01em;
}
.qa .plus { flex: none; font-family: var(--font-mono); color: var(--accent); transition: transform .3s ease; font-size: 20px; }
.qa.open .plus { transform: rotate(45deg); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.qa .ans p { color: var(--fg-mid); font-size: 15.5px; padding: 0 4px 26px; max-width: 62ch; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final { position: relative; overflow: hidden; }
.final .panel {
  position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: clamp(44px, 7vw, 88px) var(--pad);
  text-align: center;
  overflow: hidden;
}
.final .panel .grid-bg { -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 10%, transparent 70%); }
.final h2 { position: relative; font-size: clamp(30px, 4.8vw, 56px); letter-spacing: -0.03em; }
.final p { position: relative; color: var(--fg-mid); margin: 20px auto 0; max-width: 40em; font-size: clamp(16px, 1.5vw, 19px); }
.final .hero-cta { position: relative; justify-content: center; margin-top: 34px; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { border-top: 1px solid var(--line-soft); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 30px; flex-wrap: wrap; }
.foot .brand { color: var(--fg-mid); }
.foot .meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); letter-spacing: 0.04em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.foot .meta .sep { opacity: 0.4; }

/* =========================================================
   AI MEDIA (generation console mock)
   ========================================================= */
.ai-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .ai-grid { grid-template-columns: 1fr; gap: 48px; } }
.ai-steps { list-style: none; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 16px; }
.ai-steps li { display: flex; gap: 14px; align-items: baseline; color: var(--fg-mid); font-size: 15.5px; }
.ai-steps .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent); flex: none; min-width: 9.5em; }
@media (max-width: 580px) { .ai-steps li { flex-direction: column; gap: 6px; } .ai-steps .k { min-width: 0; } }

.ai-console {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 14px;
  box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.7), 0 0 0 1px oklch(1 0 0 / 0.02) inset;
}
.ai-console-bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-dim); padding: 4px 6px 12px;
}
.ai-console-bar .right { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.ai-prompt {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--fg);
  background: oklch(0.13 0.008 250);
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 14px 16px;
}
.ai-prompt .ps { color: var(--accent); }
.ai-caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); align-self: center; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-brief {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--fg-dim);
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 15px;
}
.ai-brief .bk { color: var(--accent); }
.ai-arrow { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-block: 10px; }
.ai-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 80% 90% at 12% 110%, oklch(0.42 0.12 28 / 0.55), transparent 60%),
    radial-gradient(ellipse 70% 80% at 95% -10%, oklch(0.4 0.1 145 / 0.4), transparent 55%),
    oklch(0.15 0.01 280);
  display: grid; place-items: center; text-align: center;
}
.ai-screen .kind {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
}
.ai-screen .chip {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 6px;
  background: var(--accent-dim); color: var(--accent);
}
.ai-screen .ttl { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.ai-screen .sub { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mid); margin-top: 8px; }

/* stages appear after the prompt is "typed" (app.js adds .on) */
html.anim-ready .ai-stage { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
html.anim-ready .ai-stage.on { opacity: 1; transform: none; }

/* =========================================================
   REPORTS (dashboard mock)
   ========================================================= */
.report-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .report-grid { grid-template-columns: 1fr; gap: 48px; } .report-panel { order: 2; } }
.report-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 14px;
  box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.7), 0 0 0 1px oklch(1 0 0 / 0.02) inset;
}
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi {
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: oklch(0.13 0.008 250);
  padding: 13px 15px;
}
.kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.kpi .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-top: 3px; }
.report-chart {
  margin-top: 8px;
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: oklch(0.13 0.008 250);
  padding: 16px 14px 10px;
}
.report-chart .bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.report-chart .bars span {
  flex: 1; min-height: 5px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, oklch(0.82 0.17 var(--accent-h) / 0.6), oklch(0.82 0.17 var(--accent-h) / 0.14));
}
.report-chart .bars span.hi { background: linear-gradient(180deg, var(--accent), oklch(0.82 0.17 var(--accent-h) / 0.3)); }
.report-x { display: flex; gap: 7px; margin-top: 8px; }
.report-x span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fg-faint); }
.report-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 4px 4px; }
.report-foot .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-right: 4px; }
.btn-mini {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--fg-mid);
}

/* bars grow when the panel reveals */
html.anim-ready .report-panel .bars span { transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
html.anim-ready .report-panel.in .bars span { transform: scaleY(1); }
html.anim-ready .report-panel.in .bars span:nth-child(2) { transition-delay: .06s; }
html.anim-ready .report-panel.in .bars span:nth-child(3) { transition-delay: .12s; }
html.anim-ready .report-panel.in .bars span:nth-child(4) { transition-delay: .18s; }
html.anim-ready .report-panel.in .bars span:nth-child(5) { transition-delay: .24s; }
html.anim-ready .report-panel.in .bars span:nth-child(6) { transition-delay: .3s; }
html.anim-ready .report-panel.in .bars span:nth-child(7) { transition-delay: .36s; }

/* =========================================================
   SCROLL REVEAL
   Base state is VISIBLE. We only hide (to animate in) once JS
   adds .anim-ready to <html> — so content never gets stuck
   invisible if JS fails or the tab isn't painting.
   ========================================================= */
html.anim-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
html.anim-ready .reveal.in { opacity: 1; transform: none; }
html.anim-ready .reveal[data-d="1"] { transition-delay: .07s; }
html.anim-ready .reveal[data-d="2"] { transition-delay: .14s; }
html.anim-ready .reveal[data-d="3"] { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  .ai-caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tweak toggles ---------- */
.no-grid .grid-bg { display: none; }
