/* Fonts: Latin-only files in fonts/ (SIL Open Font License, see fonts/OFL-*.txt). Korean words use the device's own Korean font. */
@font-face {
  font-family: "Londrina Solid"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/londrina-solid-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Londrina Solid"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/londrina-solid-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/heebo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/heebo-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/heebo-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: an arrivals-board page — a peach band with one loud headline, three question boxes sitting on the band's edge, then ink-outlined app cards stamped Works / Partly / Blocked. */
:root {
  --cream: #fff8eb;      /* page */
  --band: #f7d6c1;       /* hero band, from the peach palette */
  --clay: #d89f79;       /* primary, decorative fills */
  --clay-ink: #9a5432;   /* primary when it must be read as text */
  --ink: #050315;        /* text and outlines */
  --muted: #5d5766;      /* secondary text, ink-leaning */
  --surface: #ffffff;
  --sand: #eeece9;
  --line: #050315;
  --tint: #fbe7d9;       /* "use this instead" box */
  --hero-color: var(--clay-ink); /* line art in the band */
  --hero-alpha: .45;     /* its strength: about 1.8:1 against the band; the dark value below gives the same contrast on the dark band */

  --yes: #1d6e46;  --yes-soft: #cdeedb;
  --part: #7a5200; --part-soft: #fbe2a2;
  --no: #a8261f;   --no-soft: #f8cdc7;
  /* stripe on the left edge of each card: brighter than the text colors so it reads at a glance */
  --yes-bar: #2e9d62; --part-bar: #e2a516; --no-bar: #d8453a;
  /* text on verdict badges and summary chips: ink in light mode, the verdict color in dark mode */
  --yes-text: var(--ink); --part-text: var(--ink); --no-text: var(--ink);

  --font-display: "Londrina Solid", "Arial Black", Impact, sans-serif;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-kr: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; /* device fonts, nothing downloaded */

  --r-box: 22px;
  --r-card: 18px;
  --stroke: 1.5px;
  --page: 800px;          /* content column width on wide screens: band text, questions, summary and cards share one left edge */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #18130f; --band: #6a3a2a; --clay: #e3a47d; --clay-ink: #f0b892;
    --ink: #fff8eb; --muted: #c8bcb1; --surface: #231c18; --sand: #2e251f; --line: #9a8c81; --tint: #3a2b26; --hero-alpha: .30;
    --yes: #7ed9a6; --yes-soft: #18382a; --part: #f3c96b; --part-soft: #3a2f14; --no: #ff9a90; --no-soft: #43201d;
    --yes-bar: #4fc285; --part-bar: #f0c050; --no-bar: #ff7a6e;
    --yes-text: var(--yes); --part-text: var(--part); --no-text: var(--no);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #18130f; --band: #6a3a2a; --clay: #e3a47d; --clay-ink: #f0b892;
  --ink: #fff8eb; --muted: #c8bcb1; --surface: #231c18; --sand: #2e251f; --line: #9a8c81; --tint: #3a2b26; --hero-alpha: .30;
  --yes: #7ed9a6; --yes-soft: #18382a; --part: #f3c96b; --part-soft: #3a2f14; --no: #ff9a90; --no-soft: #43201d;
  --yes-bar: #4fc285; --part-bar: #f0c050; --no-bar: #ff7a6e;
  --yes-text: var(--yes); --part-text: var(--part); --no-text: var(--no);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 6px; }

/* ---------- band (hero) ---------- */
.band {
  background: var(--band);
  padding-block: 18px 92px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band-inner { max-width: var(--page); margin: 0 auto; position: relative; }
.topline {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14px; color: var(--muted);
}
.brand { font-family: var(--font-display); font-size: 24px; color: var(--ink); letter-spacing: .01em; }
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 96px);
  line-height: .9;
  letter-spacing: -.005em;
  margin: 36px 0 18px;
  max-width: 13ch;
  text-wrap: balance;
}
.lede { margin: 0; max-width: 46ch; font-size: 17px; }

/* decorative line art in the band: the PNG is used only as a mask, so the lines take the --hero-color token */
.hero-art {
  pointer-events: none;
  background-color: var(--hero-color);
  opacity: var(--hero-alpha);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@media (min-width: 761px) {
  /* computer: a 2-line title ("Which Korean apps / work for you?") so the summary and the first card fit in a 1280x720 window */
  h1 { font-size: 70px; max-width: none; margin: 22px 0 16px; }
  /* the "Why do some Korean apps need a Korean phone number?" line moves down next to "Before you fly"; question boxes to summary is 16px */
  .term { order: 1; }
  .fine, .report, footer { order: 2; }
  .results { margin-top: -12px; }
  .hero-art {
    position: absolute; right: 0;
    /* the question boxes start 28px below the band text (92px band padding - 64px overlap); the art ends 16px above them */
    bottom: -12px;
    /* same font as the lede, so 46ch here equals the lede's max width: keeps the train 16px clear of the lede (train starts at 19.2% of the art's width) */
    font-size: 17px;
    /* 404px cap = the drawing (71.5% of the box width tall) fits between the brand line's top and its bottom line */
    width: min(404px, calc((100% - 46ch - 16px) / 0.808));
    aspect-ratio: 1000 / 750;
    /* push the image's transparent right and bottom margins out, so the drawing itself meets the column edge */
    transform: translate(1.2%, 2.4%);
    -webkit-mask-image: url("assets/hero-desktop.png"); mask-image: url("assets/hero-desktop.png");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
}

/* ---------- main column ---------- */
.wrap {
  box-sizing: content-box; /* so the 800px column excludes the side padding, matching .band-inner */
  max-width: var(--page);
  margin: 0 auto;
  padding-block: 0 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 28px;
}

/* ---------- three question boxes, sitting on the band's edge ---------- */
.questions {
  margin-top: -64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.q {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-box);
  padding: 16px;
}
.q legend {
  float: left; width: 100%;
  font-weight: 700; font-size: 15px;
  margin-bottom: 10px;
}
.opts { clear: both; display: grid; gap: 8px; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label {
  display: flex; flex-direction: column;
  padding: 10px 14px;
  border: var(--stroke) solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.25;
  background: var(--surface);
}
.opts label small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.opts label:hover { background: var(--sand); }
.opts input:checked + label { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.opts input:checked + label small { color: var(--cream); opacity: .78; }
.opts input:focus-visible + label { outline: 3px solid var(--clay); outline-offset: 2px; }
/* "Tip" line, text set by app.js from the phone answer. Phones: inside the phone box. Computers: in the empty space under "How you pay". */
.tip { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); clear: both; }
.tip b { color: var(--ink); font-weight: 700; flex: none; }
/* hanging indent: "Tip:" sits in its own column, so wrapped lines start under the sentence, not under "Tip:" */
.tip { display: flex; gap: .3em; align-items: baseline; }
.tip [lang="ko"] { font-family: var(--font-kr); }
/* Korean words (본인인증, 모바일 코리아투어카드…) never break in the middle */
[lang="ko"] { word-break: keep-all; }
/* operator-only notice after ?notrack=1 / ?notrack=0 */
.op-note {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10;
  margin: 0; padding: 10px 14px; border-radius: 10px; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--cream); font-size: 14px;
}
/* tips with a short version: long on 400-760px phones, short on narrower phones and on computers */
.tip-short { display: none; }
@media (max-width: 399px), (min-width: 761px) {
  .tip-text .tip-long { display: none; }
  .tip-text .tip-short { display: inline; }
}
.tip-beside { display: none; }
@media (max-width: 760px) {
  .tip { margin-top: 4px; font-size: 11.5px; line-height: 1.3; }
  .q-stack { padding-bottom: 8px; }
  /* the tip takes 2 lines at 375px: the phone answers sit 1px tighter to keep the first card on the first screen */
  .q-stack .opts { gap: 4px; }
  .q-stack .opts label { padding-block: 4px; }
}
@media (min-width: 761px) {
  .tip-in-phone { display: none; }
  /* pin the three boxes to the three columns of row 1; the tip shares the third cell with "How you pay" */
  .questions > fieldset { grid-row: 1; }
  .questions > fieldset:nth-of-type(1) { grid-column: 1; }
  .questions > fieldset:nth-of-type(2) { grid-column: 2; }
  .questions > fieldset:nth-of-type(3) { grid-column: 3; }
  /* same grid cell as the pay box, sitting at the bottom of the row the taller phone box sets, so the row does not grow */
  .tip-beside { display: flex; grid-column: 3; grid-row: 1; align-self: end; margin: 0; padding: 0 2px 2px; font-size: 11.5px; line-height: 1.25; }
}
/* computers: a small left-pointing triangle ties the tip to the phone box on its left */
/* inside the label text: vertical-align: middle puts its centre on the middle of the lowercase letters, whatever the font */
.tip-arrow {
  display: inline-block; vertical-align: middle; margin-right: .3em;
  width: 0; height: 0;
  border-style: solid; border-width: 3.5px 6px 3.5px 0;
  border-color: transparent var(--muted) transparent transparent;
}
/* no tip for "Korean number in my own name" (app.js sets hidden) */
.questions .tip[hidden] { display: none; }
.note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--part-soft);
  color: var(--ink);
}

/* ---------- 본인인증 explainer (minimised) ---------- */
.term { font-size: 14px; color: var(--muted); }
.term summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 3px; padding-block: 11px; } /* 44px tap height */
.term p { margin: 8px 0 0; max-width: 62ch; }
/* phones: the "Why do some Korean apps need a Korean phone number?" line stays on one line, so the first card still fits the first screen */
@media (max-width: 760px) { .term summary { font-size: 12.5px; } }
@media (max-width: 374px) { .term summary { font-size: 12px; } }
.kr-stamp {
  font-family: var(--font-kr); font-weight: 800;
  display: inline-block; transform: rotate(-3deg);
  border: 2px solid var(--no); color: var(--no);
  border-radius: 6px; padding: 0 6px; margin-right: 4px;
}

/* ---------- results ---------- */
.results { display: grid; gap: 12px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* summary chips use the same colors and outline as the verdict badges on the cards */
.counts { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 9px;
  border: var(--stroke) solid var(--line); border-radius: 999px;
  font-weight: 500; line-height: 1.2;
}
.chip b { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1; }
.chip.yes { background: var(--yes-soft); color: var(--yes-text); }
.chip.partly { background: var(--part-soft); color: var(--part-text); }
.chip.no { background: var(--no-soft); color: var(--no-text); }
/* chips are buttons that jump to the first card with that verdict: same look, slightly darker on hover */
button.chip { margin: 0; font: inherit; font-weight: 500; line-height: 1.2; cursor: pointer; }
button.chip:hover:not(:disabled) { background: color-mix(in srgb, currentColor 12%, var(--chip-bg)); }
button.chip.yes { --chip-bg: var(--yes-soft); } button.chip.partly { --chip-bg: var(--part-soft); } button.chip.no { --chip-bg: var(--no-soft); }
button.chip:disabled { cursor: default; }
button.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#list .card { scroll-margin-top: 16px; } /* room above a card the chips scroll to */
.dot { width: 10px; height: 10px; border-radius: 50%; border: var(--stroke) solid var(--line); display: inline-block; flex: none; }
.dot.yes { background: var(--yes); } .dot.partly { background: var(--part); } .dot.no { background: var(--no); }
/* "Copy link": a small grey ring with a link icon, smaller and lighter than the cards' arrow buttons.
   The button itself is an invisible 44x44 tap area; negative block margins keep the row as low as the chips.
   margin-right puts the ring's centre on the same vertical line as the cards' arrow buttons:
   card border 1.5 + card row right padding + half the 34px arrow - half of this 44px button. */
.summary .share {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  margin-block: -9px; margin-left: auto;
  margin-right: calc(1.5px + 18px + 17px - 22px);
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
}
.share-ring {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: var(--stroke) solid var(--muted); border-radius: 50%;
}
.summary .share:hover { color: var(--ink); }
.summary .share:hover .share-ring { border-color: var(--ink); }
/* hidden "Copy address" button in the report box (kept as a small text button) */
.report .share { font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
.toast { margin: 0; min-height: 0; font-size: 13px; color: var(--muted); }
.toast:empty { display: none; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* verdict color stripe on the left edge, with a thin ink line so it reads on any background */
.card {
  --bar: var(--line);
  background: var(--surface);
  border: var(--stroke) solid var(--line);
  border-radius: var(--r-card);
  box-shadow: inset 9px 0 0 var(--bar), inset 10.5px 0 0 var(--line);
}
.card[data-verdict="yes"] { --bar: var(--yes-bar); }
.card[data-verdict="partly"] { --bar: var(--part-bar); }
.card[data-verdict="no"] { --bar: var(--no-bar); }
/* "> summary" so only the card's own top row gets this layout, not the inner "How to start" / "Sources" rows */
.card > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px 16px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "name pill chev" "what what what";
  gap: 4px 10px;
  align-items: center;
}
.card > summary::-webkit-details-marker { display: none; }
.name { grid-area: name; font-family: var(--font-display); font-size: 26px; line-height: 1.05; min-width: 0; }
.name .kr { font-family: var(--font-kr); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 8px; vertical-align: 3px; white-space: nowrap; display: inline-block; }
.what { grid-area: what; margin: 0; font-size: 14.5px; color: var(--muted); max-width: 62ch; }

.pill {
  grid-area: pill; justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 11px;
  border: var(--stroke) solid var(--line);
  border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  white-space: nowrap;
}
.pill .dot { width: 11px; height: 11px; }
.pill.yes { background: var(--yes-soft); color: var(--yes-text); }
.pill.partly { background: var(--part-soft); color: var(--part-text); }
.pill.no { background: var(--no-soft); color: var(--no-text); }
/* round arrow button at the right of each card row: points right when closed, down when open */
.chev {
  grid-area: chev;
  width: 34px; height: 34px; flex: none;
  display: inline-grid; place-items: center;
  border: var(--stroke) solid var(--line); border-radius: 50%;
  background: var(--surface);
  transition: transform .2s ease, background-color .2s ease;
}
.chev::before {
  content: ""; width: 8px; height: 8px; margin-left: -3px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.card > summary:hover .chev { background: var(--sand); }
.card[open] > summary .chev { transform: rotate(90deg); background: var(--ink); }
.card[open] > summary .chev::before { border-color: var(--cream); }

.body {
  padding: 2px 18px 18px 28px;
  display: grid;
  gap: 14px;
  max-width: 70ch;
}
.why { margin: 0; font-size: 16.5px; }
.instead {
  background: var(--tint);
  border: var(--stroke) solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.body ul, .body ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.needs { font-size: 14.5px; }
.needs h3 { font-size: 14px; color: var(--muted); font-weight: 500; }
.checked { margin: 0; font-size: 13px; color: var(--muted); }

/* folded "How to start" / "Sources": a full-width tappable row with a small round arrow on the right */
.more { border-top: 1px dashed var(--line); font-size: 14.5px; }
.more > summary {
  list-style: none; cursor: pointer; font-weight: 700;
  position: relative; display: flex; align-items: center;
  min-height: 44px; padding-right: 40px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  border: var(--stroke) solid var(--line); border-radius: 50%;
  background: var(--surface);
}
.more > summary::before {
  content: ""; position: absolute; right: 13px; top: 50%; z-index: 1;
  width: 6px; height: 6px; margin-top: -4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.more > summary:hover::after { background: var(--sand); }
.more[open] > summary::before { transform: rotate(45deg); margin-top: -6px; right: 12px; }
.more[open] > summary { margin-bottom: 4px; }
.steps li::marker { font-family: var(--font-display); font-size: 18px; }
.sources li { color: var(--muted); }
.src-type { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-right: 6px; color: var(--ink); }

/* ---------- bottom, minimised ---------- */
.fine { color: var(--muted); font-size: 13.5px; }
.fine h2 { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 4px; max-width: 70ch; }
.report { font-size: 13.5px; color: var(--muted); }
footer p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 70ch; }
footer p + p { margin-top: 8px; }
footer .contact { font-size: 12px; }
footer .contact a { white-space: nowrap; }

/* ---------- privacy.html (body.legal): same band, fonts and colors; a short heading and plain text sections ---------- */
.legal .band { padding-block: 18px 32px; }
.legal h1 { font-size: clamp(44px, 10vw, 64px); max-width: none; margin: 28px 0 10px; }
.legal .lede { font-size: 15px; color: var(--muted); }
.back { font-size: 14px; color: var(--ink); text-decoration: underline; padding-block: 12px; display: inline-block; } /* 44px tap height */
.legal-body {
  box-sizing: content-box;
  max-width: var(--page);
  margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 22px;
}
.legal-body h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.legal-body p { margin: 0; max-width: 65ch; }

/* ---------- narrow screens ---------- */
@media (max-width: 760px) {
  /* tighter first screen: headline + 3 questions + summary + top of the first card fit in 390x844 */
  .wrap { gap: 12px; }
  .band { padding-block: 12px 52px; }
  .brand { font-size: 21px; }
  h1 { font-size: 44px; margin: 12px 0 8px; }
  .lede { font-size: 14.5px; line-height: 1.42; }
  .h1-break { display: none; } /* phones keep the natural 3-line title */
  /* the desktop drawing, small, in the empty space right of the brand and title, above the lede,
     at least 12px from the title and lede text; the train (left 19.2%) stays clear of the short "for you?" line */
  .hero-art {
    position: absolute; right: 0;
    top: var(--hero-top);
    width: min(var(--hero-max-w), calc((100% - var(--hero-clear-x)) / 0.808));
    aspect-ratio: 1000 / 750;
    /* push the image's transparent right and top margins out, so the drawing itself meets the column edge and the top line */
    transform: translate(1.2%, -2.27%);
    -webkit-mask-image: url("assets/hero-desktop.png"); mask-image: url("assets/hero-desktop.png");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    --hero-top: 18px; --hero-max-w: 190px; --hero-clear-x: 190px;
  }
  .questions { grid-template-columns: minmax(0, 1fr); margin-top: -38px; gap: 10px; }
  .q { padding: 8px 10px 10px; border-radius: 18px; }
  .q legend { margin-bottom: 4px; font-size: 14px; }
  /* answers: equal-width boxes in one row per question, all the same height and shape */
  .opts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .opts label { justify-content: center; padding: 5px 8px; border-radius: 14px; font-size: 13.5px; line-height: 1.18; }
  .opts label small { font-size: 11px; line-height: 1.2; margin-top: 1px; }
  /* phone question: its labels are too long for three columns, so one low row per answer (label + small note on one line) */
  .q-stack .opts { grid-auto-flow: row; gap: 5px; }
  .q-stack .opts label { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 8px; padding: 5px 12px; }
  .q-stack .opts label small { margin-top: 0; }
  /* card row: name on top, badge under it, arrow on the right, so long names and long badges never collide */
  .name { font-size: 24px; }
  .card > summary {
    padding: 11px 12px 13px 23px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name chev" "pill chev" "what what";
    gap: 5px 10px;
  }
  .card > summary .pill { margin-bottom: 2px; }
  .body { padding: 2px 14px 16px 23px; }
  /* summary row: compact chips; small grey "Copy link" at the right end (drops below the chips, right-aligned, if it doesn't fit) */
  .summary { gap: 0 8px; flex-wrap: nowrap; }
  .counts { gap: 5px; font-size: 13px; flex-wrap: nowrap; }
  .chip { padding: 3px 8px 3px 7px; gap: 5px; }
  .chip b { font-size: 17px; }
  .chip .dot { width: 9px; height: 9px; }
  .summary .share { margin-right: calc(1.5px + 12px + 17px - 22px); } /* card row right padding is 12px here */
}
/* ---------- very narrow phones (under 360px, e.g. 320px) ---------- */
/* 360px-class Android phones (360x800 is the most common): slightly smaller title and lede keep the summary and first card on the first screen */
@media (max-width: 374px) {
  h1 { font-size: 42px; }
  .lede { font-size: 14px; }
  .wrap { gap: 8px; }
  .name { font-size: 22px; }
  .name .kr { margin-left: 6px; }
  .q:not(.q-stack) .opts label { padding-inline: 5px; } /* keeps "Visa, Mastercard and others" on one line */
}
@media (max-width: 359px) {
  /* never let one wide row stretch the whole column past the screen */
  .wrap { grid-template-columns: minmax(0, 1fr); }
  /* summary chips may wrap to a second line; the link button stays at the right */
  .counts { flex-wrap: wrap; row-gap: 5px; flex: 1 1 auto; min-width: 0; }
  .opts label { padding: 5px 6px; }
  .q-stack .opts label { padding: 5px 10px; }
  /* too little room beside the title here: the drawing would touch the text, so it is hidden */
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chev, .more > summary::before { transition: none; }
}
