/* StockSteer landing — quiet luxury, magazine infographic
 * Set like a business-magazine feature about one decision: a twelve-column
 * page, Geist Thin–Light at display sizes with tight tracking, Regular for
 * reading, cool lot paper and field ink, azure only where the answer is.
 * The pictures are the numbers themselves: the cover figure, the coverage
 * chart, the worked sum. No cards, no ruled tables.
 */

@import url("tokens.css");

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  overflow-x: clip;
  color-scheme: light;
  scrollbar-color: var(--hairline-strong) var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  caret-color: var(--azure);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a, button, summary, label, select, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}
h1 { letter-spacing: -0.045em; line-height: 1.02; }
h2 { letter-spacing: -0.042em; line-height: 1.03; }
h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0; max-width: 64ch; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--azure); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 1.5px; }

strong { font-weight: 500; }

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

.sku { letter-spacing: 0.02em; white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 30;
  padding: 0.6rem 1rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); text-decoration: none;
}
.skip:focus-visible { top: 0.6rem; }

.page, .wrap { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--pad-x); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: var(--btn);
  color: var(--btn-ink);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  white-space: nowrap;
  padding: 1.15rem 1.5rem 1.15rem 1.7rem;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; opacity: 0.7; }
.btn .arw {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 320ms var(--ease-out);
}
.btn:hover .arw { transform: translateX(4px); }
.btn-sm { padding: 0.66rem 1.05rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn .cta-short { display: none; }

.quiet-link {
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 5px;
  transition: color var(--dur-fast) var(--ease-soft), text-decoration-color var(--dur-fast) var(--ease-soft);
}
.quiet-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: var(--z-bar);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.bar.scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--hairline); }
.bar-in {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.lockup { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; }
.lockup svg { display: block; height: 22px; width: auto; }
.bar-links { display: flex; gap: 2.25rem; }
.bar-links a {
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-soft);
}
.bar-links a:hover, .bar-links a[aria-current="location"] { color: var(--ink); }
.bar-links a[aria-current="location"] { text-decoration: underline; text-decoration-color: var(--azure); text-underline-offset: 8px; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--ink);
  padding: 0.5rem 0.25rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  display: grid;
  min-width: 13rem;
  padding: 0.5rem 0;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
}
.menu-panel a {
  padding: 0.7rem 1.25rem;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
}
.menu-panel a:hover { color: var(--azure); }

@media (max-width: 860px) {
  .bar-links { display: none; }
  .bar-links.bar-links-always { display: flex; }
  .menu { display: block; }
  .bar-in { gap: var(--space-md); }
}
@media (max-width: 520px) {
  .bar-links.bar-links-always { display: none; }
}
@media (max-width: 380px) {
  .bar-in { gap: 0.7rem; }
  .bar .btn-sm { padding: 0.55rem 0.8rem; font-size: 0.82rem; }
  .menu summary { padding-inline: 0; }
  .lockup svg { height: 17px; }
}

/* ---------- Sections and the page grid ---------- */

section { padding-block: var(--space-section); }
section[id] { scroll-margin-top: var(--bar-h); }

/* Heading on the left, its standfirst set against the right margin. */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-md);
  align-items: end;
}
.sec-head > h2 { grid-column: 1 / span 7; font-size: var(--text-h2); max-width: 15ch; }
.sec-head > .sec-aside { grid-column: 9 / -1; }
p.sec-aside { font-size: var(--text-lede); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.ruled { border-top: 1px solid var(--ink); padding-top: clamp(1.75rem, 3vw, 2.75rem); }
@media (max-width: 980px) {
  .sec-head > h2, .sec-head > .sec-aside { grid-column: 1 / -1; }
  .sec-head > h2 { max-width: 16ch; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-xl) var(--gutter);
  align-items: start;
}
.ruled-split {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  background: linear-gradient(var(--ink), var(--ink)) top center / calc(100% - 2 * var(--pad-x)) 1px no-repeat;
}
.split-head { position: sticky; top: calc(var(--bar-h) + 2rem); }
.split-head h2 { font-size: var(--text-h2); max-width: 11ch; }
.split-head p { margin-top: var(--space-md); font-size: var(--text-lede); line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .split-head { position: static; }
  .split-head h2 { max-width: 16ch; }
}

/* ---------- Cover ---------- */

.cover { padding-block: clamp(2.5rem, 5.5vw, 5rem) clamp(2.5rem, 4.5vw, 4rem); }
.cover-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
}
.cover-title { grid-column: 1 / -1; font-size: var(--text-display); }
.cover-title .line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.cover-title .line > span { display: inline-block; }
.cover-title .second { font-weight: 160; }

/* The lede's first cap height meets the figure's: Geist Thin caps sit 0.0387em
 * under the figure's box, Regular caps 0.36em under the lede's line box. */
.cover-copy { grid-column: 1 / span 5; align-self: start; padding-top: max(0px, var(--text-cover-figure) * 0.0387 - var(--text-lede) * 0.36); }
.lede { font-size: var(--text-lede); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.lede strong { font-weight: 500; color: var(--ink); }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-top: var(--space-lg); }
.cover-note { margin-top: var(--space-md); font-size: var(--text-caption); line-height: 1.6; color: var(--muted); max-width: 46ch; }

.cover-figure {
  grid-column: 6 / -1;
  align-self: start;
  justify-self: end;
  display: grid;
  justify-items: end;
  color: var(--ink);
  text-decoration: none;
}
.fig-num {
  display: flex;
  margin-right: -0.04em;
  font-family: var(--font-display);
  font-size: var(--text-cover-figure);
  font-weight: 100;
  line-height: 0.76;
  color: var(--azure);
}
/* Each digit rises out of its own baseline: clipped below only, so the glyphs
 * keep their overshoot sideways and the tight set (negative margins) stays whole. */
.fig-num .d { display: block; padding-block: 0.03em 0.05em; clip-path: inset(-0.2em -0.3em 0 -0.3em); }
.fig-num .d + .d { margin-left: -0.07em; }
.fig-num .d > span { display: block; }
.fig-cap {
  position: relative;
  justify-self: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
.fig-cap::before, .fig-cap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
}
.fig-cap::before { background: var(--hairline-strong); }
.fig-cap::after {
  background: var(--azure);
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 700ms var(--ease-out);
}
.cover-figure:hover .fig-cap::after { transform: scaleX(1); }
.fig-what { color: var(--ink); }
.fig-src { color: var(--muted); }

@media (max-width: 980px) {
  .cover-grid { row-gap: var(--space-lg); }
  .cover-copy, .cover-figure { grid-column: 1 / -1; }
  .cover-copy { padding-top: 0; }
  .cover-figure { justify-self: start; justify-items: start; margin-top: var(--space-md); }
  .fig-num { font-size: clamp(8.5rem, 44vw, 18rem); }
}
@media (max-width: 480px) {
  .cover-actions .btn { width: 100%; white-space: normal; }
}

/* The cover rises once on load: the two sentences, then the figure digit by digit. */
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } }
.intro .cover-title .line > span { animation: rise var(--dur-reveal) var(--ease-out) both; }
.intro .cover-title .line:nth-child(2) > span { animation-delay: 140ms; }
.intro .fig-num .d > span { animation: rise 1300ms var(--ease-out) 360ms both; }
.intro .fig-num .d:nth-child(2) > span { animation-delay: 450ms; }
.intro .fig-num .d:nth-child(3) > span { animation-delay: 540ms; }
.intro .cover-copy { animation: fade 900ms var(--ease-soft) 520ms both; }
.intro .fig-cap { animation: fade 900ms var(--ease-soft) 1000ms both; }
.intro .fig-cap::before { animation: draw 1100ms var(--ease-out) 900ms both; transform-origin: left center; }

/* ---------- The answer, drawn and worked ---------- */

.answer { padding-top: clamp(3rem, 6vw, 5rem); }
.answer-title { max-width: 14ch; }
.answer-title .sku { letter-spacing: -0.02em; }
.answer-why { font-size: var(--text-lede); line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
.answer-why strong { font-weight: 500; color: var(--ink); }
.byline { margin-top: var(--space-sm); font-size: var(--text-caption); color: var(--muted); }

/* Coverage chart: days of cover on one axis, the transfer as the azure segment */
.coverage { margin: var(--space-2xl) 0 0; }
.coverage-cap {
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-caption);
  color: var(--muted);
}
.chart {
  --max: 70;
  --label: clamp(9.5rem, 15vw, 14rem);
  --plot-x: calc(var(--label) + var(--col-gap));
}
.rows { position: relative; padding-top: var(--space-md); }
.chart-row {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  column-gap: var(--col-gap);
  align-items: center;
  padding-block: clamp(1.1rem, 1.8vw, 1.6rem);
}
.chart-row + .chart-row:not(.axis-row) { padding-top: clamp(2.4rem, 3.4vw, 3rem); }
.row-label { margin: 0; display: grid; gap: 0.3rem; }
.row-name { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.row-fig {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6vw + 1.4rem, 3.25rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row-fig small { font-family: var(--font-text); font-size: var(--text-caption); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 0.5em; }
.row-fig .now { color: var(--exception); }
.row-fig .to { display: inline-block; font-size: 0.42em; letter-spacing: 0; color: var(--muted); margin-inline: 0.35em 0.3em; vertical-align: 0.42em; }

.plot { position: relative; height: 2.25rem; }
.plot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--hairline);
}
.seg {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--a) / var(--max) * 100%);
  width: calc((var(--b) - var(--a)) / var(--max) * 100%);
  transform-origin: left center;
}
.seg-shop { background: var(--ink); }
.seg-hold { background: var(--exception); }
.seg-in { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1px, transparent 1px 3.5px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.seg-send { background: var(--azure); }

.tag {
  position: absolute;
  left: calc(var(--at) / var(--max) * 100%);
  top: calc(100% + 0.85rem);
  padding-left: 0.55rem;
  font-size: var(--text-caption);
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.85rem;
  width: 1px;
  height: calc(0.85rem + 1.3em);
  background: var(--hairline-strong);
}
.tag-up { top: auto; bottom: calc(100% + 0.85rem); }
.tag-up::before { top: auto; bottom: -0.85rem; }
.tag-bar {
  top: 50%;
  transform: translateY(-50%);
  padding-left: 0.7rem;
  font-weight: 500;
  color: var(--paper);
}
.tag-bar::before { display: none; }

.axis-row { padding-block: 0.5rem 0; }
.axis { position: relative; height: 2.25rem; border-top: 1px solid var(--hairline-strong); }
.axis > span {
  position: absolute;
  top: 0.6rem;
  left: calc(var(--at) / var(--max) * 100%);
  transform: translateX(-50%);
  font-size: var(--text-caption);
  line-height: 1.3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.axis > span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.6rem;
  width: 1px;
  height: 0.35rem;
  background: var(--hairline-strong);
}
.axis > span:first-child { transform: none; }
.axis > span:first-child::before { left: 0; }
.axis > span:last-child { transform: translateX(-100%); }
.axis > span:last-child::before { left: auto; right: 0; }

.target {
  position: absolute;
  top: 0;
  bottom: 2.25rem;
  left: calc(var(--plot-x) + (100% - var(--plot-x)) * 21 / var(--max));
  border-left: 1px dashed var(--ink-2);
  pointer-events: none;
}
.target span {
  position: absolute;
  top: -0.15rem;
  left: 0.55rem;
  font-size: var(--text-caption);
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}

.legend { display: none; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: var(--space-md) 0 0; padding: 0; list-style: none; font-size: var(--text-caption); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.sw { display: inline-block; width: 1.1rem; height: 0.7rem; }
.sw-hold { background: var(--exception); }
.sw-in { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1px, transparent 1px 3.5px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.sw-send { background: var(--azure); }
.sw-target { width: 0; height: 0.9rem; border-left: 1px dashed var(--ink-2); margin-inline: 0.55rem; }

@media (max-width: 1000px) {
  .tag { display: none; }
  .legend { display: flex; }
}
@media (max-width: 720px) {
  .chart { --label: 100%; --plot-x: 0px; }
  .chart-row { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; padding-block: 1.1rem; }
  .chart-row + .chart-row:not(.axis-row) { padding-top: 1.75rem; }
  .plot { height: 1.25rem; }
  .row-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
  .axis-row .row-label { display: none; }
  .target { display: none; }
  .plot::after {
    content: "";
    position: absolute;
    left: calc(21 / var(--max) * 100%);
    top: -0.6rem; bottom: -0.6rem;
    border-left: 1px dashed var(--ink-2);
  }
  .axis > span:nth-child(even) { display: none; }
  .axis .unit { display: none; }
}

/* The worked sum: label left, figure right, the total under an azure hairline */
.answer-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-xl);
  align-items: end;
  margin-top: var(--space-2xl);
}
.sum { grid-column: 1 / span 5; margin: 0; }
.sum-cap { font-size: var(--text-caption); color: var(--muted); padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); border-bottom: 1px solid var(--hairline); }
.sum-lines { margin: 0; padding: 0; list-style: none; }
.sum-line {
  display: flex;
  justify-content: space-between;
  align-items: last baseline;
  gap: var(--space-md);
  padding-block: 0.5rem;
}
.sum-label { font-size: 1.05rem; line-height: 1; color: var(--ink-2); }
.sum-val {
  font-family: var(--font-display);
  font-size: var(--text-figure);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sum-val small { font-family: var(--font-text); font-size: var(--text-caption); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 0.3em; }
.sum-val .op { font-size: 0.62em; color: var(--muted); margin-right: 0.22em; }
.sum-total { position: relative; margin-top: var(--space-sm); padding-top: var(--space-md); }
.sum-total::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--azure);
  transform-origin: right center;
}
.sum-total .sum-label { font-weight: 500; color: var(--ink); }
.sum-total .sum-val { font-size: var(--text-figure-xl); font-weight: 100; color: var(--azure); line-height: 0.9; }

.also { grid-column: 8 / -1; }
.also-text { color: var(--ink-2); max-width: 44ch; }
.also-mark { color: var(--exception); font-weight: 500; margin-right: 0.3rem; }
.also-fig {
  margin: var(--space-lg) 0 0;
  padding-block: var(--space-md) 0.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--text-figure-xl);
  font-weight: 100;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--exception);
}
.also-fig small { font-family: var(--font-text); font-size: var(--text-caption); font-weight: 500; letter-spacing: 0; margin-left: 0.9em; }

@media (max-width: 980px) {
  .sum, .also { grid-column: 1 / -1; }
}

/* The answer resolves when it scrolls into view: the bars grow, the transfer
 * fills FBA up to the target, then the sum settles line by line. */
@keyframes grow { from { transform: scaleX(0); } }
@keyframes settle {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.coverage.armed .seg { transform: scaleX(0); }
.coverage.armed .tag, .coverage.armed .target, .coverage.armed .row-fig { opacity: 0; }
.coverage.play .seg-shop { animation: grow 1500ms var(--ease-out) both; }
.coverage.play .seg-hold { animation: grow 800ms var(--ease-out) 200ms both; }
.coverage.play .seg-in { animation: grow 500ms var(--ease-soft) 850ms both; }
.coverage.play .seg-send { animation: grow 1200ms var(--ease-out) 1250ms both; }
.coverage.play .row-fig { animation: fade 800ms var(--ease-soft) 300ms both; }
.coverage.play .chart-row:nth-child(2) .row-fig { animation-delay: 1700ms; }
.coverage.play .tag-hold { animation: fade 600ms var(--ease-soft) 700ms both; }
.coverage.play .tag-in { animation: fade 600ms var(--ease-soft) 1150ms both; }
.coverage.play .tag-send { animation: fade 700ms var(--ease-soft) 1900ms both; }
.coverage.play .target { animation: fade 900ms var(--ease-soft) 1600ms both; }

.sum.armed .sum-line { opacity: 0; }
.sum.armed .sum-total::before { transform: scaleX(0); }
.sum.play .sum-line { animation: settle 900ms var(--ease-out) both; }
.sum.play .sum-line:nth-child(2) { animation-delay: 140ms; }
.sum.play .sum-line:nth-child(3) { animation-delay: 280ms; }
.sum.play .sum-line:nth-child(4) { animation-delay: 460ms; }
.sum.play .sum-line:nth-child(5) { animation-delay: 600ms; }
.sum.play .sum-line:nth-child(6) { animation-delay: 900ms; animation-duration: 1200ms; }
.sum.play .sum-total::before { animation: draw 900ms var(--ease-out) 950ms both; }

/* ---------- What the diagnosis tells you: a running feature ---------- */

.feature-title { max-width: 13ch; }
.feature {
  columns: 2 22rem;
  column-gap: clamp(2rem, 5vw, 5.5rem);
  margin-top: var(--space-2xl);
}
.runin { break-inside: avoid; margin-bottom: var(--space-lg); }
.runin h3, .runin p { display: inline; }
.runin h3, .runin p { font-size: clamp(1.15rem, 0.3vw + 1.05rem, 1.3rem); line-height: 1.62; }
.runin h3 { font-family: var(--font-text); font-weight: 500; letter-spacing: -0.012em; color: var(--ink); }
.runin p { color: var(--ink-2); }
.runin-eg { color: var(--muted); }
.runin-eg.exception { color: var(--exception); }

.pull {
  column-span: all;
  margin: var(--space-md) 0 var(--space-2xl);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3.5rem) clamp(0rem, 17vw, 19rem);
  border-block: 1px solid var(--hairline);
}
.pull p {
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}
.pull p::before { content: "“"; margin-left: -0.42em; color: var(--muted); }
.pull p::after { content: "”"; color: var(--muted); }

/* ---------- How it works: three steps on one line ---------- */

.how-title { font-size: var(--text-h2); }
.steps {
  --num: clamp(4.5rem, 5vw + 1.5rem, 7rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--num) * 0.43);
  height: 1px;
  background: var(--hairline-strong);
}
.step { padding-right: clamp(0rem, 3vw, 3rem); }
.step-n {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-lg);
  padding-right: 1.25rem;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: var(--num);
  font-weight: 100;
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.step + .step .step-n { margin-left: -1.25rem; padding-left: 1.25rem; }
.step h3 { font-size: var(--text-h3); margin-bottom: 0.8rem; max-width: 17ch; }
.step p { color: var(--ink-2); max-width: 40ch; }
.step .fine { margin-top: 1rem; font-size: var(--text-sm); }
.step .fine strong { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .steps::before { display: none; }
  .step { padding-right: 0; }
  .step-n, .step + .step .step-n { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 var(--space-md); padding: 0; background: none; }
  .step-n::after { content: ""; flex: 1; height: 1px; background: var(--hairline-strong); }
}

/* ---------- The argument: a field chapter ---------- */

.chapter {
  position: relative;
  overflow: hidden;
  background: var(--field);
  color: var(--on-field);
  padding-block: clamp(7rem, 13vw, 12rem);
}
.chapter :focus-visible { outline-color: var(--share); }
.chapter-in { --mark-x: 0.6; position: relative; }
/* The mark, drawn in hairline from the title's top to the statement's foot and
 * cropped by the right edge: one stock, the seam, two channels. */
.mark-trace {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--pad-x) + (100% - 2 * var(--pad-x)) * var(--mark-x));
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  overflow: visible;
  fill: none;
  stroke-width: 1.5px;
  pointer-events: none;
}
.mark-trace path { vector-effect: non-scaling-stroke; }
.trace-lot { stroke: var(--on-field-2); opacity: 0.75; }
.trace-share { stroke: var(--share); }
.chapter-in > :not(.mark-trace) { max-width: min(54rem, 100% * var(--mark-x) - 3rem); }
.chapter-title { font-size: clamp(1.9rem, 1.8vw + 1.1rem, 2.8rem); max-width: 18ch; color: var(--on-field); }
.chapter-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md) clamp(2rem, 4vw, 4rem);
  margin-top: var(--space-lg);
}
.chapter-cols p { margin: 0; color: var(--on-field-2); font-weight: 300; font-size: 1.125rem; line-height: 1.75; }
.statement {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--on-field);
  text-wrap: balance;
}
.chapter-in > .statement { max-width: min(15ch, 100% * var(--mark-x) - 3rem); }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mark-trace.armed path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mark-trace.play path { stroke-dasharray: 1; animation: trace 2800ms var(--ease-out) both; }
.mark-trace.play .trace-share { animation-delay: 300ms; }
@media (max-width: 1100px) {
  .chapter-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .chapter-in > :not(.mark-trace) { max-width: none; }
  .chapter-in > .statement { max-width: 15ch; }
  .mark-trace { position: relative; display: block; left: auto; top: auto; bottom: auto; height: auto; width: 110%; margin: var(--space-2xl) 0 calc(-1 * clamp(7rem, 13vw, 12rem)) 30%; }
}

/* ---------- Ground rules: four statements against their terms ---------- */

.rule-list { margin-top: var(--space-2xl); }
.rule {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}
.rule h3 {
  grid-column: 1 / span 7;
  font-size: clamp(1.9rem, 2.2vw + 0.9rem, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.rule p { grid-column: 9 / -1; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 980px) {
  .rule h3, .rule p { grid-column: 1 / -1; }
  .rule p { margin-top: 1rem; }
}

/* ---------- Pricing ---------- */

.prices { margin-top: var(--space-2xl); }
.price {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--hairline);
}
.price-fig {
  grid-column: 1 / span 4;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-figure-xl);
  font-weight: 100;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.price-fig small { font-family: var(--font-text); font-size: var(--text-caption); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 0.7em; }
.price-fig small.pre { margin: 0 0.7em 0 0; }
.price-body { grid-column: 5 / span 7; }
.price-body h3 { font-size: var(--text-h3); margin-bottom: 0.7rem; }
.price-body p { color: var(--ink-2); max-width: 54ch; }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.tiers { column-gap: var(--col-gap); }
.tier { display: grid; align-content: start; gap: 0.35rem; padding-top: 1.25rem; }
.tier-name { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.tier-fig { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8vw + 1.4rem, 3.4rem); font-weight: 200; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.tier-cap { font-size: var(--text-caption); line-height: 1.45; color: var(--muted); }
.price-body .price-note { margin-top: var(--space-md); font-size: var(--text-caption); line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) {
  .price-fig, .price-body { grid-column: 1 / -1; }
  .price-body { margin-top: var(--space-md); }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier { grid-template-columns: 5.5rem auto minmax(0, 1fr); align-items: baseline; column-gap: 1rem; padding: 1rem 0; }
  .tier + .tier { border-top: 1px solid var(--hairline); }
}

/* ---------- Request ---------- */

.request-head .alt { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--muted); }
.request-head .alt a { overflow-wrap: anywhere; }

.form { display: grid; gap: 1.9rem; padding-top: 0.4rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field > label { font-size: var(--text-sm); font-weight: 500; }
.field .opt { font-weight: 300; color: var(--muted); }
.field .hint { font-size: var(--text-caption); color: var(--muted); line-height: 1.55; }

.field input[type="email"],
.field input[type="text"],
.field select {
  font: inherit;
  font-size: 1.15rem;
  font-weight: 300;
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-2);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.field select {
  appearance: none;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2312161F' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 1rem;
  cursor: pointer;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover { border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--azure); outline-offset: 4px; border-bottom-color: var(--azure); }
.field input:user-invalid { border-bottom-color: var(--exception); }

.file-drop {
  position: relative;
  display: flex;
  align-items: baseline;
  min-width: 0;
  padding: 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft);
}
.file-drop:hover { border-bottom-color: var(--ink); }
.file-drop.drag { border-bottom-color: var(--azure); background: var(--azure-soft); }
.file-drop:focus-within { outline: 2px solid var(--azure); outline-offset: 4px; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; width: 100%; }
.drop-text[hidden] { display: none; }
.drop-action { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 400; }
.drop-action .arw { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform 320ms var(--ease-out); }
.file-drop:hover .drop-action .arw { transform: translateX(4px); }
.drop-or { font-size: var(--text-sm); color: var(--muted); }
.file-drop .picked { font-weight: 400; overflow-wrap: anywhere; }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.6; color: var(--ink-2); }
.consent input {
  appearance: none;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.25rem 0 0;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.consent input:hover { border-color: var(--ink); }
.consent input:checked {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23F4F7FC' stroke-width='1.6'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.consent input:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.consent input:user-invalid { border-color: var(--exception); }

.form .btn { margin-top: 0.25rem; padding-block: 1.25rem; }
@media (max-width: 480px) {
  .form .btn .cta-long { display: none; }
  .form .btn .cta-short { display: inline; }
}
.form-note { font-size: var(--text-caption); color: var(--muted); max-width: none; }

.form-status {
  display: none;
  margin: 0;
  max-width: none;
  padding: 1rem 0;
  border-block: 1px solid var(--hairline-strong);
  font-size: 0.95rem;
}
.form.sent > :not(.form-status) { display: none; }
.form-status.ok { display: block; color: var(--ink); }
.form-status.err { display: block; color: var(--exception); }
.form-status a { color: inherit; }

/* ---------- FAQ ---------- */

.qa { border-top: 1px solid var(--hairline); }
.q { border-bottom: 1px solid var(--hairline); }
.q summary {
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.5vw + 1.05rem, 1.45rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-soft);
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 15px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1px 15px no-repeat;
  transition: background-size 300ms var(--ease-out);
}
.q[open] summary::after {
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 15px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1px 0 no-repeat;
}
.q summary:hover { color: var(--azure); }
.q .a { padding: 0 0 1.75rem; color: var(--ink-2); }
.q .a p { max-width: 62ch; }

/* ---------- Footer ---------- */

.foot { background: var(--field); color: var(--on-field); padding-block: clamp(5rem, 9vw, 8rem) 2.5rem; font-size: var(--text-sm); }
.foot :focus-visible { outline-color: var(--share); }
.foot-statement {
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 16ch;
  text-wrap: balance;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-field);
}
.foot .lockup { color: var(--on-field); margin-right: 0; }
.foot .lockup svg { height: 26px; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.foot nav a, .foot-top { color: var(--on-field-2); text-decoration: none; white-space: nowrap; }
.foot nav a:hover, .foot-top:hover { color: var(--on-field); text-decoration: underline; }
.foot .legal-note { margin-top: var(--space-md); font-size: var(--text-caption); line-height: 1.6; color: var(--on-field-2); max-width: 80ch; }
.foot-full { padding-bottom: clamp(1.25rem, 2.5vw, 2.25rem); }
.foot-mark { display: block; margin-top: clamp(3.5rem, 8vw, 7rem); color: var(--on-field); }
.foot-mark svg { display: block; width: 100%; height: auto; }
@media (max-width: 480px) {
  .foot nav a[href^="mailto"] { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Legal pages ---------- */

.legal-main { padding-block: clamp(3rem, 7vw, 6rem); }
.legal-main .wrap { max-width: 820px; }
.legal-main h1 { font-size: clamp(2.4rem, 3vw + 1.2rem, 3.6rem); }
.legal-main .updated { margin-top: 1rem; font-size: var(--text-caption); color: var(--muted); margin-bottom: var(--space-xl); }
.legal-main h2 { font-size: 1.65rem; margin-top: 2.4em; margin-bottom: 0.6em; }
.legal-main h3 { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; margin-top: 1.6em; margin-bottom: 0.4em; letter-spacing: 0; }
.legal-main p, .legal-main li { color: var(--ink); max-width: 68ch; }
.legal-main p + p { margin-top: 1em; }
.legal-main ul { padding-left: 1.2rem; }
.legal-main li { margin-bottom: 0.4em; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .armed .seg, .armed .sum-total::before { transform: none; }
  .armed .tag, .armed .target, .armed .row-fig, .armed .sum-line { opacity: 1; }
  .mark-trace.armed path { stroke-dashoffset: 0; }
}
