/* ---------------------------------------------------------------------------
   トチヨム — design system

   The visual language is a working drawing: a plot seen from above, dimension
   lines, dashed setbacks, figures set in a monospace face. It carries the one
   thing that separates this tool from a portal listing — that the numbers were
   actually computed — so measurements are always mono and always aligned.

   Brand hues (navy / blue / cyan) carry identity only. Verdicts use a separate
   ok / warn / ng ramp, so "this is the brand" and "this needs your attention"
   can never be confused for one another.
--------------------------------------------------------------------------- */

:root {
  --navy:      #0b1f3a;
  --navy-2:    #16304f;
  --blue:      #1b4fbe;
  --blue-ink:  #1540a0;   /* hover / pressed */
  --cyan:      #00c2ff;
  --cyan-pale: #e0f4ff;

  --surface:   #f5f7fb;
  --card:      #ffffff;
  --ink:       #0b1f3a;
  --ink-2:     #3a4d63;
  --ink-3:     #8a97a8;
  --line:      #dde3ec;
  --line-2:    #eef2f8;

  /* verdict ramp — deliberately outside the brand hues */
  --ok:        #166534;
  --ok-mark:   #22c55e;
  --ok-pale:   #f0fdf4;
  --ok-line:   #bbf7d0;
  --warn:      #92400e;
  --warn-mark: #f59e0b;
  --warn-pale: #fffbeb;
  --warn-line: #fde68a;
  --ng:        #9f1239;
  --ng-mark:   #e11d48;
  --ng-pale:   #fff1f2;
  --ng-line:   #fecdd3;

  /* Japanese text stays on the system face — a webfont for CJK costs hundreds
     of KB on the mobile connections this site is actually opened on. Figures
     get the system monospace, which is where the drawn-to-scale feel lives. */
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", monospace;

  --r-sm:   8px;
  --r:     12px;
  --r-lg:  16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(11, 31, 58, .06);
  --shadow:    0 6px 20px rgba(11, 31, 58, .08);
  --shadow-lg: 0 14px 36px rgba(11, 31, 58, .12);

  --nav-h: 58px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  font-size: 15.5px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

/* Break Japanese lines at phrase boundaries rather than mid-word. */
h1, h2, h3, p, li, dd, dt, label, summary, .hint, .sub, td, th {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- type ---------- */
h1 {
  font-size: clamp(32px, 8.4vw, 58px); font-weight: 900; line-height: 1.22;
  letter-spacing: -.025em; margin: 0 0 20px; text-wrap: balance;
}
h1 .u { color: var(--blue); }
h2 {
  font-size: clamp(21px, 5.2vw, 34px); font-weight: 900; line-height: 1.45;
  letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance;
}
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.sub { color: var(--ink-2); font-size: 14.5px; margin: 0 0 28px; line-height: 1.9; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Mono eyebrow with hairlines — the section marker throughout the page. */
.label, .step-badge {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; color: var(--blue); margin: 0 0 14px;
  text-transform: uppercase;
}
.label::after, .step-badge::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-badge .n {
  background: var(--blue); color: #fff; padding: 3px 10px; border-radius: var(--r-sm);
  font-size: 10.5px; letter-spacing: .14em; white-space: nowrap;
}
.result-badge { color: var(--cyan); }
.result-badge .n { background: var(--navy); }

/* The old hand-drawn divider is now carried by .label — keep the element in
   the flow but silent, so no markup has to change. */
.rule { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.nav-brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav-brand b { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.nav-cta {
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700;
  font-size: 13px; padding: 9px 17px; border-radius: var(--r-sm); white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-ink); }
.nav-cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 58px; margin: 0;
  background: var(--blue); color: #fff; border: none; border-radius: var(--r);
  padding: 16px 26px; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; text-align: center; font-family: inherit;
  box-shadow: 0 4px 16px rgba(27, 79, 190, .28);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--blue-ink); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(27, 79, 190, .32); }
.btn:disabled { background: #aab4c2; box-shadow: none; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn .arw { width: 17px; height: 17px; flex-shrink: 0; }
.btn-note { display: block; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.8; }

.btn-sub {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--card); color: var(--navy);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 20px; min-height: 52px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; text-align: center; transition: border-color .2s, background .2s;
}
.btn-sub:hover { border-color: var(--blue); background: var(--surface); }
.btn-sub:focus-within, .btn-sub:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn-sub .ic { width: 19px; height: 19px; flex-shrink: 0; color: var(--blue); }
.link-btn {
  background: none; border: none; padding: 0; font-family: inherit; font-size: 13px;
  color: var(--blue); text-decoration: underline; cursor: pointer; font-weight: 600;
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.band { background: var(--surface); }
.band-w { background: var(--card); }
.step { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
/* Japanese eyebrow — the mono .label treatment is for latin section markers
   and reads wrong set in kana, so this keeps the hairline but not the face. */
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--ink-3); letter-spacing: .1em; margin: 0 0 16px;
}
.hero-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.hero-lead { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 18px; max-width: 30em; }
.hero-tagline { margin: 0 0 26px; font-size: 13.5px; font-weight: 700; color: var(--blue); line-height: 1.9; }
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.assure li {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-pill);
  padding: 5px 14px; font-size: 12px; color: var(--ink-2);
}
.hero-actions { display: grid; gap: 11px; max-width: 420px; }

/* ---------- hero visual: plot drawing + spec cards ---------- */
.visual { display: grid; gap: 12px; }
.visual-plot {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow);
}
.visual-plot svg { display: block; width: 100%; height: auto; }
.visual-tag {
  display: flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 10.5px; color: var(--ink-3); margin: 0 0 10px; letter-spacing: .08em;
}
.visual-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; position: relative; overflow: hidden;
}
.spec::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.spec.is-cyan::before { background: var(--cyan); }
.spec.is-ok::before { background: var(--ok-mark); }
.spec dt { font-size: 10.5px; color: var(--ink-3); margin-bottom: 2px; }
.spec dd { margin: 0; font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--blue); line-height: 1.3; }
.spec dd small { font-size: 10.5px; color: var(--ink-3); margin-left: 3px; }
.spec dd.txt { font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--navy); }

@media (min-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 64px) 0 80px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 64px; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ---------- cards ---------- */
.rcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.rcard h3 { font-size: 15.5px; margin: 0 0 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; line-height: 1.6; }
.rcard h3 .ic { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.rcard ul { margin: 0; padding: 0; list-style: none; }
.rcard li { margin-bottom: 13px; font-size: 14.5px; line-height: 1.95; padding-left: 17px; position: relative; color: var(--ink-2); }
.rcard li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 1.5px; border-radius: 1px; background: var(--cyan); }
.rcard li:last-child { margin-bottom: 0; }

/* ---------- saved wish ---------- */
.saved-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 20px; }
.saved-t { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--blue); }
dl.mini { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; font-size: 14px; }
dl.mini dt { color: var(--ink-3); font-size: 13px; }
dl.mini dd { margin: 0; }

/* ---------- forms ---------- */
.form-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px;
  background: var(--card); box-shadow: var(--shadow-sm);
}
fieldset { border: none; margin: 0 0 26px; padding: 0; }
legend { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--blue); padding: 0; }
.legend-note { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 16px; line-height: 1.9; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

label { font-size: 14px; font-weight: 700; }
.hint { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; line-height: 1.8; margin-top: 3px; }
input, select, textarea {
  font-family: inherit; font-size: 16px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink);
  width: 100%; min-height: 52px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 79, 190, .12);
}
.field.missing label { color: var(--warn); }
.field.missing input, .field.missing select { border-color: var(--warn-mark); background: var(--warn-pale); }

.promise {
  border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: var(--surface);
  border-radius: var(--r); padding: 16px 18px; font-size: 13.5px; line-height: 1.95;
  color: var(--ink-2); margin-bottom: 22px;
}
.promise strong { color: var(--ink); font-weight: 700; }

/* ---------- upload ---------- */
.upload { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px; box-shadow: var(--shadow-sm); }
.upload.dragover { border-color: var(--blue); background: var(--cyan-pale); }
.upload-head { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.upload-desc { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.95; }
.shot-sample { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; font-size: 12.5px; overflow: hidden; }
.shot-sample-h {
  background: var(--surface); padding: 8px 13px; font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: .1em; border-bottom: 1px solid var(--line);
}
.shot-sample dl { margin: 0; padding: 6px 0; }
.shot-sample dt, .shot-sample dd { display: inline-block; margin: 0; padding: 5px 13px; vertical-align: top; line-height: 1.8; }
.shot-sample dt { width: 44%; color: var(--ink-3); }
.shot-sample dd { width: 54%; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.pick { display: grid; gap: 10px; }
label.btn-sub { display: flex; }
.pick-main { background: var(--blue); color: #fff; border-color: var(--blue); }
.pick-main:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.pick-main .ic { color: #fff; }
.pick-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.85; }
.pick-note b { color: var(--ink-2); font-weight: 700; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 74px; }
.thumb img {
  display: block; width: 74px; height: 74px; object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
}
.thumb figcaption { font-size: 10.5px; color: var(--ink-3); text-align: center; line-height: 1.6; margin-top: 3px; }

.upload-status { font-size: 13.5px; margin-top: 14px; line-height: 1.9; }
.upload-status.ok { color: var(--ok); }
.upload-status.ng { color: var(--ng); }
.upload-status:empty { display: none; }

/* reading animation */
.reading { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 16px; }
.reading[hidden] { display: none; }
.reading-t { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.scan { position: relative; height: 46px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.scan i { position: absolute; left: 8px; right: 8px; height: 1px; background: var(--line); display: block; }
.scan i:nth-child(1) { top: 12px; right: 40%; }
.scan i:nth-child(2) { top: 22px; }
.scan i:nth-child(3) { top: 32px; right: 25%; }
.scan .beam {
  position: absolute; inset: 0 auto 0 0; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 255, .3), transparent);
  animation: scan 1.5s linear infinite;
}
@keyframes scan { 0% { transform: translateX(-120%); } 100% { transform: translateX(400%); } }
.reading-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.85; }

.extract-report { margin-top: 14px; }
.extract-report:empty { display: none; }
.er-block { padding: 15px 17px; font-size: 13.5px; line-height: 1.95; margin-bottom: 11px; border: 1px solid; border-radius: var(--r); }
.er-block:last-child { margin-bottom: 0; }
.er-ok { background: var(--ok-pale); border-color: var(--ok-line); color: var(--ok); }
.er-miss { background: var(--warn-pale); border-color: var(--warn-line); color: var(--warn); }
.er-block b { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.er-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.er-tag { background: var(--card); border: 1px solid currentColor; border-radius: var(--r-pill); padding: 3px 11px; font-size: 12.5px; }
.er-hint { margin-top: 11px; font-size: 12.5px; line-height: 1.95; }

/* ---------- howto ---------- */
.howto { border-top: 1px solid var(--line); margin-top: 20px; }
.howto summary { padding: 14px 2px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--blue); }
.howto summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.howto-list { margin: 0; padding: 0 4px 4px 22px; font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.howto-list li { margin-bottom: 6px; }
.howto-note { margin: 0; padding: 6px 4px 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }

/* ---------- errors ---------- */
.err {
  background: var(--ng-pale); border: 1px solid var(--ng-line); color: var(--ng);
  border-radius: var(--r); padding: 17px 18px; font-size: 14px; display: none;
  line-height: 1.95; margin-top: 20px;
}
.err.shown { display: block; }
.err b { font-weight: 700; }

/* ---------- full screen overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--card);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.overlay[hidden] { display: none; }
.ov-inner { width: 100%; max-width: 380px; text-align: center; }
.ov-house { width: 148px; height: 124px; margin: 0 auto 26px; display: block; color: var(--blue); }
.ov-house .draw { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 3.4s ease-in-out infinite; }
@keyframes draw {
  0% { stroke-dashoffset: 240; } 55% { stroke-dashoffset: 0; }
  88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .15; }
}
.ov-title { font-size: 16px; font-weight: 700; margin: 0 0 24px; letter-spacing: .1em; color: var(--ink-2); }
.ov-bar { height: 3px; border-radius: 2px; background: var(--line-2); margin-bottom: 28px; position: relative; overflow: hidden; }
.ov-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 2px; width: 4%; background: var(--blue); transition: width .6s ease; }
.ov-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 14px; }
.ov-steps li { display: flex; gap: 13px; align-items: flex-start; font-size: 13.5px; color: #b8c2cf; transition: color .4s; line-height: 1.8; }
.ov-steps li .ic { flex-shrink: 0; width: 15px; height: 15px; margin-top: 5px; }
.ov-steps li.on { color: var(--ink); }
.ov-steps li.done { color: var(--blue); }
.ov-foot { margin: 30px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.9; }
@media (prefers-reduced-motion: reduce) {
  .ov-house .draw { animation: none; stroke-dashoffset: 0; }
  .ov-bar span { transition: none; }
  .scan .beam { animation: none; }
  .plot-scan { display: none; }
}

/* ---------- result ---------- */
#result { display: none; padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); }
#result.shown { display: block; }

.verdict { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; margin-bottom: 16px; background: var(--card); }
.verdict.ok   { border-color: var(--ok-line);   background: var(--ok-pale); }
.verdict.warn { border-color: var(--warn-line); background: var(--warn-pale); }
.verdict.ng   { border-color: var(--ng-line);   background: var(--ng-pale); }
.v-head { margin: 0 0 16px; font-size: 18px; font-weight: 700; line-height: 1.7; letter-spacing: -.01em; }
.blockers { list-style: none; margin: 0 0 20px; padding: 0; }
.blockers li {
  background: var(--card); border: 1px solid currentColor; border-radius: var(--r);
  padding: 11px 14px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.85;
}
.blockers li b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; }
.v-score { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.v-grade { font-family: var(--mono); font-size: 32px; font-weight: 500; line-height: 1; width: 34px; text-align: center; }
.v-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(11, 31, 58, .09); position: relative; overflow: hidden; }
.v-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: currentColor; }
.v-num { font-size: 13px; white-space: nowrap; color: var(--ink-2); }
.v-num b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.v-next { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }

/* ---------- what-if suggestions ---------- */
#suggest-card b { color: var(--blue); font-weight: 700; }
.sg-note { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.85; }
#suggest-card li.sg-strong { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
#suggest-card li.sg-strong::before { top: 31px; width: 11px; height: 2px; background: var(--blue); }

/* ---------- affiliate slot ----------
   Deliberately not an .rcard: this is not part of the report and must not
   read as though it were. */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; margin-bottom: 14px; }
.cta-tag {
  display: inline-block; margin: 0 0 10px; padding: 2px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--ink-3); color: var(--ink-3);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; line-height: 1.9;
}
.cta h3 { font-size: 15.5px; margin: 0 0 8px; font-weight: 700; }
.cta-lead { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.95; }
.cta-btn {
  display: block; text-align: center; text-decoration: none; border-radius: var(--r);
  background: var(--navy); color: #fff; padding: 15px 18px; font-size: 14.5px; font-weight: 700;
}
.cta-btn:hover { background: var(--navy-2); }
.cta-note { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-hint { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: center; letter-spacing: .06em; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmp th, table.cmp td {
  border-bottom: 1px solid var(--line-2); padding: 12px 10px; text-align: left;
  vertical-align: top; line-height: 1.8;
}
table.cmp thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); font-weight: 500;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.cmp tbody th { font-weight: 700; white-space: nowrap; }
table.cmp .c { text-align: center; }
table.cmp .mark { font-size: 17px; font-weight: 700; }
.cell-note { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
tr.s-ok   .mark { color: var(--ok-mark); }
tr.s-warn .mark { color: var(--warn-mark); }
tr.s-ng   .mark { color: var(--ng-mark); }
tr.s-ng th, tr.s-ng td { background: var(--ng-pale); }
td.s-ok   { color: var(--ok); }
td.s-warn { color: var(--warn); }
td.s-ng   { color: var(--ng); }

table.compare { border-collapse: separate; border-spacing: 0; }
table.compare th, table.compare td { min-width: 120px; border-right: 1px solid var(--line-2); }
table.compare th:last-child, table.compare td:last-child { border-right: none; }
table.compare tbody th, table.compare thead th:first-child {
  min-width: 104px; background: var(--surface); position: sticky; left: 0; z-index: 1;
  border-right: 2px solid var(--line);
}
table.compare thead th { background: var(--surface); padding: 12px 10px; white-space: normal; line-height: 1.6; }
table.compare .col-a { background: var(--card); }
table.compare .col-b { background: #fbfcfe; }
table.compare tbody tr.row-strong td { font-size: 15px; border-bottom: 2px solid var(--line); }
table.compare tbody tr.row-strong .g { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ---------- budget ---------- */
.budget { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.budget-t { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.budget dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.budget dt { color: var(--ink-2); white-space: nowrap; }
.budget dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.budget dt.tot, .budget dd.tot { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.sub-note { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); text-align: right; line-height: 1.7; }
.budget-diff { margin: 0; font-size: 14px; padding: 12px 14px; border-radius: var(--r); line-height: 1.8; }
.budget-diff.over  { background: var(--ng-pale); color: var(--ng); }
.budget-diff.under { background: var(--ok-pale); color: var(--ok); }
.budget-diff b { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- site plan ---------- */
.siteplan { display: block; width: 100%; max-width: 340px; margin: 0 auto; color: var(--blue); }
.plan-note { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.95; }
.plan-note strong { color: var(--ink-2); }

/* ---------- checklist ---------- */
.check-group { margin-bottom: 26px; }
.check-group:last-child { margin-bottom: 0; }
.check-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.check-h .pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 3px 9px;
  border-radius: var(--r-pill); white-space: nowrap;
}
.check-h .pill.auto { background: var(--blue); color: #fff; }
.check-h .pill.self { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }
.check-note { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }
.check-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.check-list li:last-child { border-bottom: none; }
.check-list .n { font-family: var(--mono); font-size: 10.5px; color: var(--cyan); flex-shrink: 0; padding-top: 4px; width: 18px; }
.check-list b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.check-list span { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }

/* ---------- disclaimer / actions ---------- */
.disclaimer {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg);
  padding: 20px; font-size: 12.5px; color: var(--ink-2); line-height: 2.05;
}
.disclaimer strong { color: var(--ink); font-weight: 700; }
.actions { display: grid; gap: 11px; margin-top: 24px; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #8a97a8; padding: 48px 0 40px; font-size: 12.5px; line-height: 2; }
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #fff; }
.foot-brand .mark { width: 26px; height: 26px; }
.foot-brand b { font-size: 16px; font-weight: 900; }
.foot-tag { margin: 0 0 24px; font-size: 13px; color: #8a97a8; line-height: 1.85; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
footer a { color: #cdd6e2; text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }
.foot-ad { margin: 0 0 20px; padding: 13px 15px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border-left: 2px solid var(--cyan); font-size: 12px; line-height: 1.9; }
.foot-name { margin: 0; font-size: 11.5px; color: #5d6b7d; line-height: 1.9; }

@media print {
  /* The printed report goes to a viewing — no advertising, no chrome. */
  .hero, footer, .form-card, .upload, .promise, .actions, .no-print,
  .overlay, #step1, #step2, #step3, .scroll-hint, .nav, .cta { display: none !important; }
  section { padding: 10px 0; }
  body { background: #fff; font-size: 11pt; }
  #result { border-top: none; background: #fff; }
  .rcard, .verdict { break-inside: avoid; box-shadow: none; }
}
