/* —————————————————————————————————————————————————
   Hunchfox · Fresco Product
   Palette from the fresco + cofounder.co: cream paper · ink ·
     sage · coral · sky · ochre
   Typography: PP Mondwest (display) · Inter (body) · Plex Mono (labels)
   ————————————————————————————————————————————————— */

@font-face {
  font-family: "PP Mondwest";
  src: local("PP Mondwest"), local("PPMondwest-Regular"), local("PP Mondwest Regular");
  font-display: swap;
}

:root {
  /* Paper — matches the app */
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #ececf1;
  --paper-line: #e5e7eb;

  /* Ink — app text palette */
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --dim: #9ca3af;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.20);

  /* Accents — primary = pure ink (editorial, no color) */
  --sage: #111827;          /* slate ink — same as --ink */
  --sage-bright: #374151;   /* soft slate for hover states */
  --sage-soft: #f3f4f6;

  --coral: #dc2626;
  --coral-bright: #ef4444;
  --coral-soft: #fee2e2;

  --sky: #3b82f6;
  --sky-bright: #60a5fa;
  --sky-soft: #dbeafe;

  --ochre: #d97706;
  --ochre-bright: #f59e0b;
  --ochre-soft: #fef3c7;

  --red: #b42318;

  /* Type */
  --font-display: "PP Mondwest", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-page: 1240px;
  --section-y: clamp(72px, 10vw, 160px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 35% at 50% 10%, rgba(17, 24, 39, 0.04), transparent 70%),
    radial-gradient(50% 35% at 85% 70%, rgba(59, 130, 246, 0.03), transparent 70%);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.dim   { color: var(--dim); }
.sage  { color: var(--sage); }
.coral { color: var(--coral); }
.sky   { color: var(--sky); }
.ochre { color: var(--ochre); }

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* —————————————————————————————————————————————————
   FX
   ————————————————————————————————————————————————— */

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.grain {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.09  0 0 0 0 0.12  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.vignette {
  background: radial-gradient(closest-side at 50% 60%, transparent 62%, rgba(17, 24, 39, 0.08) 100%);
}

.page { position: relative; z-index: 1; }

/* —————————————————————————————————————————————————
   TOPBAR
   ————————————————————————————————————————————————— */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 3vw, 32px) 0;
  background: transparent;
  pointer-events: none;
}
.topbar .brand,
.topbar .topbar__contact { pointer-events: auto; }
.topbar__contact { margin-left: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.topbar__contact:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.topbar__contact-arr {
  display: inline-block;
  transition: transform 160ms var(--ease-out);
}
.topbar__contact:hover .topbar__contact-arr {
  transform: translateX(2px);
}

/* Status dot reused */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.5);
  animation: pulseDot 2.4s var(--ease-out) infinite;
}
.dot--sm { width: 5px; height: 5px; }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0   rgba(17,24,39,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(17,24,39,0); }
  100% { box-shadow: 0 0 0 0   rgba(17,24,39,0); }
}

/* —————————————————————————————————————————————————
   BUTTONS
   ————————————————————————————————————————————————— */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    transform 200ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn__arr { transition: transform 200ms var(--ease-out); }

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}
.btn:hover .btn__arr { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--sage-bright);
  border-color: var(--sage-bright);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.28);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn--sm { padding: 9px 16px; font-size: 13px; }

/* —————————————————————————————————————————————————
   HERO
   ————————————————————————————————————————————————— */

.hero {
  position: relative;
  padding: clamp(120px, 18vh, 220px) clamp(16px, 3vw, 32px) clamp(80px, 12vh, 140px);
  display: grid;
  place-items: center;
  gap: clamp(20px, 2.6vw, 34px);
  text-align: center;
  min-height: min(840px, 92vh);
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background-image: url("./oracle.png");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.9;
  z-index: 0;
  animation: frescoIn 1.6s var(--ease-out) both;
}
@keyframes frescoIn {
  from { opacity: 0; transform: scale(1.02); filter: blur(8px); }
  to   { opacity: 0.9; transform: none; filter: none; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 40%,
      rgba(245, 240, 232, 0.55) 70%,
      rgba(245, 240, 232, 0.95) 92%,
      var(--bg) 100%
    ),
    radial-gradient(120% 60% at 50% 100%, rgba(255, 255, 255, 0.85), transparent 70%);
}

.hero > *:not(.hero__backdrop):not(.hero__scrim) {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeUp 900ms var(--ease-out) 300ms both;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14ch;
  animation: fadeUp 1.2s var(--ease-out) 450ms both;
}
.headline__line { display: block; }
.headline__em { color: var(--sage); font-style: italic; }

.sub {
  max-width: 54ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  animation: fadeUp 1.2s var(--ease-out) 650ms both;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: rgba(248, 245, 237, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeUp 1.2s var(--ease-out) 800ms both;
}
.hero__proof__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
  vertical-align: middle;
}
.hero__proof__sep {
  opacity: 0.4;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1.2s var(--ease-out) 950ms both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* —————————————————————————————————————————————————
   SECTION HEADS + LABELS
   ————————————————————————————————————————————————— */

.section-head {
  max-width: var(--max-page);
  margin: 0 auto clamp(36px, 5vw, 64px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 10px;
  max-width: 20ch;
}

.section-sub {
  margin-top: 12px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label__mk { color: var(--coral); font-size: 12px; }

/* —————————————————————————————————————————————————
   PRODUCT SURFACE
   ————————————————————————————————————————————————— */

.surface {
  padding: clamp(24px, 4vw, 60px) clamp(16px, 3vw, 32px) var(--section-y);
  max-width: var(--max-page);
  margin: 0 auto;
}

.surface__card {
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 80px rgba(17, 24, 39, 0.16),
    0 10px 30px rgba(17, 24, 39, 0.08);
  overflow: hidden;
  animation: cardIn 900ms var(--ease-out) 200ms both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Head */
.surface__head {
  display: grid;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.surface__stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.surface__stats {
  display: flex;
  gap: 22px;
}

/* Session chip row */
.sessions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.session {
  --accent: var(--sage);
  --accent-soft: var(--sage-soft);
  position: relative;
  padding: 10px 12px 11px;
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  overflow: hidden;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.session--sage  { --accent: var(--sage);  --accent-soft: var(--sage-soft); }
.session--coral { --accent: var(--coral); --accent-soft: var(--coral-soft); }
.session--sky   { --accent: var(--sky);   --accent-soft: var(--sky-soft); }
.session--ochre { --accent: var(--ochre); --accent-soft: var(--ochre-soft); }

.session:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-1px);
}

.session__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.session__kind { color: var(--accent); }
.session__pct  { color: var(--ink); font-variant-numeric: tabular-nums; }

.session__q {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  min-height: 2.6em;
}

.session__bar {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  overflow: hidden;
}
.session__bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--accent);
  border-radius: inherit;
}
.stat {
  display: grid;
  gap: 4px;
  text-align: right;
}
.stat__val {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat__lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Body */
.surface__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
}

.panel {
  padding: 18px 22px 22px;
  border-bottom: 1px solid var(--line);
}
.panel:not(:last-child) { border-right: 0; }

.panel--graph {
  border-right: 1px solid var(--line);
  padding-bottom: 28px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}
.panel__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel__title em {
  font-style: normal;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 15px;
}
.panel__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: lowercase;
  font-variant-numeric: tabular-nums;
}

.type-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}
.type-chip--sky   { background: var(--sky-soft);   color: var(--sky); }
.type-chip--ochre { background: var(--ochre-soft); color: var(--ochre); }
.type-chip--coral { background: var(--coral-soft); color: var(--coral); }
.type-chip--sage  { background: var(--sage-soft);  color: var(--sage); }

/* Graph */
.graph {
  width: 100%;
  height: auto;
  display: block;
}
.graph .n text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--ink);
}
.graph .n__lbl {
  font-weight: 500;
}
.graph .n__lbl--sm { font-size: 9.5px; fill: var(--ink-soft); }
.graph .n__tag {
  font-size: 9px;
  fill: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.graph .n circle { transition: transform 300ms var(--ease-out); transform-origin: center; }
.graph .n:hover circle { transform: scale(1.4); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__item--muted { opacity: 0.6; }

.sw {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
}
.sw--sage  { background: var(--sage); }
.sw--sky   { background: var(--sky); }
.sw--ochre { background: var(--ochre); }
.sw--coral { background: var(--coral); }
.sw--dim   { background: var(--dim); }
.sw--dashed {
  background: transparent;
  border: 1px dashed var(--coral);
}

/* Right rail */
.rail {
  display: grid;
  grid-template-rows: auto auto auto;
}

.panel--sim:not(:last-child) { border-bottom: 1px solid var(--line); }

.panel__foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.panel__foot em { font-style: normal; color: var(--ink); }

/* Monte Carlo chart */
.mc-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  align-items: end;
  gap: 2px;
  height: 96px;
  padding: 6px 2px 2px;
  background:
    repeating-linear-gradient(0deg, rgba(26,24,21,0.04) 0 1px, transparent 1px 24px);
}
.mc-bar {
  position: relative;
  height: calc(var(--h) * 100%);
  background: linear-gradient(180deg, var(--sky-bright), var(--sky));
  border-radius: 2px 2px 0 0;
  animation: mcBar 2.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.mc-bar:nth-child(odd) { animation-delay: -0.4s; }
.mc-bar:nth-child(3n)  { animation-delay: -1.2s; }
.mc-bar:nth-child(4n)  { animation-delay: -1.9s; }
.mc-bar--mode { background: linear-gradient(180deg, var(--ink), var(--sage)); }

@keyframes mcBar {
  0%   { transform: scaleY(0.92); opacity: 0.85; }
  100% { transform: scaleY(1); opacity: 1; }
}


/* Population grid */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 2px;
  padding: 6px 0;
}
.pop-dot {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--dim);
  transition: background-color 500ms ease;
}
.pop-dot.s-support { background: var(--sage); }
.pop-dot.s-oppose  { background: var(--coral); }
.pop-dot.s-undec   { background: var(--dim); opacity: 0.5; }

/* Social feed */
.feed {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, transparent 4%, var(--surface) 4%, var(--surface) 96%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 0, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, black 12%, black 88%, transparent 100%);
}

.feed__track {
  display: grid;
  gap: 10px;
  padding: 10px;
  animation: feedScroll 32s linear infinite;
}

@keyframes feedScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.tweet {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}
.tweet header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.tweet__h {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--coral);
}
.tweet__m {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.tweet p {
  margin: 2px 0 6px;
  color: var(--ink);
}
.tweet footer {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Progress footer */
.surface__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(380px, 100%);
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress__bar {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}
.progress__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--sage), var(--sage-bright));
  animation: progress 12s linear infinite;
  width: 0%;
}
@keyframes progress {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.progress__pct { color: var(--ink); font-variant-numeric: tabular-nums; }

.surface__p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pval {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--sage);
  letter-spacing: -0.01em;
}
.pσ { color: var(--muted); }

/* —————————————————————————————————————————————————
   CAPABILITIES
   ————————————————————————————————————————————————— */

.caps {
  padding: var(--section-y) clamp(16px, 3vw, 32px);
  max-width: var(--max-page);
  margin: 0 auto;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cap {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.cap:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
}

.cap__icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.cap__icon svg { width: 100%; height: 100%; }
.cap__icon--sage  { background: var(--sage-soft);  color: var(--sage); }
.cap__icon--sky   { background: var(--sky-soft);   color: var(--sky); }
.cap__icon--ochre { background: var(--ochre-soft); color: var(--ochre); }
.cap__icon--coral { background: var(--coral-soft); color: var(--coral); }

.cap h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cap p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cap__stat {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap__stat em { font-style: normal; color: var(--ink); font-weight: 500; }

/* —————————————————————————————————————————————————
   DOMAIN TILES
   ————————————————————————————————————————————————— */

.domains {
  padding: var(--section-y) clamp(16px, 3vw, 32px);
  max-width: var(--max-page);
  margin: 0 auto;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  --accent: var(--sage);
  --accent-soft: var(--sage-soft);

  position: relative;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  overflow: hidden;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.tile--sage  { --accent: var(--sage);  --accent-soft: var(--sage-soft);  }
.tile--coral { --accent: var(--coral); --accent-soft: var(--coral-soft); }
.tile--sky   { --accent: var(--sky);   --accent-soft: var(--sky-soft);   }
.tile--ochre { --accent: var(--ochre); --accent-soft: var(--ochre-soft); }

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12); }
.tile:hover::before { opacity: 1; }

.tile > * { position: relative; z-index: 1; }

.tile__kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.tile__rows { display: grid; gap: 2px; }
.tile__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tile__row:first-child { border-top: 0; }
.tile__row span:last-child { color: var(--ink); }

.tile__sparkline {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--accent);
  height: 28px;
}
.tile__sparkline svg {
  width: 100%; height: 100%;
  display: block;
}

/* —————————————————————————————————————————————————
   WAITLIST
   ————————————————————————————————————————————————— */

.waitlist {
  padding: var(--section-y) clamp(16px, 3vw, 32px);
  max-width: 820px;
  margin: 0 auto;
}

/* —— quiet (footnote) variant —— */
.waitlist--quiet {
  padding: clamp(40px, 6vh, 72px) clamp(16px, 3vw, 32px) clamp(20px, 3vh, 32px);
  max-width: 640px;
}
.waitlist__quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.waitlist__quiet-line {
  margin: 0;
}
.waitlist__inline {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.waitlist__inline:focus-within {
  border-color: rgba(17, 24, 39, 0.4);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
.waitlist__inline input {
  background: transparent;
  border: 0;
  outline: 0;
  padding: 6px 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  width: clamp(180px, 26vw, 240px);
}
.waitlist__inline input::placeholder {
  color: rgba(17, 24, 39, 0.4);
}
.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}
.waitlist__quiet-note {
  opacity: 0.7;
  font-size: 11px;
  flex-basis: 100%;
  margin-top: 4px;
}

.waitlist__card {
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 48px rgba(17, 24, 39, 0.14);
}

.waitlist__head {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 10px;
}

.waitlist__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 24px;
}

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

.form__field {
  display: grid;
  gap: 6px;
}
.form__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__opt {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
  font-style: italic;
  margin-left: 6px;
}

.form__field input,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: 0;
  resize: vertical;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.form__field textarea { min-height: 68px; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--dim); }
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--sage);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.form__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.form__note[data-state="success"] { color: var(--sage); }
.form__note[data-state="error"]   { color: var(--red); }
.form[data-submitted="true"] input,
.form[data-submitted="true"] textarea,
.form[data-submitted="true"] button {
  opacity: 0.55;
  pointer-events: none;
}

/* —————————————————————————————————————————————————
   FAQ
   ————————————————————————————————————————————————— */

.faq {
  padding: 0 clamp(16px, 3vw, 32px) var(--section-y);
  max-width: 860px;
  margin: 0 auto;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}
.faq__list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
  transition: transform 220ms var(--ease-out);
}
.faq__list details[open] summary::after { content: "–"; color: var(--coral); }
.faq__list p {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* —————————————————————————————————————————————————
   FOOTER
   ————————————————————————————————————————————————— */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px clamp(16px, 3vw, 32px) 40px;
  border-top: 1px solid var(--line);
  max-width: var(--max-page);
  margin: 0 auto;
}
.footer__left, .footer__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.25);
  padding-bottom: 1px;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.footer__link:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.footer__sep {
  color: var(--muted);
  opacity: 0.5;
  font-family: var(--font-mono);
}

/* —————————————————————————————————————————————————
   RESPONSIVE
   ————————————————————————————————————————————————— */

@media (max-width: 1020px) {
  .surface__body { grid-template-columns: 1fr; }
  .panel--graph { border-right: 0; border-bottom: 1px solid var(--line); }
  .cap-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .sessions { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}

@media (max-width: 640px) {
  .cap-grid, .tile-grid { grid-template-columns: 1fr; }
  .surface__stat-row { flex-direction: column; align-items: flex-start; }
  .surface__stats { width: 100%; justify-content: space-between; gap: 12px; }
  .stat { text-align: left; }
  .sessions { grid-template-columns: 1fr; }
  .panel__foot { font-size: 10px; }
  .pop-grid { grid-template-columns: repeat(20, 1fr); }
  .feed { height: 180px; }
  .form__actions { flex-direction: column; align-items: stretch; }
}

/* —————————————————————————————————————————————————
   REDUCED MOTION
   ————————————————————————————————————————————————— */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .feed__track, .progress__bar span, .mc-bar, .pop-dot { animation: none; }
  .hero__backdrop, .headline, .surface__card { opacity: 1; transform: none; filter: none; }
}
