/* ==========================================================================
   hiveCell — marketing site stylesheet
   Design tokens: see design-system/MASTER.md
   Mobile-first. Breakpoints: 640 / 900 / 1120.
   ========================================================================== */

:root {
  color-scheme: light;

  /* colour */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F5F0E6;
  --ink: #241B10;
  --ink-2: #43392C;
  --muted: #5C5348;
  --muted-2: #6E6456;
  --hairline: #EAE1D0;
  --hairline-2: #E3D8C2;

  --honey: #F2A93B;
  --honey-soft: #F6C878;
  --honey-deep: #E8960F;
  --honey-outline: #D9A64E;
  --honey-hover: #E99A22;

  --brown: #8F5E0B;
  --brown-deep: #6B4A16;
  --brown-ink: #4A340F;
  --ink-on-honey: #2B1D08;

  --panel-amber: #FBEED4;
  --panel-amber-border: #EBCE93;
  --panel-gray: #EEF1F4;
  --panel-gray-border: #D4DCE4;
  --slate: #46586C;
  --slate-ink: #2E3C4B;

  --success: #2E7D46;
  --success-soft: #F1F8F3;
  --danger-bg: #FDECEC;
  --danger-border: #E5B9B9;
  --danger: #8C3535;

  /* type */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-kicker: 0.8125rem;   /* 13 */
  --fs-caption: 0.9375rem;  /* 15 */
  --fs-body: 1.0625rem;     /* 17 */
  --fs-lede: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-card-title: 1.25rem; /* 20 */
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem);

  /* space */
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;

  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(36, 27, 16, 0.04), 0 12px 32px -20px rgba(36, 27, 16, 0.25);

  /* motion */
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 600ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* layers */
  --z-nav: 100;
  --z-menu: 110;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: var(--s-3); }

a { color: var(--brown); text-underline-offset: 0.15em; }
a:hover { color: var(--brown-deep); }

button { font: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong, b { color: var(--ink); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 500;
}
.skip-link:focus { top: var(--s-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-kicker);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 var(--s-3);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--muted);
  margin-top: var(--s-3);
  max-width: 62ch;
}
.section-head--center .lede { margin-inline: auto; }

.grid {
  display: grid;
  gap: var(--s-4);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Components: cards, panels, chips, buttons
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card--amber { background: #FDF6E8; border-color: #E5C89A; }

.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-card-title);
  line-height: 1.3;
  color: var(--ink);
}
.card__body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: var(--s-1);
}

.icon-chip {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center;
  color: var(--brown);
  flex: none;
}
.icon-chip svg { width: 24px; height: 24px; }

.panel {
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.panel--amber {
  background: var(--panel-amber);
  border: 1px solid var(--panel-amber-border);
}
.panel--gray {
  background: var(--panel-gray);
  border: 1px solid var(--panel-gray-border);
}

.label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label--brown { color: var(--brown); }
.label--slate { color: var(--slate); }
.label--muted { color: var(--muted-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.2;
}
.chip--amber { background: var(--panel-amber); color: var(--brown-deep); }
.chip--outline { background: var(--surface); border: 1px solid var(--panel-amber-border); color: var(--brown-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--honey);
  color: var(--ink-on-honey);
  box-shadow: 0 10px 24px -14px rgba(143, 94, 11, 0.7);
}
.btn--primary:hover { background: var(--honey-hover); color: var(--ink-on-honey); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--secondary:hover { background: var(--surface); border-color: #CDBE9E; color: var(--ink); }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: #3A2E1E; color: #fff; }

.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(250, 247, 242, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(250, 247, 242, 0.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark svg { width: 26px; height: 28px; }
.wordmark .lt { font-weight: 300; color: var(--muted-2); }
.wordmark .hv { font-weight: 700; color: var(--ink); }

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__links a:hover { background: var(--surface); color: var(--ink); }

.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__menu {
  display: none;
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-3) var(--s-4);
}
.nav__menu.is-open { display: block; }
.nav__menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-2);
  text-decoration: none;
}
.nav__menu a:hover { background: var(--surface); }
.nav__menu .btn { margin-top: var(--s-3); width: 100%; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .nav__menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 6.5rem) clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7); }
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: var(--s-2);
}
.hero__title em {
  font-style: normal;
  color: var(--brown);
}
.hero__lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--muted);
  margin-top: var(--s-4);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }

.hero__note {
  margin-top: var(--s-3);
  font-size: var(--fs-caption);
  color: var(--muted-2);
}

.hero__art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.hero__art svg { width: 100%; height: auto; }

.channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  color: var(--muted-2);
  font-size: var(--fs-caption);
}
.channels__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.channels__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
}
.channels__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
}
.channels__list svg { width: 18px; height: 18px; color: var(--brown); }

/* --------------------------------------------------------------------------
   Problem: journey + stats
   -------------------------------------------------------------------------- */
.journey {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
  position: relative;
}
@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .journey::before {
    content: "";
    position: absolute;
    left: 6%; right: 6%;
    top: calc(100% - 3.25rem);
    border-top: 2px dashed #D8CDB8;
  }
}
.stop {
  display: grid;
  gap: var(--s-2);
  position: relative;
}
.stop__bubble {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-3);
  position: relative;
}
.stop__bubble::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: -9px;
  width: 16px; height: 16px;
  background: inherit;
  border-right: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
  transform: rotate(45deg);
}
.stop__quote {
  font-style: italic;
  color: #38404A;
  font-size: 1.05rem;
}
.stop__desc { color: #5A6572; font-size: 0.95rem; margin-top: 0.25rem; }
.stop__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--s-2);
  position: relative;
  z-index: 1;
}
.stop__node {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--panel-gray);
  border: 2px solid #B9C4CF;
  display: grid; place-items: center;
  color: var(--slate);
  flex: none;
}
.stop__node svg { width: 22px; height: 22px; }
.stop__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.stop--danger .stop__bubble { background: var(--danger-bg); border-color: var(--danger-border); }
.stop--danger .stop__bubble::after { border-color: var(--danger-border); }
.stop--danger .stop__quote { color: var(--danger); font-weight: 700; }
.stop--danger .stop__desc { color: #874646; }
.stop--danger .stop__node { background: var(--danger-bg); border-color: #D9A0A0; color: #A44A4A; }
.stop--danger .stop__name { color: var(--danger); }

.stats {
  margin-top: var(--s-6);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.6em; }
.stat__label { color: var(--ink-2); margin-top: var(--s-2); line-height: 1.4; }
.stat__src { color: var(--muted-2); font-size: 0.875rem; margin-top: var(--s-2); }

/* --------------------------------------------------------------------------
   The shift: before / after
   -------------------------------------------------------------------------- */
.shift {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 900px) { .shift { grid-template-columns: 1fr 1fr; } }
.shift__panel { display: flex; flex-direction: column; gap: var(--s-3); }
.shift__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}
.panel--gray .shift__title { color: var(--slate-ink); }
.panel--amber .shift__title { color: var(--brown-ink); }
.shift__art svg { width: 100%; height: auto; }
.shift__foot { font-size: 1rem; line-height: 1.5; margin-top: auto; }
.panel--gray .shift__foot { color: #3E4E5F; }
.panel--amber .shift__foot { color: #54400F; }

/* --------------------------------------------------------------------------
   Demo conversation
   -------------------------------------------------------------------------- */
.demo {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
  align-items: start;
}
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.thread {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.msg {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; text-align: right; }
.msg__bubble {
  border-radius: 16px;
  padding: var(--s-3) 1.125rem;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
}
.msg--in .msg__bubble {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.msg--out .msg__bubble {
  background: var(--panel-amber);
  border: 1px solid var(--panel-amber-border);
  border-bottom-right-radius: 4px;
  color: #3E2B0C;
}
.msg__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.msg--out .msg__meta { color: var(--brown); justify-content: flex-end; }
.msg__meta svg { width: 14px; height: 14px; }

.action-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  background: var(--success);
  color: #fff;
  border-radius: 12px;
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-2);
}
.action-band__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.action-band__title svg { width: 18px; height: 18px; }
.action-band__detail { color: var(--success-soft); font-size: 0.95rem; }

.thread__controls {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

/* sequencing states (JS adds .is-playing on .demo; each step gets .is-shown) */
.demo-step {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.demo-step.is-shown { opacity: 1; transform: none; }
.demo:not(.js) .demo-step { opacity: 1; transform: none; }

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--panel-amber);
  border: 1px solid var(--panel-amber-border);
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  visibility: hidden;
}
.typing.is-visible { visibility: visible; }
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brown);
  opacity: 0.5;
  animation: typing 1s infinite var(--ease);
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.cell-panel { position: sticky; top: 96px; }
.cell-panel__art { margin: var(--s-3) auto 0; width: 200px; }
.cell-panel__art svg { width: 100%; height: auto; }
.cell-panel__art .cell { transition: fill var(--t-slow) var(--ease), stroke var(--t-slow) var(--ease); }
.fact-list { margin-top: var(--s-3); }
.fact {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.6rem 0;
  border-bottom: 1px solid #F0E8D8;
  font-size: 0.95rem;
  transition: opacity var(--t-slow) var(--ease);
}
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted-2); }
.fact dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.demo.js .fact[data-step] { opacity: 0.35; }
.demo.js .fact[data-step].is-shown { opacity: 1; }
.cell-panel__note { font-size: 0.875rem; color: var(--muted-2); margin-top: var(--s-2); }

/* --------------------------------------------------------------------------
   Actions grid
   -------------------------------------------------------------------------- */
.actions { margin-top: var(--s-6); }
.action-card { display: flex; flex-direction: column; gap: var(--s-2); }
.action-card .card__title { margin-top: var(--s-1); }

.guard-note {
  margin-top: var(--s-4);
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  color: var(--muted);
  font-size: 1rem;
}
.guard-note svg { width: 22px; height: 22px; color: var(--brown); flex: none; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Memory
   -------------------------------------------------------------------------- */
.memory {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 900px) { .memory { grid-template-columns: 1.05fr 1fr; } }
.memory .panel--amber { display: flex; flex-direction: column; justify-content: center; padding: var(--s-5); }
.memory .card { display: flex; flex-direction: column; }
.memory .timeline-art { flex: 1; display: flex; align-items: center; }
.metaphor {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
  line-height: 1.45;
  color: var(--brown-ink);
}
.metaphor + .metaphor { margin-top: var(--s-4); color: var(--brown); }
.metaphor u {
  text-decoration: none;
  border-bottom: 3px solid var(--honey);
}
.timeline-art svg { width: 100%; height: auto; margin-top: var(--s-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-3); }

.quotes {
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 640px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.5;
  margin-top: var(--s-2);
}
.panel--gray .quote { color: var(--slate); }
.panel--amber .quote { color: var(--brown-deep); }
.quotes .panel { display: flex; flex-direction: column; justify-content: center; }

/* --------------------------------------------------------------------------
   Improving
   -------------------------------------------------------------------------- */
.improve { margin-top: var(--s-6); }
.improve .card { display: flex; flex-direction: column; }
.improve__art { margin-top: var(--s-3); }
.improve__art svg { width: 100%; height: auto; max-width: 330px; margin-inline: auto; }
.improve .card__body { margin-top: var(--s-3); }
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.check-row + .check-row { margin-top: 0.5rem; }
.check-row__ok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--success);
}
.check-row__ok svg { width: 14px; height: 14px; }
.check-list { margin-top: var(--s-3); }
.release-ok {
  margin-top: var(--s-3);
  background: var(--success);
  color: #fff;
  border-radius: 9px;
  padding: 0.7rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Trust
   -------------------------------------------------------------------------- */
.trust { margin-top: var(--s-6); }
.trust .card { display: flex; flex-direction: column; gap: var(--s-2); }

.handoff {
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-4);
}
.handoff__top {
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 640px) { .handoff__top { grid-template-columns: auto 1fr; } }
.handoff__art svg { width: 240px; max-width: 100%; height: auto; }
.handoff__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-card-title);
  color: var(--brown-ink);
}
.handoff__body { color: #54400F; margin-top: var(--s-1); line-height: 1.55; }
.handoff__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--panel-amber-border);
}

/* --------------------------------------------------------------------------
   Stack + 3 days
   -------------------------------------------------------------------------- */
.stack {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 900px) { .stack { grid-template-columns: 1.35fr 1fr; } }
.lanes { display: grid; gap: var(--s-2); }
.lane {
  padding: var(--s-3) var(--s-4);
}
.lane__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
}
.lane__logos { font-size: 0.9rem; color: var(--muted-2); }
.lane .card__body { margin-top: 0.25rem; }
.stack__art svg { width: 100%; max-width: 380px; height: auto; margin-inline: auto; }

.days {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 900px) { .days { grid-template-columns: repeat(3, 1fr); } }
.day {
  position: relative;
}
.day__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--brown);
}
.day .card__title { margin-top: 0.25rem; }
.signature {
  margin-top: var(--s-4);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--brown-ink);
  padding: var(--s-3) var(--s-4);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta__grid {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
  align-items: start;
}
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.2fr 1fr; } }
.steps { display: grid; gap: var(--s-2); }
.step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
}
.step__hex {
  flex: none;
  width: 40px; height: 44px;
}
.step__text { font-size: 1.05rem; color: var(--ink); }

.outcomes { display: grid; gap: var(--s-3); }
.outcomes__pair {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr 1fr;
}
.outcomes .stat__num { font-size: clamp(2.25rem, 1.8rem + 1.2vw, 2.75rem); }
.outcomes__divider { border-top: 1px solid var(--hairline); margin-top: var(--s-2); padding-top: var(--s-3); }

.cta-band {
  margin-top: var(--s-6);
  background: var(--honey);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: grid;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr auto; text-align: left; }
}
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  color: var(--ink-on-honey);
  line-height: 1.2;
}
.cta-band__sub { color: var(--brown-ink); margin-top: 0.35rem; font-size: 1rem; }
.cta-band__sub a { color: var(--brown-ink); font-weight: 700; }
.cta-band .btn--dark { justify-self: center; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  margin-top: var(--s-6);
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: var(--s-2);
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  flex: none;
  width: 20px; height: 20px;
  color: var(--brown);
  transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { background: var(--bg); }
.faq .faq__body {
  padding: 0 var(--s-4) var(--s-4);
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-6) var(--s-5);
  background: var(--surface-2);
}
.footer__grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__tag { color: var(--muted); margin-top: var(--s-3); max-width: 34ch; }
.footer__head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-2);
}
.footer ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 1rem;
}
.footer ul li a:hover { color: var(--brown); text-decoration: underline; }
.footer__bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  font-size: 0.9rem;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .demo-step { opacity: 1 !important; transform: none !important; }
  .demo.js .fact[data-step] { opacity: 1 !important; }
  .typing { display: none !important; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .nav, .skip-link, .thread__controls { display: none !important; }
  .reveal, .demo-step { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 2rem; }
}

/* --------------------------------------------------------------------------
   Legal pages (privacy / terms / disclaimer)
   -------------------------------------------------------------------------- */
.legal__wrap { max-width: 52rem; }
.legal__meta { color: var(--muted-2); font-size: var(--fs-caption); margin-top: var(--s-2); }
.legal__toc {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.legal__toc ol { list-style: decimal; padding-left: 1.4rem; columns: 1; font-size: 0.95rem; line-height: 1.5; }
.legal__toc li { padding: 0.15rem 0; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--brown); text-decoration: underline; }
@media (min-width: 640px) { .legal__toc ol { columns: 2; column-gap: var(--s-5); } }
.legal__body { margin-top: var(--s-5); }
.legal__body section { padding-top: var(--s-4); margin-top: var(--s-4); border-top: 1px solid var(--hairline); }
.legal__body section:first-child { border-top: 0; margin-top: 0; }
.legal__body h2 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; scroll-margin-top: 96px; }
.legal__body p { color: var(--muted); line-height: 1.65; margin-top: var(--s-2); max-width: 70ch; }
.legal__body ul { list-style: disc; padding-left: 1.4rem; margin-top: var(--s-2); color: var(--muted); line-height: 1.6; max-width: 70ch; }
.legal__body li + li { margin-top: 0.35rem; }
.legal__body strong { color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--surface); color: var(--ink); }
