/* ============================================================
   MANA OS · Homepage (Option A, light hero + brief→proposal cascade)
   Page-specific styles. Built on manaos/site.css tokens + primitives.
   Ported from the design prototype.
   ============================================================ */
/* =========================================================
   OPTION A, Signal-led
   Dark midnight hero with abstract signal motion.
   Loose gradient, also seeded in the hero visual and two
   stat figures. Editorial, minimal, paper sections breathe.
   ========================================================= */

/* ---- HERO ---- */
.hero {
  position: relative;
  background: var(--midnight);
  color: var(--on-dark-1);
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero__bg-1 { width: 720px; height: 720px; right: -180px; top: -220px; background: radial-gradient(circle, #7B28FB 0%, #2417FE 35%, transparent 70%); opacity: .42; }
.hero__bg-2 { width: 560px; height: 560px; left: -160px; bottom: -240px; background: radial-gradient(circle, #FE41FB 0%, transparent 70%); opacity: .28; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1100px) { .hero__grid { grid-template-columns: 1fr; gap: 56px; } }

.hero__eyebrow { color: var(--mana-magenta); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--on-dark-1);
  margin: 22px 0 28px;
  text-wrap: balance;
}
.hero__lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--on-dark-2);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__cta .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--on-dark-3); text-transform: uppercase; margin-left: 12px; }

/* ---- HERO VISUAL: brief → proposal cascade (paper) ---- */
.viz {
  position: relative;
  aspect-ratio: 1 / 1.08;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.viz__tile {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--fg1);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  animation: tileIn .55s cubic-bezier(.16,1,.3,1) forwards;
}
.viz__tile.t1 { animation-delay: 0.25s; }
.viz__tile.t2 { animation-delay: 1.05s; }
.viz__tile.t3 { animation-delay: 1.85s; }
.viz__tile.t4 { animation-delay: 2.65s; }
@keyframes tileIn { to { opacity: 1; transform: translateY(0); } }

.viz__tile-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.viz__tile-head .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--mana-violet);
}
.viz__tile-head .lbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--fg1);
  flex: 1;
}
.viz__tile-head .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg3);
}

.viz__connector {
  height: 14px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  animation: tileIn .4s ease-out forwards;
}
.viz__connector.c1 { animation-delay: 0.85s; }
.viz__connector.c2 { animation-delay: 1.65s; }
.viz__connector.c3 { animation-delay: 2.45s; }
.viz__connector::before {
  content: "";
  width: 1px; height: 14px;
  background: linear-gradient(to bottom, rgba(55,17,104,.35), rgba(55,17,104,0));
}

/* Tile 1: brief lines */
.viz__brief { display: flex; flex-direction: column; gap: 7px; }
.viz__brief .ln { height: 5px; border-radius: 3px; background: rgba(55,17,104,.14); }
.viz__brief .ln:nth-child(1) { width: 88%; }
.viz__brief .ln:nth-child(2) { width: 72%; }
.viz__brief .ln:nth-child(3) { width: 48%; }

/* Tile 2: strategy options */
.viz__strat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.viz__strat-opt {
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 3px;
}
.viz__strat-opt .strat-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; color: var(--fg3); text-transform: uppercase; }
.viz__strat-opt .strat-name { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--fg2); }
.viz__strat-opt .strat-risk { font-family: var(--font-mono); font-size: 9px; color: var(--fg3); letter-spacing: .02em; }
.viz__strat-opt--picked {
  background: var(--magenta-tint);
  border-color: transparent;
  position: relative;
}
.viz__strat-opt--picked .strat-tag { color: var(--mana-magenta); }
.viz__strat-opt--picked .strat-name { color: var(--fg1); }
.viz__strat-opt--picked::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: var(--spark);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  animation: pickedFadeIn .5s ease-out 2.1s forwards, pickedPulse 3s ease-in-out 2.6s infinite;
}
@keyframes pickedFadeIn { to { opacity: 1; } }
@keyframes pickedPulse { 50% { opacity: 0.4; } }

/* Tile 3: media roles */
.viz__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.viz__role {
  padding: 10px 10px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 4px;
}
.viz__role .role-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mana-violet);
}
.viz__role .role-platform {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg1);
}
.viz__role .role-reach {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .02em;
  color: var(--fg3);
}

/* Tile 4: proposal */
.viz__proposal {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
}
.viz__doc {
  aspect-ratio: 4/5;
  border-radius: 5px;
  background: #FFFFFF;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
}
.viz__doc .doc-bar { height: 5px; border-radius: 2px; background: var(--spark); margin-bottom: 3px; }
.viz__doc .doc-ln { height: 2px; border-radius: 1px; background: rgba(23,18,37,.18); }
.viz__doc .doc-ln.short { width: 60%; }
.viz__doc .doc-ln.mid { width: 80%; }

.viz__proposal-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.viz__proposal-meta .h { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--fg1); letter-spacing: -.01em; }
.viz__proposal-meta .meta-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; color: var(--fg3); }
.viz__proposal-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27,127,77,.10);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1B7F4D;
  white-space: nowrap;
}
.viz__proposal-cta .dot { width: 5px; height: 5px; border-radius: 50%; background: #1B7F4D; box-shadow: 0 0 6px rgba(27,127,77,.5); }

@media (prefers-reduced-motion: reduce) {
  .viz__tile, .viz__connector { animation: none !important; opacity: 1 !important; transform: none !important; }
  .viz__strat-opt--picked::before { animation: none !important; opacity: 1 !important; }
}

/* ---- METRIC BAND (with two spark figures) ---- */
.metrics-band { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 56px 0; }

/* ---- SIGNAL LENSES dark section ---- */
.lenses-section { position: relative; overflow: hidden; }
.lenses-section .glow.g1 { width: 520px; height: 520px; right: -160px; top: 120px; background: radial-gradient(circle, #FE41FB 0%, transparent 70%); opacity: .28; }
.lenses-section .glow.g2 { width: 480px; height: 480px; left: -160px; bottom: 60px; background: radial-gradient(circle, #2417FE 0%, transparent 70%); opacity: .35; }

.lens-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--midnight-3);
}
.lens-cell {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--midnight-3);
  border-bottom: 1px solid var(--midnight-3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .15s ease;
}
.lens-cell:nth-child(5n) { border-right: 0; }
.lens-cell:nth-last-child(-n+5) { border-bottom: 0; }
.lens-cell:hover { background: rgba(255,255,255,0.02); }
.lens-cell .glyph {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(123, 40, 251, 0.18);
  color: var(--mana-magenta);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  letter-spacing: 0;
}
.lens-cell h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--on-dark-1); margin: 0; letter-spacing: -.01em; }
.lens-cell p { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.5; color: var(--on-dark-2); margin: 0; }

@media (max-width: 1100px) {
  .lens-grid { grid-template-columns: repeat(2, 1fr); }
  .lens-cell:nth-child(5n) { border-right: 1px solid var(--midnight-3); }
  .lens-cell:nth-child(2n) { border-right: 0; }
  .lens-cell:nth-last-child(-n+5) { border-bottom: 1px solid var(--midnight-3); }
  .lens-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---- CANVAS spotlight ---- */
.canvas-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.canvas-step {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.canvas-step .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--mana-violet); }
.canvas-step h4 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.012em; margin: 0; }
.canvas-step p { font-size: 14.5px; line-height: 1.55; color: var(--fg2); margin: 0; }
.canvas-step .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.canvas-step .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; padding: 4px 10px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--fg2); }
.canvas-screenshot {
  margin-top: 64px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  background: var(--card);
  position: relative;
}
.canvas-screenshot img { width: 100%; height: auto; display: block; }
.canvas-screenshot::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(246,244,240,.0) 100%);
}

@media (max-width: 1100px) { .canvas-flow { grid-template-columns: 1fr 1fr; } }

/* ---- Two routes ---- */
.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.route { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.route__tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mana-blue); }
.route__tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.route ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.route li { font-size: 15px; color: var(--fg2); display: flex; align-items: flex-start; gap: 10px; }
.route li::before { content: "·"; color: var(--fg3); font-family: var(--font-mono); }
@media (max-width: 900px) { .routes { grid-template-columns: 1fr; } }

/* ---- Use cases (5-card editorial row) ---- */
.use-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.use { padding: 40px 28px 8px 0; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.use:nth-child(n+2) { padding-left: 28px; }
.use:last-child { border-right: 0; padding-right: 0; }
.use .ic { width: 34px; height: 34px; }
.use h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; letter-spacing: -.01em; }
.use p { font-size: 14.5px; line-height: 1.5; color: var(--fg2); margin: 0; }
@media (max-width: 1100px) {
  .use-grid { grid-template-columns: 1fr 1fr; }
  .use { border-right: 0; padding-right: 0; padding-left: 0; padding: 32px 0; border-bottom: 1px solid var(--hairline); }
  .use:nth-child(2n) { border-left: 1px solid var(--hairline); padding-left: 24px; }
}

/* ---- Questions we answer: hover-flip cards ---- */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q { perspective: 1200px; min-height: 215px; outline: none; }
.q__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 215px;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.q:hover .q__inner, .q:focus .q__inner, .q:focus-within .q__inner { transform: rotateY(180deg); }
.q__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.q__front { background: var(--card); }
.q__front p { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.q__front .arr { color: var(--mana-violet); align-self: flex-end; }
.q__back { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark-1); transform: rotateY(180deg); justify-content: flex-start; }
.q__back .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #C7A2FF; }
.q__back p { font-size: 15px; line-height: 1.55; color: var(--on-dark-2); margin: 0; }
@media (max-width: 1100px) { .questions { grid-template-columns: 1fr; } .q, .q__inner { min-height: 180px; } }
@media (prefers-reduced-motion: reduce) { .q__inner { transition: none; } }

/* ---- Case study ---- */
.case {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.case__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: var(--mana-violet); text-transform: uppercase; }
.case__quote { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.25; letter-spacing: -.015em; color: var(--fg1); margin: 18px 0 28px; text-wrap: balance; }
.case__author { font-size: 15px; color: var(--fg2); }
.case__author b { color: var(--fg1); font-weight: 600; }
.case__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px; background: var(--paper-2); border-radius: var(--r-lg); }
.case__stats .s strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -.025em; line-height: 1; color: var(--fg1); }
.case__stats .s span { display: block; margin-top: 8px; font-size: 13px; color: var(--fg2); line-height: 1.4; }
@media (max-width: 1100px) { .case { grid-template-columns: 1fr; padding: 40px; gap: 40px; } }

/* ---- Data sources ---- */
.sources { display: flex; flex-wrap: wrap; gap: 12px; }
.source-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--card);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg1);
}
.source-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mana-violet); }

/* ---- Final CTA ---- */
.final-cta {
  position: relative;
  background: var(--midnight);
  color: var(--on-dark-1);
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
}
.final-cta .glow.g1 { width: 700px; height: 700px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, #7B28FB 0%, #FE41FB 30%, transparent 65%); opacity: .35; }
.final-cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 24px; }
.final-cta__lead { font-size: 20px; color: var(--on-dark-2); max-width: 640px; margin: 0 auto 40px; line-height: 1.45; }
.final-cta__cta { display: inline-flex; gap: 14px; }

/* ---- BIG BENEFITS (before→after economics) ---- */
.benefits { background: var(--paper-2); border-bottom: 1px solid var(--hairline); }
.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ba { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; }
.ba__lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); }
.ba__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ba__from { font-family: var(--font-sans); font-size: 17px; color: var(--fg3); text-decoration: line-through; text-decoration-thickness: 1px; }
.ba__arr { font-family: var(--font-mono); font-size: 14px; color: var(--mana-violet); }
.ba__to { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -.025em; }
.ba-cta { margin-top: 44px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ba-cta__meta { font-size: 15px; color: var(--fg2); max-width: 440px; line-height: 1.45; }
@media (max-width: 1100px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ba-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CLEAN THEME OVERRIDES
   Off-white throughout, no gradient washes. The spark
   gradient survives in two places only: the logo and the
   triangle visual.
   ========================================================= */
:root { --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* primary action: solid ink, no gradient */
.btn--spark { background: var(--midnight); box-shadow: 0 10px 28px rgba(14,6,38,.18); }
.btn--spark:hover { background: var(--mana-plum); }

.glow { display: none; }

/* Light hero */
.hero { background: var(--paper); color: var(--fg1); border-bottom: 1px solid var(--hairline); }
.hero__title { color: var(--fg1); }
.hero__lead { color: var(--fg2); }
.hero__eyebrow { color: var(--mana-violet); }
.hero__cta .meta { color: var(--fg3); }

/* dark-ghost buttons recolored for light surfaces */
.btn--ghost-dark { color: var(--fg1); border-color: rgba(23,18,37,.22); }
.btn--ghost-dark:hover { border-color: var(--fg1); background: rgba(23,18,37,.04); }

/* lenses section, light */
.lenses-section { background: var(--paper); }
.lens-grid { border-top: 1px solid var(--hairline); }
.lens-cell { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.lens-cell:nth-child(5n) { border-right: 0; }
.lens-cell:nth-last-child(-n+5) { border-bottom: 0; }
.lens-cell:hover { background: rgba(23,18,37,.025); }
.lens-cell .glyph { background: rgba(123,40,251,.10); color: var(--mana-violet); }
.lens-cell h4 { color: var(--fg1); }
.lens-cell p { color: var(--fg2); }
@media (max-width: 1100px) {
  .lens-cell:nth-child(5n) { border-right: 1px solid var(--hairline); }
  .lens-cell:nth-child(2n) { border-right: 0; }
  .lens-cell:nth-last-child(-n+5) { border-bottom: 1px solid var(--hairline); }
  .lens-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* final CTA: light panel */
.final-cta { background: var(--paper-2); color: var(--fg1); border-top: 1px solid var(--hairline); }
.final-cta__lead { color: var(--fg2); }

/* solid accent replaces gradient text, everywhere */
.accent { color: var(--mana-violet); }
.spark, .metric__fig--spark, .spark-text { background: none; -webkit-text-fill-color: initial; color: var(--mana-violet); }

/* =========================================================
   IRON TRIANGLE (the problem section)
   ========================================================= */
.iron-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 8px; }
.tri-stage { position: relative; max-width: 560px; margin: 0 auto; }
.triangle-svg { width: 100%; height: auto; display: block; overflow: visible; }
.edge { stroke: #D2CBDD; stroke-width: 2; stroke-linecap: round; opacity: .85; transition: stroke .7s ease, stroke-width .7s ease, opacity .7s ease; }
.edge.lit { stroke: url(#sparkGrad); stroke-width: 5; opacity: 1; }
.tri-fill { opacity: 0; transition: opacity 1s ease; }
.triangle-viz[data-step="4"] .tri-fill { opacity: 1; }
.vtx { transition: opacity .7s ease; }
.vtx .v-dot { fill: #fff; stroke: #B8B0C5; stroke-width: 2.5; transition: fill .7s ease, stroke .7s ease, stroke-width .7s ease; }
.vtx.lit .v-dot { stroke-width: 4; }
.vtx.lit.vtx-q .v-dot { fill: var(--mana-blue); stroke: var(--mana-blue); }
.vtx.lit.vtx-s .v-dot { fill: var(--mana-violet); stroke: var(--mana-violet); }
.vtx.lit.vtx-c .v-dot { fill: var(--mana-magenta); stroke: var(--mana-magenta); }
.vtx.dim { opacity: .26; }
.v-label { font-family: var(--font-display); font-weight: 700; font-size: 34px; fill: var(--fg1); letter-spacing: -.02em; }
.v-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; fill: var(--fg3); }
.puck { transition: transform 1.1s cubic-bezier(.55,.05,.2,1); }
.puck-core { fill: #fff; stroke: var(--mana-violet); stroke-width: 3; transition: fill .7s ease, stroke .7s ease; }
.triangle-viz[data-step="4"] .puck-core { fill: url(#sparkGrad); stroke: #fff; }
.cap-stack { position: relative; min-height: 300px; }
.cap { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.cap.active { opacity: 1; transform: none; pointer-events: auto; }
.cap-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-tag .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--hairline); color: var(--fg1); font-weight: 500; }
.cap-tag .pill .sw { width: 8px; height: 8px; border-radius: 50%; }
.cap-tag .pill.lost { color: var(--fg3); border-style: dashed; }
.cap-tag .pill.lost .sw { background: var(--fg3); }
.cap-h { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.015em; color: var(--fg1); margin: 0 0 12px; }
.cap-body { font-size: 16px; line-height: 1.55; color: var(--fg2); margin: 0; max-width: 480px; }
.tri-rail { display: flex; gap: 8px; margin-top: 28px; max-width: 480px; }
.tri-rail .seg { height: 3px; flex: 1; background: var(--hairline); border-radius: 2px; cursor: pointer; transition: background .4s ease; }
.tri-rail .seg.on { background: var(--mana-violet); }
@media (max-width: 1100px) { .iron-grid { grid-template-columns: 1fr; gap: 40px; } .cap-stack { min-height: 260px; } }

/* ---- LAPTOP FRAME for product screenshots ---- */
.laptop { position: relative; width: 100%; }
.laptop__screen {
  position: relative;
  background: var(--midnight);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 20px;
  box-shadow: 0 30px 70px rgba(23,18,37,.18);
}
.laptop__screen::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 5px; height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #3A2D5E;
}
.laptop__screen > img { display: block; width: 100%; height: auto; border-radius: 6px; }
.laptop__base {
  position: relative;
  margin: 0 -4.5%;
  height: 16px;
  background: #DDD8CE;
  border: 1px solid #CFC9BD;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 50px rgba(23,18,37,.14);
}
.laptop__base::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 7px;
  background: #CFC9BD;
  border-radius: 0 0 9px 9px;
}
.laptop--canvas { max-width: 1080px; margin: 64px auto 0; }
@media (max-width: 700px) {
  .laptop__screen { padding: 10px 10px 12px; border-radius: 12px 12px 0 0; }
  .laptop__base { height: 10px; margin: 0 -3%; }
}

/* Sample-output split (Signal section): laptop mockup beside copy */
.sample-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

/* Mockups spill on small screens — drop the laptop frames entirely on mobile
   and let the surrounding copy run full width. */
@media (max-width: 760px) {
  .laptop { display: none; }
  .sample-split { grid-template-columns: 1fr; }
}
