/* ==========================================================================
   Leika public site: "Night reader" (dark ground, Schibsted Grotesk + Geist Mono, amber accent)
   Fonts are self-hosted (SIL OFL 1.1, fonts/OFL-*.txt); no third-party requests.
   ========================================================================== */

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

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

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

:root {
  color-scheme: dark;
  --wrap: 1152px;
  --gutter: clamp(20px, 5vw, 64px);
  /* Ground and text */
  --bg: #0e1220;
  --surface: #131829;
  --ink: #eef0f6;
  --ink-soft: #c9cedc;
  --ink-muted: #8e97b3;
  --line: #2a3148;
  --line-strong: #39405a;
  --field-line: #7c87aa;
  --accent: #ffb547;
  --accent-ink: #0e1220;
  /* The white catalog page */
  --page: #f5f6f8;
  --page-ink: #161b2c;
  --page-meta: #5a6178;
  --page-rule: #dde1e8;
  --page-line-art: #3a4256;
  --page-brand: #a33a12;
  --page-hit: #fff1dc;
  --page-hit-rule: #f0c98a;
  --page-ref: #c2410c;
  /* Chips and connectors */
  --ok-bg: #263052;
  --ok-line: #7c87aa;
  --ok-status: #b4d0ff;
  --ok-link: #a3acc8;
  --reading-bg: #161b2c;
  --review-bg: #4a2a1c;
  --review-line: #ffa36b;
  --review-link: #ff8a4c;
  --review-note: #ffc49e;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
}

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

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h3,
.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--ink-soft);
}

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

.code,
.steps .n,
.points .n {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
}

.skip:focus {
  left: 12px;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.brand .dot {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav > a {
  text-decoration: none;
  padding: 8px 0;
}

.nav > a:hover {
  color: var(--ink);
}

.nav > a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.lang {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 6px;
}

.lang a {
  text-decoration: none;
  padding: 6px 6px;
  color: var(--ink-soft);
}

.lang a + a::before {
  content: "·";
  margin-right: 8px;
  margin-left: -4px;
  color: var(--ink-muted);
}

.lang a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  color: var(--accent-ink);
  filter: brightness(1.08);
}

.link-strong {
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.more {
  margin-top: 28px;
  font-weight: 600;
}

.fine {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

/* ---------- Home hero: "Night reader" ---------- */

.hero {
  padding: clamp(32px, 6vw, 72px) 0 88px;
}

.hero-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  container: hero-copy / inline-size;
}

.hero h1 {
  /* Mockup size, capped by the copy column so the longest LT word never has to break. */
  font-size: min(clamp(44px, 6.4vw, 92px), 19cqi);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: block;
}

.hero h1 .tone-2 {
  color: var(--ink-muted);
}

.hero .lead {
  margin-top: 28px;
}

.reader {
  flex: 1.35 1 600px;
  min-width: 0;
  margin: 0;
  container: reader / inline-size;
}

.reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 36px minmax(0, 1fr);
  align-items: stretch;
}

.r1 { grid-row: 1; }
.r2 { grid-row: 2; }
.r3 { grid-row: 3; }
.r4 { grid-row: 4; }
.r5 { grid-row: 5; }
.r6 { grid-row: 6; }

.pg {
  grid-column: 1;
  background: var(--page);
  color: var(--page-ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pg-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-sans);
}

.pg-head .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--page-meta);
}

.pg-head .meta span {
  overflow-wrap: anywhere;
}

.src-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--page-brand);
}

.pg-head .title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* The catalog heading stays on one line on desktop (tested); the voltage line is smaller and soft. */
.title-1 {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
}

.title-2 {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: var(--page-meta);
}

.pg-head .photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 12px 10%;
  border: 1px solid var(--page-rule);
  border-radius: 6px;
  background: #ffffff;
  color: var(--page-line-art);
}

.pg-head .photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-top: 1px solid var(--page-rule);
}

/* Catalog rows: descriptions in the sans at page-ink, codes in semibold mono. */
.pg-row > span:first-child,
.acc > span:first-child {
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--page-ink);
}

.pg .code {
  font-size: 13px;
  font-weight: 600;
}

/* Catalog labels wrap only between their "·" parts, never inside a value like "DM-40". */
.seg {
  white-space: nowrap;
}

.code {
  white-space: nowrap;
  flex: none;
}

.pg-row--reading {
  background-color: var(--page-hit);
  border-top-color: var(--page-hit-rule);
  border-bottom: 1px solid var(--page-hit-rule);
}

.pg-acc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 22px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.acc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1.5px dashed var(--page-ref);
}

.acc .code {
  color: var(--page-brand);
  font-weight: 600;
}

.read-label {
  grid-column: 3;
  align-self: end;
  padding: 0 0 14px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e6e9f2;
}

.link {
  grid-column: 2;
  align-self: center;
  height: 0;
  border-top: 1.5px dashed var(--ok-link);
}

.link--reading {
  border-top: 1.5px solid var(--accent);
}

.link--review {
  border-top-color: var(--review-link);
}

.out {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
  min-width: 0;
}

.chip {
  padding: 9px 12px;
  border: 1px solid var(--ok-line);
  border-radius: 8px;
  background: var(--ok-bg);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.chip-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.chip--ok .st {
  color: var(--ok-status);
  font-weight: 600;
}

.chip--reading {
  border-color: var(--accent);
  background: var(--reading-bg);
  color: var(--ink);
}

.chip--reading .st {
  color: var(--accent);
}

.chip--review {
  border-color: var(--review-line);
  background: var(--review-bg);
}

.chip--review .st {
  color: var(--review-line);
}

.chip-name {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.review-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--review-note);
}

/* Under the chip column, the same width; "EXPORT AS" directly before the formats. */
.export-bar {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.export-as {
  margin-right: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* The two formats stay together; if the bar is narrow, the label wraps above them. */
.formats {
  display: inline-flex;
  gap: 8px;
}

.fmt {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 14px;
}

.fmt--on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.reader figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.points {
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.points li {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  gap: 14px;
  padding: 22px 24px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.points .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 2px;
}

/* A slow scan over the row being read; off when the visitor asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .pg-row--reading {
    background-image: linear-gradient(90deg, rgba(255, 181, 71, 0), rgba(255, 181, 71, 0.38), rgba(255, 181, 71, 0));
    background-size: 28% 100%;
    background-repeat: no-repeat;
    animation: scan 3.2s ease-in-out infinite;
  }

  @keyframes scan {
    from { background-position: -40% 0; }
    to { background-position: 140% 0; }
  }
}

/* Phones and narrow figures: the catalog page compactly on top, then the chips on a rail. */
@container reader (max-width: 599px) {
  .reader-grid {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .reader-grid > * {
    grid-row: auto;
  }

  .pg {
    grid-column: 1 / -1;
    order: 0;
  }

  .pg-head {
    gap: 8px;
    padding: 14px 16px 10px;
  }

  .title-1 {
    font-size: 16px;
  }

  .pg-head .photo {
    height: 120px;
    padding: 8px 8%;
  }

  .pg-row {
    padding: 9px 16px;
  }

  .pg-acc {
    padding: 9px 16px 16px;
  }

  .pg-row > span:first-child,
  .acc > span:first-child {
    font-size: 14px;
  }

  .pg .code {
    font-size: 12.5px;
  }

  .read-label {
    grid-column: 1 / -1;
    order: 1;
    padding: 18px 0 8px;
  }

  .link {
    grid-column: 1;
    align-self: stretch;
    height: auto;
    border-top: 0;
    border-left: 1.5px solid #6b7596;
    position: relative;
    margin-left: 6px;
  }

  .link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1.5px dashed var(--ok-link);
  }

  .link--reading::after {
    border-top-style: solid;
    border-top-color: var(--accent);
  }

  .link--review::after {
    border-top-color: var(--review-link);
  }

  .out {
    grid-column: 2;
    padding: 5px 0;
  }

  .link.r2, .out.r2 { order: 2; }
  .link.r3, .out.r3 { order: 3; }
  .link.r4, .out.r4 { order: 4; }
  .link.r5, .out.r5 { order: 5; }

  /* The review chip's rail stops at the chip's middle. */
  .link--review {
    border-left-color: transparent;
  }

  .link--review::before {
    content: "";
    position: absolute;
    left: -1.5px;
    top: 0;
    height: 50%;
    border-left: 1.5px solid #6b7596;
  }

  .export-bar {
    grid-column: 1 / -1;
    order: 6;
  }
}

/* ---------- Sections ---------- */

main {
  counter-reset: section;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

/* Numbered section labels ("01 /"). */
.section-head,
.section-title,
.split > h2 {
  counter-increment: section;
}

.section-head::before,
.section-title::before,
.split > h2::before {
  content: counter(section, decimal-leading-zero) " /";
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.section--tight {
  padding-top: 0;
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 72px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head::before {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.section-head p {
  max-width: 30em;
}

.section-head p,
.side-lead {
  font-size: 19px;
  color: var(--ink-soft);
}

.side-lead {
  margin-top: 16px;
  max-width: 26em;
}

.section-title {
  margin-bottom: 48px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 64px;
  align-items: start;
}

.prose {
  display: grid;
  gap: 16px;
  max-width: 62ch;
  color: var(--ink-soft);
}

.prose a {
  color: var(--ink);
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel p {
  color: var(--ink-soft);
}

/* Home: the five steps as rows */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.steps li {
  display: grid;
  grid-template-columns: 140px minmax(0, 260px) minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps .n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.steps h3 {
  font-size: 24px;
}

.steps p {
  color: var(--ink-soft);
}

/* How it works: detailed steps */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.step-list > li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.step-list .n {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}

.step-list h3 {
  margin-bottom: 8px;
}

.step-list p {
  color: var(--ink-soft);
}

.step-list ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  font-size: 16px;
  color: var(--ink-soft);
}

.field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.field-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.field-list li:nth-child(odd) {
  padding-right: 24px;
}

/* Pricing: contact panel */

.panel--contact {
  max-width: 40em;
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* Contact form */

.contact-form {
  max-width: 40em;
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 16px;
}

.field .opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: 8px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  min-height: 65px;
  max-width: 100%;
  overflow: hidden;
}

.consent {
  font-size: 15px;
  color: var(--ink-soft);
}

.contact-form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* Legal pages */

.legal {
  max-width: 46em;
}

.legal h2 {
  margin: 40px 0 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.legal p,
.legal li {
  overflow-wrap: anywhere;
}

mark.ph {
  background: var(--review-bg);
  color: var(--review-note);
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0 4px;
}

/* FAQ */

.faq {
  max-width: 52em;
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 48px 24px 0;
  color: var(--ink-soft);
  max-width: 44em;
}

/* Page header for inner pages */

.page-head {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}

.page-head h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16em;
}

.page-head .lead {
  margin-top: 20px;
}

/* Closing call to action */

.cta-band {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.cta-plate {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(32px, 4vw, 48px) clamp(22px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cta-ref {
  position: absolute;
  top: -10px;
  left: clamp(16px, 3vw, 32px);
  max-width: calc(100% - 32px);
  padding: 0 10px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.14em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.cta-copy {
  display: grid;
  gap: 12px;
  max-width: 40em;
}

.cta-band p:not(.cta-ref) {
  font-size: 19px;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 48px;
  align-items: start;
}

.footer-tagline {
  max-width: 34em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}

.footer-nav a {
  text-decoration: none;
  padding: 6px 0;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy {
  grid-column: 1 / -1;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .steps li {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .steps li p {
    grid-column: 2;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero-main {
    gap: 40px;
  }

  .points {
    margin-top: 48px;
  }

  .duo,
  .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-list li:nth-child(odd) {
    padding-right: 0;
  }

  .step-list > li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .step-list > li > ul {
    grid-column: 2;
  }

  .steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .steps li p {
    grid-column: auto;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 4px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
