/* Meilen-Gegenwert Rechner · ScaleUpYourCARD
   Radius-Regel: Container 22px, Eingabefelder 12px, Buttons/Chips/Badges = Pille. */

@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/fonts/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('assets/fonts/figtree-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F8FC;
  --surface: #FFFFFF;
  --ink: #101820;
  --ink-soft: #3B4652;
  --muted: #5A6571;
  --line: rgba(16, 24, 32, .12);
  --line-strong: rgba(16, 24, 32, .22);
  --sky: #A6C9EC;
  --sky-soft: #E2EEF9;
  --sky-deep: #2F6EAD;
  --volt: #EEFF00;
  --volt-ink: #101820;

  /* Abflugtafel: bleibt in beiden Modi dunkel */
  --board: #111A23;
  --board-cell: #1B2631;
  --board-line: rgba(255, 255, 255, .08);
  --board-text: #F1F5F9;
  --board-muted: #8E9BA8;

  --bad: #E5544B;
  --ok: #F2B32E;
  --top: #2DB56E;

  --shadow: 0 24px 60px -24px rgba(31, 74, 117, .35), 0 2px 6px rgba(31, 74, 117, .06);
  --r-box: 22px;
  --r-field: 12px;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1117;
    --surface: #141E28;
    --ink: #EEF3F8;
    --ink-soft: #C3CDD7;
    --muted: #9AA7B4;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .20);
    --sky-soft: #172636;
    --sky-deep: #A6C9EC;
    --board: #060B10;
    --board-cell: #111A23;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 32rem at 100% -10%, color-mix(in srgb, var(--sky) 55%, transparent), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }

main, .topbar, .footer {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Kopfzeile ---------- */
.topbar { padding: 20px 0 8px; }
.brand { display: inline-block; border-radius: 8px; }
.brand img { width: 118px; height: auto; }
@media (prefers-color-scheme: dark) {
  .brand img { filter: brightness(0) invert(1); opacity: .92; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-template-areas:
    "copy examples"
    "ticket ticket"
    "scale scale";
  column-gap: 48px;
  row-gap: 28px;
  padding: 24px 0 72px;
  align-items: end;
}
.hero-copy { grid-area: copy; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .95;
  margin: 0;
}
h1 { font-size: clamp(46px, 6vw, 80px); text-wrap: balance; }
.mark {
  background: linear-gradient(180deg, transparent 58%, var(--volt) 58%, var(--volt) 92%, transparent 92%);
  padding-inline: .04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .mark { background: none; color: var(--volt); }
}
.lede {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 42ch;
}

.examples { grid-area: examples; justify-self: end; max-width: 380px; }
.examples-label { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.chip small { font-weight: 500; color: var(--muted); }
.chip:hover { background: var(--surface); border-color: var(--ink); }
.chip:active { transform: scale(.97); }

/* ---------- Bordkarte ---------- */
.ticket {
  grid-area: ticket;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  background: var(--surface);
  border-radius: var(--r-box);
  box-shadow: var(--shadow);
  animation: rise .7s var(--ease) both;
}
.ticket-main { padding: 28px 32px 30px; }
.ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; font-size: 14px; color: var(--muted);
}
.ticket-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--ink);
}
.ticket-kicker .icon { color: var(--sky-deep); width: 18px; height: 18px; }
.ticket-count { font-weight: 600; }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; }
.field small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.field-name { margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-field);
  background: var(--paper);
  font-size: 18px;
  font-weight: 600;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
input[type="text"]::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
input[type="text"]:hover { border-color: var(--ink-soft); }
input[type="text"]:focus { outline: none; border-color: var(--sky-deep); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 55%, transparent); }
.field-name input { font-size: 20px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 40px; text-align: right; }
.unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--muted); pointer-events: none;
}
.field.has-error input { border-color: var(--bad); }

/* Abriss mit Kerben */
.ticket-stub {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 10px;
  padding: 28px 30px;
  background: var(--board);
  color: var(--board-text);
  border-radius: 0 var(--r-box) var(--r-box) 0;
}
.ticket-stub::before {
  content: "";
  position: absolute; left: 0; top: 16px; bottom: 16px;
  border-left: 2px dashed rgba(255, 255, 255, .22);
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute; right: 330px; width: 26px; height: 26px;
  margin-right: -13px;
  border-radius: 50%;
  background: var(--paper);
  z-index: 1;
}
.ticket::before { top: -13px; }
.ticket::after { bottom: -13px; }

.stub-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--board-muted);
}
.flap-row { display: flex; align-items: flex-end; gap: 10px; }
.flap { display: flex; gap: 4px; perspective: 400px; }
.flap-cell {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 68px;
  border-radius: 6px;
  background: linear-gradient(180deg, #24313D 0 49.5%, #1A242E 50.5% 100%);
  font-family: var(--font-display);
  font-size: 58px; line-height: 1;
  padding-top: 4px;
  color: var(--board-text);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05), 0 2px 0 rgba(0, 0, 0, .35);
}
.flap-cell::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0, 0, 0, .55);
}
.flap-cell.is-sep { width: 18px; background: none; box-shadow: none; }
.flap-cell.is-sep::after { display: none; }
.flap-cell.is-blank { color: transparent; }
.flap-cell.flip { animation: flip .42s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.flap-unit { font-family: var(--font-display); font-size: 30px; color: var(--board-muted); padding-bottom: 4px; }

.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .08); color: var(--board-muted);
  transition: background-color .3s, color .3s;
}
.verdict-text { margin: 0; font-size: 15px; line-height: 1.4; color: #C9D3DC; max-width: 30ch; min-height: 2.8em; }
[data-tier="bad"] .verdict { background: var(--bad); color: #fff; }
[data-tier="ok"] .verdict { background: var(--ok); color: #1A1400; }
[data-tier="top"] .verdict { background: var(--top); color: #04140B; }
[data-tier="error"] .verdict { background: rgba(229, 84, 75, .18); color: #FF9C95; }

/* ---------- Skala ---------- */
.scale { grid-area: scale; padding: 0 4px; }
.scale-track {
  container-type: inline-size;
  position: relative; display: grid; grid-template-columns: 40fr 10fr 50fr; gap: 3px;
  height: 10px;
}
.zone { border-radius: 999px; }
.zone-bad { background: color-mix(in srgb, var(--bad) 75%, transparent); }
.zone-ok { background: var(--ok); }
.zone-top { background: color-mix(in srgb, var(--top) 85%, transparent); }
.scale-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  transform: translateX(calc(var(--pos, 0) * 1cqw));
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.scale-pin {
  position: absolute; left: 0; top: 50%;
  display: grid; place-items: center;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 6px 14px rgba(16, 24, 32, .3);
  transition: opacity .3s;
}
.scale-pin .icon { width: 20px; height: 20px; transform: rotate(45deg); }
.scale.is-empty .scale-pin { opacity: 0; }
.scale-ticks { position: relative; height: 24px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.scale-ticks span { position: absolute; left: calc(var(--at) * 1%); transform: translateX(-50%); white-space: nowrap; }
.scale-ticks span:first-child { transform: none; }
.scale-ticks span:last-child { transform: translateX(-100%); }
.scale-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.scale-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-bad { background: var(--bad); }
.dot-ok { background: var(--ok); }
.dot-top { background: var(--top); }

/* ---------- Vergleichstafel ---------- */
.board-section { padding: 24px 0 88px; }
.section-head { max-width: 60ch; margin-bottom: 26px; }
h2 { font-size: clamp(40px, 5vw, 60px); }
.section-head p, .formula-main > p { margin: 12px 0 0; color: var(--ink-soft); font-size: 17px; }

.board {
  background: var(--board);
  color: var(--board-text);
  border-radius: var(--r-box);
  padding: 10px;
  box-shadow: var(--shadow);
}
.board-head, .row-select {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 130px 120px 150px;
  align-items: center;
  column-gap: 16px;
}
.board-head {
  padding: 10px 70px 10px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--board-muted);
}
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center;
  border-radius: 14px;
  background: var(--board-cell);
  transition: background-color .2s, box-shadow .2s;
  animation: row-in .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.row:hover { background: #22303C; }
.row.is-active { box-shadow: inset 4px 0 0 var(--volt); background: #22303C; }
.row-select {
  width: 100%; min-height: 64px; padding: 10px 0 10px 18px;
  border: 0; background: none; text-align: left; cursor: pointer; border-radius: 14px;
}
.row-rank { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--board-muted); }
.row.is-best .row-rank { color: var(--volt); }
.row-name { min-width: 0; }
.row-name strong { display: block; font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name small { display: block; color: var(--board-muted); font-size: 13px; }
.row-miles { color: #C9D3DC; font-weight: 600; }
.row-value { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: .02em; }
.row-value small { font-size: 18px; color: var(--board-muted); margin-left: 3px; }
.row-status {
  justify-self: start; white-space: nowrap;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--board-muted);
}
.row[data-tier="bad"] .row-status { background: rgba(229, 84, 75, .18); color: #FF8F87; }
.row[data-tier="ok"] .row-status { background: rgba(242, 179, 46, .18); color: #FFCB5C; }
.row[data-tier="top"] .row-status { background: rgba(45, 181, 110, .2); color: #5FE29A; }
.row-del {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: none; color: var(--board-muted); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.row-del:hover { background: rgba(229, 84, 75, .18); color: #FF8F87; }
.row-del:disabled { opacity: .25; cursor: not-allowed; background: none; color: var(--board-muted); }
.row-del .icon { width: 20px; height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid rgba(16, 24, 32, .1); border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn-volt { background: var(--volt); color: var(--volt-ink); box-shadow: 0 12px 28px -10px rgba(170, 182, 0, .7); }
.btn-volt:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(170, 182, 0, .8); }
.btn-volt:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 20px; height: 20px; }
.board-section .btn { margin-top: 20px; }

/* ---------- Formel ---------- */
.formula-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main" "terms" "tip";
  gap: 40px;
  padding: 72px 0 88px;
  border-top: 1px solid var(--line);
}
.formula-main { grid-area: main; }
.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
}
.formula .op { color: var(--muted); }
.formula .num { padding: 0 .12em; border-radius: 6px; background: var(--sky-soft); }
.formula .res { padding: 0 .2em; border-radius: 6px; background: var(--volt); color: var(--volt-ink); }
.formula .lbl { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
.formula .term { display: inline-flex; flex-direction: column; align-items: center; }
.terms { grid-area: terms; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 40px; }
.terms div { padding-left: 18px; border-left: 3px solid var(--sky); }
.terms dt { font-weight: 800; font-size: 17px; }
.terms dd { margin: 4px 0 0; color: var(--ink-soft); }
.tip {
  grid-area: tip;
  max-width: 760px;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r-box);
  background: var(--sky-soft);
  font-size: 16px;
}
.tip p { margin: 0; color: var(--ink-soft); }
.tip .icon { width: 22px; height: 22px; color: var(--sky-deep); margin-top: 2px; }

/* ---------- CTA ---------- */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "title text" "title action";
  align-items: center; gap: 18px 56px;
  padding: 56px clamp(24px, 6vw, 72px);
  margin-bottom: 40px;
  border-radius: var(--r-box);
  background:
    radial-gradient(40rem 20rem at 110% 120%, rgba(255, 255, 255, .55), transparent 60%),
    var(--sky);
  color: #101820;
}
.cta h2 { grid-area: title; max-width: 16ch; }
.cta p { grid-area: text; align-self: end; margin: 0; max-width: 46ch; font-size: 18px; color: #26313C; }
.cta .btn { grid-area: action; align-self: start; justify-self: start; }

/* ---------- Ergebnis-Pille (nur Mobile, wenn die Anzeige aus dem Bild ist) ---------- */
.live-pill {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  display: none; align-items: baseline; gap: 6px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: var(--board); color: var(--board-text);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55);
  transform: translate(-50%, 140%);
  transition: transform .35s var(--ease);
  pointer-events: none;
}
.live-pill.is-visible { transform: translate(-50%, 0); }
.live-value { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.live-unit { font-family: var(--font-display); font-size: 18px; color: var(--board-muted); margin-right: 8px; }
.live-verdict {
  align-self: center;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .08); color: var(--board-muted);
}
.live-pill[data-tier="bad"] .live-verdict { background: var(--bad); color: #fff; }
.live-pill[data-tier="ok"] .live-verdict { background: var(--ok); color: #1A1400; }
.live-pill[data-tier="top"] .live-verdict { background: var(--top); color: #04140B; }
.live-pill[data-tier="error"] .live-verdict { background: rgba(229, 84, 75, .18); color: #FF9C95; }

/* ---------- Cookie-Banner ---------- */
.consent {
  position: fixed; z-index: 20;
  left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 560px; margin-left: auto;
  padding: 22px 22px 20px;
  border-radius: var(--r-box);
  background: var(--board); color: var(--board-text);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55);
  animation: rise .5s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: .01em; }
.consent-text { margin: 0; font-size: 14px; line-height: 1.5; color: #C9D3DC; }
.consent-text a { color: var(--board-text); text-underline-offset: 3px; }
.consent-status { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--volt); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent .btn { width: 100%; min-height: 48px; padding: 12px 18px; }
.btn-plain { background: rgba(255, 255, 255, .1); color: var(--board-text); border-color: rgba(255, 255, 255, .18); }
.btn-plain:hover { background: rgba(255, 255, 255, .16); }
.has-consent-banner .live-pill { visibility: hidden; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 24px 0 72px; }
.legal > * { max-width: 760px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--ink-soft); text-decoration: none;
}
.legal-back:hover { color: var(--ink); }
.legal-back .icon { transform: rotate(180deg); }
.legal h1 { margin-top: 16px; font-size: clamp(44px, 6vw, 68px); }
.legal-updated { margin: 10px 0 36px; color: var(--muted); font-weight: 600; }
.legal h2 { margin: 40px 0 12px; font-size: clamp(26px, 3vw, 32px); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal a { color: var(--sky-deep); text-underline-offset: 3px; }
.legal-data { padding: 18px 20px; margin-bottom: 12px; border-radius: var(--r-box); background: var(--sky-soft); }
.legal-data p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 8px 0 40px; color: var(--muted); font-size: 14px;
}
.claim { margin: 0; font-style: italic; font-weight: 600; color: var(--ink-soft); }
.footer nav { display: flex; gap: 20px; }
.footer a, .link-button { color: inherit; text-underline-offset: 3px; }
.link-button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.footer a:hover, .link-button:hover { color: var(--ink); }

/* ---------- Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes flip {
  0% { transform: rotateX(-90deg); filter: brightness(1.6); }
  60% { transform: rotateX(12deg); }
  100% { transform: rotateX(0); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "examples" "ticket" "scale"; row-gap: 22px; }
  .examples { justify-self: stretch; max-width: none; min-width: 0; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .live-pill { display: inline-flex; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub {
    border-radius: 0 0 var(--r-box) var(--r-box);
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  }
  .ticket-stub .stub-label { width: 100%; }
  .ticket-stub .verdict-text { width: 100%; min-height: 0; max-width: none; }
  .ticket-stub::before { left: 16px; right: 16px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .22); }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub::after {
    content: "";
    position: absolute; top: -13px; left: -13px; right: -13px; height: 26px;
    background:
      radial-gradient(circle at 13px 13px, var(--paper) 12.5px, transparent 13px),
      radial-gradient(circle at calc(100% - 13px) 13px, var(--paper) 12.5px, transparent 13px);
    pointer-events: none;
  }
  .terms { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ticket-main { padding: 22px 18px 24px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid .field:last-child { grid-column: 1 / -1; }
  .ticket-stub { padding: 24px 18px; }
  .flap-cell { width: 40px; height: 60px; font-size: 50px; }
  .flap-cell.is-sep { width: 14px; }
  .board { padding: 6px; }
  .board-head { display: none; }
  .row-select {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "rank name value" "rank miles status";
    row-gap: 4px; column-gap: 12px; padding: 12px 0 12px 14px;
  }
  .row-rank { grid-area: rank; }
  .row-name { grid-area: name; }
  .row-name strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; line-height: 1.25; }
  .row-miles { grid-area: miles; font-size: 13px; }
  .row-value { grid-area: value; justify-self: end; font-size: 30px; }
  .row-status { grid-area: status; justify-self: end; }
  .row { grid-template-columns: minmax(0, 1fr) 48px; }
  .scale-legend { flex-direction: column; gap: 6px; }
  .btn { width: 100%; }
  .consent { left: 12px; right: 12px; padding: 20px 18px 18px; }
  .cta { grid-template-columns: 1fr; grid-template-areas: "title" "text" "action"; padding: 40px 22px; }
}
@media (max-width: 340px) {
  .field-grid { grid-template-columns: 1fr; }
  .flap-cell { width: 34px; height: 52px; font-size: 44px; }
}
