/* ==========================================================================
   Driftline — design system
   Base inherited from the fluid-hero language: near-black, Onest, glass pills.
   Extended with a mono utility face and two STATE accents.
   Rule: accent = state, never emphasis.
   ========================================================================== */

:root {
  /* Surface */
  --bg:             #04050c;
  --bg-raised:      #080a15;
  --bg-sunk:        #02030a;

  /* Ink */
  --heading:        #eef0f6;
  --body:           #b9becf;
  --dim:            #757c96;
  --on-media:       #ffffff;

  /* Structure */
  --line:           rgba(255,255,255,0.09);
  --line-strong:    rgba(255,255,255,0.16);
  --glass-fill:     rgba(255,255,255,0.06);
  --glass-border:   rgba(255,255,255,0.14);

  /* Action */
  --action:         #ffffff;
  --action-fg:      #26262b;

  /* State — sampled from the shader's own cyan→magenta band */
  --stable:         #7cf0e0;   /* inside baseline  */
  --drifting:       #e879f9;   /* distribution moved */
  --stable-soft:    rgba(124,240,224,0.12);
  --drifting-soft:  rgba(232,121,249,0.12);

  /* Scrim (hero legibility) */
  --scrim:          rgba(4,5,12,0.46);
  --scrim-strong:   rgba(4,5,12,0.78);
  --scrim-soft:     rgba(4,5,12,0.12);

  /* Motion */
  --fast:           150ms;
  --ease:           cubic-bezier(0.2, 0, 0, 1);
  --ease-out:       cubic-bezier(0.33, 1, 0.68, 1);

  /* Type */
  --sans:           "Onest", system-ui, sans-serif;
  --mono:           "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

a { color: inherit; text-decoration: none; }
button { appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }

/* Root scale: fixed 16px up to 1440, then proportional on large displays. */
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 1441px) { html { font-size: 0.833333vw; } }  /* 16px @ 1920 */

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255,255,255,0.65);
  border-radius: 4px;
}

::selection { background: rgba(232,121,249,0.28); color: var(--heading); }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .wrap { padding-inline: 2.5rem; } }

.band { padding-block: 5rem; }
@media (min-width: 900px) { .band { padding-block: 7.5rem; } }

.band--tight { padding-block: 3.5rem; }
@media (min-width: 900px) { .band--tight { padding-block: 5rem; } }

.rule { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.display {
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--heading);
}
@media (min-width: 640px) { .display { font-size: 3.5rem; } }
@media (min-width: 1024px) { .display { font-size: 5rem; } }

.h2 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--heading);
}
@media (min-width: 640px) { .h2 { font-size: 2.4rem; } }
@media (min-width: 1024px) { .h2 { font-size: 3rem; } }

.h3 {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--heading);
}
@media (min-width: 640px) { .h3 { font-size: 1.35rem; } }

.lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--body);
}
@media (min-width: 640px) { .lede { font-size: 1.2rem; } }

.small { font-size: 0.9rem; line-height: 1.55; }

/* Mono utility — the audience's vernacular: column names, scores, dates. */
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.mono--data { text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; }

/* Section eyebrow: mono label on a hairline. Encodes position in the page. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--action);
  padding-inline: 1.125rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--action-fg);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: background var(--fast) var(--ease);
}
@media (min-width: 640px) { .btn { height: 2.75rem; padding-inline: 1.375rem; font-size: 0.95rem; } }
.btn:hover { background: rgba(255,255,255,0.85); }

.btn--ghost {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--heading);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--lg { height: 3rem; padding-inline: 1.75rem; font-size: 1rem; }

/* Text link with an underline that grows */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--heading);
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--fast) var(--ease), gap var(--fast) var(--ease);
}
.tlink:hover { border-color: var(--heading); gap: 0.75rem; }

/* --------------------------------------------------------------------------
   Nav (shared across every page)
   -------------------------------------------------------------------------- */
.nav {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}
@media (min-width: 640px) { .nav { padding: 1.5rem 2.5rem; } }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--on-media);
}
@media (min-width: 640px) { .brand { font-size: 1.3rem; } }
.brand svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; flex: none; }
@media (min-width: 640px) { .brand svg { width: 1.45rem; height: 1.45rem; } }

.nav-pill {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 3rem;
  align-items: center;
  gap: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  padding-inline: 1.75rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 900px) { .nav-pill { display: flex; } }

.nav-pill a {
  font-size: 0.92rem;
  color: var(--body);
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}
.nav-pill a:hover { color: var(--heading); }
.nav-pill a[aria-current="page"] { color: var(--heading); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding-inline: 1rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  color: var(--heading);
  font-size: 0.85rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 1.25rem;
  background: rgba(4,5,12,0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.sheet.is-open { display: flex; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; }
.sheet__links { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sheet__links a {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--heading);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Hero (landing page only)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100lvh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .hero { padding-inline: 2.5rem; } }

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(115% 95% at 50% 46%,
    var(--scrim-strong) 0%, var(--scrim-strong) 24%, var(--scrim) 52%, var(--scrim-soft) 100%);
}

/* The hero's ink settles into the page below it */
.hero__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 12rem;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__col {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
}
@media (min-width: 640px)  { .hero__col { max-width: 40rem; } }
@media (min-width: 1024px) { .hero__col { max-width: 52rem; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--body);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 640px) { .badge { font-size: 0.74rem; } }

.dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: var(--stable);
  box-shadow: 0 0 0 3px var(--stable-soft);
  flex: none;
}
.dot--drift { background: var(--drifting); box-shadow: 0 0 0 3px var(--drifting-soft); }

.hero__title { margin-top: 1.5rem; max-width: 20rem; }
@media (min-width: 640px)  { .hero__title { margin-top: 1.75rem; max-width: 34rem; } }
@media (min-width: 1024px) { .hero__title { max-width: 46rem; } }

.hero__sub { margin-top: 1.1rem; max-width: 20rem; }
@media (min-width: 640px)  { .hero__sub { max-width: 34rem; } }
@media (min-width: 1024px) { .hero__sub { max-width: 42rem; } }

.hero__form { margin-top: 2rem; display: flex; justify-content: center; width: 100%; }
@media (min-width: 640px) { .hero__form { margin-top: 2.5rem; } }

.signup { width: 34rem; max-width: 100%; }

.signup__bar {
  display: flex;
  align-items: center;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  padding-left: 1.25rem;
  padding-right: 0.35rem;
}
@media (min-width: 640px) { .signup__bar { height: 4rem; padding-left: 1.5rem; padding-right: 0.4rem; } }

.signup__bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  color: var(--heading);
  font-size: 0.95rem;
  outline: none;
}
@media (min-width: 640px) { .signup__bar input { font-size: 1.1rem; } }
.signup__bar input::placeholder { color: var(--dim); }

.signup__note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.signup__done { color: var(--stable); }

/* --------------------------------------------------------------------------
   SIGNATURE: the baseline trace.
   Ink → line. Full band on the landing page, thin header on inner pages,
   chip-sized inside cards. The marker offset encodes the drift score.
   -------------------------------------------------------------------------- */
.trace { position: relative; width: 100%; }
.trace svg { width: 100%; height: 100%; display: block; overflow: visible; }

.trace__base   { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.trace__path   { fill: none; stroke: var(--stable); stroke-width: 1.25; stroke-linejoin: round; }
.trace__breach { fill: none; stroke: var(--drifting); stroke-width: 1.75; stroke-linejoin: round; }
.trace__glow   { fill: none; stroke: var(--drifting); stroke-width: 6; opacity: 0.16; filter: blur(3px); }

/* draw-on */
.trace--draw .trace__path,
.trace--draw .trace__breach {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.trace--draw.is-in .trace__path,
.trace--draw.is-in .trace__breach {
  transition: stroke-dashoffset 1600ms var(--ease-out);
  stroke-dashoffset: 0;
}

/* Breach markers sit in the DOM, not the SVG, so their type isn't stretched
   by preserveAspectRatio="none". The dot's vertical position IS the score. */
.tmark { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.tmark__dot {
  display: block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--drifting);
  box-shadow: 0 0 0 4px var(--drifting-soft), 0 0 14px 2px rgba(232,121,249,0.5);
}
.tmark__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translateX(-50%);
  display: none;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--drifting);
  text-align: center;
}
@media (min-width: 640px) { .tmark__label { display: block; } }
.tmark__label b {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.trace-band { position: relative; height: 9rem; }
@media (min-width: 640px) { .trace-band { height: 12rem; } }

.trace-chip { height: 2rem; width: 5.5rem; }

/* Inner-page header: the hero's ink reduced to one line */
.pagehead {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .pagehead { padding-top: 11rem; padding-bottom: 5rem; } }
.pagehead__trace {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.pagehead__inner { position: relative; z-index: 1; }
.pagehead__title { max-width: 22ch; }
.pagehead__sub { margin-top: 1.1rem; max-width: 52ch; }

/* --------------------------------------------------------------------------
   Metric row
   -------------------------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }

.metric { background: var(--bg); padding: 1.75rem 1.25rem; }
@media (min-width: 640px) { .metric { padding: 2.25rem 1.75rem; } }
.metric__n {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .metric__n { font-size: 2.6rem; } }
.metric__l { margin-top: 0.7rem; font-size: 0.85rem; color: var(--dim); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg-raised);
  padding: 1.5rem;
}
@media (min-width: 640px) { .card { padding: 1.9rem; } }
.card__body { margin-top: 0.8rem; font-size: 0.95rem; color: var(--body); }
.card__stat {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.card__stat b {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--drifting);
  letter-spacing: -0.01em;
}
.card__stat span { font-size: 0.8rem; color: var(--dim); }

/* Steps — numbered because this IS a sequence (connect → baseline → watch) */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .step { grid-template-columns: 5rem 18rem 1fr; gap: 2.5rem; align-items: start; padding-block: 2.75rem; }
}
.step__n {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  padding-top: 0.35rem;
}
.step__body { font-size: 0.98rem; max-width: 62ch; }
.step__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
}

/* Signals — the dense one. Deliberately tight; this is the data vernacular. */
.signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 640px) { .signals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .signals { grid-template-columns: repeat(3, 1fr); } }

.signal { background: var(--bg-raised); padding: 1.25rem 1.35rem; }
.signal__k {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--heading);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.signal__v { margin-top: 0.45rem; font-size: 0.88rem; color: var(--dim); line-height: 1.5; }

/* Quote */
.quote { max-width: 46rem; }
.quote__t {
  font-size: 1.35rem;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--heading);
  font-weight: 400;
}
@media (min-width: 640px) { .quote__t { font-size: 1.85rem; } }
.quote__by { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.9rem; }
.quote__av {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex: none;
  background: linear-gradient(135deg, var(--stable), var(--drifting));
  opacity: 0.85;
}
.quote__who { font-size: 0.9rem; color: var(--heading); }
.quote__role { font-size: 0.82rem; color: var(--dim); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.tiers { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

.tier {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg-raised);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--featured { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,0.04), var(--bg-raised)); }
.tier__name { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tier__price {
  margin-top: 1.1rem;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1;
}
.tier__per { font-size: 0.85rem; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.tier__desc { margin-top: 0.9rem; font-size: 0.92rem; min-height: 3.2rem; }
.tier__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.tier__list li { display: flex; gap: 0.65rem; font-size: 0.9rem; }
.tier__list li::before { content: "—"; color: var(--dim); flex: none; }
.tier .btn { margin-top: 1.75rem; width: 100%; }

.ctable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ctable th, .ctable td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.ctable thead th {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim); font-weight: 400;
}
.ctable td:not(:first-child), .ctable th:not(:first-child) { text-align: center; width: 8rem; }
.ctable td:first-child { color: var(--heading); }
.ctable .yes { color: var(--stable); }
.ctable .no  { color: var(--dim); }
.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--fast) var(--ease);
}
@media (min-width: 900px) {
  .post { grid-template-columns: 9rem 1fr 6rem; gap: 2rem; align-items: baseline; padding-inline: 0.75rem; }
}
.post:hover { background: rgba(255,255,255,0.02); }
.post__date { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dim); }
.post__title { font-size: 1.15rem; font-weight: 500; color: var(--heading); letter-spacing: -0.015em; }
.post__sub { margin-top: 0.35rem; font-size: 0.92rem; color: var(--dim); max-width: 60ch; }
.post__read { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }
@media (min-width: 900px) { .post__read { text-align: right; } }

.article { max-width: 42rem; margin-inline: auto; }
.article p { margin-top: 1.4rem; font-size: 1.02rem; line-height: 1.72; }
.article h2 {
  margin-top: 3rem; font-size: 1.5rem; font-weight: 500;
  color: var(--heading); letter-spacing: -0.02em; line-height: 1.25;
}
.article h3 { margin-top: 2rem; font-size: 1.1rem; font-weight: 500; color: var(--heading); }
.article ul { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article ul li { display: flex; gap: 0.7rem; font-size: 1rem; }
.article ul li::before { content: "—"; color: var(--dim); flex: none; }
.article strong { color: var(--heading); font-weight: 500; }
.article code {
  font-family: var(--mono); font-size: 0.85em;
  background: rgba(255,255,255,0.06); padding: 0.1em 0.4em; border-radius: 4px; color: var(--heading);
}
.article pre {
  margin-top: 1.6rem; padding: 1.25rem; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 0.75rem; background: var(--bg-sunk);
}
.article pre code { background: none; padding: 0; font-size: 0.8rem; line-height: 1.7; color: var(--body); }
.pull {
  margin-top: 2.5rem; padding-left: 1.5rem; border-left: 2px solid var(--drifting);
  font-size: 1.3rem; line-height: 1.4; letter-spacing: -0.015em; color: var(--heading);
}
.figure { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.25rem; background: var(--bg-raised); }
.figure figcaption { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--dim); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-size: 1.02rem;
  color: var(--heading);
  transition: color var(--fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--dim);
  flex: none;
  transition: transform 200ms var(--ease), color var(--fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--drifting); }
.faq summary:hover { color: var(--heading); }
.faq summary:hover::after { color: var(--body); }
.faq__a { padding-bottom: 1.5rem; max-width: 64ch; font-size: 0.98rem; }
.faq__a p + p { margin-top: 0.9rem; }

/* Two-column trust panel */
.split {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { background: var(--bg-raised); padding: 1.75rem; }
.split ul { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.split li { display: flex; gap: 0.7rem; font-size: 0.92rem; }
.split li::before { content: "—"; color: var(--dim); flex: none; }
.split--no li::before { color: var(--drifting); }

/* Product module block */
.module {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .module { grid-template-columns: 22rem 1fr; gap: 4rem; padding-block: 4rem; } }
.module__side { display: flex; flex-direction: column; gap: 1rem; }
.module__list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.module__list li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; font-size: 0.95rem; align-items: baseline; }
.module__list li::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 9999px; background: var(--stable); transform: translateY(-0.15rem); }

/* Byline */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.byline span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dim); }
.byline span + span::before { content: "·"; margin-right: 0.75rem; }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */
.cta {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(232,121,249,0.10), transparent 60%),
    var(--bg-raised);
  padding: 3rem 1.5rem;
  text-align: center;
}
@media (min-width: 640px) { .cta { padding: 4.5rem 2.5rem; } }
.cta .signup { margin-inline: auto; margin-top: 2rem; }

.foot { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot__grid { grid-template-columns: 1.4fr repeat(2, 1fr); } }
.foot__col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.foot__col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.foot__col a { font-size: 0.92rem; color: var(--body); transition: color var(--fast) var(--ease); }
.foot__col a:hover { color: var(--heading); }
.foot__note {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.8rem; color: var(--dim);
}
@media (min-width: 640px) { .foot__note { flex-direction: row; justify-content: space-between; align-items: center; } }
.foot__note a { color: var(--body); border-bottom: 1px solid var(--line-strong); }
.foot__note a:hover { color: var(--heading); }

/* Fictional-work disclosure — always visible, never fine print you can miss */
.disclosure {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-sunk);
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.55;
}
.disclosure b { color: var(--body); font-weight: 500; }

/* --------------------------------------------------------------------------
   Reveals
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--from, 1.25rem));
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(var(--wy, 26px));
  transition: opacity var(--wd, 720ms) var(--ease-out), transform var(--wd, 720ms) var(--ease-out);
  transition-delay: var(--wdelay, 0ms);
}
.word.is-in { opacity: 1; transform: translateY(0); }

/* Quality floor: honour reduced motion everywhere. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .word { opacity: 1 !important; transform: none !important; }
  .trace--draw .trace__path, .trace--draw .trace__breach { stroke-dashoffset: 0 !important; }
}
