/* ==========================================================================
   Home page v2 (preview.html). Builds on styles.css: header, footer, buttons
   and price cards come from there unchanged; everything here is prefixed v2-.
   Colours are the existing tokens only.
   ========================================================================== */

.v2 { background: var(--paper); }

.v2-h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-1000);
  margin: 0;
}
.v2-lede {
  margin: 12px 0 0;
  max-width: 60ch;
  color: var(--ink-500);
  font-size: 1.05rem;
  line-height: 1.55;
}
.v2-num { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.02em; }
.v2-sec-head { margin-bottom: 40px; }

/* ---------------------------------------------------------------- Hero */

.v2-hero {
  position: relative;
  overflow: hidden;
  min-height: max(min(100vh, 980px), 820px);
  display: flex;
  flex-direction: column;
  padding: clamp(112px, 15vh, 150px) 0 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
/* The building sits below the copy, centred; the canvas covers the whole hero so
   the cursor can steer it from anywhere. */
.v2-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.v2-hero-inner { position: relative; z-index: 1; width: 100%; pointer-events: none; }

.v2-hero-title {
  margin: 0 auto;
  font-size: clamp(2.3rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink-1000);
  white-space: nowrap;
}
/* Each word rises out of its own mask, one after another. */
.v2-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.08em; margin-bottom: -0.08em; }
.v2-w > span {
  display: inline-block;
  transform: translateY(105%);
  animation: v2-word 0.9s var(--ease-out) calc(0.12s + var(--i) * 0.09s) forwards;
}
/* "lighter." lands heavy, then sheds weight while it turns teal, like a section
   being slimmed to the lightest one that passes. A hidden copy at the final weight
   holds the word's slot, so the headline never re-centres while the visible copy
   thins; the heavy start simply spills a little past the end of the line. */
.v2-w-last { overflow: visible; overflow-y: clip; overflow-clip-margin: 0; }
.v2-hero-title .v2-lighter {
  position: relative;
  animation: v2-word 0.9s var(--ease-out) 0.48s forwards;
}
.v2-lighter-size { visibility: hidden; font-weight: 300; letter-spacing: -0.05em; }
.v2-lighter-ink {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink-1000);
  animation: v2-slim 2s cubic-bezier(0.45, 0, 0.2, 1) 1.3s forwards;
}
.v2-lighter::after {
  /* A thin amber rule draws under the word as it finishes slimming. */
  content: "";
  display: block;
  height: 0.055em;
  margin-top: -0.02em;
  background: var(--amber-500, #F59E0B);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: v2-rule 0.9s var(--ease-out) 2.9s forwards;
}

.v2-hero-sub {
  margin: 24px auto 0;
  max-width: 62rem;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
  color: var(--ink-500);
  opacity: 0;
  animation: v2-rise 0.8s var(--ease-out) 0.85s forwards;
}

@keyframes v2-word { to { transform: none; } }
@keyframes v2-slim {
  to { font-weight: 300; letter-spacing: -0.05em; color: var(--teal-900); }
}
@keyframes v2-rule { to { transform: scaleX(1); } }
@keyframes v2-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes v2-fade { to { opacity: 1; } }

@media (max-width: 900px) {
  .v2-br { display: none; }
  .v2-hero-sub { max-width: 40rem; }
}
@media (max-width: 600px) {
  .v2-hero-title { white-space: normal; }
}


/* ---- Hero: drawing-sheet staging ----
   A blueprint grid over the whole hero, a brighter grid that only shows inside a
   soft spotlight following the cursor, and registration marks in the corners. */
.v2-hero { --mx: 50%; --my: 60%; isolation: isolate; }
.v2-hero::before {
  /* A faint teal bloom behind the building so it does not float on flat paper. */
  content: "";
  position: absolute;
  left: 50%; bottom: -18%;
  width: min(1400px, 130vw); height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(62, 156, 156, 0.16), rgba(62, 156, 156, 0) 70%);
  pointer-events: none;
  z-index: -1;
}
.v2-hero-grid, .v2-hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.v2-hero-grid {
  background:
    linear-gradient(rgba(15, 76, 92, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(15, 76, 92, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(15, 76, 92, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(15, 76, 92, 0.035) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 55%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 55%, #000 30%, transparent 85%);
  opacity: 0;
  animation: v2-fade 1.4s ease 0.1s forwards;
}
.v2-hero-spot {
  background:
    linear-gradient(rgba(217, 119, 6, 0.22) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(217, 119, 6, 0.22) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000 0%, transparent 100%);
          mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.v2-hero.is-pointer .v2-hero-spot { opacity: 1; }

.v2-reg { position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: 0; animation: v2-fade 1s ease 0.6s forwards; }
.v2-reg::before, .v2-reg::after { content: ""; position: absolute; background: var(--teal-500); }
.v2-reg::before { left: 0; right: 0; top: 50%; height: 1px; }
.v2-reg::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.v2-reg-tl { left: 28px; top: 96px; }
.v2-reg-tr { right: 28px; top: 96px; }
.v2-reg-bl { left: 28px; bottom: 28px; }
.v2-reg-br { right: 28px; bottom: 28px; }

.v2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--ink-500);
  opacity: 0;
  animation: v2-rise 0.8s var(--ease-out) 0.05s forwards;
}
.v2-badge-sep { width: 1px; height: 12px; background: var(--line); }
.v2-badge-codes { display: inline; }
.v2-live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
}
.v2-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--amber-500);
  animation: v2-ping 1.8s ease-out infinite;
}
@keyframes v2-ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.v2-hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  pointer-events: auto;
  opacity: 0;
  animation: v2-rise 0.8s var(--ease-out) 1.05s forwards;
}
.v2-hero-btn { min-width: 210px; }
.v2-hero-btn span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.v2-hero-btn:hover span { transform: translateX(4px); }

/* A small hint in the middle of the hero's foot, once the first sweep is done. */
.v2-hero-hint {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-500);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.v2-hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-500); }
.v2-hero.is-settled .v2-hero-hint { opacity: 1; transform: translate(-50%, 0); }
.v2-hero.is-settled .v2-hero-canvas { cursor: pointer; }
.v2-hero:not(.has-live) .v2-hero-hint { bottom: 30px; }

@media (max-width: 760px) {
  .v2-reg { display: none; }
  .v2-hero-badge { font-size: 0.7rem; }
  .v2-badge-sep, .v2-badge-codes { display: none; }
}

/* ---- Hero live strip ----
   Real usage totals along the foot of the hero. A beacon pings, a heartbeat line runs
   beside "in use now", a hairline fills toward the next refresh, and a figure flashes
   amber whenever it changes. */
.v2-pulse {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: min(920px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -34px rgba(6, 36, 48, 0.45);
  text-align: left;
  transform: translateX(-50%);
  animation: v2-pulse-in 0.9s var(--ease-out) both;
}
.v2-pulse[hidden] { display: none; }
@keyframes v2-pulse-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Countdown to the next refresh. */
.v2-pulse-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(15, 76, 92, 0.06); }
.v2-pulse-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal-500), var(--amber-500)); transform-origin: left; transform: scaleX(0); }
.v2-pulse.is-counting .v2-pulse-bar i { animation: v2-countdown 30s linear forwards; }
@keyframes v2-countdown { to { transform: scaleX(1); } }

.v2-pulse-live {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  background: rgba(220, 38, 38, 0.05);
}
.v2-pulse-live > span:last-child { display: grid; line-height: 1.2; }
.v2-pulse-live b { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #B91C1C; }
.v2-pulse-live small { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-500); white-space: nowrap; }
.v2-pulse-beacon { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #DC2626; flex: none; }
.v2-pulse-beacon::before, .v2-pulse-beacon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #DC2626; animation: v2-ring 2s ease-out infinite; }
.v2-pulse-beacon::after { animation-delay: 1s; }
@keyframes v2-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }

.v2-pulse-cell { display: grid; align-content: center; gap: 4px; padding: 12px 18px; border-right: 1px solid var(--line); }
.v2-pulse-cell:last-child { border-right: 0; }
/* "Frames optimised" hidden until it reaches 50 (preview.js): three figures instead of four. */
.v2-pulse-cell[hidden] { display: none; }
.v2-pulse.is-3 { grid-template-columns: auto repeat(3, minmax(0, 1fr)); width: min(780px, calc(100% - 32px)); }
.v2-pulse-k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.v2-pulse-row { display: flex; align-items: center; gap: 10px; }
.v2-pulse-v {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink-1000);
  font-variant-numeric: tabular-nums;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}
.v2-pulse-v.is-bumped { color: var(--amber-600); text-shadow: 0 0 18px rgba(245, 158, 11, 0.45); transition: none; }
.v2-pulse-now .v2-pulse-v { color: var(--teal-900); }
/* A heartbeat trace that keeps running. */
.v2-ecg { width: 64px; height: 22px; flex: none; overflow: visible; }
.v2-ecg path { fill: none; stroke: var(--green-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90 170; animation: v2-ecg 1.8s linear infinite; }
@keyframes v2-ecg { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -170; } }

@media (max-width: 760px) {
  .v2-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); bottom: 14px; }
  .v2-pulse-live { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .v2-pulse-live > span:last-child { display: flex; align-items: baseline; gap: 10px; }
  .v2-pulse-cell { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .v2-pulse-cell:nth-child(even) { border-right: 0; }
  .v2-pulse-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .v2-pulse-v { font-size: 1.2rem; }
  .v2-ecg { width: 44px; }
  .v2-hero.has-live .v2-hero-hint { display: none; }
  .v2-pulse.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-pulse.is-3 .v2-pulse-cell { border-bottom: 0; border-right: 1px solid var(--line); padding: 10px 10px; }
  .v2-pulse.is-3 .v2-pulse-cell:last-child { border-right: 0; }
  .v2-pulse.is-3 .v2-pulse-k { white-space: normal; line-height: 1.25; }
}

/* ---------------------------------------------------------------- Try it
   A full-width optimizer bench on the dark teal: controls, the drawing, results. */

.v2-lab {
  --lab-line: rgba(178, 223, 219, 0.14);
  --lab-text: #D7E6E8;
  --lab-dim: #8FA9AE;
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(42, 127, 127, 0.22), transparent 70%),
    var(--teal-1000);
  color: var(--lab-text);
}
.v2-lab .v2-h2 { color: #FFFFFF; }
.v2-lab .v2-lede { color: var(--lab-dim); }
.v2-lab-head { margin-bottom: 36px; }

.v2-lab-bench {
  margin: 0 clamp(12px, 2.4vw, 40px);
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.v2-lab-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--lab-line);
  font-size: 0.85rem;
  color: var(--lab-dim);
}
.v2-lab-file span { color: var(--lab-text); }
.v2-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  border: 1px solid var(--lab-line);
  border-radius: 6px;
  color: var(--lab-text);
}
.v2-lab-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.v2-lab-status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.v2-lab-status.is-busy::before {
  background: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  animation: v2-blink 0.9s ease-in-out infinite alternate;
}
@keyframes v2-blink { to { opacity: 0.35; } }

.v2-lab-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr) 300px; }

/* Controls */
.v2-lab-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 22px;
  border-right: 1px solid var(--lab-line);
}
.v2-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.v2-field legend, .v2-field-top label { font-size: 0.82rem; color: var(--lab-dim); padding: 0; }
.v2-field legend { margin-bottom: 10px; }
.v2-field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.v2-field-top output { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: #FFFFFF; }
.v2-field-ends { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--lab-dim); opacity: 0.7; }
.v2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.v2-lab input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(to right, var(--amber-500) var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%));
  cursor: pointer;
}
.v2-lab input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--amber-500);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.15);
  transition: box-shadow 0.15s ease;
}
.v2-lab input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--amber-500);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.15);
}
.v2-lab input[type="range"]:hover::-webkit-slider-thumb,
.v2-lab input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.22); }
.v2-lab input[type="range"]:focus-visible { outline: none; }

.v2-seg {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lab-line);
  border-radius: 9px;
  padding: 3px;
}
.v2-seg label { flex: 1; position: relative; }
.v2-seg input { position: absolute; opacity: 0; pointer-events: none; }
.v2-seg span {
  display: block;
  text-align: center;
  padding: 7px 4px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--lab-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.v2-seg input:checked + span { background: var(--teal-800); color: #FFFFFF; }
.v2-seg input:focus-visible + span { outline: 2px solid var(--amber-400); outline-offset: 1px; }

.v2-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.92rem; color: var(--lab-text); }
.v2-switch input { position: absolute; opacity: 0; pointer-events: none; }
.v2-switch-ui {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 40px; height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}
.v2-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.25s var(--ease-out);
}
.v2-switch input:checked ~ .v2-switch-ui { background: var(--amber-500); }
.v2-switch input:checked ~ .v2-switch-ui::after { transform: translateX(18px); }
.v2-switch input:focus-visible ~ .v2-switch-ui { outline: 2px solid var(--amber-400); outline-offset: 2px; }
.v2-crane-cap { border: 0; margin: 12px 0 0; padding: 0; transition: opacity 0.2s ease; }
.v2-crane-cap[disabled] { opacity: 0.3; }
.v2-crane-cap[disabled] span { cursor: not-allowed; }

.v2-go { margin-top: auto; }
.v2-go[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* Drawing */
.v2-lab-stage {
  position: relative;
  min-width: 0;
  min-height: clamp(440px, 36vw, 600px);
  background: var(--teal-1000);
}
/* The canvas fills the whole cell, however tall the controls make the row. */
.v2-lab-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.v2-lab-log {
  position: absolute;
  top: 14px;
  left: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--lab-dim);
  pointer-events: none;
}
.v2-lab-log li { animation: v2-fade 0.3s ease both; opacity: 0; }
.v2-lab-log li.is-done::after { content: " \2713"; color: var(--green-500); }

/* Results */
.v2-lab-out {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--lab-line);
}
.v2-out-block { margin: 0; padding: 18px 22px; border-top: 1px solid var(--lab-line); }
.v2-out-block:first-child { border-top: 0; padding-top: 24px; }
.v2-out-k { display: block; font-size: 0.82rem; color: var(--lab-dim); margin-bottom: 8px; }
.v2-out-big {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--amber-400);
}
.v2-out-big.is-empty { color: rgba(255, 255, 255, 0.16); }
.v2-out-sub { display: block; margin-top: 10px; font-size: 0.86rem; color: var(--lab-text); line-height: 1.45; }

.v2-out-bars { display: grid; gap: 14px; }
.v2-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; font-size: 0.8rem; color: var(--lab-dim); }
.v2-bar-row b { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: #FFFFFF; }
.v2-bar-row.is-best b { color: var(--amber-400); }
.v2-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.v2-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ink-300); transition: width 1.2s var(--ease-out); }
.v2-bar-row.is-best .v2-bar i { background: var(--amber-500); }

.v2-out-conv canvas { display: block; width: 100%; height: 56px; margin-top: 10px; }

.v2-out-sec { display: grid; gap: 12px; }
.v2-out-sec dt { font-size: 0.8rem; color: var(--lab-dim); margin-bottom: 3px; }
.v2-out-sec dd { margin: 0; font-family: var(--font-mono); font-size: 0.84rem; color: #FFFFFF; }
.v2-out-sec small { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--lab-dim); }

.v2-out-time { display: grid; gap: 6px; font-size: 0.8rem; color: var(--lab-dim); }
.v2-out-time div { display: flex; justify-content: space-between; gap: 10px; }
.v2-out-time b { font-family: var(--font-mono); font-weight: 500; }
.v2-out-time .is-ours { color: var(--lab-text); }
.v2-out-time .is-ours b { color: var(--amber-400); }

.v2-lab .v2-note { margin-top: 18px; font-size: 0.8rem; color: var(--lab-dim); }

@media (max-width: 1180px) {
  .v2-lab-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .v2-lab-out {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--lab-line);
  }
  .v2-out-block, .v2-out-block:first-child { border-top: 0; border-left: 1px solid var(--lab-line); padding: 20px; }
  .v2-out-block:first-child { border-left: 0; }
  .v2-out-time { display: none; }
}
@media (max-width: 760px) {
  .v2-lab-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-lab-stage { order: -1; border-bottom: 1px solid var(--lab-line); }
  .v2-lab-stage { min-height: 270px; }
  .v2-lab-log { top: 10px; left: 12px; font-size: 0.7rem; }
  .v2-lab-log li:not(:last-child) { display: none; }
  .v2-lab-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; border-right: 0; padding: 20px 16px; }
  .v2-lab-controls > .v2-field:nth-child(1), .v2-lab-controls > .v2-field:nth-child(2), .v2-go { grid-column: 1 / -1; }
  .v2-lab-out { grid-template-columns: 1fr 1fr; }
  .v2-out-block, .v2-out-block:first-child { border-left: 0; border-top: 1px solid var(--lab-line); padding: 16px; }
  .v2-out-save, .v2-out-bars { grid-column: 1 / -1; }
  .v2-out-save { border-top: 0 !important; }
  .v2-lab-bar { padding: 10px 14px; }
  .v2-lab-file { display: none; }
}
@media (max-width: 420px) {
  .v2-lab-controls { grid-template-columns: 1fr; }
  .v2-lab-controls > * { grid-column: 1 / -1; }
  .v2-lab-out { grid-template-columns: 1fr; }
  .v2-out-block { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Questions */

/* Lets <details> animate to its content's height where the browser supports it;
   elsewhere it simply opens. */
:root { interpolate-size: allow-keywords; }

.v2-faq-sec { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.v2-faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.v2-faq-intro { position: sticky; top: 100px; }

.v2-ask {
  margin-top: 32px;
  padding: 26px;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(42, 127, 127, 0.35), transparent 70%),
    var(--teal-1000);
  color: #D7E6E8;
  box-shadow: 0 30px 60px -36px rgba(6, 36, 48, 0.6);
}
.v2-ask-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-400);
}
.v2-ask-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.v2-ask h3 { margin: 0; font-size: 1.15rem; font-weight: 600; color: #FFFFFF; }
.v2-ask p { margin: 6px 0 20px; font-size: 0.9rem; color: #8FA9AE; }
.v2-ask-mail { display: block; margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: #B2DFDB; }
.v2-ask-mail:hover { color: var(--amber-400); }

.v2-faq { display: grid; gap: 10px; }
.v2-q {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFFFF;
  transition: border-color 0.25s ease, box-shadow 0.35s var(--ease-out), background 0.25s ease;
}
.v2-q:hover { border-color: var(--teal-200); }
.v2-q[open] { border-color: var(--teal-200); box-shadow: 0 24px 50px -32px rgba(15, 76, 92, 0.35); }
.v2-q summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.v2-q summary::-webkit-details-marker { display: none; }
.v2-q summary:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; border-radius: 18px; }
.v2-q-num { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--ink-300); transition: color 0.25s ease; }
.v2-q[open] .v2-q-num { color: var(--amber-600); }
.v2-q-head { display: grid; gap: 4px; }
.v2-q-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-700); }
.v2-q-text { font-size: 1.06rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-1000); }
.v2-q-icon {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease-out);
}
.v2-q-icon::before, .v2-q-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 1px;
  background: var(--ink-700);
  transition: transform 0.35s var(--ease-out);
}
.v2-q-icon::after { transform: rotate(90deg); }
.v2-q[open] .v2-q-icon { background: var(--amber-500); border-color: var(--amber-500); transform: rotate(180deg); }
.v2-q[open] .v2-q-icon::before, .v2-q[open] .v2-q-icon::after { background: var(--ink-1000); }
.v2-q[open] .v2-q-icon::after { transform: rotate(0deg); }

.v2-q::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}
.v2-q[open]::details-content { block-size: auto; }
.v2-q-body { padding: 0 22px 22px 57px; }
.v2-q-body p { margin: 0; max-width: 62ch; font-size: 0.97rem; line-height: 1.65; color: var(--ink-500); }
.v2-q-body a { color: var(--teal-900); text-decoration: underline; text-decoration-color: var(--amber-500); text-underline-offset: 3px; }
.v2-q-body code { font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: var(--paper-2); color: var(--ink-900); }

@media (max-width: 900px) {
  .v2-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-faq-intro { position: static; }
  .v2-ask { max-width: 460px; }
}
@media (max-width: 520px) {
  .v2-q summary { gap: 12px; padding: 18px 16px; }
  .v2-q-body { padding: 0 16px 18px; }
  .v2-q-text { font-size: 1rem; }
}

/* ---------------------------------------------------------------- Questions: motion */

/* Topic filter, built by preview.js from the cards' tags. */
.v2-faq-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.v2-faq-filter button {
  position: relative;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: #FFFFFF;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink-500);
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease, border-color 0.2s ease, transform 0.25s var(--ease-spring);
}
.v2-faq-filter button:hover { color: var(--ink-1000); border-color: var(--teal-300); transform: translateY(-1px); }
.v2-faq-filter button[aria-pressed="true"] { background: var(--teal-1000); border-color: var(--teal-1000); color: #FFFFFF; }
.v2-faq-filter button:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.v2-q.is-hidden { display: none; }
.v2-q.is-entering { animation: v2-q-in 0.45s var(--ease-out) both; }
@keyframes v2-q-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

/* Cards rise in one after another the first time the list scrolls into view. */
.v2-faq.will-reveal .v2-q { opacity: 0; transform: translateY(18px); }
.v2-faq.is-in .v2-q { animation: v2-q-in 0.6s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 70ms); opacity: 1; transform: none; }

/* A soft spotlight follows the cursor across the card under it. */
.v2-q { position: relative; isolation: isolate; overflow: hidden; }
.v2-q::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 168, 168, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.v2-q:hover::before { opacity: 1; }
/* An amber bar grows down the left edge of the open card. */
.v2-q::after {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--amber-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.v2-q[open]::after { transform: scaleY(1); }
.v2-q[open] .v2-q-body p { animation: v2-ans 0.5s var(--ease-out) both 0.08s; }
@keyframes v2-ans { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }

/* The side card as a small live chat. */
.v2-ask { position: relative; overflow: hidden; }
.v2-chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(178, 223, 219, 0.14); }
.v2-chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 25%; box-shadow: 0 0 0 2px var(--teal-1000), 0 0 0 3.5px var(--green-500); }
.v2-chat-head b { display: block; font-size: 0.95rem; color: #FFFFFF; }
.v2-chat-status { font-size: 0.78rem; color: #8FA9AE; }
.v2-chat-log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 236px;
  margin: 14px 0 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%);
  mask-image: linear-gradient(180deg, transparent 0, #000 28%);
}
.v2-bubble {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  animation: v2-bubble 0.4s var(--ease-spring) both;
  transform-origin: bottom left;
}
.v2-bubble.is-q { align-self: flex-end; background: var(--amber-500); color: var(--ink-1000); border-bottom-right-radius: 5px; transform-origin: bottom right; }
.v2-bubble.is-a { align-self: flex-start; background: rgba(255, 255, 255, 0.08); color: #E0F2F1; border-bottom-left-radius: 5px; }
.v2-bubble.is-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.v2-bubble.is-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8FA9AE; animation: v2-dot 1s ease-in-out infinite; }
.v2-bubble.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.v2-bubble.is-typing i:nth-child(3) { animation-delay: 0.3s; }
.v2-bubble.is-leaving { animation: v2-bubble-out 0.35s ease both; }
@keyframes v2-bubble { from { opacity: 0; transform: translateY(10px) scale(0.85); } }
@keyframes v2-bubble-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes v2-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------------------------------------------------------------- Contact: motion */

.v2-clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #FFFFFF;
  font-size: 0.88rem;
  color: var(--ink-700);
}
.v2-clock-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); }
.v2-clock.is-open .v2-clock-dot { background: var(--green-500); }
.v2-clock.is-open .v2-clock-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  animation: v2-ping 1.8s ease-out infinite;
}
@keyframes v2-ping { from { transform: scale(0.5); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
.v2-clock time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-1000); }

/* The contact form: floating labels, icons that hop on focus, ticks that pop in when a
   field is valid, a shake for missing answers, and a small confetti burst on send. */
.v2-pform::after { display: none; }       /* the ticks show progress here */
.v2-pform { overflow: visible; gap: 20px; padding: clamp(24px, 3.6vw, 38px); border-radius: 24px; background: #FFFFFF; }
.v2-pform-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.v2-pform-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 25%; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--teal-200); }
.v2-pform-head b { display: block; font-size: 1.02rem; color: var(--ink-1000); }
.v2-pform-head span { font-size: 0.84rem; color: var(--ink-500); }

.v2-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.v2-fl { position: relative; }
.v2-fl input, .v2-fl textarea {
  display: block;
  width: 100%;
  padding: 24px 40px 9px 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink-1000);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.v2-fl textarea { min-height: 130px; resize: vertical; line-height: 1.55; padding-top: 28px; }
.v2-fl input:focus, .v2-fl textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 4px var(--amber-100); background: #FFFFFF; }
.v2-fl label {
  position: absolute;
  left: 46px;
  top: 17px;
  font-size: 0.98rem;
  color: var(--ink-400);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease-out), color 0.2s ease;
}
.v2-fl label i { font-style: normal; color: var(--ink-300); }
.v2-fl input:focus + label, .v2-fl input:not(:placeholder-shown) + label,
.v2-fl textarea:focus + label, .v2-fl textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.76);
  color: var(--teal-800);
}
.v2-fl-ic {
  position: absolute;
  left: 15px;
  top: 17px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.2s ease;
}
.v2-fl:focus-within .v2-fl-ic { stroke: var(--amber-600); animation: v2-hop 0.45s var(--ease-spring); }
@keyframes v2-hop { 40% { transform: translateY(-4px) rotate(-8deg); } }
/* The tick: a green disc that pops in once the field's answer looks right. */
.v2-fl-ok {
  position: absolute;
  right: 13px;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-500);
  transform: scale(0);
  transition: transform 0.35s var(--ease-spring);
}
.v2-fl-ok::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.v2-fl.is-ok .v2-fl-ok { transform: scale(1); }
.v2-fl.is-ok input, .v2-fl.is-ok textarea { border-color: rgba(16, 185, 129, 0.45); }
.v2-fl.is-bad input, .v2-fl.is-bad textarea { border-color: #F87171; box-shadow: 0 0 0 4px #FEE2E2; }
.v2-fl.is-bad { animation: v2-shake 0.4s ease; }
@keyframes v2-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.v2-pform .v2-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v2-pform .v2-topics-k { margin-right: 4px; font-size: 0.9rem; color: var(--ink-500); }
.v2-pform .v2-topics button {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: #FFFFFF;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-spring);
}
.v2-pform .v2-topics button:hover { transform: translateY(-2px); border-color: var(--teal-300); }
.v2-pform .v2-topics button[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #FFFFFF; animation: v2-pop 0.35s var(--ease-spring); }
@keyframes v2-pop { 50% { transform: scale(1.1); } }
.v2-pform .v2-topics button:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }

.v2-pform-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.v2-psend { position: relative; gap: 10px; padding: 14px 26px; min-width: 190px; transition: background 0.3s ease, transform 0.15s ease; }
/* The plane is drawn in CSS so script.js can swap the button's text freely. */
.v2-psend::after {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.v2-psend:hover::after { transform: translate(3px, -3px); }
.v2-psend[disabled]::after { animation: v2-wiggle 0.6s ease-in-out infinite alternate; }
@keyframes v2-wiggle { from { transform: translate(-2px, 2px); } to { transform: translate(3px, -3px); } }
.v2-pform.is-sent .v2-psend { background: var(--green-500); border-color: var(--green-500); color: #FFFFFF; }
.v2-pform.is-sent .v2-psend::after { animation: v2-fly 0.9s var(--ease-in-out) both; }
@keyframes v2-fly { 35% { transform: translate(-4px, 3px) rotate(8deg); } 100% { transform: translate(120px, -60px) rotate(-18deg) scale(0.5); opacity: 0; } }
.v2-pform-foot .form-status { flex: 1; min-width: 200px; min-height: 0; }

.v2-confetti { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.v2-confetti i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: v2-burst 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes v2-burst {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

@media (max-width: 600px) {
  .v2-pgrid { grid-template-columns: 1fr; }
}


@media (max-width: 520px) {
  .v2-chat-log { height: 210px; }
}

/* ---------------------------------------------------------------- Scope
   A marked-up general arrangement. The drawing sits between two schedules: teal
   numbered bubbles are what the optimizer designs, red diamond bubbles stay with the
   engineer. Pointing at a line lights its part on the drawing and dims the rest. */

.v2-scope-sec { padding: clamp(72px, 9vw, 120px) 0; }
.v2-scope-head { max-width: 760px; }

.v2-ga {
  --yes: var(--teal-700);
  --yes-ink: var(--teal-900);
  --no: #DC2626;
  --no-ink: #991B1B;
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 0 56px;
  align-items: center;
}
/* Desktop: scroll steps through the items while the block stays put under the header. */
@media (min-width: 901px) {
  .v2-ga { position: sticky; top: max(84px, calc((100vh - var(--ga-h, 600px)) / 2 + 30px)); }
  .v2-ga-index li { cursor: pointer; }
}

/* Left: ten titles in two groups, short enough to sit beside the drawing. */
.v2-ga-index { display: grid; gap: 4px; padding: 4px 0 24px; }
.v2-ga-index ol { display: grid; gap: 1px; margin: 0 0 12px; padding: 0; list-style: none; }
.v2-ga-index ol:last-child { margin-bottom: 0; }
.v2-ga-gh { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink-1000); }
.v2-ga-gh.is-no { color: var(--no-ink); }
.v2-ga-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2-ga-gh.is-yes .v2-ga-chip { color: var(--yes-ink); background: rgba(42, 127, 127, 0.1); }
.v2-ga-gh.is-no .v2-ga-chip { color: var(--no-ink); background: rgba(220, 38, 38, 0.08); }

.v2-ga-index li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.v2-ga-index li b { font-size: 0.95rem; font-weight: 600; color: var(--ink-1000); line-height: 1.3; }
.v2-ga-donts li b { color: var(--no-ink); }
.v2-ga.is-focus .v2-ga-index li { opacity: 0.55; }
.v2-ga.is-focus .v2-ga-index li.is-on { opacity: 1; }
.v2-ga-does li.is-on { background: rgba(42, 127, 127, 0.08); }
.v2-ga-donts li.is-on { background: rgba(220, 38, 38, 0.06); }
.v2-ga-index li:focus-visible { box-shadow: 0 0 0 2px var(--amber-500); }
.v2-bub {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
}
.v2-ga-does .v2-bub { border-radius: 50%; background: var(--yes); }
.v2-ga-donts .v2-bub { border-radius: 6px; background: var(--no); transform: rotate(45deg) scale(0.84); font-size: 0; }
.v2-ga-donts .v2-bub::after { content: attr(data-l); font-size: 0.76rem; transform: rotate(-45deg) scale(1.18); }

.v2-ga-story, .v2-ga-tip { display: none; }

/* The sheet */
.v2-ga-sheet { margin: 0; padding: 0; }
.v2-ga-svg { display: block; width: 100%; height: auto; border-radius: 16px; background:
    linear-gradient(rgba(15, 76, 92, 0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(15, 76, 92, 0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    #FFFFFF;
  box-shadow: 0 30px 60px -40px rgba(6, 36, 48, 0.45);
}
.ga-border { fill: none; stroke: var(--teal-300); stroke-width: 1; }
.ga-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-400); }
.ga-ground { stroke: var(--ink-300); stroke-width: 1.2; stroke-dasharray: 2 4; }
.ga-mem { fill: rgba(42, 127, 127, 0.14); stroke: var(--yes-ink); stroke-width: 1.6; stroke-linejoin: round; }
.ga-sec { fill: none; stroke: var(--no); stroke-width: 2.4; stroke-linecap: round; }
.ga-defl { fill: none; stroke: var(--no); stroke-width: 1.6; stroke-dasharray: 6 5; }
.ga-arrowline { stroke: var(--no); stroke-width: 1.4; }
#ga-arrow path { fill: var(--no); }
.ga-ring { fill: rgba(220, 38, 38, 0.06); stroke: var(--no); stroke-width: 1.6; stroke-dasharray: 5 4; }
.ga-plate { fill: var(--no); }
.ga-bolt { stroke: var(--no); stroke-width: 2; stroke-linecap: round; }
.ga-fdn { fill: url(#ga-hatch); stroke: var(--no); stroke-width: 1.4; stroke-dasharray: 5 4; }
#ga-hatch path { stroke: rgba(220, 38, 38, 0.45); stroke-width: 1.2; }
.ga-tagbox { fill: #FFFFFF; stroke: var(--yes); stroke-width: 1.2; }
.ga-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--yes-ink); letter-spacing: 0.04em; }
.ga-tag-sm { font-size: 10px; font-weight: 400; }
.ga-tag-no { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--no-ink); letter-spacing: 0.04em; }
.ga-leader { stroke: var(--yes); stroke-width: 1; stroke-dasharray: 3 3; }
.ga-stamp { fill: rgba(220, 38, 38, 0.04); stroke: var(--no); stroke-width: 1.2; }
.ga-sign { stroke: var(--no); stroke-width: 1; stroke-dasharray: 3 3; }
.ga-b text { font-family: var(--font-mono); font-size: 12px; font-weight: 700; fill: #FFFFFF; text-anchor: middle; }
.ga-b-yes circle { fill: var(--yes); }
.ga-b-no rect { fill: var(--no); }

/* Focus: the pointed part lights, the rest steps back. */
.ga-part, .ga-b { transition: opacity 0.3s ease, filter 0.3s ease; transform-box: fill-box; transform-origin: center; }
.v2-ga.is-focus .ga-part, .v2-ga.is-focus .ga-b { opacity: 0.18; }
.v2-ga.is-focus .ga-part.is-on, .v2-ga.is-focus .ga-b.is-on { opacity: 1; }
.ga-yes.is-on { filter: drop-shadow(0 0 8px rgba(42, 127, 127, 0.55)); }
.ga-no.is-on { filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5)); }
.ga-b.is-on { animation: ga-pop 0.9s var(--ease-out) infinite alternate; }
@keyframes ga-pop { to { transform: scale(1.18); } }

.v2-lg-yes { border-radius: 50%; background: var(--teal-700); }
.v2-lg-no { border-radius: 3px; background: #DC2626; transform: rotate(45deg) scale(0.85); }
.v2-ga-foot { margin: 28px auto 0; max-width: 760px; text-align: center; font-size: 0.86rem; line-height: 1.6; color: var(--ink-500); }

/* The caption on the sheet: what is playing, sliding in with each change. */
.v2-ga-cap {
  margin-top: 14px;
  height: 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px -28px rgba(6, 36, 48, 0.55);
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
}
.v2-ga-cap.is-in { animation: ga-cap-in 0.5s var(--ease-out) forwards; }
@keyframes ga-cap-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.v2-ga-cap-chip { grid-row: 1 / span 2; align-self: center; padding: 3px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.v2-ga-cap.is-yes .v2-ga-cap-chip { color: var(--yes-ink); background: rgba(42, 127, 127, 0.12); }
.v2-ga-cap.is-no .v2-ga-cap-chip { color: var(--no-ink); background: rgba(220, 38, 38, 0.1); }
.v2-ga-cap b { font-size: 0.92rem; color: var(--ink-1000); }
.v2-ga-cap.is-no b { color: var(--no-ink); }
.v2-ga-cap-t { grid-column: 2; font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; }

/* ---- Effects. Hidden until their item is in focus; .fx-run restarts them each time. */
.fx > *, .fx-ripple, .fx-signature, .fx-approved { opacity: 0; }
.fx-scanline { stroke: var(--yes); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(42, 127, 127, 0.9)); }
.fx-chip { fill: var(--teal-1000); }
.fx-chip-t { font-family: var(--font-mono); font-size: 12px; font-weight: 700; fill: #FFFFFF; text-anchor: middle; }
.fx-chip-s { font-size: 10px; font-weight: 500; fill: var(--amber-400, #FBBF24); }
.fx-comet { fill: none; stroke: var(--amber-500); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 70 600; stroke-dashoffset: 70; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9)); }
.fx-sweep { fill: var(--yes); filter: drop-shadow(0 0 10px rgba(42, 127, 127, 0.9)); }
.fx-route { fill: none; stroke: var(--yes); stroke-width: 1.2; stroke-dasharray: 4 5; }
.fx-pkt { fill: var(--amber-500); offset-path: path("M160 78C230 78 250 150 300 160"); offset-rotate: 0deg; }
.fx-back { fill: var(--yes); }
.fx-ripple { fill: none; stroke: var(--no); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.fx-signature { fill: none; stroke: var(--no-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.fx-approved rect { fill: none; stroke: var(--no); stroke-width: 2; }
.fx-approved text { font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; fill: var(--no); text-anchor: middle; }
.fx-approved { transform-box: fill-box; transform-origin: center; }
.fx-drop, .fx-bolt, .fx-rise, .fx-sag, .ga-sec { transform-box: fill-box; }
.fx-sag { transform-origin: top center; }

.v2-ga.fx-run[data-on="d1"] .fx-d1 { animation: fx-climb 1.6s var(--ease-out) both; }
.v2-ga.fx-run[data-on="d1"] .fx-d1b { animation: fx-slide-in 0.6s 0.9s var(--ease-out) both; }
.v2-ga.fx-run[data-on="d1"] [data-k="d1"] .ga-mem { animation: fx-fill 1.6s ease both; }
.v2-ga.fx-run[data-on="d2"] .fx-comet { animation: fx-comet 1.5s cubic-bezier(.5, 0, .3, 1) both; }
.v2-ga.fx-run[data-on="d2"] [data-k="d2"] .ga-mem { animation: fx-fill 1.5s 0.2s ease both; }
.v2-ga.fx-run[data-on="d3"] .fx-d3 { animation: fx-sweep 1.4s cubic-bezier(.6, 0, .3, 1) both; }
.v2-ga.fx-run[data-on="d3"] [data-k="d3"] .ga-tagbox { animation: fx-pulse 0.5s 1.3s ease both; }
.v2-ga.fx-run[data-on="d4"] .fx-d4 { animation: fx-slide-in 0.5s var(--ease-out) both; }
.v2-ga.fx-run[data-on="d4"] [data-k="d1"] .ga-mem, .v2-ga.fx-run[data-on="d4"] [data-k="d2"] .ga-mem { animation: fx-slim 1.6s 0.3s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
.v2-ga[data-on="d4"] .ga-part[data-k="d1"], .v2-ga[data-on="d4"] .ga-part[data-k="d2"] { opacity: 0.85; }
.v2-ga.fx-run[data-on="d5"] .fx-route { animation: fx-fade 0.3s both; }
.v2-ga.fx-run[data-on="d5"] .fx-out { animation: fx-go 1.1s var(--d, 0s) ease-in-out 2 both; }
.v2-ga.fx-run[data-on="d5"] .fx-back { animation: fx-return 1.1s calc(var(--d, 0s) + 1.1s) ease-in-out 2 both; }
.v2-ga.fx-run[data-on="n1"] .fx-ripple { animation: fx-ripple 1.2s var(--d, 0s) ease-out 2 both; }
.v2-ga.fx-run[data-on="n2"] .fx-drop { animation: fx-drop 0.8s cubic-bezier(.3, 1.6, .5, 1) both; }
.v2-ga.fx-run[data-on="n2"] .fx-bolt { animation: fx-bolt 0.6s 0.5s var(--ease-out) both; }
.v2-ga.fx-run[data-on="n3"] .fx-rise { animation: fx-rise 0.9s cubic-bezier(.3, 1.4, .5, 1) both; }
.v2-ga.fx-run[data-on="n4"] .fx-sag { animation: fx-sag 1.6s ease-out both; }
.v2-ga.fx-run[data-on="n5"] .ga-sec { animation: fx-pop 0.35s calc(var(--i) * 0.06s) cubic-bezier(.3, 1.8, .5, 1) both; transform-origin: center; }
.v2-ga.fx-run[data-on="n6"] .fx-signature { animation: fx-sign 1.1s ease-out both; }
.v2-ga.fx-run[data-on="n6"] .fx-approved { animation: fx-stamp 0.45s 1s cubic-bezier(.2, 1.4, .4, 1) both; }

@keyframes fx-climb { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-190px); } }
@keyframes fx-fill { 0% { fill: rgba(42, 127, 127, 0.04); } 60% { fill: rgba(42, 127, 127, 0.45); } 100% { fill: rgba(42, 127, 127, 0.22); } }
@keyframes fx-slide-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes fx-comet { 0% { opacity: 1; stroke-dashoffset: 70; } 90% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -480; } }
@keyframes fx-sweep { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(530px); } }
@keyframes fx-pulse { 50% { stroke-width: 3; } }
@keyframes fx-slim { 0% { transform: scale(1.06, 1.06); } 100% { transform: scale(1, 1); } }
@keyframes fx-fade { to { opacity: 1; } }
@keyframes fx-go { 0% { opacity: 0; offset-distance: 0%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; } }
@keyframes fx-return { 0% { opacity: 0; offset-distance: 100%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; offset-distance: 0%; } }
@keyframes fx-ripple { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes fx-drop { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-bolt { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-sag { 0% { transform: scaleY(0.1); } 35% { transform: scaleY(2.2); } 55% { transform: scaleY(0.7); } 75% { transform: scaleY(1.3); } 100% { transform: scaleY(1); } }
@keyframes fx-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes fx-sign { 0% { opacity: 1; stroke-dashoffset: 220; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes fx-stamp { from { opacity: 0; transform: scale(2.4) rotate(-14deg); } to { opacity: 1; transform: rotate(-8deg); } }

@media (max-width: 900px) {
  /* Phone and tablet, like stories: segments over the drawing fill as it plays each item
     in turn; tap the right of the drawing for the next, the left for the previous, or
     swipe. The titles become a strip of chips under it. */
  .v2-ga { grid-template-columns: minmax(0, 1fr); }
  .v2-ga-sheet { grid-row: 1; }
  .v2-ga-index { grid-row: 2; display: flex; gap: 8px; margin: 12px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .v2-ga-index::-webkit-scrollbar { display: none; }
  .v2-ga-gh { display: none; }
  .v2-ga-index ol { display: contents; }
  .v2-ga-index li { flex: none; scroll-snap-align: center; padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; }
  .v2-ga-index li b { font-size: 0.84rem; white-space: nowrap; }
  .v2-ga.is-focus .v2-ga-index li { opacity: 1; }
  .v2-ga-does li.is-on { background: var(--teal-900); border-color: var(--teal-900); }
  .v2-ga-does li.is-on b { color: #FFFFFF; }
  .v2-ga-donts li.is-on { background: var(--no); border-color: var(--no); }
  .v2-ga-donts li.is-on b { color: #FFFFFF; }
  .v2-ga-index li.is-on .v2-bub { background: #FFFFFF; color: var(--teal-900); }
  .v2-ga-donts li.is-on .v2-bub::after { color: var(--no); }
  .v2-bub { width: 22px; height: 22px; font-size: 0.7rem; }
  .v2-ga-story { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0 0 8px; }
  .v2-ga-story i { position: relative; height: 3px; border-radius: 2px; background: rgba(15, 76, 92, 0.15); overflow: hidden; }
  .v2-ga-story i::after { content: ""; position: absolute; inset: 0; background: var(--teal-700); transform-origin: left; transform: scaleX(0); }
  .v2-ga-story i.is-done::after { transform: scaleX(1); }
  .v2-ga-story i.is-no::after { background: var(--no); }
  .v2-ga-story i.is-run::after { animation: ga-story var(--dur, 3.4s) linear forwards; }
  .v2-ga-story.is-paused i.is-run::after { animation-play-state: paused; }
  @keyframes ga-story { to { transform: scaleX(1); } }
  .v2-ga-svg { touch-action: pan-y; cursor: pointer; }
  .v2-ga-cap { margin-top: 10px; height: auto; min-height: 76px; align-items: start; }
  .v2-ga-tip { display: block; grid-row: 3; margin: 6px 0 0; text-align: center; font-size: 0.78rem; color: var(--ink-400); }
}

/* ---------------------------------------------------------------- Frame check band */
.v2-fc-band { padding: clamp(56px, 7vw, 88px) 0; background: linear-gradient(120deg, var(--teal-900), var(--teal-1000)); color: #D7E6E8; position: relative; overflow: hidden; }
.v2-fc-band::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(rgba(178, 223, 219, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(178, 223, 219, 0.08) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.v2-fc-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.v2-fc-band .v2-h2 { color: #FFFFFF; }
.v2-fc-band .v2-lede { color: #8FA9AE; }
.v2-fc-band .v2-eyebrow { color: var(--amber-400); }
.v2-fc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-size: 1.02rem; box-shadow: 0 18px 40px -18px rgba(245, 158, 11, 0.7); }
@media (max-width: 640px) { .v2-fc-btn { width: 100%; justify-content: center; } }

/* ---------------------------------------------------------------- Proof */

.v2-proof {
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(42, 127, 127, 0.25), transparent 70%),
    var(--teal-1000);
  color: #D7E6E8;
}
.v2-proof .v2-h2 { color: #FFFFFF; }
.v2-proof .v2-lede { color: #8FA9AE; }
.v2-proof-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.v2-more {
  display: inline-flex;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(178, 223, 219, 0.25);
  border-radius: 100px;
  color: #FFFFFF;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.v2-more:hover { border-color: var(--amber-500); background: rgba(245, 158, 11, 0.08); color: #FFFFFF; }

.v2-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.v2-reel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
/* The featured recording runs the full width, its notes beside it. */
.v2-reel-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 14px;
  border: 1px solid rgba(178, 223, 219, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}
.v2-reel .v2-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #031820;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.v2-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.v2-reel:hover img { transform: scale(1.035); }
.v2-reel .v2-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.22), var(--shadow-amber);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-spring);
}
.v2-reel .v2-play::after {
  content: "";
  position: absolute;
  left: 24px; top: 19px;
  border-left: 17px solid var(--ink-1000);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.v2-reel:hover .v2-play, .v2-reel:focus-visible .v2-play { opacity: 1; transform: none; }
.v2-reel:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 6px; border-radius: 18px; }
.v2-reel-info { display: grid; gap: 8px; padding: 0 4px; }
.v2-reel-main .v2-reel-info { padding: 10px 24px 10px 0; gap: 12px; }
.v2-reel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-reel-tags span {
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(178, 223, 219, 0.22);
  font-size: 0.75rem;
  color: #B2DFDB;
}
.v2-reel-fig { font-family: var(--font-mono); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--amber-400); }
.v2-reel-main .v2-reel-fig { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.v2-reel .v2-video-title { color: #E0F2F1; font-size: 1rem; line-height: 1.45; }
.v2-reel-main .v2-video-title { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #FFFFFF; }
.v2-reel-cta { margin-top: 10px; font-size: 0.9rem; color: var(--amber-400); }
.v2-reel-cta span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.v2-reel:hover .v2-reel-cta span { transform: translateX(4px); }
.v2-reel .v2-video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
@media (hover: none) { .v2-reel .v2-play { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .v2-reels { grid-template-columns: minmax(0, 1fr); }
  .v2-reel-main { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 16px; }
  .v2-reel-main .v2-reel-info { padding: 4px 8px 12px; }
}

/* ---------------------------------------------------------------- Trusted by
   Two rows of partner logos drifting in opposite directions (pause on hover), with
   soft fades at the edges, then testimonial cards. */

.v2-trust { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.v2-trust-head { margin-bottom: 36px; }
.v2-trust-sample { margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--amber-700); }

.v2-marquee { display: grid; gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.v2-marquee-row { overflow: hidden; }
.v2-marquee-track { display: flex; gap: 16px; width: max-content; animation: v2-marquee var(--dur, 40s) linear infinite; }
.v2-marquee-row.is-reverse .v2-marquee-track { animation-direction: reverse; }
.v2-marquee:hover .v2-marquee-track { animation-play-state: paused; }
@keyframes v2-marquee { to { transform: translateX(calc(-50% - 8px)); } }
.v2-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 200px;
  height: 84px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.v2-logo img { max-width: 100%; max-height: 44px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s ease, opacity 0.3s ease; }
.v2-logo:hover { border-color: var(--teal-300); box-shadow: 0 16px 34px -24px rgba(6, 36, 48, 0.45); transform: translateY(-2px); }
.v2-logo:hover img { filter: none; opacity: 1; }
.v2-logo-ph { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-300); border-style: dashed; }

.v2-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.v2-quotes:empty { display: none; }
.v2-quote {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: space-between;
  margin: 0;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #FFFFFF;
}
.v2-quote::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--teal-100); }
.v2-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.4; color: var(--ink-900); }
.v2-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink-500); }
.v2-quote figcaption b { display: block; color: var(--ink-1000); font-weight: 600; }
.v2-quote-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-900); color: #FFFFFF; font-weight: 600; font-size: 0.85rem; overflow: hidden; flex: none; }
.v2-quote-av img { width: 100%; height: 100%; object-fit: cover; }
.v2-quote.is-ph { border-style: dashed; }

@media (max-width: 900px) { .v2-quotes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .v2-logo { width: 150px; height: 68px; } }

/* ---------------------------------------------------------------- Founder */

.v2-founder-sec { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.v2-founder {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
/* Story on the left, portrait on the right; on phones the portrait leads. */
.v2-founder-body { order: 1; }
.v2-portrait { order: 2; justify-self: end; width: 100%; }
.v2-portrait { position: relative; margin: 0; max-width: 460px; }
/* A drawing-sheet border offset behind the photo, with corner ticks. */
.v2-portrait::before {
  content: "";
  position: absolute;
  inset: 22px 22px -22px -22px;
  border: 1px solid var(--teal-300);
  border-radius: 26px;
  background:
    radial-gradient(circle, rgba(15, 76, 92, 0.16) 1px, transparent 1.5px) 0 0 / 14px 14px;
}
.v2-portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-800), var(--teal-1000));
  box-shadow: 0 40px 80px -40px rgba(6, 36, 48, 0.55);
}
.v2-portrait-mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.85);
}
.v2-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.2) contrast(1.04);
  transition: filter 0.6s ease;
}
.v2-portrait:hover .v2-portrait-img { filter: none; }
/* The portrait turns a little toward the cursor, like the hero building: preview.js
   eases --rx/--ry (degrees) and --px/--py (-1..1) as the pointer moves. The photo
   drifts against the tilt and the drawing-sheet border behind it the other way, so
   the three layers read at different depths. */
.v2-portrait { --rx: 0; --ry: 0; --px: 0; --py: 0; perspective: 1100px; }
.v2-portrait-frame { transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)); transform-style: preserve-3d; will-change: transform; }
.v2-portrait-img { transform: scale(1.08) translate(calc(var(--px) * -2%), calc(var(--py) * -2%)); }
.v2-portrait::before { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -10px)); }
.v2-portrait-tag { transform: translate(calc(var(--px) * 14px), calc(var(--py) * 10px)); }
.v2-portrait-tag {
  position: absolute;
  right: -18px;
  bottom: 34px;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgba(6, 36, 48, 0.4);
  font-size: 0.82rem;
  color: var(--ink-500);
}
.v2-portrait-tag span:first-child { font-weight: 600; color: var(--ink-1000); }

.v2-founder-name {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink-1000);
}
.v2-founder-role { margin: 14px 0 0; font-size: 1.05rem; color: var(--ink-500); }
.v2-founder-quote { margin: 34px 0 0; padding-left: 22px; border-left: 2px solid var(--amber-500); }
.v2-founder-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink-900);
}
.v2-founder-bio { margin: 24px 0 0; max-width: 56ch; font-size: 1rem; line-height: 1.65; color: var(--ink-500); }
.v2-founder-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.v2-founder-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.v2-founder-facts dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; color: var(--teal-900); }
.v2-founder-facts dt { font-size: 0.85rem; line-height: 1.4; color: var(--ink-500); }

@media (max-width: 860px) {
  .v2-founder { grid-template-columns: minmax(0, 1fr); }
  .v2-portrait { order: 0; justify-self: start; max-width: 360px; margin: 0 auto 0 0; }
}
@media (max-width: 480px) {
  .v2-portrait { margin-left: 22px; max-width: calc(100% - 22px); }
  .v2-founder-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .v2-founder-facts div { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 12px; }
}

/* ---------------------------------------------------------------- Pricing */

.v2-pricing { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.v2-pricing-head { text-align: center; }
.v2-pricing-head .v2-lede { margin-left: auto; margin-right: auto; }

.v2-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
/* The console decides how many cards there are (2 to 4); the grid follows. */
.v2-plans[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: 0 auto; }
.v2-plans[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.v2-plans[data-count="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.v2-plan-ask { font-size: 1.6rem; }
.v2-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #FFFFFF;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}
.v2-plan:hover { transform: translateY(-4px); border-color: var(--teal-200); box-shadow: 0 30px 60px -34px rgba(15, 76, 92, 0.35); }
.v2-plan header h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-1000); }
.v2-plan header p { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink-500); }

.v2-plan-runs {
  margin: 24px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--teal-50);
  font-size: 0.9rem;
  color: var(--teal-900);
}
.v2-plan-runs b { font-family: var(--font-mono); font-weight: 600; margin-right: 4px; }

.v2-plan-price { display: flex; align-items: baseline; gap: 4px; margin: 26px 0 0; color: var(--ink-1000); }
.v2-plan-cur { font-size: 1.5rem; font-weight: 500; transform: translateY(-0.55em); }
.v2-plan-fig { font-size: clamp(2.3rem, 3vw, 2.8rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 1; }
.v2-plan-fig.is-tick { animation: v2-tick 0.35s var(--ease-out); }
@keyframes v2-tick { from { opacity: 0.2; transform: translateY(6px); } }
.v2-plan-per { white-space: nowrap; margin-left: 4px; font-size: 0.92rem; color: var(--ink-500); }
.v2-plan-note { margin: 10px 0 0; font-size: 0.86rem; color: var(--ink-500); min-height: 1.3em; }

.v2-plan-list { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.v2-plan-list li { position: relative; padding-left: 28px; font-size: 0.93rem; color: var(--ink-700); }
.v2-plan-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.66rem;
  font-weight: 700;
}
.v2-plan .btn { margin-top: auto; }

/* Yearly, the pick: dark, lifted. */
.v2-plan.is-pick {
  background: var(--teal-1000);
  border-color: var(--teal-1000);
  box-shadow: 0 40px 80px -40px rgba(6, 36, 48, 0.6);
  transform: translateY(-10px);
}
.v2-plan.is-pick:hover { transform: translateY(-14px); border-color: var(--amber-500); }
.v2-plan.is-pick header h3, .v2-plan.is-pick .v2-plan-price { color: #FFFFFF; }
.v2-plan.is-pick header p, .v2-plan.is-pick .v2-plan-per, .v2-plan.is-pick .v2-plan-note { color: #8FA9AE; }
.v2-plan.is-pick .v2-plan-runs { background: rgba(255, 255, 255, 0.07); color: #E0F2F1; }
.v2-plan.is-pick .v2-plan-list { border-top-color: rgba(178, 223, 219, 0.16); }
.v2-plan.is-pick .v2-plan-list li { color: #D7E6E8; }
.v2-plan.is-pick .v2-plan-list li::before { background: rgba(245, 158, 11, 0.18); color: var(--amber-400); }
.v2-plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--amber-500);
  color: var(--ink-1000);
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: var(--shadow-amber);
}

/* A second recommendation (e.g. Perpetual, best for enterprises): light card, teal ribbon. */
.v2-plan-badge.is-alt { background: var(--teal-900); color: #FFFFFF; box-shadow: 0 8px 20px -10px rgba(15, 76, 92, 0.6); }
.v2-plan.is-featured { border-color: var(--teal-900); box-shadow: 0 30px 60px -40px rgba(15, 76, 92, 0.45); }

/* The console's note under the price: an offer, so it stands out. */
.v2-plan-offer {
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px dashed var(--amber-500);
  border-radius: 10px;
  background: var(--amber-50);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--amber-700);
}

/* Runs: the volume ladder in place of the feature list. */
.v2-ladder { list-style: none; margin: 22px 0 28px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.v2-ladder li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: 0.88rem; color: var(--ink-700); }
.v2-ladder li + li { border-top: 1px solid var(--line); }
.v2-ladder li:last-child { background: var(--teal-50); }
.v2-ladder em { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--amber-500); color: var(--ink-1000); font-style: normal; font-size: 0.7rem; font-weight: 700; }
.v2-ladder b { font-family: var(--font-mono); font-weight: 600; color: var(--ink-1000); white-space: nowrap; }
.v2-ladder span { white-space: nowrap; }
.v2-ladder li.v2-ladder-head { padding: 7px 12px; background: var(--paper-2); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); }
.v2-ladder em { white-space: nowrap; }

/* Trial: the quiet card at the start, dashed like a draft. */
.v2-plan.is-trial { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.v2-plan.is-trial:hover { background: #FFFFFF; }
.v2-plan.is-trial .v2-plan-runs { background: #FFFFFF; border: 1px solid var(--line); color: var(--ink-700); }
.v2-plan.is-trial .v2-plan-list li::before { background: var(--ink-100); color: var(--ink-700); }

.v2-plan.is-perpetual .v2-plan-runs { background: var(--amber-50); color: var(--amber-700); }
.v2-plan.is-perpetual .v2-plan-runs b { font-family: inherit; font-size: 1.1rem; }

.v2-pricing-foot { margin: 36px auto 0; max-width: 62ch; text-align: center; font-size: 0.88rem; color: var(--ink-500); line-height: 1.6; }
.v2-pricing-foot a { color: var(--teal-900); text-decoration: underline; text-decoration-color: var(--amber-500); text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .v2-plans, .v2-plans[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; max-width: 820px; margin: 0 auto; }
  .v2-plan.is-pick { transform: none; }
  .v2-plan.is-pick:hover { transform: translateY(-4px); }
}
@media (max-width: 700px) {
  .v2-plans, .v2-plans[data-count] { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; gap: 26px; }
  .v2-plan.is-pick { transform: none; order: -1; }
  .v2-plan.is-pick:hover { transform: translateY(-4px); }
}

/* ---------------------------------------------------------------- Contact */

.v2-contact { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.v2-contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.v2-contact-intro .v2-lede a { color: var(--teal-900); text-decoration: underline; text-decoration-color: var(--amber-500); text-underline-offset: 3px; }
.v2-contact-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.v2-contact-facts li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-700); }
.v2-contact-facts li:last-child { border-bottom: 1px solid var(--line); }
.v2-contact-facts span { font-size: 0.82rem; color: var(--ink-400); }
.v2-contact-facts a { color: var(--teal-900); }

@media (max-width: 960px) {
  .v2-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- Small screens */

@media (max-width: 600px) {
  .v2-hero { padding-top: 104px; min-height: 900px; }
  .v2-hero-btn { min-width: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-w > span, .v2-hero-title .v2-lighter, .v2-lighter-ink, .v2-lighter::after, .v2-hero-sub,
  .v2-hero-grid, .v2-reg, .v2-hero-badge, .v2-hero-cta, .v2-live-dot::after, .v2-pulse-beacon::before, .v2-pulse-beacon::after, .v2-ecg path,
  .v2-lab-log li {
    animation: none;
    opacity: 1;
  }
  .v2-w > span, .v2-lighter::after { transform: none; }
  .v2-lighter-ink { font-weight: 300; letter-spacing: -0.05em; color: var(--teal-900); }
  .v2-bar i, .v2-plan, .v2-fl label, .v2-fl-ok, .v2-topics button, .v2-faq-filter button, .v2-q, .v2-q-icon, .v2-q-icon::before, .v2-q-icon::after, .v2-reel img, .v2-portrait-img, .v2-ga-list li, .ga-part, .ga-b, .v2-switch-ui::after { transition: none; }
  .ga-b.is-on, .v2-marquee-track { animation: none; }
  .v2-q::details-content { transition: none; }
}

/* ---------------------------------------------------------------- Free STAAD Viewer
   A dark blueprint band, unlike the light sections around it: drawing grid, two glows,
   a serif headline, and a browser window that steps through the viewer's three tabs. */
.v2-sv { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0; background: radial-gradient(120% 90% at 85% 10%, #10566A 0%, var(--teal-1000) 55%, #04161D 100%); color: #CFE2E6; isolation: isolate; }
.v2-sv-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 320px at 12% 85%, rgba(245, 158, 11, 0.16), transparent 70%),
    radial-gradient(600px 380px at 78% 30%, rgba(62, 156, 156, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(142, 205, 205, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(142, 205, 205, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(142, 205, 205, 0.10) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(142, 205, 205, 0.10) 0 1px, transparent 1px 120px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.v2-sv-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.v2-sv-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 5px 14px 5px 5px; border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 999px; background: rgba(245, 158, 11, 0.08); font-size: 0.85rem; color: #F3E3C0; }
.v2-sv-badge b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); color: #2B1700; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 0 18px rgba(245, 158, 11, 0.55); }
.v2-sv-h { margin: 0 0 20px; font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; color: #FFFFFF; }
.v2-sv-h span { white-space: nowrap; }
.v2-sv-h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; background: linear-gradient(100deg, var(--amber-300), var(--amber-500) 60%, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.v2-sv-lede { max-width: 30em; margin: 0 0 30px; font-size: 1.08rem; line-height: 1.6; color: #A9C4CA; }

.v2-sv-zero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 34px; padding: 0; list-style: none; border-top: 1px solid rgba(142, 205, 205, 0.18); border-bottom: 1px solid rgba(142, 205, 205, 0.18); }
.v2-sv-zero li { display: grid; align-content: start; gap: 6px; padding: 16px 14px 16px 0; }
.v2-sv-zero li + li { padding-left: 16px; border-left: 1px solid rgba(142, 205, 205, 0.18); }
.v2-sv-zero b { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--amber-400); }
.v2-sv-zero span { font-size: 0.8rem; line-height: 1.35; color: #8FAEB4; }

.v2-sv-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.v2-sv-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-size: 1.02rem; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6), 0 18px 40px -16px rgba(245, 158, 11, 0.8); animation: v2-sv-ping 2.6s ease-out infinite; }
.v2-sv-btn svg { transition: transform 0.2s ease; }
.v2-sv-btn:hover svg { transform: translateX(4px); }
@keyframes v2-sv-ping { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55), 0 18px 40px -16px rgba(245, 158, 11, 0.8); } 70%, 100% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0), 0 18px 40px -16px rgba(245, 158, 11, 0.8); } }
.v2-sv-alt { color: #CFE2E6; font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid rgba(207, 226, 230, 0.35); padding-bottom: 2px; }
.v2-sv-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 0.85rem; color: #7FA0A7; }
.v2-sv-note svg { flex: none; color: var(--amber-400); }
.v2-sv-alt:hover { color: #FFFFFF; border-color: var(--amber-400); }

/* The tour: tabs with a filling bar, a tilted browser window, the phone beside it. */
.v2-sv-stage { position: relative; padding-bottom: 36px; }
.v2-sv-tabs { display: inline-flex; gap: 4px; margin: 0 0 14px; padding: 4px; border: 1px solid rgba(142, 205, 205, 0.2); border-radius: 12px; background: rgba(6, 36, 48, 0.6); backdrop-filter: blur(8px); }
.v2-sv-tab { position: relative; overflow: hidden; padding: 8px 18px; border: 0; border-radius: 8px; background: none; color: #8FAEB4; font: 600 0.88rem var(--font-sans); cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.v2-sv-tab:hover { color: #FFFFFF; }
.v2-sv-tab.is-on { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.v2-sv-tab i { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--amber-500); transform: scaleX(0); transform-origin: left; }
.v2-sv-tab.is-on i { transform: scaleX(1); }
.v2-sv-stage.is-playing .v2-sv-tab.is-on i { animation: v2-sv-fill var(--sv-dwell, 5s) linear forwards; }
@keyframes v2-sv-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.v2-sv-window { position: relative; border-radius: 14px; overflow: hidden; background: #FFFFFF; border: 1px solid rgba(142, 205, 205, 0.35);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.75), 0 0 0 8px rgba(255, 255, 255, 0.03), 0 0 80px -20px rgba(62, 156, 156, 0.45);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; transition: transform 0.6s var(--ease-out); }
.v2-sv-stage:hover .v2-sv-window { transform: perspective(1600px) rotateY(0) rotateX(0); }
.v2-sv-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #EEF2F3; border-bottom: 1px solid #DCE3E6; }
.v2-sv-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D9DC; }
.v2-sv-bar i:first-child { background: #F87171; } .v2-sv-bar i:nth-child(2) { background: #FBBF24; } .v2-sv-bar i:nth-child(3) { background: #34D399; }
.v2-sv-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: #FFFFFF; font: 500 0.74rem var(--font-mono); color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sv-slides { position: relative; aspect-ratio: 1600 / 950; }
.v2-sv-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.02); transition: opacity 0.7s ease, transform 1.2s var(--ease-out); }
.v2-sv-slide.is-on { opacity: 1; transform: scale(1); }
.v2-sv-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-sv-slide figcaption { position: absolute; left: 14px; bottom: 34px; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 8px; background: rgba(6, 36, 48, 0.88); color: #FFFFFF; font-size: 0.82rem; font-weight: 500; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }

.v2-sv-phone { position: absolute; right: -18px; bottom: -6px; width: clamp(110px, 17%, 160px); padding: 7px; border-radius: 26px; background: #0B1F27; border: 1px solid rgba(142, 205, 205, 0.35); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); transform: rotate(4deg); transition: transform 0.6s var(--ease-out); }
.v2-sv-stage:hover .v2-sv-phone { transform: rotate(0) translateY(-6px); }
.v2-sv-phone img { display: block; width: 100%; height: auto; border-radius: 19px; }

@media (max-width: 960px) {
  .v2-sv-inner { grid-template-columns: minmax(0, 1fr); }
  .v2-sv-window { transform: none; }
  .v2-sv-phone { right: 4px; width: 26%; }
}
@media (max-width: 640px) {
  .v2-sv-zero b { font-size: 1.5rem; }
  .v2-sv-zero li { padding-right: 8px; }
  .v2-sv-zero li + li { padding-left: 10px; }
  .v2-sv-btn { width: 100%; justify-content: center; }
  .v2-sv-actions { gap: 14px; justify-content: center; }
  .v2-sv-slide figcaption { left: 8px; bottom: 8px; font-size: 0.72rem; padding: 5px 9px; max-width: 66%; }
  .v2-sv-tab { padding: 7px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-sv-btn { animation: none; }
  .v2-sv-window, .v2-sv-phone, .v2-sv-slide { transition: none; }
  .v2-sv-window { transform: none; }
}

/* "Free" tag on the STAAD Viewer menu link. */
.nav-free-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--amber-100); color: var(--amber-700); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; vertical-align: 1px; }
@media (min-width: 881px) and (max-width: 1120px) {
  .v2 .nav-links { gap: 16px; }
  .v2 .nav-links a { white-space: nowrap; }
  .nav-links .nav-free-tag { display: none; }
}
@media (min-width: 881px) and (max-width: 1060px) {
  .v2 .nav-links { gap: 12px; }
  .v2 .nav-links a { font-size: 0.86rem; }
  .v2 .nav-actions { gap: 12px; }
  .v2 .site-nav { padding: 0 12px; }
}

/* Live strip with five figures (STAAD models opened and frames optimised both shown). */
.v2-pulse.is-5 { grid-template-columns: auto repeat(5, minmax(0, 1fr)); width: min(1080px, calc(100% - 32px)); }
.v2-pulse-k a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.v2-pulse-k a:hover { color: var(--teal-900); }
@media (max-width: 760px) {
  /* Two columns, laid out from the visible cells (preview.js marks row ends and the last row). */
  .v2-pulse:not(.is-3) .v2-pulse-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .v2-pulse:not(.is-3) .v2-pulse-cell.is-rowend { border-right: 0; }
  .v2-pulse:not(.is-3) .v2-pulse-cell.is-lastrow { border-bottom: 0; }
  .v2-pulse.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 32px); }
  .v2-pulse.is-5 .v2-pulse-cell.is-lastrow { grid-column: 1 / -1; }
}

/* Scope, desktop: no outline. A marker glides to the title in focus, and the drawing swooshes
   (preview.js). Phones keep their stories as they are. */
@media (min-width: 901px) {
  .v2-ga-index { position: relative; }
  .v2-ga-index li { position: relative; z-index: 1; transition: opacity 0.25s ease, transform 0.45s var(--ease-out); }
  .v2-ga-does li.is-on, .v2-ga-donts li.is-on { background: none; transform: translateX(6px); }
  .v2-ga-marker { position: absolute; left: 0; right: 0; top: 0; z-index: 0; border-radius: 12px; background: rgba(42, 127, 127, 0.1); box-shadow: inset 3px 0 0 var(--yes); opacity: 0; pointer-events: none;
    transition: transform 0.55s cubic-bezier(.16, 1, .3, 1), height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease; }
  .v2-ga-marker.is-on { opacity: 1; }
  .v2-ga-marker.is-no { background: rgba(220, 38, 38, 0.07); box-shadow: inset 3px 0 0 var(--no); }
  .v2-ga-sheet { will-change: transform, opacity, filter; }
  /* The caption rides with the drawing, so it no longer slides in on its own. */
  .v2-ga-cap.is-in { animation: none; opacity: 1; transform: none; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .v2-ga-marker { transition: none; }
}
