/* ChainVigil design system.
   =========================================================================
   One idea runs through this site: a vigil is a light kept through the night.

   The page therefore has a single light source — the lamp behind the hero —
   and it travels. Sections lift from deep night at the top toward daylight at
   the bottom, because the product's whole output is a message that arrives in
   the morning. The page resolving into dawn is the content, not decoration.

   Two consequences enforced everywhere below:
     1. Every shadow falls away from the light. Nothing carries a generic
        drop shadow directly underneath it.
     2. Corner radius carries meaning. Physical objects the light falls on
        (the phone, message bubbles, buttons) are round. Records and documents
        (the ledger, tables, rules) are square. One radius on everything would
        throw that distinction away.
   ========================================================================= */

:root {
  /* night, lifting */
  --ink:      #070F0E;
  --pine:     #0C1A18;
  --pine-2:   #112421;
  --pine-3:   #17302C;
  --pine-4:   #1E3B35;

  /* the kept light */
  --lamp:     #E8A33D;
  --lamp-hi:  #F7C978;
  --lamp-deep:#8A5A14;
  --sage:     #7FB2A4;

  /* text on night */
  --bone:     #EDEBE0;
  --bone-dim: #96A09A;

  /* dawn: the light end of the page */
  --dawn:     #F0E9D9;
  --dawn-2:   #E4DCC8;
  --dawn-ink: #0D1A17;
  --dawn-dim: #54635D;

  --rule:        rgba(237, 235, 224, 0.12);
  --rule-strong: rgba(237, 235, 224, 0.28);

  --measure: 36rem;

  /* Type scale: ~1.33 through the display sizes, tighter across body sizes. */
  --s-xs:   clamp(0.75rem, 0.73rem + 0.08vw, 0.8rem);
  --s-sm:   clamp(0.86rem, 0.84rem + 0.1vw,  0.93rem);
  --s-base: clamp(1.02rem, 0.99rem + 0.16vw, 1.14rem);
  --s-md:   clamp(1.16rem, 1.1rem  + 0.3vw,  1.35rem);
  --s-lg:   clamp(1.4rem,  1.28rem + 0.6vw,  1.85rem);
  --s-xl:   clamp(1.75rem, 1.5rem  + 1.25vw, 2.75rem);
  --s-2xl:  clamp(2.1rem,  1.6rem  + 2.4vw,  3.8rem);
  --s-display: clamp(2.5rem, 1.55rem + 4.4vw, 5.4rem);

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--pine);
  color: var(--bone);
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-size: var(--s-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- type ---- */

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.03;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--s-xl); }
h3 { font-size: var(--s-md); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em { font-style: italic; }

a {
  color: var(--lamp);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 140ms var(--ease);
}
a:hover { color: var(--lamp-hi); }

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88em;
  letter-spacing: -0.01em;
}
code { color: var(--sage); }

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

::selection { background: var(--lamp); color: #1B1003; }

.shell {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4.5vw, 4rem);
}

/* A marker that always carries a number or a state, so it is information
   rather than a decorative label above a heading. */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--s-xs);
  color: var(--bone-dim);
  letter-spacing: 0.02em;
}
.stamp::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(127, 178, 164, 0.16);
  flex: none;
}
.stamp.lit::before {
  background: var(--lamp);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.18), 0 0 14px 1px rgba(232, 163, 61, 0.55);
}

/* ----------------------------------------------------------- masthead ---- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.95rem;
  background: rgba(7, 15, 14, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .masthead { background: var(--ink); }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--s-md);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--bone);
  flex: none;
}
.wordmark b { font-weight: 600; }
.wordmark i { font-style: normal; color: var(--sage); }

/* The lamp. The only thing on the page that breathes, and it stops for
   anyone who has asked for less motion. */
.wordmark .flame {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 1px rgba(232, 163, 61, 0.8);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark .flame { animation: breathe 4.5s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { box-shadow: 0 0 9px 1px rgba(232, 163, 61, 0.65); }
    50%      { box-shadow: 0 0 15px 2px rgba(232, 163, 61, 0.95); }
  }
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}
.masthead nav a {
  font-size: var(--s-sm);
  color: var(--bone-dim);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.3rem;
}
.masthead nav a:hover { color: var(--bone); }
.masthead nav a[aria-current="page"] {
  color: var(--bone);
  box-shadow: inset 0 -1px 0 0 var(--sage);
}
.masthead nav a.nav-cta {
  color: var(--lamp);
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}
.masthead nav a.nav-cta:hover {
  background: rgba(232, 163, 61, 0.1);
  border-color: var(--lamp);
  color: var(--lamp-hi);
}

/* ------------------------------------------------------------ buttons ---- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  align-items: center;
  margin-top: 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(176deg, var(--lamp-hi), var(--lamp) 58%, #D9912B);
  color: #201302;
  font-weight: 600;
  font-size: var(--s-sm);
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  /* Lit from above: highlight along the top edge, glow thrown below. */
  box-shadow: 0 10px 30px -14px rgba(232, 163, 61, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -14px rgba(232, 163, 61, 0.9),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #201302;
}
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn-quiet {
  font-size: var(--s-sm);
  color: var(--bone-dim);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 var(--rule-strong);
  padding-bottom: 0.2rem;
}
.btn-quiet:hover { color: var(--bone); box-shadow: inset 0 -1px 0 0 var(--sage); }

/* ----------------------------------------------------- the night lift ---- */
/* Sections step up through the palette in document order, set by explicit
   classes rather than nth-child so a page can be reordered safely. */

.lift-0 { background: var(--pine); }
.lift-1 { background: var(--pine-2); }
.lift-2 { background: var(--pine-3); }
.lift-3 { background: var(--pine-4); }

section.band {
  padding-block: clamp(3.25rem, 7vw, 6rem);
  position: relative;
}
section.band > .shell > h2,
section.band > h2 { max-width: 26ch; margin-bottom: 1.3rem; }
section.band + section.band { border-top: 1px solid var(--rule); }

.lead {
  font-size: var(--s-md);
  line-height: 1.45;
  max-width: 40ch;
  color: var(--bone);
}
.dim { color: var(--bone-dim); }

.sect-head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.3rem; }
.sect-head h2 { margin: 0; }

/* -------------------------------------------------------------- hero ----- */

.hero {
  position: relative;
  background: var(--ink);
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* The light source. Everything else on the page is shaded as if lit by this. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -14%;
  right: 4%;
  width: min(60rem, 115vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(232, 163, 61, 0.22) 0%,
    rgba(232, 163, 61, 0.11) 26%,
    rgba(127, 178, 164, 0.07) 46%,
    transparent 68%);
  pointer-events: none;
}
/* A horizon where the night meets the first lifted section. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 163, 61, 0.45), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* The headline is a vow in two clauses: what it does, then what it cannot do.
   Both are set at full size. The second is italic because it is the promise,
   not because a single word needs picking out in a colour. */
.vow {
  font-size: var(--s-display);
  max-width: 19ch;
}
.vow span { display: block; }
.vow .clause-2 {
  font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  margin-top: 0.08em;
  text-indent: 0.06em;
}
.vow .clause-2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.5em;
  background: linear-gradient(90deg, var(--lamp), transparent);
}

.hero .lede { max-width: 42ch; margin-top: 1.6rem; }
.hero .lede strong { color: var(--bone); }

/* --------------------------------------------------------- the phone ----- */
/* The most characteristic object in this product's world is the message that
   arrives at eight in the morning, so the hero shows the real thing in the
   real place, lit by the lamp. */

.phone-stage { display: grid; justify-items: center; position: relative; }

.phone {
  position: relative;
  width: min(21rem, 100%);
  border-radius: 2.4rem;
  padding: 0.55rem;
  background: linear-gradient(170deg, #2B4138, #121D1B 60%);
  /* Lit from the upper left: highlight on those edges, shadow thrown
     down and to the right, plus the lamp's warmth spilling around it. */
  box-shadow:
    inset 0 1px 0 rgba(237, 235, 224, 0.22),
    inset 1px 0 0 rgba(237, 235, 224, 0.1),
    24px 36px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 70px -20px rgba(232, 163, 61, 0.3);
}

.phone-screen {
  background: #0A1413;
  border-radius: 1.95rem;
  overflow: hidden;
  border: 1px solid rgba(237, 235, 224, 0.07);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.15rem 0.5rem;
  font-size: 0.7rem;
  color: var(--bone-dim);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.phone-bar .sig { display: flex; gap: 2px; align-items: flex-end; }
.phone-bar .sig i { display: block; width: 3px; background: var(--bone-dim); border-radius: 1px; }
.phone-bar .sig i:nth-child(1) { height: 4px; }
.phone-bar .sig i:nth-child(2) { height: 6px; }
.phone-bar .sig i:nth-child(3) { height: 8px; }
.phone-bar .sig i:nth-child(4) { height: 10px; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(237, 235, 224, 0.07);
}
.chat-head .av {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1D3A34, #0E1C1A);
  display: grid; place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(127, 178, 164, 0.35);
}
.chat-head .av::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px 1px rgba(232, 163, 61, 0.9);
}
.chat-head .who { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.chat-head .sub { font-size: 0.68rem; color: var(--sage); }

.chat-body { padding: 1rem 0.85rem 1.15rem; }

.bubble {
  background: linear-gradient(168deg, #18302C, #122421);
  border: 1px solid rgba(237, 235, 224, 0.09);
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(237, 235, 224, 0.08),
              8px 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.bubble .b-title { font-weight: 600; font-size: 0.9rem; }
.bubble .addr {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--bone-dim);
  display: block;
  margin-top: 0.15rem;
}

.rows { margin: 0.85rem 0 0; display: grid; }
.row {
  display: grid;
  grid-template-columns: 3.3rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding-block: 0.32rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(237, 235, 224, 0.06);
}
.row:last-child { border-bottom: 0; }
.row .sym { font-weight: 600; }
.row .amt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--bone-dim);
}
.row .delta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
}
.delta.up   { color: var(--sage); }
.delta.flat { color: var(--bone-dim); }
.delta.down { color: var(--lamp); }

.bubble .totals {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(237, 235, 224, 0.12);
  display: grid;
  gap: 0.2rem;
}
.bubble .totals div { display: flex; justify-content: space-between; font-size: 0.82rem; }
.bubble .totals .big { font-weight: 600; font-size: 0.95rem; }
.bubble .totals .val {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.bubble .flagline {
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  border-left: 2px solid var(--lamp);
  background: rgba(232, 163, 61, 0.09);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #F3DCB4;
}
.bubble .stamp-time {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  color: var(--bone-dim);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.phone-caption {
  margin-top: 1rem;
  font-size: var(--s-xs);
  color: var(--bone-dim);
  text-align: center;
  max-width: 28ch;
}

/* One orchestrated moment: the message arrives. The whole bubble moves as one
   piece — the alert inside it is never separately delayed, because a second of
   invisibility on the most important line of the page is not worth an effect.

   The starting opacity is scoped to .js, which a script in the head sets, so
   that without JavaScript — or if the observer never fires — the message is
   simply there. Content must not depend on an animation running. */
@media (prefers-reduced-motion: no-preference) {
  .js .bubble { opacity: 0; transform: translateY(10px) scale(0.985); transform-origin: bottom left; }
  .phone.arrive .bubble { animation: arrive 620ms var(--ease) 240ms forwards; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* -------------------------------------------------------- the ledger ----- */
/* A record, so it is square-cornered and ruled like one. */

.ledger-head { max-width: 30ch; }
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(1.8rem, 4vw, 2.75rem);
  border-top: 2px solid var(--bone);
}
.ledger .col { padding: 1.4rem clamp(1rem, 3vw, 2.4rem) 1.5rem 0; }
.ledger .col + .col {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1rem, 3vw, 2.4rem);
  padding-right: 0;
}
.ledger h3 {
  font-family: Archivo, sans-serif;
  font-size: var(--s-sm);
  font-weight: 600;
  color: var(--bone-dim);
  margin-bottom: 1rem;
}
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li {
  padding-block: 0.5rem;
  font-size: var(--s-base);
  border-bottom: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 0; }
.takes li { color: var(--bone); }
.takes .note {
  display: block;
  font-size: var(--s-sm);
  color: var(--bone-dim);
  margin-top: 0.25rem;
  max-width: 34ch;
}
.never li {
  color: var(--bone-dim);
  text-decoration: line-through;
  text-decoration-color: var(--lamp);
  text-decoration-thickness: 2px;
}

.verdict {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  font-family: Fraunces, Georgia, serif;
  font-size: var(--s-lg);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.26;
  max-width: 34ch;
  letter-spacing: -0.015em;
}
.verdict .lit { color: var(--lamp); }

@media (prefers-reduced-motion: no-preference) {
  .js .never li { opacity: 0; transform: translateX(-5px); }
  .ledger.seen .never li { animation: strike 480ms var(--ease) forwards; }
  .ledger.seen .never li:nth-child(1) { animation-delay: 40ms; }
  .ledger.seen .never li:nth-child(2) { animation-delay: 150ms; }
  .ledger.seen .never li:nth-child(3) { animation-delay: 260ms; }
  .ledger.seen .never li:nth-child(4) { animation-delay: 370ms; }
  @keyframes strike { to { opacity: 1; transform: none; } }
}

/* -------------------------------------------------- the vigil timeline --- */
/* Three steps genuinely are a sequence, so they are numbered and threaded on
   a lit line. The line is the vigil. */

.vigil {
  --vigil-gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  max-width: 46rem;
}
.vigil li {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.3rem;
  padding-bottom: 1.9rem;
}
.vigil li:last-child { padding-bottom: 0; }
.vigil li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.07rem;
  top: 2.4rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(232, 163, 61, 0.55), rgba(127, 178, 164, 0.12));
}
.vigil .node {
  width: 2.15rem; height: 2.15rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--lamp);
  background: rgba(232, 163, 61, 0.07);
  box-shadow: inset 0 0 0 1px rgba(232, 163, 61, 0.35);
}
.vigil b { display: block; font-weight: 600; font-size: var(--s-md); line-height: 1.3; }
.vigil p { margin: 0.35rem 0 0; color: var(--bone-dim); font-size: var(--s-sm); max-width: 44ch; }

/* Wide enough for three columns: the thread turns and runs across the page,
   so the sequence reads left to right and the section stops being a narrow
   strip of text with half a screen of nothing beside it. */
@media (min-width: 62.01rem) {
  .vigil {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--vigil-gap);
    max-width: none;
  }
  .vigil li { grid-template-columns: 1fr; gap: 0.95rem; padding-bottom: 0; }
  .vigil li:not(:last-child)::before {
    left: 2.6rem;
    right: calc(-1 * var(--vigil-gap));
    top: 1.07rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 163, 61, 0.55), rgba(127, 178, 164, 0.12));
  }
  .vigil p { max-width: none; }
}

/* ------------------------------------------------------------- cards ----- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cards > div { background: var(--pine-2); padding: 1.5rem clamp(1.1rem, 2vw, 1.6rem) 1.6rem; }
.lift-2 .cards > div { background: var(--pine-3); }
.lift-3 .cards > div { background: var(--pine-4); }
.cards h3 {
  font-family: Archivo, sans-serif;
  font-size: var(--s-base);
  font-weight: 600;
  letter-spacing: 0;
}
.cards .state {
  display: block;
  font-size: var(--s-xs);
  margin: 0.35rem 0 0.7rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.cards .state.yes  { color: var(--sage); }
.cards .state.part { color: var(--lamp); }
.cards .state.no   { color: var(--bone-dim); }
.cards p { color: var(--bone-dim); font-size: var(--s-sm); max-width: none; }

/* ------------------------------------------------------------- Q & A ----- */

dl.qa { margin: clamp(1.4rem, 3vw, 2rem) 0 0; max-width: 48rem; }
dl.qa > div { padding-block: 1.35rem; border-top: 1px solid var(--rule); }
dl.qa > div:first-child { border-top: 1px solid var(--rule-strong); }
dl.qa dt {
  font-weight: 600;
  font-size: var(--s-md);
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.012em;
  line-height: 1.25;
}
dl.qa dd { margin: 0.5rem 0 0; color: var(--bone-dim); max-width: var(--measure); }

/* ------------------------------------------------------------- facts ----- */
/* Numbers people normally hide, set as data: tabular, aligned, unglossed. */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  background: var(--rule);
  border: 1px solid var(--rule);
}
.facts > div { background: var(--pine-2); padding: 1.1rem 1.2rem 1.2rem; }
.lift-2 .facts > div { background: var(--pine-3); }
.facts dt {
  font-size: var(--s-xs);
  color: var(--bone-dim);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.facts dd {
  margin: 0.3rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: var(--s-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.facts dd.small {
  font-family: Archivo, sans-serif;
  font-size: var(--s-base);
  line-height: 1.4;
  letter-spacing: 0;
}
/* Six facts in an auto-fit grid leave two ragged empty cells. Pin the column
   count so the rows come out full. */
@media (min-width: 48.01rem) {
  .facts.of-six { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------- pullquote ---- */

.pullquote {
  font-family: Fraunces, Georgia, serif;
  font-size: var(--s-lg);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 34ch;
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
  padding-left: 1.2rem;
  border-left: 2px solid var(--lamp);
}
.pullquote .lit { color: var(--lamp); }

/* --------------------------------------------------------- plain list ---- */

.plain { list-style: none; margin: clamp(1.3rem, 3vw, 1.9rem) 0 0; padding: 0; max-width: 48rem; }
.plain li { padding-block: 0.9rem; border-top: 1px solid var(--rule); }
.plain li:first-child { border-top: 1px solid var(--rule-strong); }
.plain b { font-weight: 600; display: block; font-size: var(--s-base); }
.plain span { color: var(--bone-dim); font-size: var(--s-sm); display: block; margin-top: 0.2rem; max-width: 46ch; }

/* -------------------------------------------------------------- roles ---- */

.role { padding-block: 1.9rem; border-top: 1px solid var(--rule); max-width: 50rem; }
.role:first-of-type { border-top: 2px solid var(--bone); }
.role h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: var(--s-lg);
  letter-spacing: -0.018em;
  margin-bottom: 0.35rem;
}
.role .terms {
  color: var(--sage);
  font-size: var(--s-xs);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  margin-bottom: 0.9rem;
}
.role ul { margin: 0.9rem 0 0; padding-left: 1.15rem; color: var(--bone-dim); max-width: 46ch; font-size: var(--s-sm); }
.role li { margin-bottom: 0.4rem; }

/* -------------------------------------------------------- page heading --- */

.page-head {
  position: relative;
  background: var(--ink);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 4vw, 3.25rem);
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -5%;
  width: min(44rem, 100vw);
  aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(232, 163, 61, 0.16) 0%,
    rgba(127, 178, 164, 0.06) 42%,
    transparent 66%);
  pointer-events: none;
}
.page-head h1 { font-size: var(--s-2xl); max-width: 22ch; }
.page-head h1 .soft { font-style: italic; font-variation-settings: "SOFT" 0, "WONK" 0; }
.page-head .lead { margin-top: 1.5rem; }

/* ---------------------------------------------------------- the dawn ----- */
/* The page ends in morning light, because morning is when the product speaks. */

.dawn {
  position: relative;
  background: linear-gradient(176deg, var(--dawn), var(--dawn-2));
  color: var(--dawn-ink);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.dawn::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 7rem;
  background: linear-gradient(180deg, rgba(23, 48, 44, 0.42), transparent);
  pointer-events: none;
}
.dawn > .shell { position: relative; }
.dawn h2 { font-size: var(--s-2xl); max-width: 20ch; color: var(--dawn-ink); }
.dawn p { color: var(--dawn-dim); margin-top: 1.1rem; max-width: 42ch; }
.dawn code { color: #7A4C06; background: rgba(232, 163, 61, 0.2); padding: 0.1em 0.35em; border-radius: 3px; }
.dawn .stamp { color: var(--dawn-dim); }
.dawn .stamp::before { background: var(--lamp-deep); box-shadow: 0 0 0 3px rgba(138, 90, 20, 0.15); }
.dawn .btn {
  background: linear-gradient(176deg, #1A382F, #0B1A17);
  color: var(--dawn);
  box-shadow: 0 12px 28px -14px rgba(13, 26, 23, 0.65), inset 0 1px 0 rgba(237, 235, 224, 0.18);
}
.dawn .btn:hover { color: #FFFFFF; }
.dawn .btn-quiet { color: var(--dawn-dim); box-shadow: inset 0 -1px 0 0 rgba(13, 26, 23, 0.25); }
.dawn .btn-quiet:hover { color: var(--dawn-ink); box-shadow: inset 0 -1px 0 0 var(--lamp-deep); }

/* ------------------------------------------------------------- footer ---- */

footer {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: var(--s-sm);
  color: var(--bone-dim);
}
footer .warn {
  max-width: 52rem;
  color: var(--bone);
  padding-left: 1rem;
  border-left: 2px solid var(--lamp);
}
footer p { max-width: 52rem; }
footer nav { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.5rem; }
footer nav a { color: var(--bone-dim); text-decoration: none; }
footer nav a:hover { color: var(--bone); text-decoration: underline; }
footer .legal { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); font-size: var(--s-xs); }

/* ======================================================== breakpoints === */

@media (max-width: 62rem) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 3.5rem); }
  .vow { max-width: 24ch; }
  .phone-stage { justify-items: start; }
  .phone { width: min(20rem, 100%); }
}

@media (max-width: 48rem) {
  :root { --measure: 100%; }
  .masthead { padding-block: 0.75rem; gap: 0.75rem 1rem; }
  /* The nav becomes one scrollable row instead of wrapping into a ragged
     block that would push the hero off the first screen. */
  .masthead nav {
    gap: 1.1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }
  .masthead nav::-webkit-scrollbar { display: none; }
  .masthead nav a.nav-cta { padding: 0.35rem 0.8rem; }

  .ledger { grid-template-columns: 1fr; }
  .ledger .col { padding: 1.2rem 0 1.3rem; }
  .ledger .col + .col {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 1.3rem;
  }
  .takes .note, .vigil p, .plain span, .role ul, .verdict, .pullquote { max-width: none; }
  .phone-stage { justify-items: center; }
  .facts, .cards { grid-template-columns: 1fr; }
  .sect-head { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

@media (max-width: 34rem) {
  .vow { max-width: 16ch; }
  .vigil li { grid-template-columns: 1.9rem 1fr; gap: 0.9rem; }
  .vigil .node { width: 1.75rem; height: 1.75rem; font-size: 0.72rem; }
  .vigil li:not(:last-child)::before { left: 0.87rem; top: 2.05rem; }
  .pullquote { padding-left: 0.9rem; }
  .actions { gap: 0.8rem 1rem; }
  .btn { width: 100%; justify-content: center; }
  .phone { border-radius: 2rem; padding: 0.45rem; }
  .phone-screen { border-radius: 1.6rem; }
}

@media (min-width: 100rem) {
  :root { --s-display: 5.4rem; }
}

@media print {
  body { background: #FFFFFF; color: #000000; }
  .masthead, .phone-stage, footer nav { display: none; }
  .hero::before, .page-head::before, .dawn::before { display: none; }
  .hero, .page-head, footer, .dawn { background: #FFFFFF; color: #000000; }
  a { color: #000000; }
}
