@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #0b1f1c;
  --ink-soft: #16332e;
  --text: #10221f;
  --muted: #5c716c;
  --line: rgba(16, 52, 47, 0.12);
  --line-strong: rgba(16, 52, 47, 0.22);
  --panel: rgba(255, 255, 255, 0.78);
  --bg: #f3f7f6;
  --bg-deep: #071612;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --navy: #12324a;
  --champagne: #c6a15b;
  --champagne-soft: rgba(198, 161, 91, 0.16);
  --success: #0f766e;
  --danger: #b42318;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 22px 56px rgba(7, 22, 18, 0.11);
  --shadow-sm: 0 10px 24px rgba(7, 22, 18, 0.07);
  --brand-font: "Fraunces", Georgia, serif;
  --ui-font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 64px;
  --section-y: 64px;
  --text-base: 15px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: var(--text-base);
  line-height: 1.5;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(900px 500px at 92% 0%, rgba(198, 161, 91, 0.1), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ——— Header (identical on every page) ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(7, 22, 18, 0.04);
  transition: box-shadow 0.25s ease;
}

.topbar.is-scrolled {
  box-shadow: 0 12px 32px rgba(7, 22, 18, 0.08);
}

.nav {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

/* Full lockup includes a tagline — clip to mark + wordmark for sticky nav. */
.brand-logo-wrap {
  display: block;
  height: 36px;
  width: min(190px, 46vw);
  overflow: hidden;
  position: relative;
}

.brand-logo {
  height: 39px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: left top;
  transform: translateY(-2px);
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.navlinks a:hover,
.navlinks a.is-active {
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
}

.btn-champagne {
  background: linear-gradient(135deg, #e2c478, var(--champagne) 55%, #a8843f);
  border-color: transparent;
  color: #1a1408;
  box-shadow: 0 14px 34px rgba(198, 161, 91, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #f5faf8;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-soft {
  background: rgba(15, 118, 110, 0.08);
  border-color: transparent;
  color: var(--teal);
}

/* ——— Hero (full-bleed — previous layout, richer background grade) ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f5faf8;
  background: #061410;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 16%;
  opacity: 0.72;
  transform: scale(1.05);
  filter: saturate(1.25) contrast(1.12) brightness(1.05);
  animation: hero-drift 20s ease-in-out infinite alternate;
}

/* Warm teal + champagne lift so the light dashboard never reads flat/muddy */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 55% 70% at 18% 35%, rgba(45, 212, 191, 0.55), transparent 62%),
    radial-gradient(ellipse 48% 55% at 86% 18%, rgba(232, 196, 112, 0.42), transparent 58%),
    radial-gradient(ellipse 60% 50% at 70% 90%, rgba(15, 118, 110, 0.5), transparent 65%);
  animation: hero-glow 11s ease-in-out infinite alternate;
}

/* Readable left column without crushing the product scene on the right */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      105deg,
      rgba(5, 18, 15, 0.9) 0%,
      rgba(5, 18, 15, 0.72) 30%,
      rgba(5, 18, 15, 0.28) 54%,
      rgba(5, 18, 15, 0.18) 72%,
      rgba(5, 18, 15, 0.42) 100%
    ),
    linear-gradient(180deg, rgba(5, 18, 15, 0.28) 0%, transparent 34%, rgba(5, 18, 15, 0.55) 100%);
}

.hero-ornament {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 213, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 168, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 72% 62% at 28% 48%, #000 12%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 56px;
  animation: rise-soft 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  font-family: var(--brand-font);
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 10px;
  color: #f7fbf9;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero-rule {
  width: 64px;
  height: 2px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--champagne), transparent);
  animation: rule-draw 1.1s 0.15s ease both;
}

.hero h1 {
  max-width: 18ch;
  margin: 0 0 12px;
  font-family: var(--brand-font);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: rgba(245, 250, 248, 0.96);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  max-width: 44ch;
  margin: 0 0 22px;
  color: rgba(245, 250, 248, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 250, 248, 0.14);
  color: rgba(245, 250, 248, 0.74);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--champagne));
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.55);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(232, 213, 168, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 161, 91, 0.9), transparent);
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.4%, -0.9%, 0); }
}

@keyframes hero-glow {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

@keyframes rule-draw {
  from { width: 0; opacity: 0; }
  to { width: 72px; opacity: 1; }
}

/* ——— Sections ——— */
.section {
  padding: var(--section-y) 0;
}

.section.tight {
  padding: 36px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 26px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2,
.section h2 {
  margin: 0 0 10px;
  font-family: var(--brand-font);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
}

.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.desc a {
  color: var(--teal);
  font-weight: 600;
}

.desc a:hover {
  text-decoration: underline;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.grid-2.reverse > :first-child {
  order: 2;
}

.lux-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow-sm);
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lux-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.28);
}

.lux-panel h3 {
  margin: 0 0 8px;
  font-family: var(--brand-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lux-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--champagne));
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.stat b {
  display: block;
  font-family: var(--brand-font);
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.image-stage {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1f1c;
}

.image-stage img {
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.split-copy .item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.split-copy .item:last-child {
  border-bottom: 0;
}

.split-copy .item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--brand-font);
  font-size: 1.02rem;
}

.split-copy .item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 118, 110, 0.06);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ——— Diagrams ——— */
.diagram {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 246, 0.88)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(15, 118, 110, 0.03) 18px,
      rgba(15, 118, 110, 0.03) 19px
    );
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-caption a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.diagram-caption a:hover {
  text-decoration: underline;
}

/* ——— How it works: animated flow board ——— */
.flow-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 36px);
  color: #eef7f4;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(700px 380px at 96% 10%, rgba(198, 161, 91, 0.16), transparent 50%),
    linear-gradient(160deg, #061410 0%, #0a221d 48%, #102820 100%);
  border: 1px solid rgba(198, 161, 91, 0.22);
  box-shadow:
    0 40px 90px rgba(7, 22, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flow-board-glow {
  pointer-events: none;
  position: absolute;
  inset: -20% auto auto 40%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 68%);
  animation: flow-glow 10s ease-in-out infinite alternate;
  z-index: 0;
}

.flow-board > *:not(.flow-board-glow) {
  position: relative;
  z-index: 1;
}

.flow-board-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.flow-eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(198, 161, 91, 0.92);
  font-weight: 600;
}

.flow-board-title {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5faf8;
}

.flow-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(15, 118, 110, 0.18);
  color: #b7ebe3;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.flow-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
  animation: flow-live-pulse 1.8s ease-out infinite;
}

.flow-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  min-height: 220px;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(4, 14, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.flow-stage-time {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(198, 161, 91, 0.95);
}

.flow-stage-title {
  margin: 0 0 12px;
  font-family: var(--brand-font);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #f7fbf9;
}

.flow-stage-body {
  margin: 0;
  max-width: 36ch;
  color: rgba(215, 230, 226, 0.84);
  font-size: 1.02rem;
}

.flow-stage-copy.is-switching .flow-stage-title,
.flow-stage-copy.is-switching .flow-stage-body,
.flow-stage-copy.is-switching .flow-stage-time {
  animation: flow-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flow-stage-panel {
  position: relative;
  min-height: 180px;
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.18), rgba(7, 22, 18, 0.55)),
    rgba(7, 22, 18, 0.7);
  border: 1px solid rgba(20, 184, 166, 0.22);
  overflow: hidden;
}

.flow-mock {
  position: absolute;
  inset: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
}

.flow-board[data-active-step="0"] .flow-mock-rules,
.flow-board[data-active-step="1"] .flow-mock-sense,
.flow-board[data-active-step="2"] .flow-mock-intel,
.flow-board[data-active-step="3"] .flow-mock-gates,
.flow-board[data-active-step="4"] .flow-mock-trade,
.flow-board[data-active-step="5"] .flow-mock-control {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.flow-mock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(215, 230, 226, 0.75);
  font-size: 0.9rem;
}

.flow-mock-row strong {
  color: #f5faf8;
  font-weight: 600;
}

.flow-mock-bar {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.flow-mock-bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--champagne));
  transform-origin: left center;
  animation: flow-bar 2.4s ease-in-out infinite alternate;
}

.flow-spark {
  height: 54px;
  margin-bottom: 10px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.35), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(245, 250, 248, 0.08) 0 2px,
      transparent 2px 12px
    );
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: flow-spark 2.8s linear infinite;
}

.flow-ticks {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  align-items: flex-end;
  height: 36px;
}

.flow-ticks em {
  flex: 1;
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--teal-bright), rgba(15, 118, 110, 0.35));
  animation: flow-tick 1.6s ease-in-out infinite;
}

.flow-ticks em:nth-child(2) { animation-delay: 0.12s; height: 70%; }
.flow-ticks em:nth-child(3) { animation-delay: 0.24s; height: 95%; }
.flow-ticks em:nth-child(4) { animation-delay: 0.36s; height: 55%; }
.flow-ticks em:nth-child(5) { animation-delay: 0.48s; height: 80%; }
.flow-ticks em:nth-child(1) { height: 45%; }

.flow-gate {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.flow-gate span {
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-gate-in {
  background: rgba(255, 255, 255, 0.06);
  color: #d7e6e2;
}

.flow-gate-mid {
  min-width: 72px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
  animation: flow-gate-pulse 1.8s ease-in-out infinite;
}

.flow-gate-out {
  background: rgba(180, 35, 24, 0.18);
  color: #ffb4ad;
  border: 1px solid rgba(180, 35, 24, 0.35);
}

.flow-mock-note {
  margin: 0;
  color: rgba(215, 230, 226, 0.72);
  font-size: 0.88rem;
}

.flow-hold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.35);
}

.flow-hold span {
  color: rgba(215, 230, 226, 0.75);
  font-size: 0.88rem;
}

.flow-hold strong {
  font-family: var(--brand-font);
  font-size: 1.4rem;
  color: var(--champagne);
  letter-spacing: 0.04em;
}

.flow-board[data-active-step="4"][data-trade-mode="go"] .flow-hold {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.4);
}

.flow-board[data-active-step="4"][data-trade-mode="go"] .flow-hold strong {
  color: var(--teal-bright);
}

.flow-actions-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.flow-actions-mock span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f3ef;
  font-size: 0.82rem;
  font-weight: 600;
}

.flow-actions-mock span.is-accent {
  border-color: rgba(198, 161, 91, 0.45);
  background: rgba(198, 161, 91, 0.14);
  color: #f0dfb4;
  animation: flow-chip-glow 2.2s ease-in-out infinite;
}

.flow-rail-wrap {
  --flow-progress: 0%;
  position: relative;
}

.flow-rail {
  list-style: none;
  margin: 0;
  padding: 8px 4px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
}

.flow-rail-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

.flow-rail-fill {
  display: block;
  height: 100%;
  width: var(--flow-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--champagne));
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.45);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-rail-pulse {
  position: absolute;
  top: 50%;
  left: var(--flow-progress);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #f5faf8;
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.22), 0 0 22px rgba(198, 161, 91, 0.55);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.flow-node {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(160deg, #14362f, #0b1f1c);
  color: #d7e6e2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.flow-node:hover,
.flow-node:focus-visible {
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

.flow-node-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.flow-node-index {
  position: relative;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.flow-step-label strong {
  display: block;
  font-size: 0.95rem;
  color: rgba(245, 250, 248, 0.92);
}

.flow-step-label span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: rgba(215, 230, 226, 0.55);
}

.flow-step.is-done .flow-node {
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.35), rgba(18, 50, 74, 0.55));
  color: #dff7f2;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.28);
}

.flow-step.is-active .flow-node {
  background: linear-gradient(145deg, var(--navy), var(--teal));
  color: #fff;
  box-shadow:
    0 10px 28px rgba(15, 118, 110, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.flow-step.is-active .flow-node-ring {
  border-color: rgba(198, 161, 91, 0.65);
  box-shadow: 0 0 0 6px rgba(198, 161, 91, 0.12);
  animation: flow-ring 2s ease-out infinite;
}

.flow-step.is-active .flow-step-label strong {
  color: var(--champagne);
}

.flow-safety {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(198, 161, 91, 0.35);
  background: linear-gradient(90deg, rgba(198, 161, 91, 0.12), rgba(198, 161, 91, 0.04));
}

.flow-safety-pulse {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--champagne);
  box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.55);
  animation: flow-live-pulse 2.2s ease-out infinite;
}

.flow-safety strong {
  display: block;
  color: #f0dfb4;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.flow-safety p {
  margin: 0;
  color: rgba(215, 230, 226, 0.72);
  font-size: 0.9rem;
}

/* How it works v2 — clearer pipeline */
.flow-board-v2 {
  padding: clamp(18px, 2.5vw, 28px);
}

.flow-simple {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(215, 230, 226, 0.8);
  font-size: 0.86rem;
}

.flow-simple strong {
  color: #f0dfb4;
  font-weight: 600;
}

.pipe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: rgba(215, 230, 226, 0.7);
}

.pipe-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pipe-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.pipe-legend .lg-you { background: var(--champagne); }
.pipe-legend .lg-intel { background: linear-gradient(135deg, var(--navy), var(--teal)); }
.pipe-legend .lg-gate { background: #b42318; }

.pipe {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pipe-btn {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  border-radius: 14px;
  padding: 10px 10px 11px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pipe-btn em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(215, 230, 226, 0.5);
  margin-bottom: 4px;
}

.pipe-btn strong {
  display: block;
  font-size: 0.82rem;
  color: #f5faf8;
  margin-bottom: 2px;
}

.pipe-btn span {
  display: block;
  font-size: 0.7rem;
  color: rgba(215, 230, 226, 0.55);
  line-height: 1.3;
}

.pipe-step.is-active .pipe-btn,
.pipe-btn:hover,
.pipe-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 12px 28px rgba(7, 22, 18, 0.28);
}

.pipe-step.is-active .pipe-btn.kind-you {
  border-color: rgba(198, 161, 91, 0.55);
  background: rgba(198, 161, 91, 0.14);
}

.pipe-step.is-active .pipe-btn.kind-intel {
  border-color: rgba(20, 184, 166, 0.5);
  background: rgba(15, 118, 110, 0.2);
}

.pipe-step.is-active .pipe-btn.kind-gate {
  border-color: rgba(255, 140, 130, 0.45);
  background: rgba(180, 35, 24, 0.14);
}

.pipe-step.is-done .pipe-btn {
  opacity: 0.72;
}

.flow-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
  min-height: 240px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(4, 14, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.flow-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-bullets {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.flow-bullets li {
  position: relative;
  padding-left: 16px;
  color: rgba(215, 230, 226, 0.78);
  font-size: 0.86rem;
}

.flow-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--champagne));
}

.flow-detail-panel {
  position: relative;
  min-height: 210px;
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.16), rgba(7, 22, 18, 0.55)),
    rgba(7, 22, 18, 0.7);
  border: 1px solid rgba(20, 184, 166, 0.22);
  overflow: hidden;
}

.flow-detail-panel .flow-mock {
  inset: 16px;
}

.flow-panel-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198, 161, 91, 0.92);
  font-weight: 600;
}

.flow-stage-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.flow-stage-body {
  font-size: 0.94rem;
  max-width: 38ch;
}

.sense-grid,
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sense-card,
.intel-card {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.sense-card strong,
.intel-card strong {
  display: block;
  color: #f5faf8;
  font-size: 0.84rem;
  margin-top: 2px;
}

.sense-card span,
.intel-card span {
  display: block;
  font-size: 0.7rem;
  color: rgba(215, 230, 226, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sense-card.is-warn {
  border-color: rgba(255, 140, 130, 0.4);
  background: rgba(180, 35, 24, 0.12);
}

.intel-card.is-accent {
  border-color: rgba(198, 161, 91, 0.4);
  background: rgba(198, 161, 91, 0.12);
}

.gate-stack {
  display: grid;
  gap: 7px;
}

.gate-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gate-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #ffb4ad;
}

.gate-row strong {
  color: #f5faf8;
  font-size: 0.84rem;
}

.gate-row span {
  font-size: 0.72rem;
  color: rgba(183, 235, 227, 0.8);
  font-weight: 600;
}

.gate-row.is-block {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(180, 35, 24, 0.14);
}

.gate-row.is-block span {
  color: #ffb4ad;
}

.gate-row.is-active-gate {
  border-color: rgba(198, 161, 91, 0.5);
  box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.16);
}

.watch-mini {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(198, 161, 91, 0.35);
  background: rgba(198, 161, 91, 0.1);
}

.watch-mini strong {
  display: block;
  color: #f0dfb4;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.watch-mini span {
  color: rgba(215, 230, 226, 0.7);
  font-size: 0.8rem;
}

.flow-board-v2 .flow-safety {
  margin-top: 0;
}

/* ——— How it works: layered board ——— */
.hw-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(16px, 2.2vw, 26px);
  color: #eef7f4;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(700px 360px at 95% 8%, rgba(198, 161, 91, 0.14), transparent 48%),
    linear-gradient(160deg, #061410 0%, #0a221d 48%, #102820 100%);
  border: 1px solid rgba(198, 161, 91, 0.24);
  box-shadow: 0 28px 70px rgba(7, 22, 18, 0.24);
}

.hw-glow {
  pointer-events: none;
  position: absolute;
  inset: -18% auto auto 35%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15), transparent 68%);
  animation: flow-glow 11s ease-in-out infinite alternate;
  z-index: 0;
}

.hw-board > *:not(.hw-glow) {
  position: relative;
  z-index: 1;
}

.hw-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.hw-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(198, 161, 91, 0.95);
  font-weight: 600;
}

.hw-title {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  color: #f5faf8;
  font-weight: 600;
}

.hw-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(15, 118, 110, 0.18);
  color: #b7ebe3;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.hw-phases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.hw-phase {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 12px;
  padding: 9px 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hw-phase em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(215, 230, 226, 0.5);
  margin-bottom: 2px;
}

.hw-phase strong {
  display: block;
  font-size: 0.8rem;
  color: #f5faf8;
  font-weight: 600;
}

.hw-phase:hover,
.hw-phase:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.4);
}

.hw-phase.is-active {
  border-color: rgba(198, 161, 91, 0.55);
  background: rgba(198, 161, 91, 0.14);
  box-shadow: 0 10px 24px rgba(7, 22, 18, 0.22);
}

.hw-phase.is-done {
  opacity: 0.78;
}

.hw-map {
  --hw-token-x: 8%;
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.hw-token {
  position: absolute;
  top: -8px;
  left: var(--hw-token-x);
  z-index: 3;
  transform: translateX(-50%);
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.4);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
  pointer-events: none;
}

.hw-board[data-outcome="ready"] .hw-token {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.hw-board[data-outcome="blocked"] .hw-token {
  background: linear-gradient(135deg, #7f1d1d, #b42318);
}

.hw-layer {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 14, 12, 0.38);
  padding: 12px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.hw-layer.is-lit {
  border-color: rgba(198, 161, 91, 0.4);
  box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.12), 0 16px 36px rgba(7, 22, 18, 0.22);
  background: rgba(7, 22, 18, 0.55);
}

.hw-layer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.hw-layer-head p {
  margin: 0;
  color: rgba(215, 230, 226, 0.62);
  font-size: 0.78rem;
}

.hw-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hw-chip.intel {
  color: #b7ebe3;
  background: rgba(15, 118, 110, 0.22);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.hw-chip.gate {
  color: #ffb4ad;
  background: rgba(180, 35, 24, 0.16);
  border: 1px solid rgba(180, 35, 24, 0.35);
}

.hw-chip.outcome {
  color: #f0dfb4;
  background: rgba(198, 161, 91, 0.14);
  border: 1px solid rgba(198, 161, 91, 0.35);
}

.hw-chip.you {
  color: #f5faf8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hw-chip.dog {
  color: #1a1408;
  background: linear-gradient(135deg, #e2c478, var(--champagne));
  border: 0;
}

.hw-intel-row,
.hw-gate-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hw-gate-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hw-card,
.hw-gate {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.hw-card span,
.hw-gate em {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(215, 230, 226, 0.55);
  margin-bottom: 4px;
}

.hw-gate em {
  font-style: normal;
  font-family: var(--mono);
  color: #ffb4ad;
}

.hw-card strong,
.hw-gate strong {
  display: block;
  color: #f5faf8;
  font-size: 0.82rem;
  line-height: 1.3;
}

.hw-gate span {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(183, 235, 227, 0.8);
}

.hw-card.is-lit,
.hw-gate.is-lit {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(15, 118, 110, 0.18);
}

.hw-gate.is-pass span { color: #99f6e4; }
.hw-gate.is-check {
  border-color: rgba(198, 161, 91, 0.5);
  background: rgba(198, 161, 91, 0.12);
}
.hw-gate.is-check span { color: #f0dfb4; }
.hw-gate.is-block {
  border-color: rgba(180, 35, 24, 0.5);
  background: rgba(180, 35, 24, 0.16);
}
.hw-gate.is-block span { color: #ffb4ad; }

.hw-card-score.is-lit {
  border-color: rgba(198, 161, 91, 0.5);
  background: rgba(198, 161, 91, 0.14);
}

.hw-outcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hw-outcome p {
  margin: 4px 0 0;
  color: rgba(215, 230, 226, 0.72);
  font-size: 0.86rem;
}

.hw-outcome-badge {
  min-width: 96px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--brand-font);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.4);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hw-board[data-outcome="ready"] .hw-outcome-badge {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.45);
}

.hw-board[data-outcome="blocked"] .hw-outcome-badge {
  color: #ffb4ad;
  background: rgba(180, 35, 24, 0.14);
  border-color: rgba(180, 35, 24, 0.45);
}

.hw-layer-watch {
  border-color: rgba(198, 161, 91, 0.28);
  background:
    linear-gradient(90deg, rgba(198, 161, 91, 0.08), rgba(15, 118, 110, 0.08)),
    rgba(4, 14, 12, 0.45);
}

.hw-watch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 12px;
  align-items: stretch;
}

.hw-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hw-you-actions span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(231, 243, 239, 0.7);
  transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  opacity: 0.55;
}

.hw-you-actions span.is-on,
.hw-you-actions span.is-accent.is-on {
  opacity: 1;
  border-color: rgba(198, 161, 91, 0.45);
  background: rgba(198, 161, 91, 0.14);
  color: #f0dfb4;
}

.hw-watch-core {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 8px 4px;
}

.hw-core-pill,
.hw-dog-pill {
  width: 100%;
  max-width: 180px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hw-dog-pill {
  border-color: rgba(198, 161, 91, 0.4);
  background: rgba(198, 161, 91, 0.12);
}

.hw-core-pill strong,
.hw-dog-pill strong {
  display: block;
  color: #f5faf8;
  font-size: 0.84rem;
}

.hw-core-pill em,
.hw-dog-pill em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(215, 230, 226, 0.65);
}

.hw-link {
  position: relative;
  width: 2px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.hw-bead {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 14px rgba(20, 184, 166, 0.55);
  animation: hw-bead 2.2s ease-in-out infinite;
}

.hw-board[data-watch-state="alert"] .hw-bead {
  background: #ff8f86;
  box-shadow: 0 0 14px rgba(180, 35, 24, 0.5);
  animation-duration: 0.85s;
}

.hw-board[data-watch-state="alert"] .hw-dog-pill {
  border-color: rgba(255, 140, 130, 0.55);
  background: rgba(180, 35, 24, 0.16);
}

.hw-dog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.hw-dog-list li {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: rgba(215, 230, 226, 0.7);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hw-dog-list li.is-on {
  border-color: rgba(198, 161, 91, 0.45);
  background: rgba(198, 161, 91, 0.14);
  color: #f0dfb4;
}

.hw-board[data-watch-state="alert"] .hw-dog-list li.is-on {
  border-color: rgba(255, 140, 130, 0.5);
  background: rgba(180, 35, 24, 0.16);
  color: #ffb4ad;
}

.hw-story {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hw-story-kicker {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(198, 161, 91, 0.95);
}

.hw-story-title {
  margin: 0 0 8px;
  font-family: var(--brand-font);
  font-size: 1.2rem;
  color: #f5faf8;
  letter-spacing: -0.02em;
}

.hw-story-body {
  margin: 0;
  color: rgba(215, 230, 226, 0.78);
  font-size: 0.9rem;
  max-width: 70ch;
}

.hw-story-bullets {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hw-story-bullets li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  background: rgba(15, 118, 110, 0.14);
  color: #c8f0e9;
  font-size: 0.75rem;
  font-weight: 600;
}

.hw-story.is-switching .hw-story-title,
.hw-story.is-switching .hw-story-body,
.hw-story.is-switching .hw-story-kicker {
  animation: flow-copy-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hw-bead {
  0% { top: 0; opacity: 0.35; }
  45% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0.35; }
}

@keyframes flow-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(-40px, 30px, 0) scale(1.15); opacity: 1; }
}

@keyframes flow-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

@keyframes flow-copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes flow-bar {
  from { transform: scaleX(0.45); }
  to { transform: scaleX(0.92); }
}

@keyframes flow-spark {
  from { background-position: -40% 0, 0 0; }
  to { background-position: 140% 0, 0 0; }
}

@keyframes flow-tick {
  0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes flow-gate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
}

@keyframes flow-chip-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.2); }
  50% { box-shadow: 0 0 24px rgba(198, 161, 91, 0.28); }
}

@keyframes flow-ring {
  0% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.28); }
  70% { box-shadow: 0 0 0 14px rgba(198, 161, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0); }
}

.diagram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.diagram-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.diagram-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* ——— Luxury animated product visuals ——— */
.lux-viz {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px;
  color: #eef7f4;
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(20, 184, 166, 0.16), transparent 55%),
    linear-gradient(160deg, #061410 0%, #0b221d 52%, #123029 100%);
  border: 1px solid rgba(198, 161, 91, 0.22);
  box-shadow: 0 22px 56px rgba(7, 22, 18, 0.2);
  min-height: 380px;
}

.lux-viz-wide {
  min-height: 0;
  padding: 28px;
}

.lux-viz-glow {
  pointer-events: none;
  position: absolute;
  inset: auto -30% -20% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 70%);
  animation: flow-glow 11s ease-in-out infinite alternate;
  z-index: 0;
}

.lux-viz-glow-warm {
  background: radial-gradient(circle, rgba(198, 161, 91, 0.18), transparent 70%);
  inset: -15% auto auto -20%;
}

.lux-viz > *:not(.lux-viz-glow) {
  position: relative;
  z-index: 1;
}

.lux-viz-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.lux-viz-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(198, 161, 91, 0.92);
  font-weight: 600;
}

.lux-viz-title {
  margin: 0;
  font-family: var(--brand-font);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #f5faf8;
}

.lux-viz-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(15, 118, 110, 0.18);
  color: #b7ebe3;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.lux-viz [data-viz-focus] {
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.lux-viz [data-viz-focus].is-lit {
  border-color: rgba(198, 161, 91, 0.55);
  box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.18), 0 12px 28px rgba(7, 22, 18, 0.28);
  transform: translateY(-2px);
}

/* Strategy */
.strat-stage {
  display: grid;
  gap: 14px;
}

.strat-sources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.strat-chip {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  min-height: 96px;
}

.strat-chip-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198, 161, 91, 0.9);
  margin-bottom: 6px;
  font-weight: 600;
}

.strat-chip strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #f5faf8;
  font-weight: 600;
}

.strat-chip em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(215, 230, 226, 0.55);
  font-family: var(--mono);
}

.strat-beams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 18px;
  gap: 8px;
  padding: 0 18%;
}

.strat-beams span {
  display: block;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.strat-beams span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  animation: strat-beam 2.2s linear infinite;
  opacity: 0.35;
}

.lux-viz[data-active-step="0"] .strat-beams span:nth-child(1)::after,
.lux-viz[data-active-step="1"] .strat-beams span:nth-child(2)::after,
.lux-viz[data-active-step="2"] .strat-beams span:nth-child(3)::after,
.lux-viz[data-active-step="3"] .strat-beams span::after,
.lux-viz[data-active-step="4"] .strat-beams span::after {
  opacity: 1;
}

.strat-hub {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  background:
    linear-gradient(145deg, rgba(18, 50, 74, 0.55), rgba(15, 118, 110, 0.35)),
    rgba(7, 22, 18, 0.7);
  padding: 18px;
  text-align: center;
}

.strat-hub-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
}

.strat-hub.is-lit .strat-hub-ring {
  border-color: rgba(198, 161, 91, 0.55);
  animation: flow-ring 2s ease-out infinite;
}

.strat-hub-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(183, 235, 227, 0.75);
  margin-bottom: 4px;
}

.strat-hub-core strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.25rem;
  color: #f5faf8;
}

.strat-hub-core p {
  margin: 8px 0 0;
  color: rgba(215, 230, 226, 0.72);
  font-size: 0.88rem;
}

.strat-out {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 14, 12, 0.4);
}

.strat-out-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.strat-out-rail span {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e7f3ef;
}

.strat-out-rail span.is-accent {
  border-color: rgba(198, 161, 91, 0.45);
  background: rgba(198, 161, 91, 0.14);
  color: #f0dfb4;
}

.strat-out p {
  margin: 0;
  color: rgba(215, 230, 226, 0.65);
  font-size: 0.85rem;
}

@keyframes strat-beam {
  from { transform: translateX(-120%); }
  to { transform: translateX(280%); }
}

/* Risk */
.risk-stage {
  display: grid;
  gap: 16px;
}

.risk-token {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
  transition: background 0.35s ease, transform 0.35s ease;
}

.lux-viz[data-risk-mode="block"] .risk-token {
  background: linear-gradient(135deg, #7f1d1d, #b42318);
}

.lux-viz[data-risk-mode="clear"] .risk-token {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  transform: scale(1.04);
}

.risk-track {
  display: grid;
  gap: 10px;
}

.risk-gate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.risk-gate strong {
  color: #f5faf8;
  font-size: 0.92rem;
}

.risk-gate span {
  color: rgba(215, 230, 226, 0.55);
  font-size: 0.78rem;
  text-align: right;
}

.risk-gate-final {
  background: rgba(15, 118, 110, 0.18);
  border-color: rgba(20, 184, 166, 0.35);
}

.lux-viz[data-risk-mode="block"] .risk-gate-final {
  background: rgba(180, 35, 24, 0.16);
  border-color: rgba(180, 35, 24, 0.4);
}

.lux-viz[data-risk-mode="block"] .risk-gate-final strong {
  color: #ffb4ad;
}

.risk-exit-lane {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(198, 161, 91, 0.35);
  background: linear-gradient(90deg, rgba(198, 161, 91, 0.12), rgba(198, 161, 91, 0.04));
}

.risk-exit-pulse {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  flex: none;
  background: var(--champagne);
  animation: flow-live-pulse 2.2s ease-out infinite;
}

.risk-exit-lane strong {
  display: block;
  color: #f0dfb4;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.risk-exit-lane p {
  margin: 0;
  color: rgba(215, 230, 226, 0.68);
  font-size: 0.82rem;
}

/* Watchdog */
.watch-stage {
  display: grid;
  gap: 16px;
}

.watch-pair {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 8px;
}

.watch-node {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  min-height: 110px;
}

.watch-node.is-gold {
  border-color: rgba(198, 161, 91, 0.3);
  background: rgba(198, 161, 91, 0.08);
}

.watch-node-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(183, 235, 227, 0.7);
  margin-bottom: 6px;
  font-weight: 600;
}

.watch-node.is-gold .watch-node-kicker {
  color: rgba(198, 161, 91, 0.92);
}

.watch-node strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 1.05rem;
  color: #f5faf8;
}

.watch-node em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(215, 230, 226, 0.6);
}

.watch-link {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.watch-pulse-bead {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.55);
  animation: watch-bead 2.4s ease-in-out infinite;
}

.lux-viz[data-watch-mode="alert"] .watch-pulse-bead {
  background: #ff8f86;
  box-shadow: 0 0 16px rgba(180, 35, 24, 0.45);
  animation-duration: 0.9s;
}

.watch-meter {
  display: grid;
  gap: 10px;
}

.watch-meter-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 14, 12, 0.35);
  color: rgba(215, 230, 226, 0.7);
  font-size: 0.82rem;
}

.watch-meter-row strong {
  color: #f5faf8;
  font-size: 0.82rem;
}

.watch-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 22px;
}

.watch-bars i {
  flex: 1;
  display: block;
  height: 40%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--teal-bright), rgba(15, 118, 110, 0.35));
  animation: flow-tick 1.5s ease-in-out infinite;
}

.watch-bars i:nth-child(2) { animation-delay: 0.1s; height: 65%; }
.watch-bars i:nth-child(3) { animation-delay: 0.2s; height: 90%; }
.watch-bars i:nth-child(4) { animation-delay: 0.3s; height: 50%; }
.watch-bars i:nth-child(5) { animation-delay: 0.4s; height: 75%; }

.watch-incident {
  color: var(--champagne) !important;
}

.lux-viz[data-watch-mode="alert"] .watch-incident {
  color: #ffb4ad !important;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-actions span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e7f3ef;
  opacity: 0.45;
  transition: opacity 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.lux-viz[data-watch-mode="alert"] .watch-actions span {
  opacity: 1;
}

.watch-actions span.is-accent {
  border-color: rgba(198, 161, 91, 0.45);
  background: rgba(198, 161, 91, 0.14);
  color: #f0dfb4;
}

@keyframes watch-bead {
  0% { left: 0; opacity: 0.4; }
  40% { opacity: 1; }
  100% { left: 100%; opacity: 0.35; }
}

@keyframes watch-bead-vert {
  0% { top: 0; opacity: 0.4; }
  40% { opacity: 1; }
  100% { top: 100%; opacity: 0.35; }
}

/* Adoption path */
.adopt-rail-wrap {
  --adopt-progress: 0%;
  position: relative;
  margin-top: 8px;
}

.adopt-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.adopt-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  z-index: 0;
}

.adopt-fill {
  display: block;
  height: 100%;
  width: var(--adopt-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--champagne));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.adopt-pulse {
  position: absolute;
  top: 50%;
  left: var(--adopt-progress);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #f5faf8;
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.2), 0 0 20px rgba(198, 161, 91, 0.5);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.adopt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.adopt-index {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  background: linear-gradient(160deg, #14362f, #0b1f1c);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d7e6e2;
}

.adopt-step strong {
  color: #f5faf8;
  font-size: 0.95rem;
}

.adopt-step > span:last-child {
  color: rgba(215, 230, 226, 0.55);
  font-size: 0.78rem;
}

.adopt-step.is-lit {
  background: rgba(15, 118, 110, 0.16);
}

.adopt-step.is-lit .adopt-index {
  background: linear-gradient(145deg, var(--navy), var(--teal));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
}

.adopt-note {
  margin: 18px 0 0;
  color: rgba(215, 230, 226, 0.62);
  font-size: 0.9rem;
}

/* ——— CTA / Pricing / Forms ——— */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 28px;
  color: #f5faf8;
  background:
    radial-gradient(circle at 12% 20%, rgba(198, 161, 91, 0.22), transparent 40%),
    linear-gradient(135deg, #071612 0%, #12352f 55%, #0f766e 130%);
  box-shadow: var(--shadow);
}

.cta h2 {
  color: #f5faf8;
  margin-bottom: 8px;
}

.cta p {
  margin: 0;
  color: rgba(245, 250, 248, 0.78);
  max-width: 48ch;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: rgba(15, 118, 110, 0.35);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: 0 24px 50px rgba(15, 118, 110, 0.12);
}

.price-card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--champagne-soft);
  color: #7a5a1e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  margin: 18px 0;
  font-family: var(--brand-font);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.price small {
  font-family: var(--ui-font);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: rgba(15, 118, 110, 0.45);
}

.notice {
  border-left: 3px solid var(--champagne);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--ink-soft);
}

.legal {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal a {
  color: var(--teal);
  font-weight: 600;
}

.legal a:hover {
  text-decoration: underline;
}

/* ——— Legal pages ——— */
.legal-page {
  padding: calc(var(--header-h) + 36px) 0 24px;
}

.legal-wrap {
  width: min(820px, calc(100% - 40px));
}

.legal-wrap h1 {
  margin: 0 0 12px;
  font-family: var(--brand-font);
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: var(--ink);
}

.legal-wrap h2 {
  margin: 32px 0 12px;
  font-family: var(--brand-font);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-wrap ul {
  padding-left: 1.2rem;
}

.legal-wrap a {
  color: var(--teal);
  font-weight: 600;
}

.legal-wrap a:hover {
  text-decoration: underline;
}

.legal-meta {
  margin: 0 0 22px;
  font-size: 0.92rem;
}

.legal-callout {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.07);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-banner {
  margin: 8px 0 28px;
  padding: 22px 22px 8px;
  border-radius: 20px;
  border: 1px solid rgba(180, 35, 24, 0.28);
  background:
    linear-gradient(180deg, rgba(180, 35, 24, 0.08), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow-sm);
}

.legal-banner h2 {
  margin: 0 0 12px;
  color: #8a1f16;
  font-size: 1.2rem;
}

.legal-banner li {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.legal-banner strong {
  color: var(--ink);
}

/* ——— Footer ——— */
.footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand .brand-name {
  font-size: 1.35rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--teal);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-soft {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-media img,
  .hero-media::before,
  .hero-rule {
    animation: none;
  }
  .flow-board-glow,
  .flow-live-dot,
  .flow-mock-bar i,
  .flow-spark,
  .flow-ticks em,
  .flow-gate-mid,
  .flow-actions-mock span.is-accent,
  .flow-step.is-active .flow-node-ring,
  .flow-safety-pulse,
  .hw-bead,
  .hw-glow,
  .lux-viz-glow,
  .strat-beams span::after,
  .risk-exit-pulse,
  .watch-pulse-bead,
  .watch-bars i {
    animation: none;
  }
  .flow-rail-fill,
  .flow-rail-pulse,
  .flow-mock,
  .risk-token,
  .adopt-fill,
  .adopt-pulse,
  .hw-token {
    transition: none;
  }
}

/* ——— Mobile ——— */
@media (max-width: 960px) {
  .navlinks,
  .actions {
    display: none;
  }

  .topbar.is-open .navlinks,
  .topbar.is-open .actions {
    display: flex;
  }

  .topbar.is-open {
    height: auto;
  }

  .topbar.is-open .nav {
    height: auto;
    padding: 14px 0 18px;
    display: flex;
    flex-wrap: wrap;
  }

  .topbar.is-open .nav-toggle {
    margin-left: auto;
  }

  .topbar.is-open .navlinks {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .topbar.is-open .actions {
    order: 4;
    width: 100%;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-2,
  .grid-2.reverse,
  .grid-3,
  .stat-row,
  .pricing,
  .form-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .flow-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hw-intel-row,
  .hw-gate-row {
    grid-template-columns: 1fr 1fr;
  }

  .hw-watch-grid {
    grid-template-columns: 1fr;
  }

  .hw-token {
    display: none;
  }

  .flow-detail-panel {
    min-height: 200px;
  }

  .flow-board-top {
    flex-direction: column;
  }

  .flow-rail {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 8px;
  }

  .flow-rail-line {
    left: 35px;
    right: auto;
    top: 28px;
    bottom: 70px;
    width: 2px;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
  }

  .flow-rail-fill {
    width: 100%;
    height: var(--flow-progress);
  }

  .flow-rail-pulse {
    left: 50%;
    top: var(--flow-progress);
    margin: -6px 0 0 -6px;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    text-align: left;
    gap: 14px;
  }

  .flow-step-label span {
    margin-top: 0;
  }

  .strat-sources {
    grid-template-columns: 1fr;
  }

  .strat-beams {
    display: none;
  }

  .watch-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .watch-link {
    width: 2px;
    height: 28px;
    justify-self: center;
  }

  .watch-pulse-bead {
    left: 50%;
    top: 0;
    animation-name: watch-bead-vert;
  }

  .watch-meter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .adopt-rail {
    grid-template-columns: 1fr 1fr;
  }

  .adopt-line {
    display: none;
  }

  .lux-viz {
    min-height: 0;
  }

  .grid-2.reverse > :first-child {
    order: 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media img {
    object-position: 60% 20%;
    opacity: 0.62;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(5, 18, 15, 0.55) 0%, rgba(5, 18, 15, 0.72) 45%, rgba(5, 18, 15, 0.88) 100%),
      linear-gradient(105deg, rgba(5, 18, 15, 0.75) 0%, rgba(5, 18, 15, 0.35) 100%);
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

/* ——— Login / trial page ——— */
.page-login {
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(20, 184, 166, 0.1), transparent 55%),
    radial-gradient(700px 380px at 95% 8%, rgba(198, 161, 91, 0.1), transparent 50%),
    var(--bg);
}

.auth-hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
}

.auth-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 12% 30%, rgba(15, 118, 110, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 45% at 90% 20%, rgba(198, 161, 91, 0.12), transparent 55%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: start;
}

.auth-brand-pane {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 36px 32px;
  border-radius: 28px;
  color: #f5faf8;
  background:
    radial-gradient(circle at 18% 20%, rgba(198, 161, 91, 0.22), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.28), transparent 48%),
    linear-gradient(160deg, #071612 0%, #12352f 55%, #0f766e 130%);
  box-shadow: var(--shadow);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand-title {
  font-family: var(--brand-font);
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 12px;
}

.auth-brand-pane h1 {
  margin: 0 0 14px;
  font-family: var(--brand-font);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f5faf8;
}

.auth-brand-pane .lead {
  margin: 0 0 28px;
  color: rgba(245, 250, 248, 0.78);
  max-width: 36ch;
}

.auth-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-highlights li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.auth-highlights strong {
  font-family: var(--brand-font);
  font-size: 1.05rem;
  font-weight: 600;
}

.auth-highlights span {
  color: rgba(245, 250, 248, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-panels {
  display: grid;
  gap: 20px;
}

.auth-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow-sm);
}

.auth-card-trial {
  border-color: rgba(198, 161, 91, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(198, 161, 91, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: 0 24px 56px rgba(122, 90, 30, 0.1);
}

.trial-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2c478, var(--champagne));
  color: #1a1408;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-card-head {
  margin-bottom: 20px;
  padding-right: 120px;
}

.auth-card-head h2 {
  margin: 0 0 8px;
  font-family: var(--brand-font);
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.auth-card-head .desc {
  font-size: 0.98rem;
}

.trial-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.trial-perks > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(198, 161, 91, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.trial-perks strong {
  font-family: var(--brand-font);
  font-size: 1rem;
  color: var(--ink);
}

.trial-perks span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn.full {
  width: 100%;
}

.auth-inline-link {
  display: inline-block;
  margin-top: 4px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal);
}

.auth-inline-link:hover {
  text-decoration: underline;
}

.auth-card .legal {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-pane {
    position: static;
    min-height: 0;
  }

  .auth-card-head {
    padding-right: 0;
  }

  .trial-ribbon {
    position: static;
    display: inline-flex;
    margin-bottom: 14px;
  }

  .trial-perks,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
