/* The public sites of Přilož.to: the marketing site priloz.to and, under shop.css, the catalogue shop.priloz.to.
   One same-origin stylesheet, system fonts only, no script, no external request (D23, ARCHITECTURE.md §21).

   Colour follows the 60/30/10 rule: green-black ink is the main colour (the hero, the dark sections, the footer), cream
   the second (the light sections and the text on ink), lime the accent (calls to action, highlights, the glow). Lime
   is a fill or a mark, never small text on cream. Every text pair is at least 4.5:1, focus rings and meaningful
   boundaries at least 3:1 (WCAG 2); the ratios are noted at the tokens.

   Type: a heavy grotesk (the platform's own UI sans), one italic serif word per headline, monospace for small labels.
   Motion: one hero entrance (a short stagger, then a stamp being added to the card), press feedback, the FAQ
   disclosure. Nothing moves under prefers-reduced-motion; hover effects only on fine pointers.
   Breakpoints in rem, so they follow the reader's text size: 30rem, 48rem, 64rem, 80rem. */

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

:root {
  color-scheme: dark;

  /* 60: green-black ink. */
  --ink: #0d1a17;
  --ink-soft: #10201c;
  --ink-deep: #08120f;
  /* The one cooler dark: the "Aplikace" section, a dark teal-navy. */
  --ink-teal: #0e2128;
  /* 30: cream; white cards sit on it. */
  --cream: #f3ede1;
  --paper: #fffdf8;
  /* 10: lime. */
  --lime: #c8f135;
  --lime-hover: #d6ff5c;
  --lime-press: #b3dc22;

  --text-on-ink: #f3eee3;        /* 15.4:1 on --ink, 14.3:1 on --ink-teal */
  --muted-on-ink: #aca797;       /*  7.4:1 on --ink, 6.9:1 on --ink-teal, 5.0:1 on the header over cream */
  --text-on-cream: #0d1a17;      /* 15.3:1 on --cream, 17.5:1 on --paper */
  --muted-on-cream: #4c5751;     /*  6.5:1 on --cream, 7.4:1 on --paper */
  --text-on-lime: #0d1a17;       /* 13.7:1 on --lime, 11.2:1 on --lime-press; lime text on ink 13.7:1 */
  --line-on-ink: rgb(243 238 227 / 0.11);
  --line-on-ink-strong: rgb(243 238 227 / 0.3);
  --line-on-cream: rgb(13 26 23 / 0.12);
  --lime-wash: rgb(200 241 53 / 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue",
    Arial, system-ui, sans-serif;
  /* The heavy grotesk of the headlines: SF Pro Display, Segoe UI Variable Display, Inter Display, Roboto, Helvetica. */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "Inter Display", Inter,
    Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  /* The one accent word of a headline: an italic serif. Every family named here covers Czech diacritics. */
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052,
    Georgia, Cambria, Caladea, "Noto Serif", "Liberation Serif", "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "JetBrains Mono",
    "Roboto Mono", "Liberation Mono", "DejaVu Sans Mono", monospace;

  /* Fluid between a 20rem and an 90rem viewport; tracking tightens and leading falls as size grows. The display size
     keeps room above its first line, so a háček on a capital never touches the header. */
  --text-display: clamp(3.25rem, 1.5rem + 9vw, 7rem);
  --text-h2: clamp(2.25rem, 1.65rem + 2.7vw, 4.25rem);
  --text-h3: clamp(1.1875rem, 1.13rem + 0.28vw, 1.375rem);
  --text-lead: clamp(1.125rem, 1.07rem + 0.28vw, 1.3125rem);
  --text-body: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --text-small: 0.9375rem;
  --text-mono: 0.75rem;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --space-gap: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --space-card: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);

  --page-max: 76rem;
  --page-inline: max(clamp(1rem, 0.4rem + 2.8vw, 2.5rem), env(safe-area-inset-left, 0px),
    env(safe-area-inset-right, 0px));
  /* The page's content edge: centred at --page-max, never closer to the screen edge than --page-inline. */
  --page-edge: max(var(--page-inline), calc((100% - var(--page-max)) / 2));
  --measure: 62ch;
  --header-height: 4rem;
  --tap-min: 2.75rem;

  --radius-s: 0.625rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgb(13 26 23 / 0.05), 0 12px 32px -18px rgb(13 26 23 / 0.28);
  --glow-accent: 0 0 0 1px rgb(200 241 53 / 0.35), 0 10px 34px -10px rgb(200 241 53 / 0.75);
  --material-header: rgb(13 26 23 / 0.92);
  --material-filter: blur(18px) saturate(160%);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-press: 120ms;
  --duration-hover: 160ms;
  --duration-move: 220ms;
  --duration-disclose: 240ms;
  --duration-entrance: 760ms;
  --stagger: 70ms;
  --press-scale: 0.97;
}

@media (min-width: 48rem) {
  :root {
    --header-height: 4.5rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted-on-ink: #dcd8cc;
    --muted-on-cream: #26302b;
    --line-on-ink: rgb(243 238 227 / 0.45);
    --line-on-ink-strong: rgb(243 238 227 / 0.75);
    --line-on-cream: rgb(13 26 23 / 0.5);
    --material-header: var(--ink);
    --material-filter: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --material-header: var(--ink);
    --material-filter: none;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-block-start: calc(var(--header-height) + env(safe-area-inset-top, 0px) + var(--space-s));
  background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100svh;
  margin: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  font: 400 var(--text-body) / 1.6 var(--font-sans);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* The accent word of a headline: the italic serif, a touch larger, because a serif is optically smaller. */
h1 em,
h2 em {
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration-thickness: max(1px, 0.0625em);
  text-underline-offset: 0.22em;
}

/* scroll-margin: Firefox ignores scroll-padding when it scrolls a focused element into view. */
a,
button,
summary {
  scroll-margin-block-start: calc(var(--header-height) + var(--space-s));
  touch-action: manipulation;
}

::selection {
  background: var(--lime);
  color: var(--text-on-lime);
}

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

.section--light :focus-visible,
.legal-doc :focus-visible {
  outline-color: var(--ink);
}

.skip-link {
  position: absolute;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + var(--space-2xs));
  inset-inline-start: var(--page-inline);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  padding: 0 var(--space-m);
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--text-on-lime);
  font-weight: 600;
  text-decoration: none;
  translate: 0 -300%;
}

.skip-link:focus {
  translate: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: var(--tap-min);
  padding-inline: 1.375rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--text-on-lime);
  font: 600 0.9375rem / 1.2 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-hover) ease,
    box-shadow var(--duration-hover) ease;
}

.button:active {
  transform: scale(var(--press-scale));
}

.button--small {
  padding-inline: 1.125rem;
  font-size: 0.875rem;
}

.button--large {
  min-block-size: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.button--accent {
  background: var(--lime);
  color: var(--text-on-lime);
  box-shadow: var(--glow-accent);
}

.button--accent:active {
  background: var(--lime-press);
}

/* The outlined pill on ink: a faint fill, a hairline ring. */
.button--ghost {
  background: rgb(243 238 227 / 0.04);
  color: var(--text-on-ink);
  box-shadow: inset 0 0 0 1px var(--line-on-ink-strong);
}

.button--ghost:active {
  background: rgb(243 238 227 / 0.12);
}

/* On cream the plain button is ink with cream text (lime would not stand out from the light ground). */
.section--light .button:not(.button--accent, .button--ghost) {
  background: var(--ink);
  color: var(--text-on-ink);
}

.section--light .button:not(.button--accent, .button--ghost):active {
  background: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .button:not(.button--ghost):hover {
    background: var(--lime-hover);
  }

  .button--ghost:hover {
    background: rgb(243 238 227 / 0.1);
  }

  .section--light .button:not(.button--accent, .button--ghost):hover {
    background: #1f3530;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-block-size: var(--tap-min);
  color: var(--lime);
  font-weight: 600;
}

.section--light .text-link {
  color: var(--text-on-cream);
}

.text-link--arrow::after {
  content: "→";
  transition: translate var(--duration-move) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .text-link--arrow:hover::after {
    translate: 0.25rem 0;
  }
}

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

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  padding-block-start: env(safe-area-inset-top, 0px);
  padding-inline: var(--page-inline);
  border-block-end: 1px solid var(--line-on-ink);
  background: var(--material-header);
  -webkit-backdrop-filter: var(--material-filter);
  backdrop-filter: var(--material-filter);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  max-inline-size: var(--page-max);
  min-block-size: var(--header-height);
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  color: var(--text-on-ink);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

/* The mark: a lime tag with one tap point. */
.wordmark::before {
  content: "";
  flex: none;
  inline-size: 1.625rem;
  block-size: 1.625rem;
  margin-inline-end: 0.5625rem;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 0.21875rem, transparent 0.25rem),
    var(--lime);
  box-shadow: 0 0 18px -4px rgb(200 241 53 / 0.55);
}

.wordmark span {
  color: var(--lime);
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 0.125rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: rgb(243 238 227 / 0.045);
  box-shadow: inset 0 0 0 1px var(--line-on-ink);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  padding-inline: 0.9375rem;
  border-radius: var(--radius-pill);
  color: var(--muted-on-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-hover) ease,
    color var(--duration-hover) ease;
}

.site-nav a:active {
  background: rgb(243 238 227 / 0.1);
  color: var(--text-on-ink);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    background: rgb(243 238 227 / 0.08);
    color: var(--text-on-ink);
  }
}

.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-2xs);
}

/* Below 22.5rem only the sign-in stays next to the wordmark; the hero repeats the main action right below. */
.site-header__cta {
  display: none;
}

@media (min-width: 22.5rem) {
  .site-header__cta {
    display: inline-flex;
  }
}

@media (max-width: 29.99rem) {
  .site-header .button--small {
    padding-inline: 0.875rem;
  }

  .wordmark {
    font-size: 1.0625rem;
  }

  .wordmark::before {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    margin-inline-end: 0.5rem;
  }
}

@media (min-width: 64rem) {
  .site-nav {
    display: block;
  }
}

@media (min-width: 64rem) and (max-width: 71.99rem) {
  .site-nav a {
    padding-inline: 0.6875rem;
  }
}

/* Wide screens: the nav sits in the middle of the bar; a three-column grid keeps it centred whatever the sides
   measure. */
@media (min-width: 72rem) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .site-header__actions {
    justify-self: end;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "topics  topics"
    "title   title"
    "lead    lead"
    "actions actions"
    "start   end"
    "stage   stage";
  justify-items: center;
  padding: clamp(3.25rem, 2rem + 5vw, 6.5rem) var(--page-edge) clamp(3.5rem, 2rem + 6vw, 7rem);
  background:
    radial-gradient(90% 60% at 50% 0%, var(--ink-soft), transparent 70%),
    var(--ink);
  text-align: center;
}

/* A faint vertical-line texture over the whole hero, strongest towards the glow at the bottom. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(90deg, rgb(243 238 227 / 0.045) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.35) 35%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.35) 35%, #000 100%);
  pointer-events: none;
}

/* The lime glow behind the product: a soft light through fine vertical lines. */
.hero__glow {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  block-size: 72%;
  background:
    radial-gradient(48% 62% at 50% 100%, rgb(200 241 53 / 0.5), rgb(200 241 53 / 0.12) 52%, transparent 76%),
    repeating-linear-gradient(90deg, rgb(200 241 53 / 0.13) 0 1px, transparent 1px 7px);
  -webkit-mask-image: radial-gradient(64% 90% at 50% 100%, #000 30%, transparent 80%);
  mask-image: radial-gradient(64% 90% at 50% 100%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero__topics {
  grid-area: topics;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--space-m);
  margin-block-end: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__topics li::before {
  content: "→";
  margin-inline-end: 0.625em;
  color: var(--lime);
}

.hero h1 {
  grid-area: title;
  max-inline-size: 12ch;
  padding-block-start: 0.06em;
  color: var(--text-on-ink);
  font-size: var(--text-display);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.hero h1 em {
  padding-inline-end: 0.04em;
  color: var(--lime);
  letter-spacing: -0.03em;
}

.lead {
  grid-area: lead;
  max-inline-size: 44ch;
  margin-block-start: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  color: var(--muted-on-ink);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-block-start: var(--space-l);
}

/* The four facts: two lists, side by side under the call to action on small screens (2 x 2), in one row of four on
   tablets, and at the two sides of the headline on wide screens. */
.hero__facts {
  display: grid;
  gap: var(--space-m);
  align-content: start;
  inline-size: 100%;
  margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  text-align: start;
}

.hero__facts--start {
  grid-area: start;
  padding-inline-end: var(--space-2xs);
}

.hero__facts--end {
  grid-area: end;
  padding-inline-start: var(--space-2xs);
}

.fact {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  padding-inline-start: var(--space-s);
  border-inline-start: 1px solid var(--line-on-ink-strong);
}

.fact__value {
  color: var(--text-on-ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fact__label {
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 48rem) {
  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__facts--start,
  .hero__facts--end {
    padding-inline: 0;
  }

  .hero__facts--start {
    padding-inline-end: calc(var(--space-m) / 2);
  }

  .hero__facts--end {
    padding-inline-start: calc(var(--space-m) / 2);
  }

  .fact__label {
    font-size: var(--text-mono);
  }
}

@media (min-width: 80rem) {
  .hero {
    --page-max: 88rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr);
    grid-template-areas:
      ".     topics  ."
      "start title   end"
      "start lead    end"
      ".     actions ."
      "stage stage   stage";
  }

  .hero h1 {
    max-inline-size: none;
  }

  /* Both columns hold two facts of the same height, so the four line up in two rows. */
  .hero__facts {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 6rem;
    gap: var(--space-l);
    align-self: center;
    inline-size: 13rem;
    max-inline-size: 100%;
    margin: 0;
  }

  .hero__facts--start {
    justify-self: start;
    padding: 0;
  }

  /* The right-hand facts mirror the left: the rule on the outer edge, the text against it. */
  .hero__facts--end {
    justify-self: end;
    padding: 0;
    text-align: end;
  }

  .hero__facts--end .fact {
    padding-inline: 0 var(--space-s);
    border-inline-start: 0;
    border-inline-end: 1px solid var(--line-on-ink-strong);
  }
}

/* --- The product stage (an illustration) ------------------------------------------------------ */
/* Sized in em, so the whole fan scales with one font size: smaller on a phone, full size on a desktop. */

.stage {
  grid-area: stage;
  position: relative;
  display: grid;
  grid-template-columns: 17em 19.5em 17em;
  justify-content: center;
  align-items: center;
  inline-size: 100%;
  margin-block-start: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  font-size: clamp(0.75rem, 0.55rem + 1vw, 1rem);
  text-align: start;
  perspective: 90em;
  perspective-origin: 50% 30%;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875em;
  min-block-size: 17em;
  padding: 1.5em;
  border-radius: 1.5em;
  background:
    linear-gradient(180deg, rgb(243 238 227 / 0.1), rgb(243 238 227 / 0.03) 60%),
    rgb(13 26 23 / 0.55);
  box-shadow:
    inset 0 0 0 1px rgb(243 238 227 / 0.13),
    inset 0 1px 0 rgb(243 238 227 / 0.14),
    0 30px 60px -24px rgb(0 0 0 / 0.75);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  font-size: 1em;
}

/* Phones and tablets: the side panels tuck in behind the centre one, a fanned hand of cards; set back and dimmed,
   so only the centre card is read. */
.panel--left,
.panel--right {
  z-index: 0;
  opacity: 0.55;
}

.panel--left {
  transform: translateX(7em) rotateY(24deg) rotateZ(-7deg) translateY(1.75em) scale(0.86);
  transform-origin: right center;
}

.panel--right {
  transform: translateX(-7em) rotateY(-24deg) rotateZ(7deg) translateY(1.75em) scale(0.86);
  transform-origin: left center;
}

.panel--center {
  z-index: 1;
  min-block-size: 19.5em;
  padding: 1.75em;
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(200 241 53 / 0.2), transparent 60%),
    linear-gradient(180deg, rgb(243 238 227 / 0.08), rgb(243 238 227 / 0.02) 70%),
    rgb(13 26 23 / 0.82);
  box-shadow:
    inset 0 0 0 1px rgb(200 241 53 / 0.42),
    inset 0 1px 0 rgb(243 238 227 / 0.2),
    0 0 70px -18px rgb(200 241 53 / 0.5),
    0 40px 80px -30px rgb(0 0 0 / 0.85);
  transform: translateY(-0.75em);
}

@media (min-width: 64rem) {
  .stage {
    gap: 1.5em;
  }

  .panel--left,
  .panel--right {
    opacity: 1;
  }

  .panel--left {
    transform: rotateY(16deg) rotateZ(-2deg) translateY(1.75em);
  }

  .panel--right {
    transform: rotateY(-16deg) rotateZ(2deg) translateY(1.75em);
  }

  .panel--center {
    transform: translateY(-1em);
  }
}

.panel__label {
  display: flex;
  align-items: center;
  gap: 0.625em;
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
  font-size: 0.6875em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel__label::before {
  content: "";
  flex: none;
  inline-size: 0.625em;
  block-size: 0.625em;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgb(200 241 53 / 0.7);
}

.panel__figure {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  color: var(--text-on-ink);
  font-family: var(--font-serif);
  font-size: 2.75em;
  line-height: 1;
  letter-spacing: -0.02em;
}

.panel__figure span {
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
  font-size: 0.27em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel__figure--large {
  gap: 0.2em;
  font-size: 3.75em;
}

.panel__figure--large span {
  font-size: 0.22em;
}

.panel__delta {
  align-self: flex-start;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--lime-wash);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.6875em;
  letter-spacing: 0.02em;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.375em;
  block-size: 4.5em;
  margin-block-start: auto;
}

.bars span {
  flex: 1;
  border-radius: 0.3em 0.3em 0.1em 0.1em;
  background: rgb(243 238 227 / 0.14);
}

.bars span:nth-child(1) { block-size: 38%; }
.bars span:nth-child(2) { block-size: 52%; }
.bars span:nth-child(3) { block-size: 44%; }
.bars span:nth-child(4) { block-size: 66%; }
.bars span:nth-child(5) { block-size: 86%; background: var(--lime); }
.bars span:nth-child(6) { block-size: 100%; background: var(--lime); box-shadow: 0 0 16px rgb(200 241 53 / 0.45); }
.bars span:nth-child(7) { block-size: 58%; }

.panel__days {
  display: flex;
  gap: 0.375em;
  margin-block-start: -0.375em;
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
  font-size: 0.625em;
}

.panel__days span {
  flex: 1;
  text-align: center;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.625em;
  margin-block: 0.25em;
}

.stamps span {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgb(243 238 227 / 0.3);
}

.stamps .is-on {
  background:
    radial-gradient(circle, var(--ink) 0 17%, transparent 19%),
    var(--lime);
  box-shadow: 0 0 14px -2px rgb(200 241 53 / 0.55);
}

.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  padding-block-start: 0.875em;
  border-block-start: 1px solid var(--line-on-ink);
  color: var(--muted-on-ink);
  font-size: 0.875em;
}

.panel__row strong {
  color: var(--text-on-ink);
  font-weight: 600;
}

.panel__row--stacked {
  flex-direction: column;
  gap: 0.25em;
}

.panel__row--stacked strong {
  font-size: 1.2em;
  letter-spacing: -0.01em;
}

.panel__secret {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.panel__pill {
  align-self: flex-start;
  margin-block-start: auto;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--text-on-lime);
  font-size: 0.875em;
  font-weight: 650;
  box-shadow: 0 6px 20px -6px rgb(200 241 53 / 0.7);
}

.panel__pill::before {
  content: "✓";
  margin-inline-end: 0.4em;
}

.panel__button {
  margin-block-start: auto;
  padding: 0.75em;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px rgb(200 241 53 / 0.55);
  color: var(--lime);
  font-size: 0.875em;
  font-weight: 600;
  text-align: center;
}

/* --- The entrance ----------------------------------------------------------------------------- */
/* Seen once per visit: a short stagger with a strong ease-out, then the seventh stamp lands on the card. Individual
   transform properties (translate, scale), so the panels keep their own transform. Nothing of it runs when the
   reader prefers reduced motion. */

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1rem;
  }
}

@keyframes rise-far {
  from {
    opacity: 0;
    translate: 0 3rem;
  }
}

@keyframes stamp {
  0%,
  30% {
    opacity: 0;
    scale: 1.7;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.92;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__topics,
  .hero h1,
  .lead,
  .hero__actions,
  .hero__facts {
    animation: rise var(--duration-entrance) var(--ease-out) both;
  }

  .hero h1 { animation-delay: calc(1 * var(--stagger)); }
  .lead { animation-delay: calc(2 * var(--stagger)); }
  .hero__actions { animation-delay: calc(3 * var(--stagger)); }
  .hero__facts { animation-delay: calc(4 * var(--stagger)); }

  .stage .panel {
    animation: rise-far 900ms var(--ease-out) both;
  }

  .stage .panel--center { animation-delay: calc(4 * var(--stagger)); }
  .stage .panel--left,
  .stage .panel--right { animation-delay: calc(6 * var(--stagger)); }

  .stamps .is-new {
    animation: stamp 520ms var(--ease-out) 1100ms both;
  }

  .panel--center .panel__pill {
    animation: pop 360ms var(--ease-out) 1450ms both;
  }
}

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

.section {
  position: relative;
  isolation: isolate;
  padding: var(--space-section) var(--page-inline);
  background: var(--ink);
}

.section > * {
  max-inline-size: var(--page-max);
  margin-inline: auto;
}

/* Two dark sections in a row keep a hairline between them. */
.section:not(.section--light, .section--raised) + .section:not(.section--light, .section--raised) {
  border-block-start: 1px solid var(--line-on-ink);
}

/* The 30 %: cream surfaces with ink text. */
.section--light {
  color-scheme: light;
  background: var(--cream);
  color: var(--text-on-cream);
}

.section--raised {
  background:
    radial-gradient(70% 60% at 85% 0%, rgb(200 241 53 / 0.06), transparent 70%),
    var(--ink-teal);
}

.section__head {
  display: grid;
  gap: var(--space-s) var(--space-xl);
  margin-block-end: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--muted-on-ink);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  flex: none;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgb(200 241 53 / 0.6);
}

.section--light .kicker {
  color: var(--muted-on-cream);
}

/* On cream the dot keeps an ink ring, so the lime reads against the light ground. */
.section--light .kicker::before {
  box-shadow: 0 0 0 1.5px var(--ink);
}

.section h2 {
  max-inline-size: 16ch;
  font-size: var(--text-h2);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section:not(.section--light) h2 em {
  color: var(--lime);
}

.section__intro {
  max-inline-size: 46ch;
  color: var(--muted-on-ink);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.section--light .section__intro {
  color: var(--muted-on-cream);
}

/* Wide screens: an editorial head, the heading on the left and its intro at its foot on the right. */
@media (min-width: 64rem) {
  .section__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }

  .section__head .kicker {
    grid-column: 1 / -1;
  }

  .section__head h2 {
    grid-column: 1;
  }

  .section__head .section__intro {
    grid-column: 2;
    padding-block-end: 0.35em;
  }
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section__more,
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block-start: var(--space-l);
}

/* --- Cards (cream) ---------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: var(--space-gap);
}

.card {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding: var(--space-card);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--line-on-cream),
    var(--shadow-card);
  color: var(--text-on-cream);
  transition: transform var(--duration-move) var(--ease-out), box-shadow var(--duration-move) var(--ease-out);
}

.card p {
  color: var(--muted-on-cream);
}

@media (hover: hover) and (pointer: fine) {
  .section--light .card:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px var(--line-on-cream),
      0 1px 2px rgb(13 26 23 / 0.05),
      0 22px 44px -22px rgb(13 26 23 / 0.38);
  }
}

.icon {
  inline-size: 3.25rem;
  block-size: 3.25rem;
  margin-block-end: var(--space-xs);
  padding: 0.8125rem;
  border-radius: 0.875rem;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgb(243 238 227 / 0.12);
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .filled {
  fill: var(--lime);
  stroke: none;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Steps (ink) ------------------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: var(--space-l) var(--space-gap);
}

.step {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding-block-start: var(--space-m);
  border-block-start: 1px solid var(--line-on-ink-strong);
}

.step__number {
  justify-self: start;
  margin-block-end: var(--space-2xs);
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--text-on-lime);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 22px -8px rgb(200 241 53 / 0.7);
}

.step p {
  max-inline-size: 38ch;
  color: var(--muted-on-ink);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Features (teal-navy) --------------------------------------------------------------------- */

.features {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--line-on-ink);
  box-shadow:
    inset 0 0 0 1px var(--line-on-ink),
    0 40px 80px -50px rgb(0 0 0 / 0.8);
}

.feature {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding: var(--space-card);
  background: rgb(13 26 23 / 0.94);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-h3);
}

.feature h3::before {
  content: "";
  flex: none;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgb(200 241 53 / 0.6);
}

.feature p {
  max-inline-size: 40ch;
  color: var(--muted-on-ink);
}

@media (min-width: 48rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature {
    min-block-size: 13.5rem;
  }
}

/* --- Audience (cream) ------------------------------------------------------------------------- */

.audience {
  display: grid;
  gap: var(--space-l) var(--space-gap);
}

.audience li {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding-block-start: var(--space-m);
  border-block-start: 2px solid var(--ink);
}

.audience h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.audience p {
  color: var(--muted-on-cream);
}

@media (min-width: 30rem) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .audience {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- FAQ (ink) -------------------------------------------------------------------------------- */

/* Wide screens: the heading on the left (it stays in view), the questions on the right. */
@media (min-width: 64rem) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .split .section__head {
    position: sticky;
    inset-block-start: calc(var(--header-height) + var(--space-l));
    grid-template-columns: minmax(0, 1fr);
    margin-block-end: 0;
  }

  .split .section__head .section__intro {
    grid-column: 1;
  }
}

.faq {
  border-block-start: 1px solid var(--line-on-ink-strong);
}

.faq details {
  border-block-end: 1px solid var(--line-on-ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-block-size: var(--tap-min);
  padding-block: 1.375rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

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

.faq summary:active {
  color: var(--lime);
}

/* A plus that becomes a minus, in a ring. Borders, not backgrounds, so forced-colours mode keeps it. */
.faq__marker {
  position: relative;
  flex: none;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-on-ink-strong);
  color: var(--lime);
  transition:
    box-shadow var(--duration-hover) ease,
    background-color var(--duration-hover) ease;
}

.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  inset-block-start: calc(50% - 1px);
  inset-inline: 0.6875rem;
  border-block-start: 2px solid currentColor;
  border-radius: 1px;
}

.faq__marker::after {
  transform: rotate(90deg);
  transition:
    transform var(--duration-move) var(--ease-out),
    opacity var(--duration-move) var(--ease-out);
}

.faq details[open] .faq__marker {
  background: var(--lime-wash);
  box-shadow: inset 0 0 0 1px rgb(200 241 53 / 0.6);
}

.faq details[open] .faq__marker::after {
  opacity: 0;
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .faq summary:hover .faq__marker {
    box-shadow: inset 0 0 0 1px var(--lime);
  }
}

.faq details p {
  max-inline-size: var(--measure);
  padding-block-end: var(--space-m);
  color: var(--muted-on-ink);
}

/* Browsers without ::details-content or size interpolation simply open the answer at once. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size var(--duration-disclose) var(--ease-out),
      content-visibility var(--duration-disclose) allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* --- Call to action (ink, the glow again) ----------------------------------------------------- */

.section--cta {
  overflow: clip;
  padding-block-end: calc(var(--space-section) * 1.25);
  text-align: center;
}

.section--cta > .kicker {
  justify-content: center;
}

.section--cta h2 {
  max-inline-size: 14ch;
  margin-block-start: var(--space-m);
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section--cta .section__intro {
  margin-block-start: var(--space-m);
}

.section--cta .section__actions {
  justify-content: center;
}

.hero__glow--cta {
  block-size: 100%;
  max-inline-size: none;
}

.contact__address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3.25rem;
  margin-block-start: var(--space-l);
  padding: var(--space-2xs) var(--space-l);
  border-radius: var(--radius-pill);
  background: rgb(13 26 23 / 0.7);
  box-shadow:
    inset 0 0 0 1px rgb(200 241 53 / 0.5),
    0 0 40px -12px rgb(200 241 53 / 0.5);
  font-family: var(--font-mono);
  font-size: var(--text-body);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow-wrap: anywhere;
}

.contact__address .text-link {
  color: var(--text-on-ink);
}

/* --- Short pages (404) ------------------------------------------------------------------------ */

.page {
  position: relative;
  isolation: isolate;
  max-inline-size: calc(var(--page-max) + 2 * var(--page-inline));
  margin-inline: auto;
  padding: clamp(3.5rem, 2rem + 6vw, 7rem) var(--page-inline) var(--space-section);
}

.page h1 {
  max-inline-size: 16ch;
  font-size: var(--text-h2);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page h1 em {
  color: var(--lime);
}

.page p {
  max-inline-size: var(--measure);
  margin-block-start: var(--space-s);
  color: var(--muted-on-ink);
  font-size: var(--text-lead);
}

.page--404 {
  display: grid;
  justify-items: center;
  max-inline-size: none;
  overflow: clip;
  padding-block-end: calc(var(--space-section) * 1.5);
  text-align: center;
}

.page--404 h1 {
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.page .kicker {
  margin: 0 0 var(--space-m);
  font-size: var(--text-mono);
}

/* The 404 page fills the screen down to the footer, so its glow meets the footer's rule. */
main:has(> .page--404) {
  display: flex;
  flex-direction: column;
}

.page--404 {
  flex: 1 0 auto;
  align-content: center;
}

.page--404 .button {
  margin-block-start: var(--space-l);
}

/* --- Legal pages (terms and privacy notice, D7 draft 2026-11) --------------------------------- */
/* Long-form reading: the document is a cream sheet on the ink page, body text at full contrast, one reading measure
   for every block, h2 per part and h3 per clause, the table of contents and the draft status as quiet boxes, the
   [DOPLNIT] placeholders marked in lime so nobody misses one. */

.legal-doc {
  max-inline-size: 54rem;
  margin-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--space-section);
  padding: clamp(1.75rem, 1rem + 3.5vw, 4rem);
  border-radius: var(--radius-xl);
  background: var(--cream);
  color: var(--text-on-cream);
  color-scheme: light;
  box-shadow: 0 50px 100px -60px rgb(0 0 0 / 0.9);
}

@media (max-width: 47.99rem) {
  .legal-doc {
    margin-inline: var(--page-inline);
  }
}

@media (min-width: 48rem) {
  .legal-doc {
    margin-inline: auto;
  }
}

.legal-doc h1 {
  max-inline-size: 18ch;
  color: var(--text-on-cream);
}

.legal-doc p,
.legal-doc li,
.legal-doc dd,
.legal-doc td,
.legal-doc th {
  color: var(--text-on-cream);
  font-size: var(--text-body);
}

.legal-doc a {
  color: var(--text-on-cream);
}

/* A link inside a sentence stays inline; its padding keeps a 44px tap target without opening up the line. */
.legal-doc :is(p, li, dd, td) a {
  padding-block: 0.75em;
}

.legal-doc ul,
.legal-doc ol,
.legal-doc dl,
.legal-doc table,
.legal-doc blockquote {
  max-inline-size: var(--measure);
}

.legal-doc .legal-doc__status {
  margin-block-start: var(--space-m);
  padding: var(--space-s) var(--space-m);
  border-inline-start: 3px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: var(--text-small);
  line-height: 1.5;
}

.legal-doc .legal-doc__lead {
  max-inline-size: 54ch;
  margin-block-start: var(--space-m);
  font-size: var(--text-lead);
  line-height: 1.5;
}

.legal-doc__toc {
  max-inline-size: var(--measure);
  margin-block-start: var(--space-l);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-on-cream);
}

.legal-doc .legal-doc__toc h2 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: var(--space-2xs) 0 0;
  border: 0;
  color: var(--muted-on-cream);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-doc .legal-doc__toc h2::before {
  content: "";
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.legal-doc .legal-doc__toc ol {
  margin-block-start: var(--space-2xs);
}

.legal-doc .legal-doc__toc li + li {
  margin: 0;
}

.legal-doc__toc a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  font-weight: 500;
}

.legal-doc h2 {
  max-inline-size: var(--measure);
  margin-block-start: var(--space-xl);
  padding-block-start: var(--space-l);
  border-block-start: 2px solid var(--ink);
  font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-doc h3 {
  max-inline-size: var(--measure);
  margin-block-start: var(--space-l);
  font-size: var(--text-h3);
  line-height: 1.3;
}

.legal-doc p {
  max-inline-size: var(--measure);
  margin-block-start: var(--space-s);
}

.legal-doc h3 + p,
.legal-doc h3 + ul {
  margin-block-start: var(--space-2xs);
}

.legal-doc ul:not([role="list"]),
.legal-doc ol:not([role="list"]) {
  margin-block-start: var(--space-s);
  padding-inline-start: 1.25em;
}

.legal-doc li + li {
  margin-block-start: var(--space-2xs);
}

.legal-doc li::marker {
  color: var(--muted-on-cream);
}

.legal-doc dl {
  margin-block: var(--space-2xs) 0;
}

.legal-doc dt {
  margin-block-start: var(--space-s);
  font-weight: 650;
}

.legal-doc dd {
  margin: var(--space-3xs) 0 0;
}

.legal-doc blockquote {
  margin: var(--space-s) 0 0;
  padding-inline-start: var(--space-m);
  border-inline-start: 3px solid var(--ink);
}

.legal-doc blockquote p {
  margin: 0;
  font-style: italic;
}

.legal-doc code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.legal-doc mark {
  padding-inline: 0.2em;
  border-radius: 0.25em;
  background: var(--lime);
  color: var(--text-on-lime);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.legal-doc table {
  inline-size: 100%;
  margin-block-start: var(--space-m);
  border-collapse: collapse;
}

.legal-doc table th,
.legal-doc table td {
  font-size: var(--text-small);
  line-height: 1.5;
}

.legal-doc caption {
  padding-block-end: var(--space-2xs);
  font-weight: 650;
  text-align: start;
}

.legal-doc th,
.legal-doc td {
  padding: var(--space-2xs) var(--space-s) var(--space-2xs) 0;
  border-block-end: 1px solid var(--line-on-cream);
  text-align: start;
  vertical-align: top;
}

.legal-doc th:last-child,
.legal-doc td:last-child {
  padding-inline-end: 0;
}

.legal-doc thead th {
  border-block-end: 2px solid var(--ink);
  color: var(--muted-on-cream);
  font-weight: 500;
}

.legal-doc tbody th {
  inline-size: 55%;
  font-weight: 500;
}

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

.site-footer {
  padding: var(--space-l) var(--page-inline) calc(var(--space-l) + env(safe-area-inset-bottom, 0px));
  border-block-start: 1px solid var(--line-on-ink);
  background: var(--ink-deep);
  color: var(--muted-on-ink);
  font-size: var(--text-small);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-inline-size: var(--page-max);
  margin-inline: auto;
}

.site-footer .wordmark {
  font-size: 1.0625rem;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-m);
}

.legal a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  color: var(--muted-on-ink);
  text-decoration-color: rgb(172 167 151 / 0.4);
  transition: color var(--duration-hover) ease;
}

.legal a:active {
  color: var(--text-on-ink);
}

@media (hover: hover) and (pointer: fine) {
  .legal a:hover {
    color: var(--text-on-ink);
  }
}

@media (min-width: 48rem) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Reduced motion, forced colours ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .button:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .panel,
  .card,
  .feature,
  .site-nav ul,
  .contact__address,
  .legal-doc,
  .legal-doc__toc,
  .step__number {
    border: 1px solid CanvasText;
  }

  .hero::before,
  .hero__glow {
    display: none;
  }

  .legal-doc mark {
    background: Mark;
    color: MarkText;
  }
}
