/* Kadensio: marketing site.

   Direction: a ledger. Ruled columns, tabular figures, wide margins, one
   green. Geist and Geist Mono, self-hosted and subset to Latin. Light and
   dark follow the system, and the whole page keeps whichever it is in.

   Shape rule: buttons and inputs are 6px. Everything else is square and is
   separated by hairlines, never by a card, a shadow or a tint.
   Space: a 4px base. 8, 12, 16, 24, 32, 48, 64, 96, 144.
   Accent: --accent on the primary button, links, the hot band and the
   winning side of the comparison. Nowhere else.
   See docs/design/2026-10-04-visual-direction.md. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Arial resized to Geist's metrics, so the swap moves nothing on the page. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 104.94%;
  ascent-override: 95.77%;
  descent-override: 28.11%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg:         #F6F8F6;
  --bg-2:       #EDF1EE;
  --surface:    #FFFFFF;
  --ink:        #0C1F1A;
  --ink-2:      #33423D;
  --ink-3:      #55645F;
  --line:       rgba(12, 31, 26, .18);
  --line-2:     rgba(12, 31, 26, .10);
  --field-line: rgba(12, 31, 26, .48);

  --accent:      #007A47;
  --accent-hi:   #00613A;
  --accent-wash: #E1EFE7;
  --on-accent:   #FFFFFF;
  --warn:        #9A4B1E;
  --danger:      #B03A14;

  --sans: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4.5vw, 3rem);
  --sec: clamp(5rem, 11vw, 9.5rem);

  --r: 6px;

  /* Motion. One vocabulary: a strong ease-out for anything entering or being
     pressed, plain ease for colour, one spring for the few things that should
     feel alive. UI stays under 300ms; the hero sequence is the one exception. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* { duration: 0.5, bounce: 0.15 } sampled into linear(): settles in 640ms with 0.6% overshoot. */
  --spring: linear(0, 0.035, 0.119, 0.228, 0.345, 0.46, 0.565, 0.658, 0.737, 0.802, 0.856, 0.897, 0.93, 0.954, 0.972, 0.985, 0.994, 1, 1.003, 1.005, 1.006, 1.006, 1.006, 1.005, 1.005, 1.004, 1.003, 1.003, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #07130F;
    --bg-2:       #0B1A16;
    --surface:    #0F221D;
    --ink:        #EAF0ED;
    --ink-2:      #B7C3BF;
    --ink-3:      #8F9C98;
    --line:       rgba(234, 240, 237, .20);
    --line-2:     rgba(234, 240, 237, .10);
    --field-line: rgba(234, 240, 237, .46);

    --accent:      #1FC07A;
    --accent-hi:   #45D394;
    --accent-wash: #0E2B21;
    --on-accent:   #04170F;
    --warn:        #E8A07A;
    --danger:      #F0A183;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01" 0, "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 0.9rem + 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.25rem); line-height: 1.06; letter-spacing: -0.04em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.018em; font-weight: 550; }
p  { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
.btn, .link-arrow, .nav a { touch-action: manipulation; }
::selection { background: var(--accent); color: var(--on-accent); }
input, textarea, select { caret-color: var(--accent); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--ink); color: var(--bg);
  padding: .65rem 1rem; border-radius: var(--r);
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

.lead { font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }

.section { padding: var(--sec) 0; }
.section-tint { background: var(--bg-2); }
.section-head { max-width: 42rem; }
.section-head .lead { margin-top: 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 28px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  font-size: .9375rem; font-weight: 450; color: var(--ink-2);
  text-decoration: none; padding: .35rem 0;
  transition: color .15s ease, box-shadow .15s ease;
}
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.header-cta { margin-left: .5rem; }
@media (max-width: 859px) { .nav { display: none; } .header-cta { margin-left: auto; } }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 2.75rem; padding: 0 1.15rem;
  font: inherit; font-size: .9375rem; font-weight: 550; letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  border-radius: var(--r); border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
/* Heard the press: a 3% scale-down while held, eased back on release. */
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform .2s var(--ease-out); }
.btn-lg { min-height: 3.5rem; padding: 0 1.6rem; font-size: 1.0625rem; }

.btn-primary { background: var(--accent); color: var(--on-accent); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink); font-weight: 550; text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.link-lg { font-size: 1.0625rem; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(4.5rem, 9vw, 8rem); }
.hero h1 { max-width: 15em; }

.hero-grid {
  display: grid; gap: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
  align-items: start;
}
@media (min-width: 960px) {
  .hero-grid { gap: clamp(2.5rem, 4vw, 3.5rem); }
}
.hero-copy .lead { max-width: 30rem; }
@media (min-width: 960px) {
  /* Copy and buttons share a row; the product image takes the full measure
     beneath them, wide enough that its own text stays readable. */
  .hero-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; }
  .hero-copy .hero-cta { margin-top: 0; flex: none; }
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
@media (max-width: 479px) { .hero-cta .btn { width: 100%; } }

/* The sample lead, set as a ledger: one ink rule, hairlines, no panel. */
/* Real product images. A hairline and a long, tinted shadow lift them off the
   page without a card around them. */
.shot { margin: 0; min-width: 0; }
.shot picture { display: block; }
@media (max-width: 719px) { .shot img { max-width: 24rem; margin-inline: auto; } .shot .figure-caption { text-align: center; } }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 40px 70px -48px rgba(12, 31, 26, .55);
  background: var(--surface);
}
.shot .figure-caption { margin-top: 1rem; }
.team-shot { margin-top: clamp(2.5rem, 5vw, 4rem); }

.ledger-figure { margin: clamp(2rem, 4vw, 3rem) 0 0; min-width: 0; max-width: 30rem; }
.timeline-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--ink);
}
.timeline-title { font-size: .9375rem; font-weight: 600; }
.timeline-total { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); font-feature-settings: "tnum" 1; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 1.0625rem; line-height: 1.4;
}
.timeline time { font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); font-feature-settings: "tnum" 1; }
.timeline .tl-body { color: var(--ink); font-weight: 500; letter-spacing: -0.012em; }
.timeline .tl-meta { display: block; margin-top: .15rem; color: var(--ink-3); font-size: .9375rem; font-weight: 400; letter-spacing: 0; }
.timeline li.tl-done { border-bottom-color: var(--accent); }
.timeline li.tl-done time, .timeline li.tl-done .tl-body { color: var(--accent); }
.figure-caption { margin-top: 1rem; font-size: .8125rem; color: var(--ink-3); }
@media (max-width: 479px) {
  .timeline li { grid-template-columns: 4.5rem 1fr; gap: .9rem; }
}

/* ---------- Facts ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr 1.5fr 1fr; } }
.fact { padding: 1.75rem 1.5rem 1.75rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line-2); }
@media (max-width: 899px) {
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
.fact dt { font-size: .875rem; color: var(--ink-3); }
.fact dd { margin-top: .5rem; font-size: clamp(1.1875rem, 1rem + .7vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); }
.proof-note { padding: 0 0 1.75rem; font-size: .8125rem; line-height: 1.6; color: var(--ink-3); max-width: 46rem; }

/* ---------- Cost: one large figure, two beside it ---------- */

.cost-grid {
  display: grid; gap: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 900px) { .cost-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.stat-hero .stat-fig {
  font-weight: 400; font-feature-settings: "tnum" 1;
  font-size: clamp(7rem, 3rem + 15vw, 13rem); line-height: .82; letter-spacing: -0.07em;
  color: var(--ink);
}
.stat-unit { font-size: .2em; font-weight: 400; letter-spacing: -0.02em; margin-left: .14em; color: var(--ink-2); }
.stat-desc { margin-top: 1.5rem; color: var(--ink-2); max-width: 24rem; }
.stat-side { display: grid; gap: 2.5rem; }
.stat-side .stat { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.stat-side .stat-fig { font-weight: 400; font-feature-settings: "tnum" 1; font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.stat-side .stat-desc { margin-top: .75rem; font-size: 1rem; }
.cost-close {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  font-size: clamp(1.375rem, 1.05rem + 1vw, 1.875rem); font-weight: 500; letter-spacing: -0.028em; line-height: 1.3;
  max-width: 40rem; color: var(--ink);
}
.cost-link { margin-top: 1.25rem; }
.source { margin-top: 2.5rem; font-size: .8125rem; line-height: 1.65; color: var(--ink-3); max-width: 50rem; }
.source cite { font-style: italic; }

/* ---------- How it works: sticky title beside a ruled list ---------- */

.how-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
@media (min-width: 960px) and (min-height: 920px) {
  .how-grid .section-head { position: sticky; top: 6rem; align-self: start; }
}
.steps { border-top: 2px solid var(--ink); }
.step { padding: 2.25rem 0 2.5rem; border-bottom: 1px solid var(--line-2); }
.step h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); letter-spacing: -0.03em; font-weight: 500; }
.step-body > p { margin-top: .85rem; color: var(--ink-2); max-width: 36rem; }
.step-body > p + p { margin-top: .75rem; }
.step-body a { color: var(--accent); text-underline-offset: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.chip {
  font-size: .875rem; font-weight: 450; line-height: 1;
  padding: .6rem .8rem; border-radius: var(--r);
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.chip-strong { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- What your team sees: a specimen beside a ruled list ---------- */

.team-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 960px) { .team-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(4rem, 8vw, 8rem); align-items: start; } }
.team-main { padding-top: 1.75rem; border-top: 2px solid var(--ink); }
.team-main h3 { font-size: 1.1875rem; font-weight: 550; letter-spacing: -0.018em; }
.team-main > p { margin-top: .75rem; color: var(--ink-2); max-width: 28rem; }
.team-main .link-arrow { margin-top: 1.25rem; }

.score-card { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.score-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.score-num { font-weight: 400; font-feature-settings: "tnum" 1; font-size: clamp(5.5rem, 3rem + 7vw, 8.5rem); line-height: .8; letter-spacing: -0.07em; }
.temp {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); padding-bottom: .25rem;
}
.score-label { margin-top: 1.25rem; font-size: .8125rem; color: var(--ink-3); }
.factor-list { margin-top: .75rem; }
.factor-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; font-size: .9375rem; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.factor-list b { font-weight: 500; color: var(--ink); font-feature-settings: "tnum" 1; }

.team-list { border-top: 2px solid var(--ink); }
.team-item:first-child { padding-top: 1.75rem; }
.team-item { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line-2); }
.team-item p { margin-top: .5rem; color: var(--ink-2); max-width: 30rem; }

/* ---------- Try it: one number ---------- */

.try .lead { margin-top: 1.5rem; }
.dare-num {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; font-feature-settings: "tnum" 1;
  font-size: clamp(2.5rem, .6rem + 8.4vw, 8.25rem); letter-spacing: -0.06em; line-height: 1;
  color: var(--ink);
}
.dare-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.dare-note { font-size: .9375rem; color: var(--ink-3); max-width: 24rem; }
@media (max-width: 479px) { .dare-row .btn { width: 100%; } }

/* ---------- The connection: two columns ---------- */

.compare-grid .lead + .lead { margin-top: 1rem; }
.compare {
  display: grid; margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare li { padding: 1.75rem 2rem 2rem 0; border-top: 2px solid var(--ink-3); }
.compare-good { border-top-color: var(--accent); }
@media (min-width: 760px) { .compare-good { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line-2); } }
@media (max-width: 759px) { .compare-good { margin-top: 2rem; } }
.compare-tag { font-size: .875rem; font-weight: 500; color: var(--ink-3); }
.compare-good .compare-tag { color: var(--accent); }
.compare-name { margin-top: .6rem; font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.compare-bad .compare-name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--warn) 80%, transparent); text-decoration-thickness: 1.5px; }
.compare-desc { margin-top: .85rem; color: var(--ink-2); max-width: 24rem; }
.compare-note { margin-top: 2rem; font-size: .9375rem; color: var(--ink-3); max-width: 44rem; }
.compare-note a { color: var(--ink); text-underline-offset: 4px; }

/* ---------- Configuration: two lists ---------- */

.qsets { display: grid; gap: 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 860px) { .qsets { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }
.qset { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.qset-label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.qset .chips { margin-top: 1.25rem; }
.config-grid .lead + .lead { margin-top: 1rem; }

/* ---------- FAQ: question beside answer, ruled ---------- */

.faq { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 2px solid var(--ink); }
.faq-item { display: grid; gap: .75rem; padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line-2); }
@media (min-width: 860px) { .faq-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }
.faq-item h3 { font-size: 1.1875rem; font-weight: 550; letter-spacing: -0.02em; }
.faq-item p { color: var(--ink-2); max-width: 38rem; }
.faq-item a { color: var(--accent); text-underline-offset: 4px; }

/* ---------- Early access ---------- */

.access-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 960px) { .access-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.access-grid .lead { margin-top: 1.5rem; }

.signoff { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 26rem; }
.signoff-mark { width: 40px; height: 40px; }
.signoff-mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .signoff-mark-light { display: none; }
  .signoff-mark-dark { display: block; }
}
.signoff-name { font-weight: 600; }
.signoff-role { font-size: .9375rem; color: var(--ink-2); }
.signoff-role a { color: var(--ink); text-underline-offset: 4px; }

.wl { display: grid; gap: 1.5rem; }
.wl-row { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .wl-row { grid-template-columns: 1fr 1fr; } }
.wl-field { display: grid; gap: .5rem; min-width: 0; }
.wl-label { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.wl-label em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.wl-input {
  width: 100%;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--r);
  padding: .85rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.wl-input::placeholder { color: var(--ink-3); }
.wl-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.wl-input[aria-invalid="true"] { border-color: var(--danger); }
.wl-textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.wl-select {
  padding-right: 2.5rem; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) calc(50% + 2px), calc(100% - .85rem) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.wl-select option { color: var(--ink); background: var(--surface); }
.wl-error { font-size: .875rem; line-height: 1.45; color: var(--danger); }
.wl-hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.wl-submit { flex: none; }
.wl-submit:disabled { opacity: .55; cursor: not-allowed; }
.wl-status { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); flex: 1 1 14rem; min-width: 0; }
.wl-status.is-ok { color: var(--accent); }
.wl-status.is-error { color: var(--danger); }

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

.site-footer { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; gap: 4rem; } }
.logo-footer img { height: 22px; }
.footer-meta { font-size: .9375rem; color: var(--ink-3); }
.footer-meta a, .footer-legal a { color: var(--ink-2); text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: .75rem; font-size: .9375rem; }

/* ---------- Document pages (scoring, articles, legal) ---------- */

.doc-page { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 8rem); }
.doc-page .wrap:has(.doc-toc) { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1020px) {
  .doc-page .wrap:has(.doc-toc) { grid-template-columns: 13.5rem minmax(0, 42rem); }
  .doc-toc { grid-column: 1; position: sticky; top: 6.5rem; align-self: start; }
  .doc { grid-column: 2; }
}
.doc-head, .doc-banner { grid-column: 1 / -1; }

.doc-banner { margin-bottom: 3rem; padding: .25rem 0 .25rem 1.25rem; border-left: 2px solid var(--warn); max-width: 46rem; }
.doc-banner p { font-size: .9688rem; color: var(--ink-2); }
.doc-banner p + p { margin-top: .6rem; }
.doc-banner strong { color: var(--ink); }
.doc-banner ul { margin-top: .6rem; display: grid; gap: .35rem; }
.doc-banner li { position: relative; padding-left: 1rem; font-size: .9688rem; color: var(--ink-2); }
.doc-banner li::before { content: ""; position: absolute; left: 0; top: .8em; width: .4rem; height: 1px; background: var(--warn); }

.doc-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.doc-head h1 { font-size: clamp(2.375rem, 1.2rem + 3.6vw, 3.75rem); max-width: 18em; }
.doc-standfirst { margin-top: 1.75rem; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin-top: 1.75rem; font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }

.doc-toc { margin-bottom: clamp(3rem, 6vw, 4rem); padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.doc-toc h2 { font-size: .875rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--ink); }
.doc-toc ol { margin-top: .75rem; counter-reset: toc; display: grid; }
.doc-toc li { counter-increment: toc; display: flex; gap: .75rem; padding: .45rem 0; font-size: .9375rem; line-height: 1.4; }
.doc-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--ink-3); padding-top: .2rem; }
.doc-toc a { color: var(--ink-2); text-decoration: none; }

.doc { max-width: 42rem; }
.doc > section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.doc > section:first-child { padding-top: 0; }
.doc h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.375rem); letter-spacing: -0.035em; display: flex; gap: 1rem; align-items: baseline; }
.doc h2 .doc-n { font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.doc h3 { margin-top: 2.25rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.doc p { margin-top: 1rem; }
.doc h2 + p, .doc h3 + p { margin-top: 1rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); text-underline-offset: 4px; }
.doc code { font-family: var(--mono); font-size: .875em; padding: .1em .35em; background: var(--bg-2); overflow-wrap: anywhere; }
.doc ul, .doc ol { margin-top: 1rem; display: grid; gap: .6rem; }
.doc ul > li { position: relative; padding-left: 1.25rem; }
.doc ul > li::before { content: ""; position: absolute; left: 0; top: .9em; width: .5rem; height: 1px; background: var(--ink-3); }
.doc ol { counter-reset: li; }
.doc ol > li { counter-increment: li; position: relative; padding-left: 2rem; }
.doc ol > li::before { content: counter(li) "."; position: absolute; left: 0; font-family: var(--mono); font-size: .875rem; color: var(--ink-3); top: .1em; }

.doc-open { margin-top: 1.5rem; padding: .1rem 0 .1rem 1.25rem; border-left: 2px solid var(--warn); }
.doc-open .doc-open-tag { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.doc-open p { margin-top: .4rem; font-size: .9688rem; }
.doc-open p + p { margin-top: .5rem; }

.doc-rows { margin-top: 1.25rem; border-top: 2px solid var(--ink); }
.doc-rows > div { display: grid; gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 640px) { .doc-rows > div { grid-template-columns: 11rem 1fr; } }
.doc-rows dt { font-weight: 600; color: var(--ink); font-size: .9688rem; }
.doc-rows dd { color: var(--ink-2); font-size: .9688rem; line-height: 1.7; }

.doc-table-wrap { margin-top: 1.5rem; overflow-x: auto; border-top: 2px solid var(--ink); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.doc-table th, .doc-table td { padding: .85rem 1.25rem .85rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.doc-table thead th { font-size: .8125rem; font-weight: 500; color: var(--ink-3); border-bottom-color: var(--line); }
.doc-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc-table td { color: var(--ink-2); line-height: 1.6; }
.doc-table td:nth-child(2) { font-family: var(--mono); font-size: .875rem; white-space: nowrap; font-feature-settings: "tnum" 1; }
.doc-table tfoot th, .doc-table tfoot td { font-weight: 600; color: var(--accent); border-bottom: 0; border-top: 2px solid var(--accent); }
.doc-cta { margin-top: 2rem; }
.doc .btn-primary { color: var(--on-accent); text-decoration: none; }

/* ---------- Motion ---------- */

/* Hover is for pointers that hover. A touch screen fires :hover on tap and
   leaves the element lit, so none of this runs there. */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .btn-primary:hover { background: var(--accent-hi); }
  .btn-ghost:hover { background: var(--ink); color: var(--bg); }
  .link-arrow:hover { color: var(--accent); text-decoration-color: var(--accent); }
  .footer-meta a:hover, .footer-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
  .doc-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
  .wl-input:hover { border-color: var(--ink); }
}
/* The arrow leaves on a spring and comes home quickly. Movement, so it needs
   both a hovering pointer and no reduced-motion preference. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover .icon { transform: translate(2px, -2px); transition: transform 640ms var(--spring); }
}

/* The hero ledger plays the lead's thirty seconds in order, once. It is the
   one explanation on the page, seen once per visit, so it may take a beat:
   a short rise per row, 70ms apart, and the booked row lands last. Nothing
   waits on it; the text is real and readable the whole time. */
/* Hidden only when script is running to reveal it. */
.js .timeline:not(.is-playing) li { opacity: 0; }
@media print { .js .timeline li { opacity: 1; } }

@keyframes ledger-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ledger-fade { from { opacity: 0; } }
@keyframes ledger-done { from { color: var(--ink); } }

@media (prefers-reduced-motion: no-preference) {
  .timeline.is-playing li { animation: ledger-in 360ms var(--ease-out) backwards; }
  .timeline.is-playing li:nth-child(1) { animation-delay: 200ms; }
  .timeline.is-playing li:nth-child(2) { animation-delay: 270ms; }
  .timeline.is-playing li:nth-child(3) { animation-delay: 340ms; }
  .timeline.is-playing li:nth-child(4) { animation-delay: 410ms; }
  .timeline.is-playing li:nth-child(5) { animation-delay: 480ms; }
  .timeline.is-playing li:nth-child(6) { animation-delay: 550ms; }
  .timeline.is-playing li.tl-done time,
  .timeline.is-playing li.tl-done .tl-body { animation: ledger-done 400ms ease 800ms backwards; }
}
/* Reduced motion keeps the order and drops the movement. */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .timeline.is-playing li { animation: ledger-fade 200ms ease backwards; }
  .timeline.is-playing li:nth-child(2) { animation-delay: 60ms; }
  .timeline.is-playing li:nth-child(3) { animation-delay: 120ms; }
  .timeline.is-playing li:nth-child(4) { animation-delay: 180ms; }
  .timeline.is-playing li:nth-child(5) { animation-delay: 240ms; }
  .timeline.is-playing li:nth-child(6) { animation-delay: 300ms; }
}

/* Moving between pages crossfades the content in 160ms and leaves the header
   where it is, instead of flashing white between documents. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 160ms;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Touch ----------
   Standalone links reach 44px on touch screens; inline links in running
   text are exempt and keep their size. */
@media (pointer: coarse) {
  .logo { min-height: 44px; }
  .footer-legal a, .footer-meta a, .signoff-role a, .link-arrow {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer-legal { gap: 0 1.75rem; }
}

/* Parent bar and footer link back to the platform (added for real-estate.kadensio.com). */
html { scroll-padding-top: 8rem; }
.parent-bar { border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.parent-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; font-size: .875rem; }
.parent-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 550; text-decoration: none; padding: .5rem 0; }
.parent-link .arrow { color: var(--accent); transition: transform .2s var(--ease-out); }
.parent-link:hover .arrow { transform: translateX(-3px); }
.parent-bar .sibling { color: var(--ink-3); text-decoration: none; }
.parent-bar .sibling:hover { color: var(--ink); }
@media (max-width: 559px) { .parent-bar .sibling { display: none; } }
.footer-platform { display: inline-flex; gap: .5rem; align-items: center; color: var(--ink); font-weight: 550; text-decoration: none; margin-bottom: .75rem; }
.footer-platform .arrow { color: var(--accent); }
