/* ==========================================================================
   Quantest Technologies LLP — marketing site
   Direction: "The product performs" (seed 1065628278)
   Type: Libre Franklin (display) / Source Serif 4 (text)
   Colour: kept from the brand — periwinkle #AEBBFF on a near-black ground
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* height:auto is what lets width/height attributes (which reserve layout space
   and stop the page jumping as pictures load) coexist with a CSS aspect-ratio.
   Without it an img keeps its attribute height and ignores the ratio. */
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }

/* --- tokens --------------------------------------------------------------- */
:root {
  /* Tells the browser this is a dark UI, so scrollbars, native <select>
     dropdowns, date pickers and form controls render dark instead of light
     on top of a near-black page. Without it Windows draws a white dropdown. */
  color-scheme: dark;

  /* ground, ink, one accent */
  --bg:         #0a0a0b;
  --surface:    #141416;   /* one lightness step up: tiles, panels */
  --raised:     #1f1f23;   /* nested panel inside a fragment */
  --ink:        #f5f5f6;
  --muted:      #a3a3ad;
  --accent:     #aebbff;   /* the brand periwinkle — the only hue */
  --accent-ink: #0a0a0b;

  /* market direction only, and only inside a [data-ui] fragment */
  --positive:   #5fd38d;
  --negative:   #ff6b6b;

  /* five type steps, no sixth */
  --t-small:   clamp(0.8125rem, 0.79rem + 0.10vw, 0.875rem);
  --t-body:    clamp(1.0625rem, 1.00rem + 0.25vw, 1.1875rem);
  --t-lead:    clamp(1.25rem,  1.10rem + 0.70vw, 1.625rem);
  --t-head:    clamp(2rem,     1.30rem + 3.20vw, 4rem);
  --t-display: clamp(3rem,     1.05rem + 8.60vw, 9.375rem);

  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* one pair of page margins, one radius */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 1240px;
  --radius: 4px;

  /* Section rhythm: still clearly larger than any gap inside a section, but
     240px top plus 240px bottom put nearly half a screen of nothing between
     every pair of sections. 122px at 1440 keeps the separation legible and
     gives the page back a screen and a half. */
  --section: clamp(4.5rem, 8.5vw, 10rem);

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

/* --- page ----------------------------------------------------------------- */
/* The masthead is sticky, so an in-page jump (#what, #important, #pricing) would
   land with the heading hidden underneath it. scroll-padding also keeps a
   keyboard-focused element from being covered when tabbing down the page. */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:where(h1, h2, h3, section[id]) { scroll-margin-top: 6rem; }

/* Removes the 300ms double-tap zoom delay on touch without disabling zoom
   itself, and makes the tap flash a deliberate choice rather than the OS
   default blue box. */
:where(a, button, summary, label, input, select, textarea) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.55;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12-column grid, used by the section blueprints */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}

/* Below this the twelve columns stop meaning anything: a `span 7` child is
   190px on a phone, which is a form nobody can type in. The component
   sections each carried their own override; children that set the span
   inline had none, so they silently kept twelve columns all the way down.
   !important is here to beat those inline grid-column declarations. */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .grid > * { grid-column: 1 / -1 !important; }
}

section { padding-block: var(--section); }

/* --- type ----------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.display {
  font-size: var(--t-display);
  text-transform: uppercase;
  line-height: 0.88;
}

h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-lead); line-height: 1.05; }

p { max-width: 68ch; }
.lead { font-size: var(--t-lead); line-height: 1.4; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }

b, strong { font-weight: 600; }

/* a quotation is a statement, not a headline: capped so it never reads as one */
blockquote {
  font-family: var(--text);
  font-style: italic;
  font-size: clamp(1.125rem, 0.95rem + 0.75vw, 1.5rem);
  line-height: 1.35;
  max-width: 42ch;
}
blockquote { margin-block: 2.5rem; }
blockquote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: var(--t-small);
  color: var(--muted);
  letter-spacing: 0;
}

/* numerals that line up */
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* --- actions: one button shape, decided once (square, 4px) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn:hover { background: #c6d0ff; }
.btn:active { transform: translateY(1px); }

/* the secondary action is told apart by a tone step, not by an outline */
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--raised); }

.link {
  color: var(--ink);
  text-decoration: none;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.18s var(--ease);
}
.link:hover { color: var(--accent); }

:where(a, button, input, summary, select, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* --- masthead ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding-block: 1.125rem;
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.wordmark svg { width: auto; height: 26px; color: var(--accent); }
.wordmark span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.045em;
  color: var(--accent);
}
.nav { display: flex; gap: clamp(0.9rem, 2vw, 1.75rem); margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { color: var(--accent-ink); }
.nav a.link { color: var(--ink); }
.masthead .btn { min-height: 40px; }

.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 44px;
    padding: 0 0.75rem;
    background: var(--surface);
    border: 0;
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--t-small);
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    inset: 100% var(--gutter) auto var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0.5rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.85rem 0.75rem; font-size: var(--t-body); font-family: var(--display); }
  .nav .btn { margin-top: 0.5rem; }
}

/* --- hero: controls on the sentence --------------------------------------- */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem); }
.hero__inner { position: relative; }
.hero h1 { margin-inline: auto; text-align: center; max-width: 16ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero__sub {
  margin: clamp(2rem, 4vw, 3.25rem) auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: 1.45;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 2.25rem;
}

/* the desk: one product control over four product views. Deliberately a
   single wide panel rather than a row of chips -- what it demonstrates is
   the breadth of the screens, which reads as one thing, not three. */
.desk {
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.desk__body { min-height: 190px; }
.desk__body .bench__row + .bench__row { margin-top: 0.45rem; }
.desk__note { max-width: 56ch; margin: 1rem auto 0; text-align: center; }
@media (max-width: 560px) {
  .desk .seg { flex-wrap: wrap; }
  .desk .seg button { flex: 1 0 40%; }
  .desk__body .bench__row { flex-direction: column; gap: 0.1rem; align-items: flex-start; }
}

/* ==========================================================================
   [data-ui] — real fragments of the product.
   Inside these the product's own conventions apply: 1px control borders,
   small radii, its own type sizes. Outside them the house rules hold.
   ========================================================================== */
[data-ui] {
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink);
}
[data-ui] * { letter-spacing: 0; }
[data-ui] .ui__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
[data-ui] .ui__value { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
[data-ui] .pos { color: var(--positive); }
[data-ui] .neg { color: var(--negative); }
[data-ui] .acc { color: var(--accent); }

.bench__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }

/* segmented switch — a real product control */
.seg { display: flex; gap: 2px; background: var(--raised); border-radius: 6px; padding: 2px; }
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0.45rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--raised); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--raised); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6.5px;
  background: var(--accent); border-radius: 50%; border: 0;
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--accent); border-radius: 50%; border: 0; }

/* --- results table: the plan comparison on the pricing page -------------- */
.results { width: 100%; border-collapse: collapse; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.results caption { text-align: left; color: var(--muted); font-size: var(--t-small); padding-bottom: 1rem; }
.results th, .results td { padding: 0.875rem 1rem; text-align: left; vertical-align: baseline; border: 0; }
.results thead th {
  font-family: var(--display);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--muted);
}
.results tbody tr:nth-child(odd) { background: var(--surface); }
.results tbody tr.grp { background: none; }
.results tbody td:last-child, .results thead th:last-child { text-align: right; }
.results .grp th { text-align: left; }
.results .grp td { background: none !important; padding-top: 2rem; }
.results .grp th {
  font-family: var(--display);
  font-size: var(--t-body);
  font-weight: 700;
  color: var(--ink);
  padding-top: 2rem;
  letter-spacing: -0.02em;
}

@media (max-width: 760px) {
  .results, .results tbody, .results tr, .results td, .results th { display: block; }
  .results caption { display: block; width: 100%; }
  .results thead { display: none; }
  .results tbody tr { padding: 0.9rem 1rem; }
  .results td { padding: 0; }
  .results td[data-l]::before {
    content: attr(data-l) " ";
    color: var(--muted);
    font-family: var(--display);
    font-size: var(--t-small);
  }
  .results td:last-child { text-align: left; }
}

/* --- features: small proof beside text ------------------------------------ */
.features__list { display: flex; flex-direction: column; gap: clamp(4rem, 7vw, 7.5rem); margin-top: clamp(3rem, 5vw, 4rem); }
.feature { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.feature__panel { align-self: start; }
.feature h3 { margin-bottom: 0.75rem; }
.feature p + p { margin-top: 0.75rem; }
@media (max-width: 880px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .feature__panel { max-width: 100%; overflow: hidden; }
}

/* --- stats: a ledger column ----------------------------------------------- */
.stats__head { grid-column: 1 / span 5; align-self: center; }
.stats__rows { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 1.25rem; }
.stat { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 0.5rem; }
.stat__int {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1rem + 5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__dec {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1rem + 5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__cap { font-size: var(--t-body); color: var(--muted); padding-left: 1.25rem; max-width: 26ch; }
@media (max-width: 900px) {
  .stats__head, .stats__rows { grid-column: 1 / -1; }
  .stat { grid-template-columns: auto auto; }
  .stat__cap { grid-column: 1 / -1; padding-left: 0; margin-top: 0.4rem; }
}

/* --- picture bands -------------------------------------------------------- */
.plate { position: relative; overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.plate figcaption { margin-top: 0.875rem; font-size: var(--t-small); color: var(--muted); max-width: 48ch; }

.band { padding-block: 0; overflow: hidden; }
.band img { width: 100%; height: clamp(300px, 46vh, 560px); object-fit: cover; }
.band figcaption {
  font-size: var(--t-small); color: var(--muted); padding-top: 0.875rem;
  display: flex; gap: 2rem; justify-content: space-between; align-items: baseline;
}
.band figcaption > :first-child { max-width: 68ch; }
.band figcaption .credit { flex: 0 0 auto; text-align: right; }
/* Stacked on a phone the credit became a short line of its own directly
   above the next heading, which reads as a kicker for it. Inline, it is just
   the end of the caption sentence. */
@media (max-width: 760px) {
  .band figcaption { display: block; }
  .band figcaption .credit { display: inline; text-align: left; }
  .band figcaption .credit::before { content: "  B7  "; }
}

/* --- about: the letter ---------------------------------------------------- */
.letter { max-width: 560px; margin-inline: auto; }
.letter__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface); border-radius: 50%;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.letter__mark svg { height: 22px; width: auto; }
.letter p + p { margin-top: 1.25rem; }
.letter .mark { background: var(--accent); color: var(--accent-ink); padding: 0 0.25em; }
.letter__sign { margin-top: 2.25rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.letter__role { font-size: var(--t-small); color: var(--muted); }

/* --- pricing: the price, very large --------------------------------------- */
.price__intro { grid-column: 1 / span 4; }
.price__figure { grid-column: 6 / span 7; position: relative; }
.price__amount {
  display: flex;
  align-items: flex-start;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums lining-nums;
}
.price__cur { font-size: clamp(2.5rem, 1rem + 5vw, 7rem); padding-top: 0.12em; }
.price__num { font-size: clamp(5rem, 15vw, 14rem); }
.price__per { align-self: flex-end; font-family: var(--display); font-weight: 600; font-size: var(--t-body); color: var(--muted); padding-left: 0.75rem; padding-bottom: 0.5rem; letter-spacing: 0; }
.price__includes { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.price__includes li { font-size: var(--t-body); }
.price__overlap { position: absolute; top: -2rem; right: 0; width: min(160px, 24%); z-index: 0; }
.price__amount, .price__includes { position: relative; z-index: 1; }
.price__other { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(1rem, 3vw, 3rem); }
@media (max-width: 760px) { .price__other { grid-template-columns: 1fr; gap: 1.5rem; } }
.price__tier { padding: 0; }
.price__tier h3 { margin-bottom: 0.5rem; }
.price__tier p:not(.amt) { font-size: var(--t-body); color: var(--ink); }
.price__tier .amt { font-family: var(--display); font-weight: 700; font-size: var(--t-head); letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 900px) {
  .price__intro, .price__figure { grid-column: 1 / -1; }
  .price__figure { margin-top: 2.5rem; }
  .price__overlap { position: static; width: 140px; margin-bottom: 1rem; }
}

/* the promotional offer: a filled field, not a badge */
.offer {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.offer h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); max-width: 18ch; }
.offer p { color: #2b3050; max-width: 42ch; margin-top: 0.5rem; }
.offer .btn { background: var(--accent-ink); color: var(--accent); }
.offer .btn:hover { background: #26262c; }

/* --- faq: accordion of filled tiles --------------------------------------- */
.faq__head { grid-column: 1 / span 4; position: sticky; top: 96px; align-self: start; }
.faq__list { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius); }
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-lead);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .sign { position: relative; flex: 0 0 16px; height: 16px; }
.faq .sign::before, .faq .sign::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 3px; background: currentColor; margin-top: -1.5px;
}
.faq .sign::after { transform: rotate(90deg); transition: transform 0.22s var(--ease); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] .sign::after { transform: rotate(0deg); }
.faq details[open] summary { padding-bottom: 0.5rem; }
.faq__answer { padding: 0 1.5rem 1.5rem; max-width: 52ch; }
.faq details[open] .faq__answer a { color: var(--accent-ink); }
@media (max-width: 900px) {
  .faq__head { grid-column: 1 / -1; position: static; margin-bottom: 1.5rem; }
  .faq__list { grid-column: 1 / -1; }
  .faq summary { font-size: var(--t-body); min-height: 64px; padding: 1rem 1.25rem; }
  .faq__answer { padding: 0 1.25rem 1.25rem; }
}

/* --- cta: a sentence with a blank ----------------------------------------- */
.cta__sentence {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-size: clamp(1.875rem, 0.8rem + 4.2vw, 4rem);
  max-width: 16ch;
}
.cta__sentence input {
  display: inline-block;
  width: 7em;
  height: 1.2em;
  padding: 0 0.3em;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  vertical-align: baseline;
}
.cta__sentence input::placeholder { color: var(--muted); font: inherit; }
.cta__sentence button {
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  height: 1.2em;
  padding: 0 0.4em;
  cursor: pointer;
  vertical-align: baseline;
  transition: background-color 0.18s var(--ease);
}
.cta__sentence button:hover { background: #c6d0ff; }
.cta__note { margin-top: 1.5rem; color: var(--muted); font-size: var(--t-body); }
.cta { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.cta__aside { align-self: end; }
.cta__aside img { border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__aside { display: none; } }
@media (max-width: 760px) {
  .cta__sentence { max-width: none; }
  .cta__sentence input { width: 100%; display: block; margin: 0.35em 0; height: 1.3em; }
}

/* --- footer: a board of tiles --------------------------------------------- */
.footer { padding: 8px max(0px, calc(var(--gutter) - 1.5rem)) 8px; }
.footer__board { max-width: calc(var(--measure) - 2 * var(--gutter) + 3rem); margin-inline: auto; }
.footer__board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.footer__tile { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.f-statement { grid-column: span 3; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.f-statement p { font-size: var(--t-body); line-height: 1.4; max-width: 30ch; }
.f-nav { grid-column: span 2; min-height: 220px; }
.f-nav h4 { font-size: var(--t-small); color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: 0.875rem; }
.f-nav li + li { margin-top: 0.5rem; }
.f-nav a { text-decoration: none; }
.f-nav a:hover { color: var(--accent); }
.f-where { grid-column: span 2; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.f-mail { grid-column: span 3; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.f-mail a { font-size: var(--t-body); text-decoration: none; word-break: break-word; }
.f-mail a:hover { color: var(--accent); }
.f-wordmark {
  grid-column: span 8;
  min-height: 320px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}
.f-wordmark .lockup { display: flex; align-items: center; gap: 0.5em; font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6rem); letter-spacing: -0.05em; }
.f-wordmark .lockup svg { height: 0.82em; width: auto; }
.f-invite {
  grid-column: span 4;
  min-height: 320px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.f-invite:hover { background: #c6d0ff; }
.f-invite span { font-family: var(--display); font-weight: 700; font-size: var(--t-lead); letter-spacing: -0.03em; max-width: 12ch; }
.f-invite svg { align-self: flex-end; width: 44px; height: 44px; }
.f-legal { grid-column: 1 / -1; padding: 1.25rem 1.5rem 0.5rem; color: var(--muted); font-size: var(--t-small); }
.f-legal p { max-width: 72ch; }
.f-legal a { color: var(--muted); }

@media (max-width: 900px) {
  .f-statement, .f-nav, .f-where, .f-mail { grid-column: span 6; min-height: 180px; }
  .f-wordmark { grid-column: 1 / -1; min-height: 160px; }
  .f-invite { grid-column: 1 / -1; min-height: 180px; }
}
@media (max-width: 560px) {
  .f-statement, .f-nav, .f-where, .f-mail { grid-column: 1 / -1; min-height: 0; }
}

/* --- editorial pages (about, blog, contact, pricing) ---------------------- */
.page-head { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.page-head h1 { font-size: clamp(2.5rem, 0.9rem + 6.4vw, 5.5rem); max-width: 14ch; }
.page-head .lead { color: var(--muted); max-width: none; }
/* an article title is a sentence, so it gets a smaller step and a wider measure */
.page-head--article .wrap { grid-template-columns: 8fr 4fr; }
.page-head--article .meta { text-align: right; }
@media (max-width: 860px) { .page-head--article .meta { text-align: left; margin-top: 1.5rem; } }
.page-head--article h1 { font-size: clamp(1.75rem, 0.95rem + 2.9vw, 3.25rem); max-width: 26ch; }
.page-head--article .lead { max-width: 62ch; margin-top: 1.25rem; }
@media (max-width: 860px) {
  .page-head .wrap { grid-template-columns: 1fr; align-items: start; }
  .page-head .lead { margin-top: 1.25rem; }
}

.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1.125rem; }
.prose ul { display: flex; flex-direction: column; gap: 0.6rem; }
.prose li { padding-left: 1.25rem; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.prose blockquote { margin: 2.5rem 0; max-width: 30ch; }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 8px; }
.post-tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 260px;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.post-tile:hover { background: var(--raised); }
.post-tile h3 { font-size: var(--t-lead); }
.post-tile p { font-size: var(--t-body); color: var(--muted); }
.post-tile time { font-size: var(--t-small); color: var(--muted); margin-top: auto; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; min-height: 200px; }

/* The contact page is a form with its routes beside it, not three stacked
   bands: the old layout left most of a screen empty between them. */
.contact-aside > h2 {
  font-size: clamp(1.375rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.contact-aside > h2 ~ h2 { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.route { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.route + .route { margin-top: 8px; }
.route h3 { font-size: var(--t-body); font-weight: 700; letter-spacing: -0.02em; }
.route p { font-size: var(--t-body); color: var(--muted); margin: 0.5rem 0 1rem; }
.route a { font-size: var(--t-body); }
.contact-card h3 { font-size: var(--t-lead); margin-bottom: 0.625rem; }
.contact-card p { font-size: var(--t-body); }
.contact-card a { word-break: break-word; }

/* forms */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: var(--t-small); }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--raised);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }

/* --- motion --------------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(24px); }
.is-in .rise, .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.is-in .rise:nth-child(2) { transition-delay: 0.07s; }
.is-in .rise:nth-child(3) { transition-delay: 0.14s; }
.is-in .rise:nth-child(4) { transition-delay: 0.21s; }
.is-in .rise:nth-child(5) { transition-delay: 0.28s; }

/* the signature move: each headline line rises from behind its own baseline */
.hero h1 .line > span { transform: translateY(110%); }
.hero.is-ready h1 .line > span {
  transform: none;
  transition: transform 0.9s var(--ease);
}
.hero.is-ready h1 .line:nth-child(2) > span { transition-delay: 0.11s; }
.hero__sub, .hero__actions, .bench { opacity: 0; }
.hero.is-ready .hero__sub,
.hero.is-ready .hero__actions,
.hero.is-ready .bench {
  opacity: 1;
  transition: opacity 0.8s var(--ease) 0.5s;
}

.kenburns { animation: kb 26s ease-in-out infinite alternate; transform-origin: 54% 48%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }

/* no script: nothing stays hidden */
.no-js .rise, .no-js .hero__sub, .no-js .hero__actions, .no-js .bench { opacity: 1; transform: none; }
.no-js .hero h1 .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise, .hero__sub, .hero__actions, .bench { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none !important; }
  .kenburns { animation: none; }
}

/* skip link */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.25rem; border-radius: var(--radius); z-index: 100;
}
.skip:focus { left: var(--gutter); top: 0.5rem; }

/* --- a product fragment used as an illustration inside prose ------------- */
.fragment { margin: 2.5rem 0; }
.fragment > [data-ui] { padding: 1.75rem; min-height: 240px; display: flex;
  flex-direction: column; justify-content: center; gap: 0.25rem; }
.fragment figcaption { margin-top: 0.875rem; font-size: var(--t-small); color: var(--muted); }
.prose .fragment { max-width: none; }
/* a route tile stack reads as a list, so it keeps list spacing */
.route h3 + p { margin-top: 0.5rem; }
.route a { display: inline-block; margin-top: 0.25rem; }
