/* ============================================================
   ArcGenesis — Landing Page v1
   Authored against BRAND_GUIDE.md
   ============================================================ */

/* ----- Tokens ---------------------------------------------- */
:root {
  /* Brand */
  --ink: #1a1c20;
  --ink-soft: #2a2d33;
  --ink-deep: #20232a;
  --cyan: #37d3f1;
  --cyan-deep: #1ab5d3;

  /* Light surfaces */
  --canvas: #fafbfc;
  --canvas-deep: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --line: #e2e7ed;

  /* Text */
  --text: #14161a;
  --text-2: #4f5159;
  --text-3: #8a8b91;
  --text-on-dark: #e9e8e1;
  --text-on-dark-2: #9c9e9c;
  --text-on-dark-3: #5a5d63;

  /* Status */
  --sage: #16a34a;
  --sage-bg: #dcf5e3;
  --amber: #d97706;
  --amber-bg: #fef0d9;
  --rose: #dc2626;
  --rose-bg: #fde2e2;

  /* Spacing */
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 20px; --s6: 24px;  --s8: 32px;  --s10: 40px;
  --s12: 48px;--s16: 64px; --s20: 80px;

  /* Radii */
  --r1: 3px; --r2: 5px; --r3: 8px; --r4: 12px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(20, 22, 26, 0.05),
              0 2px 6px rgba(20, 22, 26, 0.04);
  --shadow-2: 0 2px 4px rgba(20, 22, 26, 0.06),
              0 8px 20px rgba(20, 22, 26, 0.06);
  --shadow-3: 0 12px 32px rgba(20, 22, 26, 0.12),
              0 4px 10px rgba(20, 22, 26, 0.06);

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo,
               Monaco, Consolas, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button { font-family: inherit; cursor: pointer; }

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

::selection { background: var(--cyan); color: var(--ink); }

/* ----- Layout primitives ----------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s8);
}

.container-narrow {
  max-width: 760px;
}

/* ----- Type ------------------------------------------------- */
.display-1 {
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}

.display-2 {
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
}

.display-3 {
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.eyebrow-cyan { color: var(--cyan); }

.eyebrow-num {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid currentColor;
  border-radius: var(--r1);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.cyan-text { color: var(--cyan); }

/* ----- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--s5);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r2);
  transition: background 140ms var(--ease-out),
              border-color 140ms var(--ease-out),
              color 140ms var(--ease-out),
              transform 140ms var(--ease-out),
              box-shadow 140ms var(--ease-out);
  white-space: nowrap;
}

.btn-sm { height: 34px; padding: 0 var(--s4); font-size: 13px; }
.btn-lg { height: 48px; padding: 0 var(--s6); font-size: 14.5px; }

.btn-accent {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(55, 211, 241, 0), 0 8px 24px rgba(55, 211, 241, 0.18);
}
.btn-accent:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(55, 211, 241, 0.14), 0 10px 28px rgba(55, 211, 241, 0.22);
}
.btn-accent:disabled,
.btn-accent[disabled] {
  background: rgba(55, 211, 241, 0.25);
  border-color: rgba(55, 211, 241, 0.25);
  color: rgba(20, 22, 26, 0.45);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-text {
  color: var(--text-on-dark-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0 var(--s2);
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.btn-text:hover {
  color: var(--text-on-dark);
  border-color: var(--text-on-dark-3);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(20, 22, 26, 0.72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s5) var(--s8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
}

.brand-mark {
  flex-shrink: 0;
  display: block;
}

/* Footer logo: invert white-A to dark while preserving cyan arc */
.brand-mark-dark {
  filter: invert(1) hue-rotate(180deg);
}

.brand-word {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text-on-dark);
}

.brand-word-light { color: var(--ink); }

.header-rule {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(55, 211, 241, 0.5) 20%,
    rgba(55, 211, 241, 0.7) 50%,
    rgba(55, 211, 241, 0.5) 80%,
    transparent 100%
  );
  opacity: 0.65;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  overflow: hidden;
  min-height: 100vh;
  padding: 140px 0 var(--s16);
  display: flex;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 35%, transparent 90%);
  pointer-events: none;
}

.hero-bg-network {
  position: absolute;
  top: 0;
  right: -40px;
  width: 50%;
  max-width: 600px;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--s8);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s12);
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.hero-copy .eyebrow {
  margin-bottom: var(--s5);
}

.hero-headline {
  margin-bottom: var(--s6);
}

.hero-headline .cyan-text {
  display: block;
}

.hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--text-on-dark-2);
  max-width: 480px;
  margin: 0 0 var(--s10) 0;
}

.hero-cta-row {
  display: inline-flex;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;
}

/* ============================================================
   MOCKUP — Monday Briefing
   ============================================================ */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.mockup {
  position: relative;
  background: #1c1f25;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.mockup::before {
  /* subtle cyan glow behind card */
  content: "";
  position: absolute;
  inset: -40px -30px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(55, 211, 241, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  padding: var(--s3) var(--s4);
  background: #16181d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3d44;
  display: inline-block;
}
.chrome-dots span:nth-child(1) { background: #ff5f56; }
.chrome-dots span:nth-child(2) { background: #ffbd2e; }
.chrome-dots span:nth-child(3) { background: #27c93f; }

.chrome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-3);
}

.mockup-body {
  padding: var(--s5) var(--s5) var(--s5) var(--s5);
}

.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.briefing-title {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
}

.briefing-title h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(55, 211, 241, 0.7);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(55, 211, 241, 0.6);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(55, 211, 241, 0);
    opacity: 0.7;
  }
}

.briefing-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-on-dark-3);
  letter-spacing: 0.02em;
}

.heir-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.heir-card {
  position: relative;
  padding: var(--s3) var(--s4) var(--s4) var(--s4);
  background: #1f2229;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--r2);
  border-left-width: 4px;
  border-left-style: solid;
}

.heir-rose {
  border-left-color: var(--rose);
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.07) 0%,
    rgba(31, 34, 41, 0.6) 35%,
    #1f2229 100%
  );
}

.heir-cyan {
  border-left-color: var(--cyan);
  background: linear-gradient(
    90deg,
    rgba(55, 211, 241, 0.07) 0%,
    rgba(31, 34, 41, 0.6) 35%,
    #1f2229 100%
  );
}

.heir-sage {
  border-left-color: var(--sage);
  background: linear-gradient(
    90deg,
    rgba(22, 163, 74, 0.07) 0%,
    rgba(31, 34, 41, 0.6) 35%,
    #1f2229 100%
  );
}

.heir-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s2);
}

.heir-id {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}

.heir-id strong {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-on-dark);
  letter-spacing: -0.005em;
}

.heir-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}

.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.meta-rose { color: #ff7373; }
.meta-cyan { color: var(--cyan); }
.meta-sage { color: #4ade80; }

.touchpoint-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r2);
  padding: 5px 10px;
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.touchpoint-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  padding: 4px 7px;
  border-radius: var(--r1);
  white-space: nowrap;
}

.pill-rose {
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
}
.pill-cyan {
  background: rgba(55, 211, 241, 0.16);
  color: var(--cyan);
}
.pill-sage {
  background: rgba(22, 163, 74, 0.18);
  color: #4ade80;
}

.heir-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
}

.note-rose { color: #ffa3a3; }
.note-cyan { color: #7ee3f5; }
.note-sage { color: #6fdc8c; }

.note-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  opacity: 0.7;
}

/* ============================================================
   SECTIONS — light
   ============================================================ */
.section {
  padding: var(--s20) 0;
}

.section-light {
  background: var(--canvas);
  color: var(--text);
}

.section-head {
  margin-bottom: var(--s10);
}

.section-head .eyebrow {
  margin-bottom: var(--s5);
}

.section-head h2 {
  max-width: 760px;
}

.lede {
  margin: var(--s5) 0 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 640px;
}

.prose {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.prose p {
  margin: 0 0 var(--s5) 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-emph {
  color: var(--text);
  font-weight: 500;
}

/* ----- The Shift section ----- */
.section-shift {
  border-top: 1px solid var(--line);
  padding: var(--s20) 0;
}

/* ----- Shift section: poster headline + centered narrative ----- */
.shift-headline-wrap {
  text-align: center;
  margin-bottom: var(--s12);
}

/* Decorative eyebrow above the headline: line — diamond — line */
.shift-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin: 0 auto var(--s6);
  max-width: 220px;
}

.shift-eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--line) 50%,
    transparent 100%
  );
}

.shift-eyebrow-mark {
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}

.shift-h {
  margin: 0 auto;
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 18ch;
  text-align: center;
}

.shift-prose {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.shift-prose > p {
  margin: 0 0 var(--s5);
}

.shift-prose > p:last-child {
  margin-bottom: 0;
}

/* First paragraph: slightly elevated — leads the section */
.shift-lead {
  font-size: 17.5px;
  color: var(--text);
}

/* Recognition callout — the "you already know this" beat,
   set apart with horizontal rules + a centered cyan accent */
.shift-recognition {
  position: relative;
  margin: var(--s10) 0;
  padding: var(--s8) 0 var(--s7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.shift-recognition::before,
.shift-recognition::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60px;
  height: 1px;
  background: var(--cyan);
  transform: translateX(-50%);
}

.shift-recognition::before { top: -1px; }
.shift-recognition::after  { bottom: -1px; }

.shift-recognition p {
  margin: 0 auto var(--s4);
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.shift-recognition p:last-child {
  margin-bottom: 0;
}

.shift-recognition-cue {
  margin-bottom: var(--s4) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em;
  color: var(--text) !important;
}

/* Variant of pull-quote for the Shift section: centered, no left bar */
.pull-quote-shift {
  margin-top: var(--s10) !important;
  padding: var(--s2) 0 0 !important;
  text-align: center;
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.4 !important;
  color: var(--text);
  border: 0;
}

.pull-quote-shift::before {
  content: none;
}

.pull-quote-shift::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: var(--s5) auto 0;
  background: var(--cyan);
  border-radius: 2px;
}

@media (max-width: 720px) {
  .shift-recognition {
    padding: var(--s6) 0 var(--s5);
  }
  .shift-eyebrow { max-width: 160px; }
}

/* ============================================================
   STORY SECTIONS — two-column editorial layout
   Used by Permission + Shift
   ============================================================ */
.section-story {
  padding: var(--s20) 0;
}

.story-grid {
  display: grid;
  gap: var(--s12);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.story-grid-headline-left {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.story-grid-headline-right {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.story-headline {
  padding: var(--s2) 0 var(--s2) var(--s8);
  position: -webkit-sticky;
  position: sticky;
  top: 112px;
}

.story-grid-headline-right .story-headline {
  padding-left: var(--s8);
}

.story-accent {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--cyan) 0%,
    rgba(55, 211, 241, 0.15) 100%
  );
  border-radius: 2px;
}

.story-h {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 12ch;
}

/* The "rejected" word in each headline — visually crossed out */
.story-strike {
  position: relative;
  display: inline-block;
  color: var(--text-3);
  font-weight: 500;
}

.story-strike::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 54%;
  height: 2px;
  background: var(--cyan);
  transform: rotate(-2.5deg);
  border-radius: 2px;
  opacity: 0.85;
  pointer-events: none;
}

.story-prose {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 56ch;
}

.story-grid-headline-right .story-prose {
  margin-left: auto;
}

.story-prose p {
  margin: 0 0 var(--s5);
}

.story-prose p:last-child {
  margin-bottom: 0;
}

/* Pull-quote: emphasized closing line */
.pull-quote {
  position: relative;
  margin: var(--s10) 0 0 !important;
  padding: var(--s4) 0 var(--s4) var(--s6);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--text);
}

.pull-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--cyan) 0%,
    var(--cyan-deep) 100%
  );
  border-radius: 2px;
}

/* Mobile: collapse to single column, drop sticky */
@media (max-width: 880px) {
  .story-grid,
  .story-grid-headline-left,
  .story-grid-headline-right {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }
  .story-headline {
    position: static;
    padding-left: var(--s6);
  }
  .story-grid-headline-right .story-headline {
    padding-left: var(--s6);
  }
  /* On mobile, headline always comes first regardless of source order */
  .story-grid-headline-right .story-headline { order: -1; }
  .story-h {
    max-width: none;
  }
  .story-grid-headline-right .story-prose {
    margin-left: 0;
  }
}

/* ----- Mechanism section ----- */
.section-mechanism {
  border-top: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--s10);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.feature-card {
  padding: var(--s10) var(--s8);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 200ms var(--ease-out);
}

.feature-card:nth-child(2n) { border-right: none; }
.feature-card:nth-child(n+3) { border-bottom: none; }

.feature-card:hover {
  background: var(--surface-2);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin: 0 0 var(--s4) 0;
  font-weight: 500;
}

.feature-title {
  margin: 0 0 var(--s3) 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38ch;
}

.mechanism-closer {
  margin: var(--s12) auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 640px;
}

.closer-emph {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

/* ----- Stakes section ----- */
.section-stakes {
  border-top: 1px solid var(--line);
  background: var(--canvas-deep);
}

/* ----- AUM Slider Tool ----- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aum-tool {
  margin: var(--s10) 0;
  padding: var(--s10) var(--s8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  box-shadow: var(--shadow-1);
}

.aum-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
  text-align: center;
}

.aum-current-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.aum-current-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.aum-slider-wrap {
  margin-bottom: var(--s8);
}

.aum-slider {
  --progress: 0.179;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--cyan) 0%,
    var(--cyan) calc(var(--progress) * 100%),
    var(--line) calc(var(--progress) * 100%),
    var(--line) 100%
  );
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 0;
}

.aum-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--cyan);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.18);
  transition: transform 120ms var(--ease-out),
              box-shadow 120ms var(--ease-out),
              border-color 120ms var(--ease-out);
}
.aum-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(55, 211, 241, 0.4);
}
.aum-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
  border-color: var(--cyan-deep);
}
.aum-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background: var(--ink);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.18);
  transition: transform 120ms var(--ease-out),
              box-shadow 120ms var(--ease-out);
}
.aum-slider::-moz-range-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(55, 211, 241, 0.4);
}
.aum-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
}
.aum-slider::-moz-range-track {
  background: transparent;
  height: 6px;
}

.aum-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(55, 211, 241, 0.3),
              0 4px 16px rgba(55, 211, 241, 0.4);
}
.aum-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(55, 211, 241, 0.3),
              0 4px 16px rgba(55, 211, 241, 0.4);
}

.aum-scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.aum-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}

.aum-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-align: center;
}

.aum-result-label {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.aum-result-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-left: 2px;
}

.aum-result-value {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.aum-difference {
  margin-top: var(--s8);
  padding-top: var(--s8);
  border-top: 1px solid var(--line);
  text-align: center;
}

.aum-difference-label {
  margin: 0 0 var(--s3) 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.aum-difference-value {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ============================================================
   HEIR DECODER — base classes shared by both pages
   ============================================================ */
.section-decoder {
  position: relative;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: var(--s20) 0;
}

.decoder-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 80%);
  pointer-events: none;
}

.decoder-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(55, 211, 241, 0.10), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}

.decoder-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.decoder-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-3);
}

/* ============================================================
   HEIR DECODER — mid-page CTA (landing page)
   Light section background, dark contained "callout" box
   ============================================================ */
.section-decoder-cta {
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.decoder-callout {
  position: relative;
  margin: 0 auto;
  max-width: 880px;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: var(--s16) var(--s12);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 50px rgba(20, 22, 26, 0.18),
    0 8px 22px rgba(20, 22, 26, 0.10);
}

.decoder-callout-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
  pointer-events: none;
}

.decoder-callout-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(55, 211, 241, 0.12), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.decoder-callout-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.decoder-callout-headline {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-on-dark);
}

.decoder-callout-sub {
  margin: var(--s5) auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-on-dark-2);
  max-width: 540px;
}

.decoder-callout-actions {
  margin-top: var(--s10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}

.decoder-callout-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-3);
}

/* ----- Sample output card (inside the callout) ----- */
.decoder-sample {
  position: relative;
  margin: var(--s10) auto 0;
  max-width: 640px;
  text-align: left;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.decoder-sample-chrome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: #0e1014;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.decoder-sample-chrome .chrome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-3);
  pointer-events: none;
  white-space: nowrap;
}

.decoder-sample-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(55, 211, 241, 0.10);
  border: 1px solid rgba(55, 211, 241, 0.25);
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  z-index: 1;
}

.decoder-sample-body {
  position: relative;
  padding: var(--s5);
  max-height: 460px;
  overflow: hidden;
}

.decoder-sample-rule {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-on-dark-3);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

.decoder-sample-title {
  margin: var(--s2) 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-on-dark);
}

.decoder-sample-data {
  margin: var(--s5) 0 0;
  display: grid;
  gap: 8px;
  padding: var(--s4);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.decoder-sample-data .data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  align-items: baseline;
}

.decoder-sample-data dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
}

.decoder-sample-data dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-on-dark);
  text-align: right;
}

.decoder-sample-data dd.data-flag { color: #fca5a5; }
.decoder-sample-data dd.data-warn { color: #ffd072; }

.decoder-sample-section {
  margin: var(--s6) 0 0;
}

.decoder-sample-heading {
  margin: 0 0 var(--s2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.decoder-sample-heading::before {
  content: "### ";
  color: var(--text-on-dark-3);
  letter-spacing: 0;
}

.decoder-sample-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

.decoder-sample-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(22, 24, 29, 0), #16181d);
  pointer-events: none;
}

/* ============================================================
   HEIR DECODER PAGE — page-specific
   ============================================================ */

/* Header on the decoder page sits over a dark hero. */
.site-header-dark .header-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-2);
  padding: 0 var(--s2);
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.site-header-dark .header-back:hover {
  color: var(--text-on-dark);
  border-color: var(--text-on-dark-3);
}

/* Decoder hero variant — taller, bolder typography. */
.section-decoder-hero {
  padding-top: 160px;
  padding-bottom: var(--s20);
}

.section-decoder-hero .decoder-inner > .eyebrow {
  margin-bottom: var(--s5);
  justify-content: center;
}

.decoder-page-headline {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text-on-dark);
  text-align: center;
}

.decoder-page-sub {
  margin: var(--s6) auto 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--text-on-dark-2);
  max-width: 540px;
}

.decoder-meta-large {
  margin-top: var(--s8);
  font-size: 12.5px;
}

/* ----- The Prompt section ----- */
.section-prompt {
  border-top: 1px solid var(--line);
}

.prompt-card {
  position: relative;
  margin: var(--s10) 0 0;
  background: #1c1f25;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(20, 22, 26, 0.18),
    0 8px 18px rgba(20, 22, 26, 0.10);
}

.prompt-card::before {
  content: "";
  position: absolute;
  inset: -50px -30px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(55, 211, 241, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.prompt-card-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: #16181d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.prompt-card-chrome .chrome-dots { flex-shrink: 0; }

.prompt-card-chrome .chrome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-3);
  pointer-events: none;
}

.prompt-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-on-dark);
  background: rgba(55, 211, 241, 0.08);
  border: 1px solid rgba(55, 211, 241, 0.28);
  border-radius: var(--r2);
  cursor: pointer;
  transition: background 140ms var(--ease-out),
              border-color 140ms var(--ease-out),
              color 140ms var(--ease-out);
  z-index: 2;
}
.prompt-copy-btn:hover {
  background: rgba(55, 211, 241, 0.16);
  border-color: rgba(55, 211, 241, 0.5);
  color: var(--cyan);
}
.prompt-copy-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(55, 211, 241, 0.25);
}
.prompt-copy-btn.is-copied {
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(22, 163, 74, 0.5);
  color: #4ade80;
}
.prompt-copy-btn .prompt-copy-icon {
  display: inline-flex;
  align-items: center;
}

.prompt-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--s8) var(--s8);
  max-height: 540px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-on-dark);
  white-space: pre-wrap;
  word-wrap: break-word;
  tab-size: 2;
}

/* Tasteful scrollbar */
.prompt-text::-webkit-scrollbar { width: 10px; }
.prompt-text::-webkit-scrollbar-track { background: transparent; }
.prompt-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 2px solid #1c1f25;
}
.prompt-text::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

.prompt-after {
  margin: var(--s10) auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-align: center;
  max-width: 560px;
}

/* ----- How-to grid ----- */
.section-howto {
  border-top: 1px solid var(--line);
  background: var(--canvas-deep);
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--s10);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.howto-card {
  padding: var(--s10) var(--s8);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms var(--ease-out);
}
.howto-card:nth-child(2n) { border-right: none; }
.howto-card:nth-child(n+3) { border-bottom: none; }
.howto-card:hover { background: var(--surface-2); }

.howto-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin: 0 0 var(--s4);
  font-weight: 500;
}

.howto-title {
  margin: 0 0 var(--s3);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.howto-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38ch;
}

/* ----- Decoder-page FAQ (light variant) ----- */
.section-decoder-faq {
  border-top: 1px solid var(--line);
}

.decoder-faq {
  margin-top: var(--s8);
}

.faq-item-light {
  border-top-color: var(--line);
}
.faq-item-light:last-child {
  border-bottom-color: var(--line);
}
.faq-item-light .faq-q {
  color: var(--text);
}
.faq-item-light .faq-q:hover {
  color: var(--cyan-deep);
}
.faq-item-light .faq-a {
  color: var(--text-2);
}

/* ----- Soft handoff (compact dark CTA) ----- */
.section-handoff {
  position: relative;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: var(--s16) 0;
}

.handoff-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 90%);
  pointer-events: none;
}

.handoff-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.handoff-headline {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-on-dark);
}

.handoff-sub {
  margin: var(--s6) auto var(--s10);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-on-dark-2);
  max-width: 520px;
}

.handoff-cta {
  margin: 0 auto;
}

/* ============================================================
   FOUNDING COHORT — dark CTA + email form + FAQ
   ============================================================ */
.section-cohort {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  padding: var(--s20) 0;
}

.cohort-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

.cohort-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(55, 211, 241, 0.10), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}

.cohort-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cohort-inner > .eyebrow {
  margin-bottom: var(--s5);
  justify-content: center;
}

.cohort-headline {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-on-dark);
}

.cohort-headline-2 {
  display: block;
  color: var(--cyan);
  margin-top: 4px;
}

.cohort-sub {
  margin: var(--s6) auto 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-on-dark-2);
  max-width: 540px;
}

.cohort-form {
  margin: var(--s10) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 480px;
  width: 100%;
}

.cohort-input {
  flex: 1;
  min-width: 0;
  height: 72px;
  padding: 0 var(--s6);
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r2);
  outline: none;
  transition: border-color 140ms var(--ease-out),
              background 140ms var(--ease-out),
              box-shadow 140ms var(--ease-out);
}

.cohort-input::placeholder {
  color: var(--text-on-dark-3);
}

.cohort-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.cohort-input:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(55, 211, 241, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.cohort-submit {
  width: 100%;
  margin-top: var(--s2);
}

/* Success state — replaces form area on successful submission */
.cohort-success {
  position: relative;
  z-index: 1;
  margin: var(--s10) auto 0;
  max-width: 460px;
  padding: var(--s8) var(--s5) var(--s4);
  text-align: center;
}

.cohort-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s5);
  color: var(--cyan);
  border-radius: 50%;
  background: rgba(55, 211, 241, 0.10);
  border: 1px solid rgba(55, 211, 241, 0.30);
  box-shadow: 0 0 0 6px rgba(55, 211, 241, 0.05);
}

.cohort-success-title {
  margin: 0 0 var(--s3);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
}

.cohort-success-text {
  margin: 0 auto;
  max-width: 380px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-on-dark-2);
}

.cohort-meta {
  margin: var(--s5) auto 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-3);
}

/* ----- FAQ accordion ----- */
.cohort-faq {
  position: relative;
  z-index: 1;
  margin: var(--s20) auto 0;
  max-width: 640px;
}

.cohort-faq-heading {
  margin: 0 0 var(--s8);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: var(--s5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-on-dark);
  transition: color 140ms var(--ease-out);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--cyan); }

.faq-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.faq-icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq-a {
  padding: 0 0 var(--s5);
  color: var(--text-on-dark-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-a p {
  margin: 0;
  max-width: 60ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  padding: var(--s10) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}

.brand-footer {
  gap: var(--s2);
}

.footer-nav {
  display: flex;
  gap: var(--s6);
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 140ms var(--ease-out);
}
.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* ============================================================
   ANIMATIONS — scroll-triggered reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
  will-change: opacity, transform;
}

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

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }

/* Hero staggered children animate in on load */
.hero-copy.stagger.is-visible > *:nth-child(1) { transition-delay: 100ms; }
.hero-copy.stagger.is-visible > *:nth-child(2) { transition-delay: 220ms; }
.hero-copy.stagger.is-visible > *:nth-child(3) { transition-delay: 340ms; }
.hero-copy.stagger.is-visible > *:nth-child(4) { transition-delay: 460ms; }

.hero-mockup.reveal {
  transition-delay: 200ms;
}

/* Feature cards stagger inside the grid */
.features-grid.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.features-grid.stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.features-grid.stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.features-grid.stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .live-dot { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero {
    padding: 120px 0 var(--s12);
    min-height: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s12);
  }
  .hero-mockup { justify-self: stretch; max-width: none; }
  .hero-bg-network { opacity: 0.45; right: -120px; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-card:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }

  .container, .header-inner, .hero-inner {
    padding-left: var(--s5);
    padding-right: var(--s5);
  }

  .section { padding: var(--s16) 0; }

  .header-inner .btn-sm { display: none; }

  .hero-headline .cyan-text { display: inline; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s5);
  }

  .footer-nav { flex-wrap: wrap; gap: var(--s4); }

  .heir-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
  }
  .heir-id { flex-wrap: wrap; }

  /* Slider: bigger touch target on mobile */
  .aum-tool { padding: var(--s8) var(--s5); }
  .aum-slider::-webkit-slider-thumb {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }
  .aum-slider::-moz-range-thumb {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }
  .aum-results {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .aum-current-value { font-size: 22px; }
  .aum-result-value { font-size: 20px; }

  /* Cohort form stacks on mobile */
  .cohort-form {
    flex-direction: column;
    gap: var(--s3);
  }
  .cohort-submit { width: 100%; }

  /* Decoder callout tightens on mobile */
  .decoder-callout { padding: var(--s10) var(--s5); border-radius: 12px; }
  .decoder-sample-body { padding: var(--s4); max-height: 420px; }
  .decoder-sample-chrome .chrome-title { display: none; }
  .decoder-sample-data { padding: var(--s3); }
  .decoder-sample-data dt { font-size: 9.5px; }
  .decoder-sample-data dd { font-size: 11.5px; }
  .decoder-sample-text { font-size: 12.5px; }
  .decoder-sample-rule { font-size: 9.5px; }

  /* Heir Decoder page: prompt + how-to ----- */
  .prompt-card-chrome .chrome-title { display: none; }
  .prompt-text { padding: var(--s5) var(--s4); font-size: 12.5px; }
  .howto-grid { grid-template-columns: 1fr; }
  .howto-card { border-right: none; border-bottom: 1px solid var(--line); }
  .howto-card:last-child { border-bottom: none; }
  .section-decoder-hero { padding-top: 120px; }

  /* Header back link shrinks gracefully */
  .site-header-dark .header-back { font-size: 11.5px; }
}

@media (max-width: 980px) {
  .howto-grid { grid-template-columns: 1fr; }
  .howto-card { border-right: none; border-bottom: 1px solid var(--line); }
  .howto-card:last-child { border-bottom: none; }
}
