/* FeelerJab screens.
   Look: flat greige page, a large rounded off-white sheet with a greige border, white cards, solid deep-green buttons,
   pill buttons, thin line icons. No characters and no pictures.
   Light and dark follow the browser. Fonts: Black Han Sans / Dela Gothic One (display) and Do Hyeon / DotGothic16 (screen text) from Google Fonts; Pretendard (report body, jsDelivr),
   with system fallbacks.
   Print (the report PDF): white page, no frame, no decorations, no animation, black text, severity colours kept. */
:root {
  /* Calm natural palette: off-white, warm greige, sage, deep green, wood brown */
  --bg: #eae6dd; --sheet: #f2f0eb; --card: #ffffff; --text: #2e3328; --muted: #6e6a60; --line: #d9d3c7;
  --brand: #4f6b3a; --brand-soft: #e8ece0; --sage: #7f9b5a; --wood: #9c7b5f;
  --leaf: var(--sage); --olive: var(--sage); --forest: var(--text);
  --btn: #4f6b3a; --btn-ink: #ffffff; --btn-line: #4f6b3a; --toggle-ink: #ffffff;
  --ok: #2e7d32; --ok-bg: #e6f2e2; --bad: #b91c1c; --bad-bg: #fbeaea; --warn-bg: #fbf3e2;
  --high: #c62828; --medium: #e65100; --low: #a37a00; --info: #5f6b7a;
  --high-bg: #fdecec; --medium-bg: #fff0e3; --low-bg: #fff8d9; --info-bg: #efeeea;
  --code-bg: #f5f3ee;
  --shadow: 0 1px 2px rgba(46, 51, 40, .04);
  --card-shadow: 0 1px 2px rgba(46, 51, 40, .05);
  --foot-bg: #e6e1d6; --foot-line: #d9d3c7;
  /* One clean font everywhere (owner 12-03: chunky fonts were hard to read): Pretendard, system fallbacks for ja. */
  --font-read: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo",
               "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-read);
  --font-display: var(--font-read);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2019; --sheet: #23261f; --card: #2c3027; --text: #e8e6df; --muted: #aaa699; --line: #3c4135;
    --brand: #b0cb90; --brand-soft: #333b2b; --sage: #9db97a; --wood: #c9a684;
    --btn: #a9c48a; --btn-ink: #1d2019; --btn-line: #a9c48a; --toggle-ink: #1d2019;
    --ok: #7bd88f; --ok-bg: #1f3324; --bad: #ff8585; --bad-bg: #3a1f1f; --warn-bg: #3a3220;
    --high: #ff7b7b; --medium: #ffa05c; --low: #f0c542; --info: #a3adbb;
    --high-bg: #3a1f1f; --medium-bg: #3b2a1b; --low-bg: #39331b; --info-bg: #33362e;
    --code-bg: #1d2019;
    --shadow: none; --card-shadow: none;
    --foot-bg: #2a2d25; --foot-line: #3c4135;
  }
}* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65; overflow-wrap: break-word;
}
body { display: grid; grid-template-rows: 1fr auto; }     /* the sheet, then the site footer at the bottom */
html:lang(ko) body { word-break: keep-all; }   /* Korean wraps between words; Japanese and English wrap normally */
a { color: var(--brand); text-decoration-color: var(--wood); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* Sheet: the big rounded card in the middle of the frame */
.sheet {
  position: relative; width: calc(100% - 64px); max-width: 1080px; margin: 32px auto; padding: 18px 44px 36px; align-self: start;
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); overflow: hidden;
}
.inner { max-width: 700px; margin: 0 auto; }
.inner.wide { max-width: 860px; }
@media (max-width: 640px) {
  .sheet { width: calc(100% - 20px); margin: 10px auto; padding: 10px 16px 28px; border-radius: 22px; }
}

/* Header inside the sheet */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-width: 0; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.mark .m-bg { fill: var(--olive); }
.mark .m-line { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .mark .m-line { stroke: #1d2019; } }
.brand-name { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.nav { display: flex; gap: 6px; font-size: 14px; flex: none; }
.nav a {
  color: var(--text); text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 600; white-space: nowrap;
}
.nav a:hover { border-color: var(--brand); color: var(--brand); }
.top-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.langs { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); }
.langs button {
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; line-height: 1; padding: 6px 9px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.langs button:hover { color: var(--brand); }
.langs button[aria-pressed=true] { background: var(--sage); color: var(--toggle-ink); }
@media (max-width: 640px) { .nav-new { display: none; } .top-l { gap: 10px; } }
@media (max-width: 420px) {
  .nav a { padding: 5px 10px; font-size: 13px; }
  .brand-name { font-size: 19px; } .brand .mark { width: 28px; height: 28px; }
  .langs button { padding: 6px 7px; }
}
@media (max-width: 359px) { .brand-name { display: none; } }

/* Type and spacing: one scale (8 / 16 / 24 / 40); forms 720px wide, the report 860px */
:root { --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; }
.inner { max-width: 720px; }
.inner.wide { max-width: 860px; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.3; margin: var(--s3) 0 var(--s1); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.3; margin: var(--s4) 0 var(--s2); }
.lead { color: var(--muted); margin: 0 0 var(--s3); font-size: 16.5px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.kicker {
  display: inline-block; margin: var(--s3) 0 0; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: 13px; border: 1.5px solid var(--line);
}
.kicker + h1 { margin-top: var(--s1); }
.meta-line { margin: 0 0 var(--s2); color: var(--muted); font-size: 15px; }
.meta-line b { color: var(--text); font-weight: 700; }
@media (max-width: 640px) { h1 { font-size: 25px; } h2 { font-size: 21px; } }

/* Start screen: wordmark, one line, one sub line, then the form */
.hero { text-align: center; padding-top: var(--s1); }
.wordmark { font-family: var(--font-display); font-weight: 400; margin: var(--s1) 0 0; line-height: 1; font-size: clamp(40px, 6vw, 68px); color: var(--forest); }
.wordmark .jab { color: var(--brand); }
.tagline { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; margin: var(--s1) 0 0; }
.start-sub { color: var(--muted); margin: var(--s1) 0 0; font-size: 15px; }
.start-card { text-align: left; margin: var(--s3) 0 0; }
.start-card .go { margin-top: var(--s2); }
.consent-line { margin: var(--s1) 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); margin-top: var(--s2); }
.safe-line { font-size: 13.5px; color: var(--muted); }
.health .status, .health .status.ok, .health .status.down { padding: 0; background: none; font-size: 13px; font-weight: 600; }
details.more { margin-top: var(--s1); font-size: 13.5px; color: var(--muted); }
details.more summary { cursor: pointer; width: fit-content; color: var(--brand); font-weight: 600; }
details.more p { margin: var(--s1) 0 0; }
/* How it works */
.how { margin-top: var(--s4); text-align: center; }
.how-list { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: center; }
.how-list li { padding: 22px 18px; border-radius: 26px; }
.how-list li.raised { background: var(--card); box-shadow: var(--card-shadow), 0 0 0 1.5px var(--line); padding: 30px 18px; }
.how-ico { width: 52px; height: 52px; display: block; margin: 0 auto 10px; }
.how-ico * { fill: none; stroke: var(--olive); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-n { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--wood); letter-spacing: .06em; }
.how-t { display: block; font-family: var(--font-display); font-size: 21px; margin: 2px 0 4px; }
.how-d { display: block; font-size: 14.5px; color: var(--muted); }
@media (max-width: 720px) { .how-list { grid-template-columns: 1fr; gap: 10px; } .how-list li, .how-list li.raised { padding: 18px; } }


/* What we check: six calm cards, 3 x 2 (one column on phones) */
.what { margin-top: var(--s4); }
.what h2 { text-align: center; margin: 0; }
.what-sub { text-align: center; color: var(--muted); margin: var(--s1) 0 var(--s2); font-size: 15px; }
.what-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.what-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: var(--s2); }
.what-ico { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.what-ico * { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.what-list b { display: block; font-weight: 700; }
.what-m { display: block; color: var(--wood); font-size: 14px; }
.what-d { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; font-family: var(--font-read); }
.what-not { margin: var(--s2) 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.what-not b { color: var(--text); margin-right: 6px; }
@media (max-width: 860px) { .what-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .what-list { grid-template-columns: 1fr; } }

/* Cards, forms, buttons */.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: var(--s3); box-shadow: var(--card-shadow); margin: var(--s2) 0; }
@media (max-width: 640px) { .card { padding: var(--s2); border-radius: 20px; } }
label.field { display: block; font-weight: 700; margin-bottom: var(--s1); }
input[type=text], input[type=url] {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 20px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--sheet); color: var(--text);
}
input[type=text]:focus, input[type=url]:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: var(--s2) 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--olive); }
.consent { background: var(--sheet); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; font-weight: 600; }
.btn {
  font: inherit; font-weight: 700; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn); color: var(--btn-ink);
  text-decoration: none; display: inline-block; text-align: center; box-shadow: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--btn-line); }
.btn.ghost:hover { color: var(--brand); filter: none; }
.btn.small { padding: 6px 14px; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small:not(.ghost) { box-shadow: none; }
.btn.big { font-size: 18px; padding: 15px 30px; }
.btn.block { width: 100%; }
.row { display: flex; gap: var(--s1); flex-wrap: wrap; align-items: center; }
.status { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.status.down { background: var(--bad-bg); color: var(--bad); }
.msg { display: none; margin-top: var(--s2); padding: 12px 16px; border-radius: 16px; font-size: 15px; }
.msg.show { display: block; }
.msg.error { background: var(--bad-bg); color: var(--bad); }
.msg.info { background: var(--brand-soft); color: var(--text); }
.msg.success { background: var(--ok-bg); color: var(--ok); }

/* Verify screen: two tabs, numbered steps, one button */
.codebox { position: relative; background: var(--code-bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.codebox code { display: block; word-break: break-all; font-family: Consolas, "D2Coding", monospace; font-size: 14px; padding-right: 64px; }
.codebox .btn { position: absolute; right: 8px; top: 7px; }
.codelabel { font-size: 13px; color: var(--muted); margin-top: 14px; font-weight: 600; }
.codebox.plain code { padding-right: 0; }
.tabs { display: flex; gap: 6px; margin: 0; padding: 5px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; }
.tab { flex: 1; font: inherit; font-weight: 700; padding: 10px 8px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tab[aria-selected=true] { background: var(--btn); color: var(--btn-ink); }
ol.steps { padding-left: 22px; margin: 0; }
ol.steps li { margin: 0 0 var(--s2); }
ol.steps li:last-child { margin-bottom: 0; }
ol.steps li::marker { font-weight: 800; color: var(--brand); }
.kvline { display: flex; gap: var(--s1); align-items: baseline; flex-wrap: wrap; margin: var(--s1) 0 0; font-size: 14px; }
.kvline span { color: var(--muted); min-width: 3.5em; }
.kvline code { font-family: Consolas, "D2Coding", monospace; word-break: break-all; }
.act { margin-top: var(--s3); }

/* Progress screen: the step indicator is the main element */
.livemsg { font-family: var(--font-display); font-size: 20px; margin: 0; text-align: center; min-height: 1.4em; }
.stepper { list-style: none; padding: 0; margin: var(--s1) 0 var(--s3); display: grid; grid-template-columns: repeat(5, 1fr); }
.stepper li { position: relative; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.stepper li::before {               /* line from the previous step */
  content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0;
}
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.running::before, .stepper li.failed::before { background: var(--olive); }
.stepper .n {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--sheet); border: 2.5px solid var(--line);
  font-weight: 800; font-size: 15px; color: var(--muted);
}
.stepper li.done { color: var(--text); }
.stepper li.done .n { background: var(--olive); border-color: var(--olive); color: transparent; }
.stepper li.done .n::after { content: ""; position: absolute; width: 9px; height: 16px; border: solid var(--btn-ink); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
@media (prefers-color-scheme: dark) { .stepper li.done .n::after { border-color: #1d2019; } }
.stepper li.running { color: var(--brand); font-weight: 800; }
.stepper li.running .n { border-color: var(--olive); color: var(--brand); background: var(--card); }
.stepper li.running .n::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--leaf); opacity: .7;
}
.stepper li.failed { color: var(--bad); font-weight: 800; }
.stepper li.failed .n { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
@media (max-width: 420px) { .stepper .n { width: 34px; height: 34px; font-size: 14px; } .stepper li::before { top: 16px; } .stepper li { font-size: 13px; } }

/* Motion: only when the viewer allows it */
@media (prefers-reduced-motion: no-preference) {
  .stepper li.running .n::before { animation: fj-ring 1.6s ease-out infinite; }
  .stepper li.running .n { animation: fj-breathe 1.6s ease-in-out infinite; }
}
@keyframes fj-ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes fj-breathe { 50% { box-shadow: 0 0 0 5px var(--brand-soft); } }


/* Report screen */
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s1); margin: 0 0 var(--s2); }
.count { border-radius: 18px; padding: 12px 8px; text-align: center; border: 1.5px solid var(--line); }
.count b { display: block; font-size: 28px; line-height: 1.2; }
.count span { font-size: 13px; font-weight: 700; }
.count.high { background: var(--high-bg); color: var(--high); }
.count.medium { background: var(--medium-bg); color: var(--medium); }
.count.low { background: var(--low-bg); color: var(--low); }
.count.info { background: var(--info-bg); color: var(--info); }
@media (max-width: 460px) { .counts { grid-template-columns: repeat(2, 1fr); } }
.fixfirst { margin: 0 0 var(--s2); font-weight: 700; }
.fixfirst a { text-decoration: none; }
.fixfirst a:hover { text-decoration: underline; }
.report-actions { margin: 0 0 var(--s3); }
/* Report body (server-rendered HTML): calm, plain reading type */
.report { overflow-wrap: anywhere; word-break: normal; font-family: var(--font-read); }
.report h1, .report h2, .report h3 { font-family: var(--font-read); font-weight: 800; }
.report h1 { font-size: 24px; }
.report h2 { font-size: 20px; border-bottom: 1.5px solid var(--line); padding-bottom: 6px; margin-top: 32px; }
.report h3 { font-size: 17px; margin-top: 22px; }
.report .tablewrap, .report table { max-width: 100%; }
.report table { border-collapse: collapse; width: 100%; font-size: 14.5px; display: block; overflow-x: auto; }
.report th, .report td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.report th { background: var(--info-bg); }
.report code { background: var(--code-bg); padding: 1px 5px; border-radius: 5px; font-family: Consolas, "D2Coding", monospace; font-size: 13.5px; word-break: break-all; }
.report hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.sev { display: inline-block; padding: 1px 9px; border-radius: 999px; font-weight: 700; font-size: .92em; white-space: nowrap; }
.sev-high { color: var(--high); background: var(--high-bg); }
.sev-medium { color: var(--medium); background: var(--medium-bg); }
.sev-low { color: var(--low); background: var(--low-bg); }
.sev-info { color: var(--info); background: var(--info-bg); }
.joblist { list-style: none; padding: 0; margin: 0; }
.joblist li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.joblist li:last-child { border-bottom: 0; }
.joblist .host { font-weight: 700; word-break: break-all; }
.tag { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--info-bg); color: var(--muted); font-weight: 600; }
.tag.done { background: var(--ok-bg); color: var(--ok); }
.tag.failed { background: var(--bad-bg); color: var(--bad); }
.tag.running, .tag.queued { background: var(--brand-soft); color: var(--brand); }
.joblist { list-style: none; padding: 0; margin: 0; }
.joblist li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.joblist li:last-child { border-bottom: 0; }
.joblist .host { font-weight: 700; word-break: break-all; }
.tag { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--info-bg); color: var(--muted); font-weight: 600; }
.tag.done { background: var(--ok-bg); color: var(--ok); }
.tag.failed { background: var(--bad-bg); color: var(--bad); }
.tag.running, .tag.queued { background: var(--brand-soft); color: var(--brand); }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin: var(--s4) auto 0; max-width: 720px; }
.foot b { color: var(--text); }
.nojs { background: var(--warn-bg); padding: 12px 14px; border-radius: 14px; margin: var(--s2) 0; }
/* Site footer (NexTopologix), on every screen; not printed */
.site-foot { background: var(--foot-bg); color: var(--muted); margin-top: 8px; border-top: 1px solid var(--foot-line); }
.sf-in { max-width: 1080px; margin: 0 auto; padding: 26px 32px 22px; }
.sf-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--foot-line); }
.sf-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; }
.sf-brand .mark { width: 28px; height: 28px; }
.sf-tag { font-size: 13px; color: var(--muted); }
.sf-links { margin-left: auto; display: flex; gap: 20px; font-size: 13px; }
.sf-links a { color: var(--text); text-decoration: none; }
.sf-links a:hover { text-decoration: underline; }
.sf-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 16px; font-size: 13px; color: var(--muted); }
.sf-info b { color: var(--text); margin-right: 4px; }
.sf-info a { color: var(--muted); text-decoration: none; }
.sf-sep { width: 1px; height: 14px; background: var(--line); }
.sf-copy { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .sf-in { padding: 22px 16px 20px; } .sf-links { margin-left: 0; width: 100%; } .sf-sep { display: none; } }
/* Legal pages: one text block per language, the one matching <html lang> is shown (Korean without JS) */
.legal-body { display: none; line-height: 1.75; }
html[lang="ko"] .legal-body[lang="ko"], html[lang="en"] .legal-body[lang="en"], html[lang="ja"] .legal-body[lang="ja"] { display: block; }
html:not([lang="en"]):not([lang="ja"]) .legal-body[lang="ko"] { display: block; }
.legal-body h1 { font-family: var(--font-read); font-size: 28px; margin: var(--s3) 0 4px; }
.legal-body h2 { font-family: var(--font-read); font-size: 17px; margin: var(--s3) 0 4px; }
.legal-body p, .legal-body li { font-size: 15px; margin: 6px 0; }
.legal-body ul { padding-left: 20px; margin: 6px 0; }
.legal-meta { color: var(--muted); font-size: 12px; margin: 0 0 var(--s2); }
.legal-todo { color: var(--muted); }
@media (max-width: 640px) { .sf-links { flex-wrap: wrap; gap: 8px 16px; } }
/* Print: A4, white page, nothing but the report */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  :root { --sheet: #fff; --card: #fff; --text: #000; --muted: #333; --line: #bbb; --code-bg: #f1f1f1; --brand: #000;
          --shadow: none; --card-shadow: none;
          --high: #b00020; --medium: #c24100; --low: #7a5c00; --info: #444;
          --high-bg: #fff; --medium-bg: #fff; --low-bg: #fff; --info-bg: #eee; --brand-soft: #eee; --ok: #0a5c2a; --ok-bg: #fff; --bad: #b00020; --bad-bg: #fff; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, body, body.calm { background: #fff !important; color: #000; }
  body { font-size: 11pt; line-height: 1.5; min-height: 0; }
  .sheet { width: auto; max-width: none; margin: 0; padding: 0; border-radius: 0; box-shadow: none; background: #fff; overflow: visible; }
  .inner, .inner.wide { max-width: none; }
  .no-print, .top, .nav, .btn, .foot, .past, .site-foot { display: none !important; }
  body { display: block; }
  .card { border: 0; box-shadow: none; padding: 0; margin: 0 0 8pt; }
  .sev { border: 1px solid currentColor; }
  .count { border: 1px solid #999; border-radius: 6pt; }
  .report h1 { font-size: 19pt; margin-top: 0; }
  .report h2 { font-size: 14pt; break-before: page; break-after: avoid; }
  .report h2:first-of-type { break-before: auto; }
  .report h3 { break-after: avoid; }
  .report table { display: table; font-size: 9.5pt; width: 100%; page-break-inside: auto; }
  .report tr, .report th, .report td { break-inside: avoid; }
  .report thead { display: table-header-group; }
  .report a { color: #000; text-decoration: underline; }
}
.legal-body, .legal-head h1, .legal-body h2 { font-family: var(--font-read); }
/* Payment screen (pay.html) */
input[type=email], input[type=password] {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 20px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--sheet); color: var(--text);
}
input[type=email]:focus, input[type=password]:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px var(--brand-soft); }
.pay-choices { border: 0; padding: 0; margin: var(--s2) 0 0; display: grid; gap: var(--s1); }
.pay-choices legend { padding: 0; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: var(--s2); background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pay-opt input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--olive); }
.pay-opt b { display: block; }
.pay-d { display: block; font-size: 14px; color: var(--muted); font-family: var(--font-read); margin-top: 2px; }
.pay-key-label { margin-top: var(--s2); }
.pay-go { margin-top: var(--s2); }
.pay-test { display: inline-block; margin: var(--s1) 0 0; padding: 4px 12px; border-radius: 999px; background: var(--warn-bg); }
.consent-line a { color: inherit; text-decoration: underline; }

/* Progress crew: four pixel-art workers (sprites 16 frames of 56x84, drawn at 2x). */
.crew { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 8px 0 16px; flex-wrap: wrap; }
.crew figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .3s; }
.crew .sprite { width: 112px; height: 168px; background-repeat: no-repeat; background-size: 1792px 168px;
  image-rendering: pixelated; animation: crew-loop 1.6s steps(16) infinite; }
@keyframes crew-loop { to { background-position: -1792px 0; } }
.crew figcaption { text-align: center; line-height: 1.2; }
.crew figcaption small { display: block; font-size: 12px; color: var(--muted, #6E6A60); }
.crew figcaption span { font-size: 15px; padding: 2px 10px; border-radius: 99px; }
.crew figure.pending { opacity: .5; }
.crew figure.running figcaption span { background: #4F6B3A; color: #fff; }
.crew figure.done figcaption span::after { content: " ✓"; color: #4F6B3A; }
.crew figure.failed figcaption span { background: #b4472c; color: #fff; }
@media (max-width: 560px) { .crew { gap: 6px; } .crew .sprite { width: 70px; height: 105px; background-size: 1120px 105px; }
  @keyframes crew-loop { to { background-position: -1120px 0; } } .crew figcaption span { font-size: 13px; padding: 1px 6px; } }
@media (prefers-reduced-motion: reduce) { .crew .sprite { animation: none; } }
@media print { .crew { display: none; } }

/* Progress crew stands in a pixel-art office (background 2:1, floor from ~62% height). */
.crew { position: relative; max-width: 760px; margin: 8px auto 16px; aspect-ratio: 1746 / 733; gap: 2%;
  background: url(/static/sprites/office_bg.png) center / cover no-repeat; image-rendering: pixelated;
  border-radius: 14px; overflow: hidden; align-items: flex-end; flex-wrap: nowrap; padding: 0 4% 3%;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 22px rgba(46,51,40,.10); }
.crew figure { flex: 0 0 auto; }
.crew figcaption small { color: #5a4636; }
.crew figcaption span { background: rgba(255, 250, 240, .9); color: #2E3328; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.crew figure.pending { opacity: .62; }
@media (max-width: 560px) { .crew { padding: 0 2% 3%; gap: 1%; } .crew figcaption small { display: none; } }
.crew figure.pending { opacity: 1; }
.crew figure.pending .sprite { filter: saturate(.35) brightness(.92); }
.crew figure.pending figcaption span { color: #6E6A60; }

/* Verify: make "either one" impossible to miss. */
.pick-one { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #EEF2E6; border: 1.5px solid #C9D6B4; color: #2E3328; }
.pick-one b { color: #4F6B3A; }
.tabs { align-items: center; }
.tab-or { flex: 0 0 auto; font-size: 13px; color: var(--muted); padding: 0 2px; }

/* Start page: the four workers at work in the office, each saying what they do. */
.team-scene { display: flex; justify-content: center; align-items: flex-end; gap: 1.5%; margin: 4px auto 18px; max-width: 980px;
  aspect-ratio: 1746 / 733; padding: 0 3% 2.5%; border-radius: 16px; overflow: hidden; image-rendering: pixelated;
  background: url(/static/sprites/office_bg.png) center / cover no-repeat;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 22px rgba(46,51,40,.10); }
.tm { margin: 0; width: 23%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm .sprite { width: 112px; height: 168px; background-repeat: no-repeat; background-size: 1792px 168px;
  image-rendering: pixelated; animation: tm-loop 1.6s steps(16) infinite; }
.tm:nth-child(2) .sprite { animation-delay: -.2s; } .tm:nth-child(3) .sprite { animation-delay: -.4s; } .tm:nth-child(4) .sprite { animation-delay: -.6s; }
@keyframes tm-loop { to { background-position: -1792px 0; } }
.tm .bubble { position: relative; margin: 0 0 8px; padding: 7px 10px; background: #fffdf8; color: #2E3328; border: 2px solid #4a3a2c;
  border-radius: 10px; font-size: 13px; line-height: 1.35; text-align: center; box-shadow: 2px 2px 0 rgba(74,58,44,.25); }
.tm .bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; background: #fffdf8;
  border-right: 2px solid #4a3a2c; border-bottom: 2px solid #4a3a2c; transform: translateX(-50%) rotate(45deg); }
.tm figcaption { text-align: center; line-height: 1.2; }
.tm figcaption small { display: block; font-size: 12px; color: #5a4636; }
.tm figcaption span { font-size: 14px; padding: 2px 10px; border-radius: 99px; background: rgba(255,250,240,.92); color: #2E3328; }
.tm:nth-child(2) figcaption span { background: #4F6B3A; color: #fff; }
.what-by { text-align: center; font-family: var(--font-display); font-size: 18px; margin: 0 0 12px; }
@media (max-width: 720px) { .team-scene { aspect-ratio: auto; min-height: 300px; background-position: 30% center; }
  .tm .sprite { width: 70px; height: 105px; background-size: 1120px 105px; } @keyframes tm-loop { to { background-position: -1120px 0; } }
  .tm .bubble { font-size: 11px; padding: 5px 6px; } .tm figcaption small { display: none; } .tm figcaption span { font-size: 12px; padding: 1px 6px; } }
@media (prefers-reduced-motion: reduce) { .tm .sprite { animation: none; } }

/* Start page: compact flow line above the address form. */
.flow { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; margin: 4px auto 14px; padding: 0; }
.flow li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #2E3328; }
.flow li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #4F6B3A; color: #fff; font-size: 12px; font-weight: 400; }
.flow li + li::before { content: "→"; color: #9C7B5F; margin: 0 6px 0 2px; }

/* Verify screen: payment choice above the main button. */
.v-choices { margin-top: 18px; }
.v-pay { margin: 10px 0 14px; }

/* Clean type (12-03): one font, headings by weight instead of a display face. */
h1, h2, .wordmark, .brand-name, .tagline, .how-t, .livemsg, .what-by { font-weight: 700; letter-spacing: -0.02em; }
.wordmark { font-weight: 800; letter-spacing: -0.03em; }
.tagline, .livemsg, .what-by { font-weight: 600; }
/* Free / paid side by side (free on the left); stacked on phones. */
.pay-choices { grid-template-columns: 1fr 1fr; align-items: stretch; }
.pay-choices legend { grid-column: 1 / -1; }
@media (max-width: 560px) { .pay-choices { grid-template-columns: 1fr; } }
.key-warn { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--text); font-size: 14px; font-weight: 600; }
/* Report screen: "get it by email" (one address, one button) */
.mailme { margin: calc(-1 * var(--s1)) 0 var(--s3); max-width: 520px; }
.mailme-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.mailme-row { display: flex; gap: var(--s1); align-items: center; }
.mailme-row input[type=email] { flex: 1; min-width: 0; font-size: 15px; padding: 8px 16px; }
.mailme .msg { margin-top: var(--s1); font-size: 14px; }
img.mark { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: #f0ece7; }
