/* ============================================================
   FISPAY V2 — components and page themes.
   Foundations (colors, typography, @font-face) are in foundations.css
   and load before this file.
   ============================================================ */

/* ============================================================
   FISPAY V2 — fispay.de "Stripe-clean" airy theme
   Light, airy, restrained. Midnight reserved as ink + accent.
   ============================================================ */

/* ---------------- Tokens ---------------- */
:root {
  --font-display: "Georama", system-ui, sans-serif;
  --font-condensed: "Georama Condensed", "Georama", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* ---- V2 palette: lighter-leaning ---- */
  /* The design has one grey body; cards carry the structure, so both follow the page. */
  --bg:           var(--bg-base);
  --bg-alt:       var(--bg-base);
  --bg-mist:      #F4F6FA;        /* card surfaces */
  --bg-mist-2:    #EEF1F7;        /* hover / dividers */

  --ink-1:        #0A1028;        /* near-black for headlines */
  --ink-2:        #1B2348;        /* secondary heading */
  --fg-1:         #121A3A;        /* body strong */
  --fg-2:         #4A5170;        /* body */
  --fg-3:         var(--ink-500); /* meta — #656C86 fell to 3.8:1 on the warm grey; this holds 4.5:1 */
  --fg-4:         #A4ADC3;        /* decoration only (lines, dots) — not enough contrast for text */

  --line:         rgba(18, 26, 58, 0.08);
  --line-strong:  rgba(18, 26, 58, 0.14);

  --magenta:      #B51F75;
  --magenta-600:  #9B1166;
  --magenta-700:  #7E0D52;
  --magenta-50:   #FBEEF5;
  --magenta-100:  #F4D9E8;

  --accent:       var(--magenta);

  /* Stripe-style green for success / metrics */
  --green:        #16A47A;
  --green-700:    #116A50;   /* text on --green-50, holds 4.5:1 */
  --green-800:    #0C4A38;   /* headings on --green-50 */
  --green-50:     #E8F7F1;

  /* Amber for provisional / not-yet-confirmed figures (pricing §6.2) */
  --amber:        #8A5A00;
  --amber-line:   #E0B45C;
  --amber-50:     #FDF4E3;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-1:  0 1px 2px rgba(10,16,40,0.04), 0 2px 4px rgba(10,16,40,0.03);
  --shadow-2:  0 1px 2px rgba(10,16,40,0.05), 0 8px 24px -8px rgba(10,16,40,0.10);
  /* Daniel's JPEG lifts cards off the warm grey with a deep, soft drop shadow;
     on tokens so the shade follows the brand's darkest midnight. */
  --shadow-card: 0 2px 6px color-mix(in srgb, var(--midnight-950) 10%, transparent),
                 0 30px 60px -18px color-mix(in srgb, var(--midnight-950) 35%, transparent);
  /* Subpage cards (PR #156) until they take the raster; home: card-shadow.webp. */
  --shadow-psd-lift: 0 28px 44px -12px color-mix(in srgb, var(--midnight-950) 62%, transparent);
  /* Subpage cards (PR #156) until they take the raster; home: card-shadow-pillow.webp. */
  --shadow-psd-pillow: 0 20px 16px color-mix(in srgb, var(--midnight-950) 50%, transparent);
  /* The PSD cards' near-white 2 px stroke (#EFEAEA), 0.7 px at 1440. */
  --edge-psd: color-mix(in srgb, var(--surface-card) 70%, var(--white));

  --container: 1200px;
  /* Daniel's JPEG sets the homepage in one ~830 px column (hero text to the
     terminal's edge, the cards below); fixed, so it holds at any width. */
  --column: 830px;

  /* Logotype: the wordmark flat (the source's gradient is invisible at
     26 px), the arrow above the "i" in a gradient. Shades shared with the
     portal (style.css). */
  --logo-word:      var(--fg-1);
  --logo-mark-from: #961F67;
  --logo-mark-to:   #C42780;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-1);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
h4 { font-size: 16px; line-height: 1.4; font-weight: 600; }
p  { margin: 0; color: var(--fg-2); }
a  { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--magenta);
  margin-bottom: 16px;
}
.lede { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 56ch; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--magenta); color: #fff; }
.btn--accent:hover { background: var(--magenta-600); box-shadow: 0 6px 14px -4px rgba(181,31,117,.35); }
/* Fix: global `a:hover` would otherwise repaint the button text dark magenta, making it match the hover background and disappear. Pin it to white. */
.btn--accent:hover, .btn--accent:hover * { color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-1); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-mist); }

/* A row of buttons below section content. Spacing differed page by page in
   the original JSX, hence the modifiers — otherwise the rewrite would shift
   the look by a few pixels, which rule P4 forbids. */
.btn-row { display: flex; gap: 12px; }
.btn-row--center { justify-content: center; flex-wrap: wrap; text-align: center; }
/* One spacing decision for a button row that follows section content —
   the per-page pixel offsets (24/32/40) were port fidelity, not design. */
.btn-row--spaced { margin-top: 32px; }

/* ---------------- Logo ---------------- */
.brand-logo { display: block; height: 26px; width: auto; }
.logo-word { fill: var(--logo-word); }
.logo-stop-from { stop-color: var(--logo-mark-from); }
.logo-stop-to { stop-color: var(--logo-mark-to); }
/* Daniel's logotype (7 Nov 2026) at the PSD's widths: the header's is the
   75.87 px the old one had (PSD 76), so the menu keeps its pixels; the
   footer's is 63 px tall (157.8 px wide, PSD 158); .footer__brand's gap
   shrinks by the same 17 px, so the columns stay put. */
.site-header__brand .brand-logo { width: 75.87px; height: auto; }
.footer__brand .brand-logo { height: 63px; }

/* ---------------- Header ---------------- */
/* Daniel's PSD (v4): one dark indigo bar on every page, 56 px tall, its
   content in the homepage's 830 px design column and set in Archivo
   Condensed. No border: the PSD's bar ends in the page below it. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--indigo-850);
  font-family: var(--font-archivo);
  --logo-word: var(--white);
}
.site-header__inner {
  position: relative;
  display: flex; align-items: center; gap: 15px;
  height: 56px;
  /* The design column plus the 24 px padding on each side. */
  max-width: calc(var(--column) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}
/* The PSD spaces the words ~20 px apart (spec ~24, the flattened PNG shows
   19-20): no horizontal padding, so the gap
   is the distance between the words and the first item starts 15 px after
   the logo. */
.site-header__nav { display: flex; gap: 20px; flex: 1; }
/* Light-on-dark colours go on direct children only: the Hardware panel and the
   mobile menu below are descendants and stay light. Hover underlines, the
   PSD's bar has no item boxes. */
.site-header__nav > a {
  font-size: 15px; font-weight: 300; color: var(--white);
  padding: 8px 0;
}
.site-header__nav > a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-header__nav > a.is-active { color: var(--magenta-300); }

/* Hardware mega menu */
.site-header__nav .nav-item {
  display: flex; align-items: center;
  /* The link is only 38px tall inside a 56px header, which left a dead gap
     between it and the panel below: the pointer lost :hover on its way down.
     Pad the hit area out to the full header height, cancel it with a negative
     margin so layout is unchanged. */
  padding: 9px 0; margin: -9px 0;
}
.site-header__nav .megamenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 760px; max-width: 100%;
  padding-top: 10px;
  z-index: 60;
}
.site-header__nav .megamenu__inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(18,26,58,0.14);
  padding: 24px 26px;
  display: grid; grid-template-columns: 1fr 220px; gap: 28px;
}
.site-header__nav .megamenu__col-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px;
}
.site-header__nav .megamenu__terminals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.site-header__nav .megamenu__tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px 12px; border-radius: 12px;
  background: var(--bg-mist);
  transition: background .15s, transform .15s;
}
.site-header__nav .megamenu__tile:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18,26,58,0.10); }
.site-header__nav .megamenu__tile img { height: 62px; width: auto; max-width: 100%; object-fit: contain; }
.site-header__nav .megamenu__tile span { font-size: 13px; font-weight: 500; color: var(--ink-1); }
.site-header__nav .megamenu__aside { border-left: 1px solid var(--line); padding-left: 26px; }
.site-header__nav .megamenu__list { display: flex; flex-direction: column; gap: 2px; }
.site-header__nav .megamenu__item {
  font-size: 14px; font-weight: 500; color: var(--fg-2);
  padding: 7px 10px;
}
.site-header__nav .megamenu__note {
  font-size: 12px; line-height: 1.5; color: var(--fg-3);
  margin: 14px 0 0; padding-left: 10px;
}
.site-header__cta { display: flex; gap: 28px; align-items: center; }
.site-header__cta a { font-size: 15px; font-weight: 300; }
.site-header__cta a:not(.btn) { color: var(--white); }
/* The PSD's CTA is a small vivid magenta box, 85 x 28 around "Jetzt
   starten" in Archivo Condensed Bold 15, not the site's pill button. */
.site-header .btn--accent {
  height: 28px; padding: 0 7px;
  border-radius: 3px;
  background: var(--magenta-vivid);
  font-family: var(--font-archivo);
  font-size: 15px; font-weight: 700;
}
/* Listed after the box: `.btn--accent:hover` above has the same specificity
   and would lose to it. Hover only deepens the colour. */
.site-header .btn--accent:hover { background: var(--magenta-deep); box-shadow: none; }

/* --- the Hardware drop-down panel without JavaScript (#8) ----------------
   The original panel opened on hover and React closed it (the `hwDismissed`
   state); `<details>` hides closed content by itself, so the
   opacity/visibility machinery from the hover era went away (it lived at
   `.megamenu` above). */

/* `<summary>` looks like the other menu items. The triangle is gone —
   the panel is recognised by opening, not by a marker. */
.site-header__nav > details > summary {
  font-size: 15px; font-weight: 300; color: var(--white);
  padding: 8px 0;
  cursor: pointer; list-style: none;
}
.site-header__nav > details > summary::-webkit-details-marker { display: none; }
.site-header__nav > details > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-header__nav > details > summary.is-active,
.site-header__nav > details[open] > summary { color: var(--magenta-300); }

/* The link to the hardware overview below the terminal tiles. `<summary>`
   cannot be a link, so the path to `/hardware` leads from here. */
.megamenu__overview {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-1);
  transition: background .15s, color .15s;
}
.megamenu__overview:hover { background: var(--bg-mist); }
.megamenu__overview::after { content: "→"; transition: transform .15s; }
.megamenu__overview:hover::after { transform: translateX(3px); }

/* --- language switcher ---------------------------------------------------
   On the old site `i18n.js` injected it as two buttons with inline styles
   and switched the language over the finished DOM. Now these are links to
   the page's counterpart (#5), so the address changes too and the page can
   be shared. */
/* The PSD sets DE and EN as plain Light words ~22 px apart; the current
   language is underlined instead of boxed, so the mark stays without
   adding a box the PSD does not have. */
.lang-switch { display: inline-flex; gap: 22px; }
.lang-switch a {
  font-size: 15px; font-weight: 300; color: var(--white);
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-current { text-decoration: underline; text-underline-offset: 3px; }

/* --- menu for narrow screens ---------------------------------------------
   Below roughly 1080 px the horizontal navigation does not fit the header:
   it would overflow the window and cut off the CTA (until 9/2026 exactly
   that happened — the nav only disappeared below 640 px and a portrait
   tablet was left with neither buttons nor menu; below 640 px there was
   then no menu at all). The replacement is a `<details>` with a vertical
   panel, the same JavaScript-free pattern as the Hardware panel. */
.nav-mobile { display: none; }
.nav-mobile > summary {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer; list-style: none;
  transition: background .15s;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:hover,
.nav-mobile[open] > summary { background: var(--midnight-800); }
.nav-mobile__panel {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(18,26,58,0.14);
  padding: 8px 24px 12px;
}
.nav-mobile__panel a {
  font-size: 16px; font-weight: 500; color: var(--fg-1);
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile__panel a:last-child { border-bottom: none; }
.nav-mobile__panel a.is-active { color: var(--magenta); }

@media (max-width: 1080px) {
  .site-header__nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .nav-mobile { display: block; }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 12px; padding: 0 16px; }
  .site-header__cta { gap: 6px; }
  .site-header__cta .btn--accent {
    flex-shrink: 0 !important; font-size: 13px; padding: 0 14px;
    white-space: nowrap; overflow: visible; min-width: max-content;
  }
  /* Originally `a[href="#/login"]`. The address changed with the rewrite
     and will differ in the English subtree, so the item carries its own
     class from `_nav.toml`. */
  .site-header__cta .is-hidden-mobile { display: none; }
}

/* ---------------- Home: hero ---------------- */
/* Daniel's PSD (spec v4, hero rows): his pixel ground as a raster, white
   Archivo Condensed on it, his N92 render over a magenta chip. Positions are
   layout px at 1440 inside the 830 px design column. No fixed height: the
   PSD's 548 px hold one-line bullets, Martin's price bullets wrap and grow
   the hero (spec V4-5, deliberate deviation). */
.hero {
  position: relative;
  overflow: hidden;
  padding: 53px 0 36px;
  background: var(--indigo-850) url("/img/home/hero-ground.webp") center / cover no-repeat;
  color: var(--white);
}
/* The copy spans the whole column; the visual sits over its right part from
   x 431 (the chip's left edge), so the bullets can run under the terminal's
   transparent corner as in the PSD. */
.hero__inner {
  display: grid;
  grid-template-columns: 431px minmax(0, 1fr);
}
.hero__copy { grid-column: 1 / -1; grid-row: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 62px;
  line-height: 0.81;
  letter-spacing: 0;
  color: var(--white);
  margin: 0;
}
.hero h1 .accent { color: var(--white); }
.hero__line { display: block; }
/* The PSD's steps (+26, +26, +141 px at 62 px), in em so they follow the
   type when it shrinks on a phone. */
.hero h1 > .hero__line:nth-child(2),
.hero h1 .accent > .hero__line:first-child { padding-left: 0.42em; }
.hero h1 .accent > .hero__line:nth-child(2) { padding-left: 2.27em; }
.hero__lede {
  font-size: 17.5px; line-height: 20px; font-weight: 500;
  color: var(--white);
  max-width: 380px;
  margin: 26px 0 0;
}
/* Pills stacked on the left, the bullets 236 px into the column. */
.hero__actions {
  display: flex; align-items: flex-start;
  gap: 32px 52px;
  margin-top: 15px;
}
.hero__cta { flex: none; display: flex; flex-direction: column; gap: 13px; }
/* content-box: the 214 px are the text's own measure, the markers hang in
   the 48 px padding (squares at 0, text at 48 as in the PSD). The measure
   breaks each price bullet after its product word: wider than "Card
   payments" (201 px), narrower than "Terminal ab 19 €/" (227 px), which a
   browser may break after the slash (spec V4-5; the plan's 240 px let
   Firefox set "Terminal ab 19 €/ Monat"). */
.hero__bullets {
  box-sizing: content-box;
  max-width: 214px;
  list-style: none; margin: -2px 0 0; padding: 0 0 0 48px;
  display: flex; flex-direction: column; gap: 4px;
}
/* Pitch 37 px between one-line bullets (33 + 4); a wrapped price sits 33 px
   under its product word, so each bullet still reads as one item. */
.hero__bullet {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px; line-height: 33px;
  color: var(--white);
}
.hero__bullet::before {
  content: "";
  position: absolute; z-index: 1;
  left: -48px; top: 4px;
  width: 24px; height: 24px;
  background: var(--magenta-vivid);
  /* The PSD shades the square from vivid at the top-left to deep magenta at
     the bottom-right and lifts it with a soft drop. */
  background-image: linear-gradient(150deg, transparent 35%, var(--magenta-deep));
  box-shadow: 0 5px 8px color-mix(in srgb, var(--indigo-950) 55%, transparent);
}
/* Besides the drop, a hard dark-magenta bar: 26 × 3, 11 px down-right of the
   square's corner, behind it, so its end shows right of the square. */
.hero__bullet::after {
  content: "";
  position: absolute;
  left: calc(-48px + 11px); top: calc(4px + 11px);
  width: 26px; height: 3px;
  background: color-mix(in srgb, var(--magenta-deep) 70%, var(--indigo-950));
}

/* Terminal at x 490 / y 98 of the hero, the chip at x 431 / y 129 under its
   right edge; the render's transparent margin keeps the chip's text clear. */
.hero__visual {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 1;
  align-self: start;
  margin-top: 47px;
}
.hero__terminal {
  position: relative; z-index: 1;
  display: block;
  width: 302px; height: auto;
  object-fit: contain;
  margin-left: 59px;
}
.hero__chip {
  position: absolute; z-index: 0;
  width: 200px;
  padding: 14px;
  background: linear-gradient(100deg, var(--magenta-vivid), var(--magenta-deep));
  font-family: var(--font-condensed); font-size: 22px; line-height: 1.06;
  color: var(--white);
}
.hero__chip--a { top: 31px; left: 0; }
.hero__chip__title { font-family: var(--font-condensed); font-weight: 800; white-space: nowrap; }
/* Between "out of the box" and "Plug & Play out" at 22 px Medium, so the sub
   breaks "Plug & Play / out of the box" as in the PSD (pinned by the font's
   metrics in test_home_layout.py). */
.hero__chip__sub { font-weight: 500; max-width: 110px; }

/* Tablets: text, then the terminal with the chip at its top-left. */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { grid-column: 1; }
  .hero__visual { grid-column: 1; grid-row: 2; justify-self: center; margin-top: 40px; }
}
/* Phones: headline, then the terminal with its chip, then lede, pills and
   bullets: the copy's children join the hero grid (display: contents), so the
   markup keeps its reading order. Smaller headline, lines flush left (the
   steps only waste width); the terminal pulled left so render and chip fit
   342 px. */
@media (max-width: 640px) {
  .hero { padding: 32px 0 40px; }
  .hero__copy { display: contents; }
  .hero h1 { font-size: 44px; grid-row: 1; }
  .hero h1 > .hero__line:nth-child(2), .hero h1 .accent > .hero__line:first-child,
  .hero h1 .accent > .hero__line:nth-child(2) { padding-left: 0; }
  .hero__visual { grid-row: 2; margin-top: 20px; }
  .hero__lede { grid-row: 3; margin-top: 20px; }
  .hero__actions { flex-direction: column; grid-row: 4; }
  .hero__terminal { margin-left: 40px; }
}

/* ---------------- Home: buttons ---------------- */
/* The PSD's one button: a 44 px pill in Archivo Condensed Medium 21. Its own
   block rather than `.btn` modifiers, so no subpage button changes. Hover
   changes colour only (no motion on the homepage, spec V4-5). */
.home-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 184px; padding: 0 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 21px; font-weight: 500; line-height: 1;
  white-space: nowrap;
}
.home-btn:hover { text-decoration: none; }
.home-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.home-btn--accent { background: var(--magenta-vivid); color: var(--white); }
/* `:hover` listed on its own, or foundations' `a:hover` would recolour the
   label. */
.home-btn--accent:hover { background: var(--magenta-deep); color: var(--white); }
.home-btn--outline-invert { border: 2px solid var(--white); color: var(--white); }
.home-btn--outline-invert:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--white);
}
/* Navy outline on the page's greys (terminals, partners): 4.5:1 and more. */
.home-btn--outline { border: 2px solid var(--fg-1); color: var(--fg-1); }
.home-btn--outline:hover {
  background: color-mix(in srgb, var(--fg-1) 8%, transparent);
  color: var(--fg-1);
}
/* The PSD's arrow after a label: the Inter arrow glyph, the only one shipped. */
.home-btn--arrow::after { content: "\2192"; font-family: var(--font-arrow); font-weight: 700; margin-left: 8px; }

/* --- taken from `i18n.js`: styles the site used to inject by script ------
   The original `spa/js/app/i18n.js` was not just a translator — it injected
   `<style id="__mobile_fixes">` into <head> with corrections for narrow
   screens and with a whole set of rules for the "journey" section, which the
   same script generated into the home page. Without JS both must be in CSS,
   otherwise the rewrite would change the site visually. The rules are
   transferred verbatim.

   One rule went away: `.version-toggle { display: none !important }`.
   The script used it to hide the design-version switcher in the footer —
   the rewrite removed that entirely, so there is nothing to hide. */

/* ---------------- Home: card shadow ---------------- */
/* Daniel's raster, three-sliced: sides 48 px into the card, middle stretched,
   height unscaled (spec facts 4-5). The outset is ink overflow: nothing
   scrolls. Grids isolate: all shadows lie under all cards. The journey
   card's pseudo-elements are its pillow, so it takes a span. */
.product-card::before, .home-card::before, .home-terminal::before, .journey-col__shadow {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 121px; z-index: -1;
  pointer-events: none; border: 0 solid transparent;
  border-image: url("/img/home/card-shadow.webp") 0 246 0 256 fill / 0 123px 0 128px / 0 75px 11px 80px;
}
.journey-col__shadow {
  height: 125px; z-index: -3;
  border-image: url("/img/home/card-shadow-pillow.webp") 0 340 0 330 fill / 0 170px 0 165px / 0 122px 9px 117px;
}

/* ---------------- Home: journey ---------------- */
/* Daniel's PSD: the hook, two 384 x 249 cards 72 px apart and the closing
   line, run tightly between the hero and the products. */
.journey-section {
  padding: 19px 0 0;
}
/* Three centred lines at 32 px; the 605 px measure makes the PSD's breaks
   with the PSD's slight tracking (without it the first line runs 2 px over).
   The emphasis is not coloured in the PSD. */
.journey-hook {
  font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 30px;
  letter-spacing: -0.01em; color: var(--fg-1); text-align: center;
  max-width: 605px; margin: 0 auto 21px;
}
.journey-hook em { font-style: normal; color: inherit; }
/* The two cards are 10 px wider than the column together; centring lets
   them overhang it by 5 px a side, as the PSD does. */
.journey-compare {
  display: grid; grid-template-columns: repeat(2, 384px); column-gap: 72px;
  justify-content: center; margin-bottom: 40px; isolation: isolate;
}
/* Daniel's pillow outline (v5): `::before` paints the backdrop through the
   mask, `::after` the same outline a hair larger as the edge. Its shadow is
   Daniel's raster on `.journey-col__shadow` (Home: card shadow).
   The one pillow definition, shared by the comparison cards and the
   subpage cards (`.subpage-card`, whose box rule lives in subpage.css). */
.journey-col {
  --card-edge: var(--edge-psd); --card-edge-w: 0.7px;
  position: relative; min-height: 249px;
  border: 0; border-radius: var(--radius-lg); padding: 22px 18px 18px;
}
.journey-col::before, .journey-col::after, .subpage-card::before, .subpage-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface-warm);
  mask: url("/img/home/card-pillow.svg") center / 100% 100% no-repeat;
}
.journey-col::after, .subpage-card::after { inset: calc(-1 * var(--card-edge-w)); z-index: -2; background: var(--card-edge); }
.journey-col__label {
  display: block; font-size: 25px; font-weight: 500; line-height: 30px;
  text-transform: uppercase; color: var(--fg-1); margin-bottom: 16px;
}
/* The PSD's 3 px lighter indigo stroke (#5F5FA4), 1 px at 1440. */
.journey-col--before {
  --card-edge: color-mix(in srgb, var(--indigo-700) 75%, var(--white)); --card-edge-w: 1px;
}
.journey-col--before::before { background: var(--indigo-900); }
.journey-col--before .journey-col__label { color: var(--white); }
/* FISPAY's label is a vivid magenta tab in the card's top-left corner: the
   relative offset cancels the card's 22 px top padding (flush with its top
   edge) and the negative margins its side padding and the space the tab
   leaves in the flow. */
.journey-col--after .journey-col__label {
  display: inline-block; position: relative; top: -22px;
  margin: 0 0 -19px -18px; padding: 17px 16px 18px;
  background: var(--magenta-vivid); color: var(--white);
  border-radius: var(--radius-lg) 0 0 0;
  font-family: var(--font-display); font-weight: 800; line-height: 30px;
}
.journey-col h4 {
  font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.1;
  letter-spacing: 0; color: var(--fg-1); margin: 0 0 4px;
}
.journey-col p { font-size: 17px; font-weight: 500; line-height: 20px; color: var(--fg-1); margin: 0 0 22px; }
.journey-col p:last-child { margin-bottom: 0; }
/* After the base h4/p rules: same specificity, so source order decides. */
.journey-col--before h4 { color: var(--white); }
.journey-col--before p { color: var(--white); }
.journey-transition { text-align: center; }
.journey-transition p {
  font-size: 38px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
  color: var(--fg-1); margin: 0 auto;
}
/* Vivid magenta as text only here, at 38 px ExtraBold, where 3:1 applies
   (3.3:1 on the page grey, spec V4-2). */
.journey-transition strong { font-family: var(--font-display); font-weight: 800; color: var(--magenta-vivid); }

@media (max-width: 1024px) {
  .journey-compare { grid-template-columns: minmax(0, 384px); row-gap: 40px; }
  .journey-transition p { font-size: 30px; }
}
@media (max-width: 640px) {
  .journey-col::before, .journey-col::after, .subpage-card::before, .subpage-card::after { mask: none; border-radius: var(--radius-lg); }
  .journey-hook { font-size: 24px; line-height: 26px; }
  .journey-transition p { font-size: 26px; }
}

/* ---------------- Home: scope ---------------- */
/* Daniel's PSD sets the whole homepage in Archivo Condensed, and the
   subpages that set the template flag take the same type (spec S1).
   Remapping the font tokens here restyles every block inside without touching
   the same blocks on the pages outside both scopes. */
.home, .subpage {
  --font-display: var(--font-archivo);
  --font-heading: var(--font-archivo);
  --font-condensed: var(--font-archivo);
  --font-body: var(--font-archivo);
  font-family: var(--font-body);
}

/* ---------------- Home: section heads ---------------- */
/* The PSD's heads sit left in the column: a Medium 17 px navy eyebrow, an
   ExtraBold 31.5 px heading and a 17 px lede. Scoped to the homepage and the
   flagged subpages (.subpage, spec S1), so the pages outside both keep their
   heads. Heads the content centres stay centred until their own sections take
   the PSD. */
.home .section-head, .subpage .section-head {
  text-align: left; align-items: flex-start; gap: 0;
  max-width: none; margin-bottom: 40px;
}
.home .section-head--center { text-align: center; align-items: center; }
.home .eyebrow, .subpage .eyebrow {
  font-size: 17px; font-weight: 500; line-height: 20px; letter-spacing: 0;
  text-transform: none; color: var(--fg-1); margin-bottom: 31px;
}
.home .section-head h2, .subpage .section-head h2 {
  font-family: var(--font-display); font-size: 31.5px; font-weight: 800; line-height: 1.1;
  letter-spacing: 0; color: var(--fg-1); margin-bottom: 8px;
}
.home .section-head .lede, .subpage .section-head .lede {
  font-size: 17px; font-weight: 500; line-height: 20px; color: var(--fg-1); max-width: 500px;
}

/* ---------------- Generic section ---------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section--alt { background: var(--bg-alt); }

.section-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head--center {
  align-items: center; text-align: center;
  margin-left: auto; margin-right: auto;
}

.container--narrow { max-width: 800px; }
.container--medium { max-width: 860px; }
/* The design column plus the container's 24 px side padding. */
.container--column { max-width: calc(var(--column) + 48px); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

/* ---------------- Home: features ---------------- */
/* The three modules in Daniel's PSD: 264 x 304 cards, a vivid magenta title
   bar flush in the top-left corner, his photo, the description and a
   "Mehr erfahren" link bottom right. Homepage only. Hover recolours only. */
.section--products { padding: 22px 0 72px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; isolation: isolate; }
.product-card {
  display: flex; flex-direction: column; min-height: 304px;
  position: relative;
  background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0.7px var(--edge-psd);
  color: var(--fg-1); text-decoration: none;
}
.product-card:hover { text-decoration: none; }
.product-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* As wide as its title, never stretched: the PSD's bars end short of the
   card's right edge. The square corner is the PSD's too. */
.product-card__title { align-self: flex-start; }
.product-card__media { display: grid; place-items: center; height: 140px; padding: 2px; }
/* A fixed box for every photo; each card then sets its photo's PSD size
   (the files are 2x). `contain` keeps every photo's ratio inside its box. */
.product-card__media img { max-height: 136px; width: auto; height: auto; max-width: 100%; object-fit: contain; }
/* The EF60 photo's white margins are cropped by `cover`; the device sits
   low in its file, so the window slides down to keep it whole. */
.product-card__media--kassensystem img { width: 200px; height: 136px; object-fit: cover; object-position: 50% 75%; }
.product-card__media--zahlungen img { width: 250px; object-fit: contain; }
.product-card__media--fiskalisierung img { width: 118px; object-fit: contain; }
/* The PSD blends the white-backed EF60 photo with `darken`, so its white
   reads as the card's grey; the other two photos are transparent. */
.product-card__media--darken img { mix-blend-mode: darken; }
/* The media box is one grid cell: the scene stacks on the photo instead of
   opening a second row. */
.product-card__media > img { grid-area: 1 / 1; }
/* ── Product hover scenes (spec V6, V6.1) ────── */
/* Decoration painted into a photo's display (aria-hidden, never clickable).
   Generic layer, phases and triggers are `.screen-scene*`; everything bound to
   one photo (the box, the matrix, the type sizes) is in `.screen-scene--<key>`.
   Hidden at rest with `visibility`, so not one pixel of it paints there. */
.screen-scene { position: relative; grid-area: 1 / 1; pointer-events: none; visibility: hidden; }
/* Exactly the photo box, so the layer and the photo share one centre. */
.screen-scene--fiskalisierung { width: 118px; aspect-ratio: 236 / 177; }
/* The flat screen box of every scene; each modifier maps it onto its photo's
   measured display corners with a homography (the matrix is the measurement,
   not a tuning knob) and sets only its size. */
.screen-scene__screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: var(--white); }
.screen-scene--fiskalisierung .screen-scene__screen {
  width: 60px; height: 68px;
  transform: matrix3d(0.993121, -0.306605, 0, 0.00118714, 0.655543, 0.61771, 0, -0.000900792, 0, 0, 1, 0, 8.65, 17.7, 0, 1);
}
/* Phases stacked in the active area (the glass minus a 10 % bezel). */
.screen-scene__phase {
  position: absolute; inset: 7px 6px; opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
}
.screen-scene--fiskalisierung .screen-scene__price { font-family: var(--font-archivo); font-weight: 700; font-size: 17px; line-height: 20px; }
.screen-scene--fiskalisierung .screen-scene__prompt { font-family: var(--font-archivo); font-weight: 500; font-size: 8px; line-height: 10px; }
.screen-scene--fiskalisierung .screen-scene__paid { font-family: var(--font-archivo); font-weight: 700; font-size: 11px; line-height: 12px; }
.screen-scene--fiskalisierung .screen-scene__signed { font-family: var(--font-archivo); font-weight: 500; font-size: 8px; line-height: 10px; }
.screen-scene__contactless, .screen-scene__check { width: 16px; height: 16px; }
.screen-scene__contactless path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.screen-scene__check circle { fill: var(--green); }
.screen-scene__check path { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Kartenzahlung (spec V6.1): the terminal's flat top glass, left of the card in
   the hand; the phases run in a row there. */
.screen-scene--zahlungen { width: 250px; aspect-ratio: 500 / 211; }
.screen-scene--zahlungen .screen-scene__screen {
  width: 100px; height: 36px;
  transform: matrix3d(0.694358, 0.0333215, 0, -0.000615216, -1.00071, 0.13528, 0, -0.00822549, 0, 0, 1, 0, 36.8, 30.5, 0, 1);
}
.screen-scene--zahlungen .screen-scene__phase { inset: 4px 20px 4px 10px; flex-direction: row; justify-content: flex-start; }
.screen-scene--zahlungen .screen-scene__price { font-family: var(--font-archivo); font-weight: 700; font-size: 16px; line-height: 18px; }
.screen-scene--zahlungen .screen-scene__prompt { font-family: var(--font-archivo); font-weight: 500; font-size: 9px; line-height: 10px; }
.screen-scene--zahlungen .screen-scene__paid { font-family: var(--font-archivo); font-weight: 700; font-size: 12px; line-height: 14px; }
.screen-scene--zahlungen svg { width: 13px; height: 13px; }
/* Kassensystem (spec V6.1): two taps on product tiles of the EF60's sales
   grid (px of the 80 x 45 screen box, measured on the rectified photo), then
   the total. `--scene-delay` is each element's start; its ripple inherits it. */
.screen-scene--kassensystem { width: 200px; height: 136px; }
.screen-scene--kassensystem .screen-scene__screen {
  width: 80px; height: 45px;
  transform: matrix3d(0.995953, -0.502036, 0, 0.00152212, 0.637564, 0.139286, 0, -0.00244528, 0, 0, 1, 0, 27.1795, 48.1111, 0, 1);
}
.screen-scene__tap { position: absolute; left: 32.5px; top: 12px; width: 7.5px; height: 9px; background: var(--magenta-vivid); border-radius: 1px; --scene-delay: .1s; }
.screen-scene__tap + .screen-scene__tap { left: 48px; top: 25px; width: 7px; --scene-delay: .9s; }
.screen-scene__tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border: 1.5px solid var(--magenta-vivid); border-radius: 50%; box-sizing: border-box; opacity: 0; }
.screen-scene__total { position: absolute; left: 2px; right: 2px; bottom: 1.5px; background: var(--green); border-radius: 1px; text-align: center; font-family: var(--font-archivo); font-weight: 700; font-size: 8px; line-height: 10px; --scene-delay: 2s; }
/* Terminal cards (spec V6.3): the photo is 528 x 409 at half size; every layer is that box. */
.home-terminal .screen-scene { width: 264px; aspect-ratio: 528 / 409; }
/* A scene that draws its own screen (spec V6.3): the cover is the screen's
   ::before (colour --scene-bg, corner radius --scene-radius, final opacity --scene-end: 0 reveals the
   photo again); texts turn dark and share one type set. */
.screen-scene--opaque .screen-scene__screen { color: var(--fg-1); }
.screen-scene--opaque .screen-scene__screen::before { content: ""; position: absolute; inset: 0; border-radius: var(--scene-radius, 0); background: var(--scene-bg, var(--white)); opacity: var(--scene-end, 1); }
.screen-scene--opaque .screen-scene__phase { inset: 8px 6px; }
.screen-scene__cart { display: flex; flex-direction: column; align-self: stretch; gap: 1px; }
.screen-scene--opaque .screen-scene__row { display: flex; justify-content: space-between; gap: 4px; font-family: var(--font-archivo); font-weight: 500; font-size: 7px; line-height: 9px; }
.screen-scene--opaque .screen-scene__sum { margin-top: 2px; padding-top: 2px; border-top: .5px solid currentColor; font-family: var(--font-archivo); font-weight: 700; font-size: 9px; line-height: 11px; text-align: right; }
.screen-scene--opaque .screen-scene__price { font-family: var(--font-archivo); font-weight: 700; font-size: 16px; line-height: 18px; }
.screen-scene--opaque .screen-scene__prompt { font-family: var(--font-archivo); font-weight: 500; font-size: 9px; line-height: 10px; }
.screen-scene--opaque .screen-scene__paid { font-family: var(--font-archivo); font-weight: 700; font-size: 12px; line-height: 14px; }
.screen-scene--opaque .screen-scene__brand { font-family: var(--font-archivo); font-weight: 700; font-size: 9px; line-height: 10px; color: var(--magenta); }
.screen-scene--opaque svg { width: 14px; height: 14px; }
/* N92: the cart and the prompt on a drawn screen, then the photo's own paid screen. */
.screen-scene--n92 .screen-scene__screen {
  width: 74px; height: 137px; --scene-length: 2.5s; --scene-end: 0; --scene-bg: var(--white); --scene-radius: 6px;
  transform: matrix3d(0.314424, 0.517679, 0, -0.000501556, -0.746036, 0.618056, 0, 0.000130095, 0, 0, 1, 0, 161.775, 40.605, 0, 1);
}
/* N62: a tap on a home-screen icon (the ring only), then the payment app. */
.screen-scene--n62 .screen-scene__screen {
  width: 78px; height: 78px; --scene-delay: .6s; --scene-bg: var(--white); --scene-radius: 1px;
  transform: matrix3d(0.816756, 0.0183613, 0, -0.000746273, -0.673093, 0.522071, 0, -0.000882679, 0, 0, 1, 0, 115.205, 64.14, 0, 1);
}
.screen-scene--n62 .screen-scene__tap { left: 5.5px; top: 7.5px; width: 11px; height: 11px; background: none; }
/* EF20: the black tablet glass lights up into a light customer screen. */
.screen-scene--ef20 .screen-scene__screen {
  width: 128px; height: 80px; --scene-bg: var(--white); --scene-radius: 0px;
  transform: matrix3d(0.842684, 0.00634899, 0, -0.000724188, -0.361789, 0.966175, 0, -0.000444622, 0, 0, 1, 0, 77.29, 52.065, 0, 1);
}
/* EF60 (spec V6.4): the Kassensystem's taps and total on the sales grid of its large display. */
.screen-scene--ef60 .screen-scene__screen { width: 80px; height: 50px; transform: matrix3d(1.06615, -0.46844, 0, 0.00124148, 0.394478, 1.23577, 0, 0.000662175, 0, 0, 1, 0, 90.39, 74.055, 0, 1); }
.screen-scene--ef60 .screen-scene__tap { left: 32.5px; top: 7.5px; width: 6px; height: 8px; }
.screen-scene--ef60 .screen-scene__tap + .screen-scene__tap { left: 46px; top: 27px; width: 7px; height: 8px; }
/* EF930 (spec V6.4): two taps on home-screen icons, then the total at the bottom of the screen. */
.screen-scene--ef930 .screen-scene__screen { width: 96px; height: 54px; transform: matrix3d(0.652583, -0.0642509, 0, -0.00186663, -0.344829, 1.51475, 0, -0.0000978455, 0, 0, 1, 0, 80.89, 28.97, 0, 1); }
.screen-scene--ef930 .screen-scene__tap { left: 53px; top: 27px; width: 5px; height: 5px; }
.screen-scene--ef930 .screen-scene__tap + .screen-scene__tap { left: 82.5px; top: 27px; width: 5px; height: 5px; }
/* Shown only while the card is hovered or focused; the held phase is the third
   (a tap may follow the phases), which is also what reduced motion sees. */
:is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene { visibility: visible; }
:is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__phase:nth-child(3) { opacity: 1; }
/* Touch screens have no hover: the card stays exactly as before. */
@media (hover: none) {
  .screen-scene { display: none; }
}
/* The scene plays once per hover and holds its last phase; motion only for
   users who did not ask for less (spec V6). Without it the hover shows the
   last phase at once (rules above). Opacity only, no loop, no transition:
   leaving the card drops the animation and hides the layer at once. */
@keyframes screen-scene-phase-1 { 0% { opacity: 0; } 5% { opacity: 1; } 27% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes screen-scene-phase-2 { 0% { opacity: 0; } 30% { opacity: 0; } 35% { opacity: 1; } 67% { opacity: 1; } 70% { opacity: 0; } 100% { opacity: 0; } }
@keyframes screen-scene-phase-3 { 0% { opacity: 0; } 70% { opacity: 0; } 75% { opacity: 1; } 100% { opacity: 1; } }
@keyframes screen-scene-in { from { opacity: 0; } }
@keyframes screen-scene-ripple { from { opacity: 0; transform: scale(.3); } 20% { opacity: 1; } to { opacity: 0; transform: scale(1.5); } }
/* A drawn screen comes in with phase 1 and leaves with phase 2 only where --scene-end is 0. */
@keyframes screen-scene-cover { 0% { opacity: 0; } 5% { opacity: 1; } 67% { opacity: 1; } 75% { opacity: var(--scene-end, 1); } 100% { opacity: var(--scene-end, 1); } }
/* --scene-length (length) and --scene-delay (start) let a scene run longer or later on the same keyframes
   (the triggers are one `:is()` pair). */
@media (prefers-reduced-motion: no-preference) {
  :is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__phase:nth-child(1) { animation: screen-scene-phase-1 var(--scene-length, 2s) linear var(--scene-delay, 0s) both; }
  :is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__phase:nth-child(2) { animation: screen-scene-phase-2 var(--scene-length, 2s) linear var(--scene-delay, 0s) both; }
  :is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__phase:nth-child(3) { animation: screen-scene-phase-3 var(--scene-length, 2s) linear var(--scene-delay, 0s) both; }
  .home-terminal:is(:hover, :focus-within) .screen-scene__screen::before { animation: screen-scene-cover var(--scene-length, 2s) linear var(--scene-delay, 0s) both; }
  :is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__tap,
  :is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__total { animation: screen-scene-in .2s var(--scene-delay) both; }
  :is(.product-card, .home-terminal):is(:hover, :focus-within) .screen-scene__tap::after { animation: screen-scene-ripple .6s var(--scene-delay) both; }
}
.product-card__desc { padding: 0 14px; font-size: 17px; font-weight: 500; line-height: 20px; color: var(--fg-1); }
/* Small magenta text stays brand magenta (4.5:1 on the card, spec V4-2). */
.product-card__link {
  margin: auto 14px 8px; padding-top: 4px; align-self: flex-end;
  font-size: 17px; font-weight: 500; line-height: 20px; color: var(--magenta);
}
.product-card__link::after { content: "\2192"; font-family: var(--font-arrow); font-weight: 700; margin-left: 3px; }
.product-card:hover .product-card__link { text-decoration: underline; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------------- Home: title bar ---------------- */
/* The PSD's title bar: vivid magenta, ExtraBold 25.5 px white, as wide as its
   text and never wider than its card. Reused by the later homepage cards. */
.home-bar {
  display: block; max-width: 100%; padding: 10px 14px;
  background: var(--magenta-vivid); color: var(--white);
  font-family: var(--font-display); font-size: 25.5px; font-weight: 800; line-height: 33px;
  letter-spacing: 0;
}

/* ---------------- Germany teaser ---------------- */
/* Daniel's dot map (171 x 210, at the PSD's 70 % opacity) with the sentence
   lying over it as in the PSD, the whole block one link to the pricing page.
   Text and map share one grid cell; the link is as big as both (inline grid,
   max-content), centred by its row, so it never catches clicks beside them. */
.germany-teaser-row { text-align: center; }
.germany-teaser { display: inline-grid; width: max-content; text-align: left; }
.germany-teaser:hover { text-decoration: none; }
.germany-teaser:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* Ink starts 59.6 px under the map top at its left edge (PSD type layer).
   Navy on the 70 % dots is 4.49:1, under 4.5 for normal text; at 24.6 px
   ExtraBold it is large text (3:1) - a deliberate deviation, spec V5. */
.germany-teaser__text {
  grid-area: 1 / 1; z-index: 1; align-self: start; justify-self: start; margin-top: 59px;
  font-family: var(--font-condensed); font-weight: 800;
  font-size: 24.6px; line-height: 20.6px; color: var(--fg-1);
}
.germany-teaser__map {
  grid-area: 1 / 1; display: block; width: 171px; height: auto; opacity: 0.7;
}
/* The PSD's leading spaces (5, 8, 5, 0, 7) as indents of the space advance. */
.germany-teaser__line { display: block; }
.germany-teaser__line:nth-child(1) { padding-left: 17.5px; }
.germany-teaser__line:nth-child(2) { padding-left: 27.9px; }
.germany-teaser__line:nth-child(3) { padding-left: 17.5px; }
.germany-teaser__line:nth-child(5) { padding-left: 24.5px; }
/* Underline only: the colour stays navy, the one that holds on the dots. */
.germany-teaser:hover .germany-teaser__text,
.germany-teaser:focus-visible .germany-teaser__text {
  text-decoration: underline; color: var(--fg-1);
}

/* ---------------- Home: choice and why ---------------- */
/* Daniel's dark cards: 264 x 179 on an indigo gradient, the magenta title bar
   flush in the rounded top-left corner (the bar rounds its own corner), white 17 px text
   at the bottom and, on five why cards, his 3D icon at the top right.
   Homepage only; nothing moves. */
.section--dark-cards { padding: 14px 0 56px; }
.home-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 20px; row-gap: 26px; isolation: isolate;
}
.home-card {
  position: relative;
  display: flex; flex-direction: column; min-height: 179px; min-width: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0.7px var(--edge-psd);
}
/* v5 (plan row 10): the PSD's diagonal indigo, its top-left sample #171745
   to the bottom-right --indigo-700. The shadow is the shared raster. */
.home-card--dark {
  background: linear-gradient(130deg,
    color-mix(in srgb, var(--indigo-950) 68%, var(--indigo-850)), var(--indigo-700));
}
/* As wide as its title; above the icon where a long title meets it. The
   PSD's bar is 53 px tall on one line and sets a second line at a 26 px
   pitch ("Rechtssicher / ab Tag eins" is 69 px), so the line is centred in
   a minimum height rather than padded to it. */
.home-card__title {
  align-self: flex-start; position: relative; z-index: 1; margin: 0;
  border-top-left-radius: var(--radius-lg);
  display: flex; align-items: center; min-height: 53px;
  padding-top: 8px; padding-bottom: 8px; line-height: 26px;
}
/* The choice cards' bars run to 19 px short of the card's edge. */
.home-card--wide-bar .home-card__title { width: 245px; }
/* Next to an icon the bar stops short of it, so "Rechtssicher / ab Tag eins"
   and "Ihre Daten, Ihre / Entscheidung" break where the PSD breaks them. */
.home-card--icon .home-card__title { max-width: 184px; }
/* v5 (plan row 16): his icons with the PSD's feathered card mask (files at 2x),
   flush top, the box 17 px past the card's edge; the clip cuts that overhang
   and the card's corner. */
.home-card__icon {
  position: absolute; top: 0; right: -17px; width: 122px; height: auto;
  clip-path: inset(0 17px 0 0 round 0 var(--radius-lg) 0 0);
}
.home-card--dark .home-card__desc {
  margin-top: auto; padding: 16px 14px 24px;
  font-size: 17px; font-weight: 500; line-height: 20px; color: var(--white);
}

@media (max-width: 1024px) {
  .home-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-card-grid { grid-template-columns: 1fr; }
  /* Stacked, the desktop's even row height only opens a band under the bar. */
  .home-card--wide-bar { min-height: 0; }
}

/* ---------------- Home: kassensystem ---------------- */
/* Daniel's first split (spec, splits row "Kassensystem"): his cafe photo full
   bleed, 786 px tall at 1440. The magenta headline block hangs from the
   viewport's left edge 38 px above the photo, the navy lede block runs under
   it, the white pill sits low on the photo and Martin's four bullets are
   tiles whose bottom edge falls 6.5 degrees, hanging 12 px into the next
   section. Photo and overlays share one grid cell, so the photo sets the
   height. Only the eyebrow stays in the design column. Nothing moves. */
.home-photo-split { padding-top: 29px; }
.home .home-photo-split .eyebrow { margin-bottom: 0; }
.home-photo-split__stage { position: relative; display: grid; margin-top: 44px; }
.home-photo-split__photo {
  grid-area: 1 / 1; display: block;
  width: 100%; height: 786px; max-width: none; object-fit: cover;
}
.home-photo-split__copy {
  grid-area: 1 / 1; align-self: start; justify-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  margin-top: -38px; z-index: 1;
}
/* x 0-406, y 2255-2480: dark at the top left, vivid towards the bottom
   right, as sampled from the PSD. White 62 px bold holds 4.5:1 on both. */
.home-photo-split__heading {
  position: relative; z-index: 1;
  width: 406px; min-height: 225px; margin: 0; padding: 29px 0 0 27px;
  background: linear-gradient(to bottom right, var(--magenta-deep), var(--magenta-vivid) 60%);
  font-family: var(--font-display); font-size: 62px; font-weight: 800; line-height: 52px;
  letter-spacing: 0; color: var(--white);
}
.home-photo-split__line { display: block; }
/* The PSD's steps, measured from its pixels: the middle line is the
   leftmost, the first sits 28 px and the last 45 px further right. */
.home-photo-split__line:nth-child(1) { padding-left: 28px; }
.home-photo-split__line:nth-child(3) { padding-left: 45px; }
/* x 0-555, y 2445-2633, starting 35 px under the headline block. */
.home-photo-split__lede {
  width: 555px; max-width: none; margin: -35px 0 0; padding: 59px 24px 36px 30px;
  background: var(--indigo-950);
  font-size: 29px; font-weight: 500; line-height: 31px; color: var(--white);
}
/* The pill at x 53, 554 px down the photo (y 2847). */
.home-photo-split__copy .home-btn { position: absolute; left: 53px; top: 554px; }
/* Tiles at x 77.5/418.5/759.5/1100.5 (pitch 341) as in the PSD. The PSD
   draws no shadow here; this soft one is Vojta's wish, kept on the list. */
.home-tiles {
  grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 285px));
  column-gap: 56px; row-gap: 20px;
  list-style: none; margin: 0; margin-bottom: -12px; padding: 0 0 0 23px;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--indigo-950) 45%, transparent));
}
/* The PSD's 284.9 x 132.8 rectangles turned 1.49 deg, darkening into the
   right (#B50062) and the bottom-right corner (#75003D). The ::before turns,
   the box with the text stays straight. First line bold, the rest Medium. */
.home-tile {
  position: relative; isolation: isolate;
  min-height: 133px; padding: 16px 18px;
  font-size: 24.5px; font-weight: 500; line-height: 25px; color: var(--white);
}
.home-tile::first-line { font-family: var(--font-display); font-weight: 800; }
.home-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(farthest-corner at 100% 100%,
      color-mix(in srgb, var(--magenta-deep) 70%, var(--midnight-950)), transparent 55%),
    linear-gradient(to right, var(--magenta-vivid) 45%,
      color-mix(in srgb, var(--magenta-vivid) 30%, var(--magenta-deep)));
  transform: rotate(1.49deg);
}

/* Below 1024 the blocks stack over the photo at full width, the pill below
   the lede on the navy, the tiles 2 x 2 over the photo's bottom edge. */
@media (max-width: 1024px) {
  .home-photo-split { padding-bottom: 40px; }
  .home-photo-split__stage { display: flex; flex-direction: column; margin-top: 16px; }
  .home-photo-split__copy {
    order: -1; align-self: stretch; margin-top: 0; padding-bottom: 24px;
    background: var(--indigo-950);
  }
  .home-photo-split__heading { width: auto; align-self: stretch; min-height: 0; padding: 22px 24px 20px; }
  .home-photo-split__lede { width: auto; margin: 0; padding: 20px 24px; }
  .home-photo-split__copy .home-btn { position: static; margin-left: 24px; }
  .home-photo-split__photo { height: auto; }
  .home-tiles {
    align-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px; margin: -48px 24px 0; padding: 0;
  }
}
/* Below 640 the tiles are a strip that shows one tile and half the next and
   snaps tile by tile, without the tilt; the list takes keyboard focus
   (tabindex) so arrow keys scroll it in every engine; the ring sits inside
   because the strip runs edge to edge. The heading steps down to 46 px so
   "funktioniert." keeps its step on a 390 px phone. */
@media (max-width: 640px) {
  .home-photo-split__heading { font-size: 46px; line-height: 40px; padding: 18px 20px; }
  .home-photo-split__lede { font-size: 22px; line-height: 25px; padding: 18px 20px; }
  .home-photo-split__copy .home-btn { margin-left: 20px; }
  .home-tiles { display: flex; gap: 12px; margin: -32px 0 0; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
  .home-tiles::-webkit-scrollbar { display: none; }
  .home-tiles:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
  .home-tile { flex: 0 0 66%; min-height: 0; scroll-snap-align: start; }
  .home-tile::before { transform: none; }
}

/* ---------------- Home: kartenzahlung and fiskalisierung ---------------- */
/* Daniel's second and third split (spec, splits rows "Kartenzahlung" and
   "Fiskalisierung"): his indigo and purple pixel grounds full bleed, 550 and
   552 px tall at 1440, the copy white in the design column and his render
   at PSD size to the right of the middle, cut by the viewport on the right.
   A homepage block of its own, so the subpages' `.split` stays as it is.
   Nothing moves. */
.home-split { position: relative; overflow: hidden; }
/* The grounds are 2880 px wide (2x) and cover the section; the colour under
   them holds the white copy while the WebP loads. */
.home-split--kartenzahlung {
  min-height: 550px;
  background: url("/img/home/kartenzahlung-ground.webp") center / cover var(--indigo-950);
}
/* The purple ground's lightest cell (#D500E7, behind the second bullet)
   holds 4.21:1 against white; a 10 % indigo veil lifts it to 4.9:1 and
   barely shows. */
.home-split--fiskalisierung {
  min-height: 552px;
  background:
    linear-gradient(color-mix(in srgb, var(--indigo-950) 10%, transparent),
      color-mix(in srgb, var(--indigo-950) 10%, transparent)),
    url("/img/home/fiskal-ground.webp") center / cover var(--indigo-950);
}
/* The eyebrow's text at y 59 (Kartenzahlung) and 53 (Fiskalisierung) from
   the section's top; its line box starts 3 px above the ink. */
.home-split__inner { padding-top: 56px; padding-bottom: 40px; }
.home-split--fiskalisierung .home-split__inner { padding-top: 50px; }
/* Above the render, so a long line of the copy is never covered. */
.home-split__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.home .home-split .eyebrow { color: var(--white); margin-bottom: 33px; }
.home-split__heading {
  margin: 0 0 7px;
  font-family: var(--font-display); font-size: 31.5px; font-weight: 800; line-height: 1.1;
  letter-spacing: 0; color: var(--white);
}
/* The PSD sets the card-payment lede on one line (x 306-930) and wraps the
   fiscal one before "liegen"; its gap to the bullets differs as well. */
.home-split__lede {
  max-width: 440px; margin: 0 0 20px;
  font-size: 17px; font-weight: 500; line-height: 21px; color: var(--white);
}
.home-split--kartenzahlung .home-split__lede { max-width: 640px; margin-bottom: 41px; }
/* Squares at x 305, text at x 337, rows 15 px apart at a 19 px pitch; the
   400 px measure keeps "Auszahlung ... Geschäftskonto" on one line. The
   PSD's squares are 17.3 px turned -3.7 deg, centred on the first line. */
.home-split__bullets {
  list-style: none; margin: 0 0 45px; padding: 0;
  display: flex; flex-direction: column; gap: 15px;
  font-size: 17px; font-weight: 500; line-height: 19px; color: var(--white);
}
.home-split__bullets li { position: relative; max-width: 432px; padding-left: 32px; }
/* One square for the homepage split's and the subpages' bullets. */
.home-split__bullets li::before,
.subpage-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.85px;
  width: 17.3px; height: 17.3px;
  background: var(--magenta-vivid);
  transform: rotate(-3.7deg);
}
/* x 763-1481 and 725-1174 at 1440: placed from the middle of the section,
   so the render keeps its distance to the column at every desktop width. */
.home-split__render {
  position: absolute; display: block;
  height: auto; max-width: none;
}
.home-split--kartenzahlung .home-split__render { width: 718px; left: calc(50% + 43px); top: 49px; }
.home-split--fiskalisierung .home-split__render { width: 449px; left: calc(50% + 5px); top: 69px; }

/* Below 1024 the copy comes first and the render follows it in the flow,
   never wider than the column. */
@media (max-width: 1024px) {
  .home-split, .home-split--kartenzahlung, .home-split--fiskalisierung { min-height: 0; }
  .home-split__inner,
  .home-split--fiskalisierung .home-split__inner { padding-top: 48px; padding-bottom: 48px; }
  .home-split__render { position: static; max-width: 100%; margin: 32px auto 0; }
}
/* Below 640 the render takes 90 % of the column, centred. */
@media (max-width: 640px) {
  .home-split__render,
  .home-split--kartenzahlung .home-split__render,
  .home-split--fiskalisierung .home-split__render { width: 90%; }
}

/* ---------------- Home: stats ---------------- */
/* Daniel's four stat tiles (v5, plan rows 1-5): 176 px magenta squares,
   all tilted -5.8 deg, 229 px apart, with a white edge and a shadow streak
   to the lower right. The row (bbox x 278-1154) is wider than the column
   and centred on it. The tilt is still: nothing moves. */
.section--stats { padding: 0 0 26px; }
.home .section--stats .eyebrow { display: block; margin-bottom: 25px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 176px);
  column-gap: 53px; row-gap: 33px; justify-content: center;
}
/* The number centred at the top, the label left right under it, as the
   PSD sets them. White holds 4.5:1 on both ends of the gradient. The ::before
   turns and carries the PSD's white ring and the band under the tile (V5.1). */
.stat {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  width: 176px; height: 176px;
  padding-top: 16px; padding-right: 16px; padding-bottom: 12px; padding-left: 16px;
}
.stat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(157deg, var(--magenta-vivid), var(--magenta-deep));
  transform: rotate(-5.8deg);
  box-shadow: 0 0 0 1px var(--white),
    0 12px 8px -6px color-mix(in srgb, var(--midnight-950) 60%, transparent);
}
/* The PSD's 95 px leaves "< 1 Std." wider than the tile: 81 px is the
   largest whole size that fits, for every figure (V5.1). */
.stat__num {
  font-family: var(--font-display); font-size: 81px; font-weight: 800; line-height: 66px;
  letter-spacing: 0; text-align: center; white-space: nowrap; color: var(--white);
  text-shadow: -1.6px 5.9px 10.5px color-mix(in srgb, var(--midnight-950) 38%, transparent);
}
/* "0 €", "10 Min.": the unit on the number's baseline, a third its size. */
.stat__unit {
  font-family: var(--font-display); font-size: 29px; font-weight: 800; color: var(--white);
  text-shadow: -1.6px 5.9px 10.5px color-mix(in srgb, var(--midnight-950) 38%, transparent);
}
/* The PSD raises the per cent sign to the figure's top. */
.stat__unit--raised { vertical-align: top; line-height: 34px; }
.stat__label {
  margin-top: 12px;
  font-size: 14px; font-weight: 500; line-height: 16px; color: var(--white);
}
/* Below the tiles, as in the PSD: one ExtraBold line across the column. */
.stats__heading {
  margin: 34px 0 0;
  font-family: var(--font-display); font-size: 66px; font-weight: 800; line-height: 1.1;
  letter-spacing: 0; color: var(--fg-1); white-space: nowrap;
}
/* Under the heading: the regulated-cards note for the 0,9 % tile's `*`. */
.stats__footnote { margin: 16px 0 0; font-size: 13px; color: var(--fg-3); text-align: center; }

/* Below 1024 the tiles go 2 x 2, still tilted, and the heading wraps. */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 176px); }
  .stats__heading { font-size: 44px; white-space: normal; }
}
/* Below 640 two tiles share the phone's width, square as long as their
   label lets them, the tilt kept clear of each other; the type steps down. */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 28px; }
  .stat {
    width: auto; height: auto; aspect-ratio: 1;
    padding-top: 16px; padding-right: 12px; padding-bottom: 12px; padding-left: 12px;
  }
  .stat__num { font-size: 60px; line-height: 54px; }
  .stat__unit { font-size: 20px; }
  .stat__unit--raised { line-height: 28px; }
}

/* ---------------- Home: audience ---------------- */
/* Daniel's light cards: the dark cards' geometry and title bar on the
   page's own greys, navy 17 px text (4.5:1 on both greys). Martin's
   section head sits above them; the PSD has none. */
.section--light-cards { padding: 48px 0 56px; }
/* The PSD's audience cards (v5, plan row 13): a rounded rectangle, page grey
   darkening to the bottom right; the edge is .home-card's, the shadow the shared raster. */
.home-card--light {
  background: linear-gradient(130deg, var(--surface-warm),
    color-mix(in srgb, var(--surface-warm) 85%, var(--midnight-950)));
}
.home-card--light .home-card__desc {
  margin-top: auto; padding: 16px 14px 24px;
  font-size: 17px; font-weight: 500; line-height: 20px; color: var(--fg-1);
}
/* Phones: stacked, the desktop's even row height only opens a band under the bar,
   as on the choice cards. A block of its own after the card rule, so the card's
   rules read together and `rule()` in the tests still finds the base rule first. */
@media (max-width: 640px) {
  .home-card--light { min-height: 0; }
}

/* ---------------- Home: terminals ---------------- */
/* Daniel's terminal cards (spec, terminals rows): 264 x 365, his 264 x 204
   pixel panel with the device on top, a magenta caps tag, the name and the
   description, an arrow bottom right. Three in the first row, two centred
   under them: six half-card tracks, each card spanning two, the fourth
   starting one track in. The 832 px row overhangs the 830 px column by a
   pixel each side, as in the PSD. Hover underlines the name; nothing moves. */
.section--terminals { padding: 32px 0 24px; }
.home-terminals {
  display: grid; grid-template-columns: repeat(6, 122px);
  column-gap: 20px; row-gap: 46px; justify-content: center; isolation: isolate;
}
.home-terminal {
  grid-column: span 2; position: relative;
  display: flex; flex-direction: column; min-height: 365px;
  background: var(--surface-card); border-radius: var(--radius-lg);
  color: var(--fg-1); text-decoration: none;
}
.home-terminal:nth-child(4) { grid-column: 2 / span 2; }
.home-terminal:hover { text-decoration: none; color: var(--fg-1); }
.home-terminal:hover .home-terminal__name { text-decoration: underline; }
.home-terminal:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* The files are 2x and half a pixel taller than the panel: the box cuts it
   and keeps the card's rounded top. */
.home-terminal__media {
  display: grid; height: 204px; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.home-terminal__media img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
/* One grid cell: a hover scene stacks on the photo (spec V6.3). */
.home-terminal__media > img { grid-area: 1 / 1; }
/* Small magenta text stays brand magenta (4.5:1 on the card, spec V4-2). */
.home-terminal__tag {
  margin: 10px 14px 0;
  font-size: 13px; font-weight: 500; line-height: 16px; letter-spacing: 0;
  text-transform: uppercase; color: var(--magenta);
}
.home-terminal__name {
  margin: 4px 14px 0;
  font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 24px;
  letter-spacing: 0; color: var(--fg-1);
}
.home-terminal__desc {
  margin: 0 14px;
  font-size: 17px; font-weight: 500; line-height: 20px; color: var(--fg-1);
}
/* No "Mehr" word: the card is the link, the arrow alone says so. */
.home-terminal::after {
  content: "\2192"; align-self: flex-end; margin: auto 14px 6px; padding-top: 4px;
  font-family: var(--font-arrow); font-size: 17px; font-weight: 700; line-height: 20px;
  color: var(--magenta);
}
/* The conditions note, centred under the cards: the lead ExtraBold, the
   rest Medium, as the PSD sets it. */
.home-terminals__note {
  max-width: 764px; margin-top: 42px; margin-left: auto; margin-right: auto;
  font-size: 25.5px; font-weight: 500; line-height: 31px; text-align: center; color: var(--fg-1);
}
.home-terminals__note strong { font-family: var(--font-display); font-weight: 800; }
.home-terminals__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 38px; }

/* Below 1024 two cards a row, the fifth alone in the middle. */
@media (max-width: 1024px) {
  .home-terminals { grid-template-columns: repeat(4, 122px); }
  .home-terminal:nth-child(4) { grid-column: auto / span 2; }
  .home-terminal:nth-child(5) { grid-column: 2 / span 2; }
  .home-terminals__note { font-size: 21px; line-height: 26px; }
}
/* Below 640 one column, the cards no wider than 360 px. */
@media (max-width: 640px) {
  .home-terminals { grid-template-columns: minmax(0, 360px); row-gap: 24px; }
  .home-terminal { grid-column: auto; }
  .home-terminal:nth-child(4), .home-terminal:nth-child(5) { grid-column: auto; }
  .home-terminal__media { height: auto; aspect-ratio: 264 / 204; }
  /* The photo scales here; the measured matrices hold only at 264 px. */
  .home-terminal .screen-scene { display: none; }
  .home-terminals__cta { gap: 16px; }
}

/* ---------------- Home: partners ---------------- */
/* The PSD's partner block: the eyebrow left in the column, the heading and
   a 455 px lede centred, one navy outline pill centred under them. */
.section--partners { padding: 18px 0 32px; }
.home .section--partners .section-head { margin-bottom: 0; }
.home .section--partners .lede { max-width: 455px; }
.home-partners__cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------------- Home: steps ---------------- */
/* Daniel's four steps (spec, steps row): 63 px magenta circles at a 220 px
   pitch from the column's left edge (x 307-964), the number ExtraBold 46 px,
   a dashed rail through the circles' centres and a soft elliptic shadow
   260 x 20 under each circle; the title and text left under the circle.
   The fourth track reaches 30 px past the column, as the PSD's last text
   does. A homepage-only block, restyled in place. Nothing moves. */
.section--steps { padding: 16px 0 58px; }
.home .section--steps .section-head { margin-bottom: 34px; }
.steps {
  display: grid; grid-template-columns: repeat(4, 200px);
  column-gap: 20px; row-gap: 40px;
  position: relative; isolation: isolate;
}
/* The PSD's rail is #ADABAB, which has no token; --fg-4, the decoration
   grey, stands in (a deviation for "V4 As built"). From the first circle's
   centre to the fourth: three pitches. */
.steps::before {
  content: ""; position: absolute; top: 30px; left: 31px; width: 660px; height: 0;
  border-top: 2px dashed var(--fg-4);
}
.step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
/* The shadow lies under the circle's lower edge, below its circle and text. */
.step::before {
  content: ""; position: absolute; z-index: -1;
  top: 50px; left: calc(31px - 130px); width: 260px; height: 20px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--midnight-950) 22%, transparent),
    transparent);
}
/* White on vivid magenta holds 4.53:1. */
.step__num {
  display: grid; place-items: center;
  width: 63px; height: 63px; border-radius: 50%;
  background: var(--magenta-vivid);
  font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1;
  color: var(--white);
}
.step__title {
  margin-top: 30px;
  font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 20px;
  color: var(--fg-1);
}
.step__desc { font-size: 14px; font-weight: 500; line-height: 17px; color: var(--fg-1); }

/* Below 1024 two by two; the rail would cross the gap, so it goes. */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 200px); column-gap: 40px; justify-content: center; }
  .steps::before { display: none; }
}
/* Below 640 one column: the circle left of its text, and a dashed rail down
   from each circle's centre to the next one's (the step's height plus the
   row gap). */
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 32px; justify-content: stretch; }
  .step { display: grid; grid-template-columns: 63px 1fr; column-gap: 16px; align-items: flex-start; }
  .step__num { grid-row: 1 / span 2; }
  .step__title { margin-top: 12px; }
  .step::before { left: calc(31px - 60px); width: 120px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; z-index: -1;
    left: 30px; top: 31px; width: 0; height: calc(100% + 32px);
    border-left: 2px dashed var(--fg-4);
  }
}

/* ---------------- Home: faq ---------------- */
/* The shared FAQ list on the homepage (spec, faq row): no cards, centred
   rows between 1 px lines across the column, ExtraBold 17 px questions, the
   magenta plus (open: a dash) right at x 1105, Medium 17 px answers. Shared
   by the homepage teaser and /faq (left-aligned there, subpage.css). Vivid
   magenta as text holds 3:1 at 26 px bold (spec V4-2). */
.section--faq { padding: 16px 0 45px; }
.home .section--faq .section-head { margin-bottom: 20px; }
.home .faq, .subpage .faq { gap: 0; }
.home .faq__item, .subpage .faq__item {
  background: none; box-shadow: none; border-radius: 0;
  border-top: 1px solid var(--line-strong);
  padding: 12px 0;
}
.home .faq__item:last-child, .subpage .faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.home .faq__q, .subpage .faq__q {
  position: relative; justify-content: center; text-align: center;
  padding: 0 48px;
  font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 20px;
  color: var(--fg-1);
}
.home .faq__q::after, .subpage .faq__q::after {
  content: "+"; position: absolute; right: 18px; top: 0;
  font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 20px;
  color: var(--magenta-vivid);
}
.home .faq__item[open] .faq__q::after, .subpage .faq__item[open] .faq__q::after { content: "\2013"; }
.home .faq__a, .subpage .faq__a {
  margin-top: 2px; padding: 0 80px;
  font-size: 17px; font-weight: 500; line-height: 20px; text-align: center;
  color: var(--fg-1);
}
.home-faq__cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------------- Home: banner ---------------- */
/* Daniel's closing banner (spec, banner row): his pixel mosaic full bleed,
   553 px tall at 1440; the heading ExtraBold 66 px in two lines, the text
   Medium 23 px, two white outline pills 74 px apart, his N92 render 302 px
   wide right of the middle. The lightest cell behind the copy (#3D3CAE)
   holds 8.5:1 against white. /ueber-uns reuses it with its own photo
   (subpage.css).
   Nothing moves. */
/* The layer's empty rows (6 px at the top, 26 px at the bottom at 1440) are
   no longer black bands in the ground file: tools/clean_mosaic.py fills them
   with the edge cells. The PSD still shows the page grey in those strips, so
   the ground covers the whole box and is clipped to its content. */
.home-banner {
  position: relative; overflow: hidden;
  min-height: 553px; padding: 6px 0 26px;
  background: url("/img/home/banner-ground.webp") center / cover border-box content-box var(--indigo-950);
}
.home-banner__inner { padding-top: 86px; padding-bottom: 30px; }
.home-banner__copy { position: relative; z-index: 1; }
.home-banner__heading {
  max-width: 520px; margin: 0;
  font-family: var(--font-display); font-size: 66px; font-weight: 800; line-height: 68px;
  letter-spacing: 0; color: var(--white);
}
.home-banner__text {
  max-width: 445px; margin: 10px 0 0;
  font-size: 23px; font-weight: 500; line-height: 25px; color: var(--white);
}
.home-banner__cta { display: flex; flex-wrap: wrap; gap: 74px; margin-top: 44px; }
/* The PSD's pills hug their labels (162 and 208 px). */
.home-banner__cta .home-btn { min-width: 0; }
/* x 793-1095, y 69 from the top at 1440: placed from the middle, as the
   splits' renders. */
.home-banner__render {
  position: absolute; display: block; left: calc(50% + 73px); top: 69px;
  width: 302px; height: auto; max-width: none;
}

/* Below 1024 the copy comes first and the render follows it, 220 px wide. */
@media (max-width: 1024px) {
  /* Stacked, the box is taller than the file's ratio and `cover` scales by
     height, so the black bands outgrow the clip: 10 % more height pushes
     them out of the box. */
  .home-banner { min-height: 0; background-size: auto 110%; }
  .home-banner__inner { padding-top: 50px; padding-bottom: 22px; }
  .home-banner__heading { font-size: 48px; line-height: 50px; }
  .home-banner__render { position: static; width: 220px; margin: 32px auto 0; }
}
/* Below 640 the type steps down and the pills stack closer. */
@media (max-width: 640px) {
  .home-banner__heading { font-size: 38px; line-height: 40px; }
  .home-banner__text { font-size: 19px; line-height: 23px; }
  .home-banner__cta { gap: 16px; margin-top: 28px; }
}

/* ---------------- Module split (alternating image+copy) ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split__copy h2 { margin-bottom: 16px; }
.split__copy .lede { margin-bottom: 24px; }
.split__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid; place-items: center;
  border: 0;
}
.split__visual img {
  max-width: 80%; max-height: 85%;
  filter: drop-shadow(0 24px 36px rgba(10,16,40,0.18));
}
.split__visual::after {
  /* subtle radial glow */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 30% 20%, rgba(255,255,255,0.6), transparent 60%);
  pointer-events: none;
}

/* A photo that should fill the whole split frame (not 80% like product shots). */
.split__visual--fill img { max-width: 100%; max-height: 100%; border-radius: 22px; }

/* An image frame that should be narrower than the column and centred
   (the lifestyle photo on the hardware detail). */
.split__visual--wide { max-width: 800px; margin: 0 auto; }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------- Pricing (Homepage Requirements §6) ---------------- */

/* "Vorläufiger Wert" marker. Every placeholder amount from §6.2 carries one —
   amber rather than magenta so it never reads as a brand accent. */
.provisional {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-50);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.provisional::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--amber-line);
}

/* The four fee components, side by side. */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fee-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.fee-card--accent {
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(181,31,117,0.07), var(--shadow-2);
}
.fee-card__label {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--magenta); text-transform: uppercase; letter-spacing: 0.08em;
  line-height: 1.35;
}
.fee-card__value {
  font-family: var(--font-display); font-weight: 800; font-size: 38px;
  color: var(--ink-1); letter-spacing: -0.02em; line-height: 1;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.fee-card__unit { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--fg-3); letter-spacing: 0; }
.fee-card__note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* Terminal rental, one row per model. */
.rent-table { border-top: 1px solid var(--line); }
.rent-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rent-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rent-row__name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--ink-1); text-decoration: none;
}
.rent-row__name:hover { color: var(--magenta); }
.rent-row__desc { font-size: 13px; color: var(--fg-3); }
.rent-row__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rent-row__amount {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  color: var(--ink-1); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.rent-row__unit { font-size: 14px; color: var(--fg-3); }
.rent-row__purchase { flex-basis: 100%; font-size: 13px; color: var(--fg-3); }
.rent-table__foot { margin: 18px 0 0; font-size: 13px; color: var(--fg-3); line-height: 1.6; }

/* Service fee: above vs. at or below the monthly card-turnover threshold. */
.volume-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.volume-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.volume-card--free { border-color: var(--green); background: var(--green-50); }
.volume-card__cond { font-size: 13px; font-weight: 500; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; }
.volume-card__value {
  font-family: var(--font-display); font-weight: 800; font-size: 44px;
  color: var(--ink-1); letter-spacing: -0.02em; line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.volume-card__note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }

@media (max-width: 1024px) {
  .fee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fee-grid, .volume-grid { grid-template-columns: 1fr; }
  .rent-row { align-items: flex-start; }
  .rent-row__price { width: 100%; }
}

/* ---------------- Hardware showcase ---------------- */
.hardware-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.hardware-grid > .hw-card { flex: 0 1 calc((100% - 48px) / 3); }
.hw-card {
  background: var(--surface-card);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.hw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.hw-card__media {
  aspect-ratio: 4 / 3;
  background: var(--white);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.hw-card__media::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(closest-side at 30% 30%, rgba(255,239,247,0.7), transparent 70%);
}
.hw-card__media img {
  position: relative;
  max-width: 75%;
  max-height: 80%;
  filter: drop-shadow(0 20px 28px rgba(10,16,40,0.20));
}
.hw-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.hw-card__tag { font-size: 12px; font-weight: 500; color: var(--magenta); text-transform: uppercase; letter-spacing: 0.08em; }
.hw-card__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink-1); }
.hw-card__desc { font-size: 14px; color: var(--fg-2); line-height: 1.55; }

/* A two-column table: parameter — value. On the hardware detail these are
   specs, on the overview conditions. They differ only in the first column's width. */
.spec-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.spec-list--specs { margin-top: 8px; }
.spec-row {
  display: grid; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-list--specs .spec-row { grid-template-columns: 160px 1fr; }
.spec-list--terms .spec-row { grid-template-columns: 1fr auto; padding: 16px 0; font-size: 15px; }
.spec-row__key { color: var(--fg-3); font-weight: 500; }
.spec-row__value { color: var(--ink-1); }
.spec-list--terms .spec-row__key { color: var(--fg-2); font-weight: 400; }
.spec-list--terms .spec-row__value { font-weight: 500; text-align: right; }

@media (max-width: 1024px) {
  .hardware-grid > .hw-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .hardware-grid > .hw-card { flex-basis: 100%; }
}

/* ---------------- FAQ ---------------- */
.faq {
  display: flex; flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-1);
}
.faq__q { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink-1); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq__q::after { content: "+"; font-weight: 400; color: var(--magenta); font-size: 24px; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { margin-top: 12px; font-size: 15px; color: var(--fg-2); line-height: 1.6; }

/* ---------------- Social ---------------- */
/* Daniel's social row above the footer, on every page (spec V4-4): the same
   page grey as the footer, the eyebrow at the column start like the homepage
   eyebrows, the heading ExtraBold 31.5 px centred and four navy icons 56 px
   at the PSD's ~97 px pitch (x 546/644/740/837). The icons are images, not
   type, so a link around one (once a URL exists) shows only the focus ring. */
.social {
  background: var(--bg);
  font-family: var(--font-archivo);
}
/* The homepage banner already ends in 26 px of page grey (its ground's empty
   rows), and subpage sections end in their own padding: 2 px on top puts the
   eyebrow ~28 px under the banner's last mosaic row, as in the PSD. */
.social__inner { padding-top: 2px; padding-bottom: 28px; }
.social__eyebrow {
  font-family: var(--font-archivo);
  font-size: 17px; font-weight: 500; line-height: 20px;
  color: var(--fg-1); margin: 0 0 31px;
}
.social__heading {
  font-family: var(--font-archivo);
  font-size: 31.5px; font-weight: 800; line-height: 1.1; letter-spacing: 0;
  text-align: center; color: var(--fg-1); margin: 0 0 51px;
}
.social__icons {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 40px; list-style: none; padding: 0; margin: 0;
}
.social__icons a { display: block; }
.social__icons a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* YouTube's mark is taller than wide; `contain` keeps every icon in a 56 px box. */
.social__icon { display: block; width: 56px; height: 56px; object-fit: contain; }
/* Four icons with 40 px gaps need 344 px: on the narrowest phones the gap
   shrinks so the row stays one row. */
@media (max-width: 420px) {
  .social__icons { gap: 24px; }
}

/* ---------------- Footer ---------------- */
/* Daniel's PSD (v4): on the page grey, the navy logo centred over the four
   `_nav.toml` columns, one Medium 17 px Archivo Condensed for headings,
   links and the legal line. Line height 1.2 gives the PSD's 20 px rows. */
.footer {
  background: var(--bg);
  font-family: var(--font-archivo);
  font-size: 17px; font-weight: 500; line-height: 1.2;
  color: var(--fg-1);
  padding: 36px 0 24px;
}
.footer__brand { display: flex; justify-content: center; margin-bottom: 22px; }
/* Columns as wide as their longest link and centred as a group: the PSD's
   column starts (x 380/573/758/966) follow from ~98 px between them. */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  column-gap: 98px; row-gap: 32px;
  margin-bottom: 28px;
}
/* Heading, one blank line, then the links: the PSD's blank row is one line
   box, so it follows the type. */
.footer__col h4 {
  font-family: var(--font-archivo);
  font-size: 17px; font-weight: 500; line-height: 1.2;
  text-transform: uppercase; color: var(--fg-1);
  margin: 0 0 1lh;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col a { color: var(--fg-1); }
.footer__col a:hover { color: var(--magenta); }
.footer__bottom { text-align: center; }
.footer__bottom a { color: var(--fg-1); }
.footer__bottom a:hover { color: var(--magenta); }

/* Four columns need ~690 px; below that two by two, on the narrowest phones
   one under the other. */
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 389px) {
  .footer__grid { grid-template-columns: max-content; }
}

/* ---------------- Page chrome ---------------- */
.page-hero {
  padding: 72px 0 48px;
  position: relative;
}
.page-hero h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 18px; }
.page-hero .lede { font-size: 18px; }

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--fg-3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--fg-3); }
.breadcrumb a:hover { color: var(--magenta); }
.breadcrumb__sep { opacity: 0.5; }

/* The lede below a page heading (`PageHero`). */
.page-hero__lede { margin-top: 18px; }

/* ---------------- Content pages ---------------- */

/* --- classes of the pages ported in phase 2 --- */

/* The 404 page is centred entirely. */

/* ---------------- Forms / checkout ---------------- */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 48px 0 96px;
}
.checkout-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.checkout-progress__step {
  flex: 1; height: 4px; border-radius: 999px; background: var(--bg-mist-2);
}
.checkout-progress__step.is-done { background: var(--magenta); }
.checkout-progress__step.is-active { background: var(--magenta); opacity: 0.6; }

.checkout-stepinfo { margin-bottom: 28px; }
.step-label { font-size: 13px; color: var(--magenta); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.checkout-stepinfo h2 { font-size: 32px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.option-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px 22px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.option-tile:hover { border-color: var(--line-strong); }
.option-tile.is-active {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(181,31,117,0.12);
}
.option-tile__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink-1); }
.option-tile__desc { font-size: 13px; color: var(--fg-2); }
.option-tile__price { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-1); margin-top: auto; padding-top: 4px; }
.option-tile__media { aspect-ratio: 4/3; background: var(--bg-mist); border-radius: 10px; overflow: hidden; display: grid; place-items: center; margin-bottom: 4px; }
.option-tile__media img { max-width: 80%; max-height: 80%; }

/* `min-width: 0` + `width: 100%`: an input has its own intrinsic minimum
   (the default `size`) below which a `1fr` grid column cannot shrink —
   fields in `.field-row` then stuck out of the card to the right. */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-1); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit; color: var(--ink-1);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(181,31,117,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  position: sticky; top: 96px;
  height: fit-content;
}
.summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 14px; color: var(--fg-2); }
.summary__row strong { color: var(--ink-1); font-weight: 500; }
.summary__divider { height: 1px; background: var(--line); margin: 8px 0; }

/* --- waitlist and wizard (phase 4) ---------------------------------------
   The waitlist is the only place on the site that sends anything to a
   server; the wizard is an interface without submission, hence it stays
   behind `basic_auth`. Both without a line of JavaScript. */

.section--waitlist { padding: 48px 0 72px; }
.container--form { max-width: 520px; }
.waitlist-head { text-align: center; margin-bottom: 28px; }
.waitlist-head h1 { font-size: 34px; margin-top: 10px; margin-bottom: 14px; }
.waitlist-head .lede { margin: 0 auto; max-width: 450px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--fg-3);
  margin: 6px 0 18px; cursor: pointer;
}
.consent input { margin-top: 3px; flex-shrink: 0; }
.consent a { color: var(--magenta); font-weight: 500; }

/* Bot trap: off-screen for a human, hidden from a screen reader. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn--block { width: 100%; justify-content: center; }

.callout {
  background: var(--magenta-50);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-1);
  display: flex; gap: 12px; align-items: flex-start;
}
.callout__icon {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--magenta); color: #fff;
  display: grid; place-items: center;
}
.callout--success { background: var(--green-50); border: 1px solid var(--green); align-items: center; }
.callout--success .callout__icon { background: var(--green); }
.callout--warn { background: var(--amber-50); border: 1px solid var(--amber-line); align-items: center; }
.callout--warn .callout__icon { background: var(--amber); }
.callout__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.callout--success .callout__title { color: var(--green-800); }
.callout--success .callout__text { color: var(--green-700); }
.callout--lead { margin-bottom: 24px; }

@media (max-width: 1024px) {
  .checkout-wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .option-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .option-tile { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; }
  .option-tile__price { margin-top: 0; }
}
@media (max-width: 640px) {
  .option-grid, .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

/* ---------------- Wizard ---------------- */

/* --- wizard: steps via :target (#7) --------------------------------------
   A step is a section with its own `id`. The one the address points to is
   shown; when it points to none (arriving at the page), the first one shows.
   This is exactly what `:has()` is for — without it the default state could
   not be told apart from none. */
.section--wizard { padding: 32px 0 0; }
.wizard__step { display: none; }
.wizard__step:target { display: block; }
.wizard:not(:has(.wizard__step:target)) .wizard__step--first { display: block; }

/* A terminal tile is a `<label>` with a hidden radio inside. The selected
   state is thus drawn not by JavaScript but by `:has()` over the checked
   input. */
.option-tile__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-tile:has(.option-tile__input:checked) {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(181,31,117,0.12);
}
.option-tile:has(.option-tile__input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.option-tile__price small { font-size: 13px; font-weight: 500; color: var(--fg-3); margin-left: 4px; }

/* Recap of the selected terminal. Without JS this only works by
   enumeration: all options are in the HTML and CSS lights up the one whose
   radio is checked. The list of rules is thus tied to the list of terminals
   in the content — **if a model is added, a line is added here too.** */
.pick > span { display: none; }
.pick > .pick__empty { display: inline; }
.wizard:has(input[value="n92"]:checked) .pick > .pick__empty,
.wizard:has(input[value="n62"]:checked) .pick > .pick__empty,
.wizard:has(input[value="ef20"]:checked) .pick > .pick__empty,
.wizard:has(input[value="ef60"]:checked) .pick > .pick__empty,
.wizard:has(input[value="ef930"]:checked) .pick > .pick__empty { display: none; }
.wizard:has(input[value="n92"]:checked) .pick > .pick__n92,
.wizard:has(input[value="n62"]:checked) .pick > .pick__n62,
.wizard:has(input[value="ef20"]:checked) .pick > .pick__ef20,
.wizard:has(input[value="ef60"]:checked) .pick > .pick__ef60,
.wizard:has(input[value="ef930"]:checked) .pick > .pick__ef930 { display: inline; }

.review { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.summary__note { font-size: 12px; color: var(--fg-3); margin-top: 8px; }
.field--span-2 { grid-column: span 2; }
.is-hidden { display: none; }

.callout--stacked { margin-top: 16px; }

/* ---------------- Accessibility helpers ---------------- */

/* The "skip to content" link — off-screen until it receives focus. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink-1); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* Screen-reader-only text (icon button label, hidden page heading). */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* The `.is-hidden-mobile` rule itself lives in Header's 640px query. */
