/* =====================================================================
   GaitEQ — Pre-launch site stylesheet
   Brand: Twilight Indigo #1C2E4A · Cerulean #0E7490 · Burgundy #800020
          Platinum #EBEBEB · Ash Grey #CAD2C5
   Type: Cormorant Garamond (display) + Inter (body)
   ===================================================================== */

/* -------- tokens -------- */
:root {
  /* Palette */
  --indigo: #1C2E4A;
  --indigo-90: #243a5b;
  --indigo-80: #324c70;
  --cerulean: #0E7490;
  --cerulean-hover: #095a72;
  --burgundy: #800020;
  --platinum: #EBEBEB;
  --ash: #CAD2C5;
  --paper: #F5F5F1;
  --paper-2: #FBFAF6;
  --white: #FFFFFF;

  /* Text */
  --ink: #1C2E4A;
  --text: #2A3852;
  --muted: #5A6677;
  --faint: #8B95A6;
  --on-dark: #F6F4EE;
  --on-dark-muted: #B9C5DA;

  /* Type */
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --container: 1200px;
  --pad: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Radii / shadow */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-card: 0 1px 2px rgba(28,46,74,0.04), 0 8px 24px -12px rgba(28,46,74,0.10);
  --shadow-card-hover: 0 1px 2px rgba(28,46,74,0.06), 0 16px 40px -16px rgba(28,46,74,0.20);
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--cerulean); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--cerulean-hover); }
button { font: inherit; cursor: pointer; }

/* -------- type -------- */
.h-display, h1.h-display, h2.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); font-weight: 500; margin: 0 0 0.5em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 64ch; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cerulean);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--text); max-width: 56ch; }

/* -------- layout -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section { padding: var(--section-y) 0; }
section + section { border-top: 1px solid rgba(28,46,74,0.06); }
.section-dark { background: var(--indigo); color: var(--on-dark); border-top: none; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: #6ec5d6; }
.section-dark p { color: var(--on-dark-muted); }
.section-paper { background: var(--paper-2); }

/* -------- header -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,241,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(28,46,74,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.brand img { height: 28px; width: auto; }
.brand:hover { color: var(--ink); }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text); font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; }
.nav-cta.btn-primary { color: #FFFFFF !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(28,46,74,0.18);
  border-radius: 999px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--paper-2);
    border-top: 1px solid rgba(28,46,74,0.08);
    border-bottom: 1px solid rgba(28,46,74,0.08);
    padding: 0.5rem var(--pad) 1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(28,46,74,0.06);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .nav-cta {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
  }
  .nav-toggle { display: inline-flex; }
}

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: var(--indigo);
  color: #FFFFFF !important;
}
.btn-primary:hover,
.btn-primary:focus { background: var(--indigo-90); color: #FFFFFF !important; transform: translateY(-1px); }
.btn-accent {
  background: var(--cerulean); color: var(--white);
}
.btn-accent:hover { background: var(--cerulean-hover); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: rgba(28,46,74,0.18);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light {
  background: var(--white); color: var(--ink);
}
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* -------- hero -------- */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 480px at 85% 20%, rgba(14,116,144,0.07), transparent 70%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero::after {
  /* subtle classical "arena" line, evokes a dressage arena edge without imagery */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28,46,74,0.18) 30%, rgba(28,46,74,0.18) 70%, transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.2rem;
}
.hero .lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--muted);
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cerulean); display: inline-block; }
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.phone-frame {
  position: relative;
  background: var(--white);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 1px 2px rgba(28,46,74,0.06),
    0 30px 60px -28px rgba(28,46,74,0.30),
    inset 0 0 0 1px rgba(28,46,74,0.06);
  max-width: 320px;
  width: 100%;
}
.phone-frame img {
  border-radius: 26px;
  display: block;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Mobile reading order fix: copy first, mockup second */
  .hero-visual { order: 2; max-width: 260px; margin: 1.5rem auto 0; }
  .hero-grid > div:not(.hero-visual) { order: 1; }
}

/* -------- problem strip -------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 3rem;
}
.stat-card .num.num-sm {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  letter-spacing: -0.005em;
}
.stat-card {
  background: var(--white);
  border: 1px solid rgba(28,46,74,0.08);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.stat-card .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cerulean);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.stat-card p { font-size: 0.95rem; color: var(--text); margin: 0; }
@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr; }
  /* Sample Tuesday columns on Riders page also stack as full-width rows on mobile (M-07) */
  section .screens.stack-mobile,
  section .screens > .stat-card:nth-child(n) { /* no-op anchor */ }
}
@media (max-width: 760px) {
  .stack-mobile { grid-template-columns: 1fr !important; }
  .stack-mobile .stat-card { padding: 1.75rem 1.5rem; }
}

/* -------- pillars / feature rows -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}
/* Tightened variant for pillar-heavy sections (M-06) */
.pillars.pillars--tight { margin-top: 2rem; gap: 1.25rem 2rem; }
.pillar h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cerulean);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.pillar p { font-size: 0.97rem; color: var(--text); margin: 0; }

/* -------- product showcase (three screens) -------- */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
  align-items: end;
}
/* Tablet: still wide, side-by-side. Mobile: stack with sane sizing. */
@media (max-width: 860px) {
  .screens.screens--scroll {
    grid-template-columns: repeat(3, 75vw);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .screens.screens--scroll .screen-card { scroll-snap-align: start; }
}
.screen-card {
  text-align: center;
}
.screen-frame {
  background: var(--white);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 1px 2px rgba(28,46,74,0.06),
    0 24px 50px -22px rgba(28,46,74,0.30),
    inset 0 0 0 1px rgba(28,46,74,0.06);
  margin: 0 auto 1.25rem;
  max-width: 270px;
}
.screen-frame img { border-radius: 20px; }
.screen-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}
.screen-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 26ch;
}
@media (max-width: 860px) {
  .screens { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* -------- audience cards (3-up) -------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.aud-card {
  background: var(--white);
  border: 1px solid rgba(28,46,74,0.08);
  border-radius: var(--r-lg);
  padding: 2.25rem 1.9rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.aud-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(14,116,144,0.30);
}
.aud-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cerulean);
  font-weight: 700;
}
.aud-card h3 {
  font-size: 1.65rem;
  margin: 0;
}
.aud-card p {
  font-size: 0.97rem;
  color: var(--text);
  margin: 0;
}
.aud-card .more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cerulean);
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  padding-bottom: 2px;
}
.aud-card .more::after { content: "→"; transition: transform 0.2s ease; }
.aud-card:hover .more { border-bottom-color: var(--cerulean); }
.aud-card:hover .more::after { transform: translateX(3px); }
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr; } }

/* -------- ethos / quote -------- */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--white);
  max-width: 32ch;
  margin: 0 0 1.5rem;
  letter-spacing: -0.005em;
}
.quote-source { font-size: 0.85rem; color: var(--on-dark-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* -------- two-col text block -------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--reverse .split-text { order: 2; }
.split--reverse .split-visual { order: 1; }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-text, .split--reverse .split-visual { order: 0; }
}

/* -------- waitlist form -------- */
.waitlist {
  background: var(--indigo);
  color: var(--on-dark);
}
.waitlist .form-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.waitlist h2 { color: var(--white); margin-bottom: 1rem; }
.waitlist .lead { color: var(--on-dark-muted); margin: 0 auto 2rem; }
.form-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
}
.form-row input[type="email"] {
  flex: 1 1 280px;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-row input[type="email"]::placeholder { color: rgba(246,244,238,0.55); }
.form-row input[type="email"]:focus {
  border-color: #6ec5d6;
  background: rgba(255,255,255,0.10);
}
.persona-select {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  margin: 0 0 1rem;
}
.persona-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.persona-pill:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.persona-pill.active {
  background: var(--cerulean);
  color: var(--white);
  border-color: var(--cerulean);
}
.form-note { font-size: 0.82rem; color: var(--on-dark-muted); margin-top: 1rem; opacity: 0.8; }
.form-success {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  background: rgba(110,197,214,0.12);
  border: 1px solid rgba(110,197,214,0.35);
  border-radius: var(--r);
  color: var(--white);
  font-size: 0.95rem;
  display: none;
}
.form-success.show { display: block; }

/* -------- FAQ -------- */
.faq-list {
  max-width: 760px;
  margin: 1.5rem auto 0;
  border-top: 1px solid rgba(28,46,74,0.10);
}
#faq { padding: clamp(3rem, 6vw, 5rem) 0; }
#faq .center { margin-bottom: 0.5rem; }
.faq-item { border-bottom: 1px solid rgba(28,46,74,0.10); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .plus {
  width: 22px; height: 22px;
  border: 1.5px solid var(--cerulean);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cerulean);
  font-size: 14px; line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text);
}
.faq-a-inner { padding: 0 0 1.3rem; font-size: 0.98rem; max-width: 64ch; }
.faq-item.open .faq-a { max-height: 320px; }

/* -------- footer -------- */
.site-footer {
  background: var(--indigo);
  color: #D9DEE8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1.2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-grid a { color: #D9DEE8; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 3px; }
.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p { color: var(--on-dark-muted); font-size: 0.92rem; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--on-dark-muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* -------- interior page header -------- */
.page-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); margin-bottom: 0; }

/* -------- generic content blocks -------- */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.bullet-list li {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.8rem;
  align-items: start;
}
.bullet-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--cerulean);
  border-radius: 50%;
  margin-top: 0.6rem;
}
.bullet-list li > * { margin: 0; }
.bullet-list strong { color: var(--ink); font-weight: 700; }

.callout {
  background: var(--white);
  border: 1px solid rgba(28,46,74,0.10);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.tier {
  background: var(--white);
  border: 1px solid rgba(28,46,74,0.10);
  border-radius: var(--r-lg);
  padding: 2.25rem 1.9rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
@media (max-width: 760px) {
  .tier { padding: 1.75rem 1.35rem; }
}
.tier.featured {
  background: var(--indigo);
  color: var(--on-dark);
  border-color: var(--indigo);
}
.tier.featured h3, .tier.featured .price { color: var(--white); }
.tier.featured p { color: var(--on-dark-muted); }
.tier .tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cerulean);
  font-weight: 700;
}
.tier.featured .tag { color: #6ec5d6; }
.tier h3 { font-size: 1.6rem; margin: 0; }
.tier .price { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 500; }
.tier .desc { font-size: 0.95rem; margin: 0.4rem 0 0; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

.roadmap {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.phase {
  background: var(--white);
  border: 1px solid rgba(28,46,74,0.08);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 130px 200px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

/* Investor stat-block size up for legibility (m-02) */
.stat-block-big .pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.stat-block-big .pillar p { font-size: 1rem; color: var(--text); }
.phase .ph { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cerulean); font-weight: 700; }
.phase .when { color: var(--muted); font-size: 0.92rem; }
.phase h3 { font-size: 1.2rem; margin: 0 0 0.25rem; }
.phase p { margin: 0; font-size: 0.95rem; color: var(--text); }
@media (max-width: 760px) {
  .phase { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* -------- reveal animation -------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------- utility -------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-prose { max-width: 56ch; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
