/* ── K-Notice demo site ─────────────────────────────────────────
   Palette: civic ink & paper. The only warm surface is the notice
   itself (it depicts literal paper); everything else stays cool so
   the document reads as an object sitting on the page. */
:root {
  /* DESIGN.md — every color has exactly one job */
  --ink: #232b3a;          /* text + ALL interaction */
  --ink-soft: #6e7686;
  --paper-page: #f3f0e8;   /* warm desk ground */
  --paper-doc: #fffdf4;    /* the notice: hanji paper */
  --paper-doc-edge: #e6ddc6;
  --blue: #2b5bd7;         /* pen — links & input focus ONLY, never a button */
  --blue-soft: #e8eefc;
  --red: #c8402e;          /* dojang — provenance ONLY: stamp, evidence, required, urgent */
  --red-soft: #fbeae7;
  --line: #dcd6c7;
  --mark: #ffe28a;         /* evidence highlighter (opaque swipe) */
  --radius: 6px;
  --font-ui: 'Paperlogy', 'Apple SD Gothic Neo', 'Hiragino Sans', 'PingFang SC', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  --font-doc: 'MaruBuri', 'Apple SD Gothic Neo', serif;
  --font-doc-bold: 'MaruBuriBold', 'MaruBuri', serif;
  --font-data: 'Martian Mono', monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper-page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
button { font-family: inherit; }

/* ── header ── */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-page) 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.account-chip {
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.account-chip:hover { background: var(--ink); color: #fff; }
.account-chip.logged-in { border-color: var(--ink); color: var(--ink); }
.account-chip.logged-in::before { content: '● '; color: #2eaa5e; font-size: 10px; }
.account-chip.logged-in:hover { background: var(--ink); color: #fff; }
.account-chip.logged-in:hover::before { color: #7ee2a8; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark-seal {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--red); color: var(--red);
  font-family: var(--font-doc); font-weight: 700; font-size: 18px;
  transform: rotate(-6deg);
}
.wordmark-seal.small { width: 22px; height: 22px; font-size: 12px; border-width: 2px; display: inline-grid; vertical-align: -5px; }
.wordmark-text { font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.head-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.head-nav a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.head-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 5px 12px; font-size: 13px;
  color: var(--ink-soft); cursor: pointer; font-weight: 500;
}
.lang-switch button.is-active { background: var(--ink); color: #fff; }

/* ── hero: one line, the workspace is the poster ── */
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vh, 40px) clamp(14px, 3vw, 28px) 4px; text-align: left; }
.hero-eyebrow {
  font-family: var(--font-data); font-size: 11px; letter-spacing: 0.14em;
  color: var(--red); margin: 0 0 10px;
}
.hero-title {
  margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.015em;
  font-weight: 800; font-size: clamp(22px, 3.4vw, 34px); color: var(--ink);
}
.hero-title em.hero-mark {
  font-style: normal;
  background: linear-gradient(transparent 12%, var(--mark) 12% 88%, transparent 88%);
  padding: 0 3px;
}
.hero-cta-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 0; }
.btn-inline {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
  text-decoration-color: var(--mark);
}
.btn-inline:hover { text-decoration-color: var(--ink); }
.hero-privacy { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.hero-privacy::before { content: '🔒 '; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  border-radius: var(--radius); font-weight: 600; font-size: 15.5px;
  padding: 12px 26px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 5px 16px rgba(35, 43, 58, 0.24); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(35, 43, 58, 0.3); }
.btn-primary:active { transform: translateY(0); }

/* ── workspace: auth card + mine controls (inside the plan panel) ── */
.btn-ghost2 {
  display: inline-block; background: #fff; border: 1.5px solid var(--ink); color: var(--ink);
  border-radius: 999px; font-weight: 700; font-size: 16px; padding: 11.5px 26px; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost2:hover { background: #ece8dd; }

.auth-card { padding: 8px 4px; }
.auth-card h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.auth-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; }
.auth-card input, #live-target {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff;
}
.auth-card input:focus, #live-target:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.auth-hint { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; }
.auth-error { color: var(--red); font-size: 13.5px; margin: 10px 0 0; }

.mine-controls { padding: 8px 4px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mine-lede { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.live-langsel { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.live-powered { font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }

/* history chips under the tabs */
.history-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 900px; margin: -6px auto 16px; justify-content: center;
}
.history-label { font-family: var(--font-data); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.history-list { display: flex; gap: 6px; flex-wrap: wrap; }
.history-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-chip:hover { border-color: var(--ink); color: var(--ink); }
.history-chip.failed { color: var(--red); }

/* the paper as input */
.paper-input {
  width: 100%; min-height: 340px; border: 0; background: transparent; resize: vertical;
  font-family: var(--font-doc); font-size: 14.5px; line-height: 1.95; color: var(--ink);
  outline: none; word-break: keep-all;
}
.paper.is-input { border-style: dashed; border-color: var(--blue); }
.paper.is-input:focus-within { box-shadow: 0 1px 2px rgba(27,42,65,0.06), 0 14px 34px rgba(27,42,65,0.12), 0 0 0 3px var(--blue-soft); }

/* tab for "my notice" */
.demo-tabs .tab-mine { border-style: dashed; border-color: var(--ink); color: var(--ink); font-weight: 700; }
.demo-tabs .tab-mine[aria-selected='true'] { background: var(--ink); border-color: var(--ink); border-style: solid; color: #fff; }

/* scroll reveal + result stagger */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.pop-in { animation: popIn 0.4s ease both; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.plan-steps { padding: 40px 8px; display: grid; place-items: center; }

/* ── demo/workspace ── */
.work { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vh, 72px) clamp(14px, 3vw, 28px) 24px; }
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; justify-content: center; }
.demo-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.demo-tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(14px, 2.5vw, 28px); align-items: start; }
.col-label {
  font-family: var(--font-data); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px 4px;
}

/* the notice as a physical document */
.paper-col { position: sticky; top: 76px; }
.paper {
  position: relative;
  background: var(--paper-doc);
  border: 1px solid var(--paper-doc-edge);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(27, 42, 65, 0.06), 0 14px 34px rgba(27, 42, 65, 0.12);
  padding: clamp(20px, 3vw, 34px) clamp(18px, 2.6vw, 30px);
  max-height: 72vh; overflow-y: auto;
}
.paper-body {
  font-family: var(--font-doc);
  font-size: 14.5px; line-height: 1.95;
  white-space: pre-wrap; word-break: keep-all;
}
.paper-body mark {
  background: transparent; color: inherit; border-radius: 2px;
  padding: 1px 2px; margin: -1px -2px;
  transition: background 0.25s ease;
}
/* the red margin index — provenance is numbered like a case file */
.paper-body mark::after {
  content: attr(data-n); color: var(--red);
  font-family: var(--font-data); font-size: 9px; font-weight: 700;
  vertical-align: super; margin-left: 2px; letter-spacing: 0;
}
.paper-body mark.is-lit { background: var(--mark); box-shadow: 0 0 0 3px var(--mark); }

/* highlighter reading — the loading state IS the paper being read */
.paper-body .pline {
  background-image: linear-gradient(transparent 15%, var(--mark) 15% 85%, transparent 85%);
  background-size: 0% 100%; background-repeat: no-repeat;
}
.paper-body .pline.hl { background-size: 100% 100%; transition: background-size 0.5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .paper-body .pline.hl { transition: none; }
}

/* the red seal that lands after analysis */
.stamp[hidden] { display: none; }
.stamp {
  position: absolute; right: 22px; bottom: 20px;
  width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid var(--red); color: var(--red);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-doc-bold); font-weight: 700; font-size: 12.5px; line-height: 1.35;
  padding: 6px; word-break: keep-all; letter-spacing: 0.04em;
  transform: rotate(-12deg); opacity: 0.9;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1.2' fill='black'/%3E%3Ccircle cx='3' cy='3' r='1.1' fill='black'/%3E%3C/svg%3E");
  mask-size: 3.5px;
}
.stamp.stamp-in { animation: stampIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes stampIn {
  0% { transform: rotate(-12deg) scale(2.1); opacity: 0; }
  60% { transform: rotate(-12deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: 0.9; }
}

/* plan column */
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 28px);
  min-height: 340px;
}
.plan-idle { text-align: center; padding: 28px 8px; }
.plan-idle > p { color: var(--ink-soft); margin: 0 0 18px; }
.pipeline-steps {
  list-style: none; margin: 30px auto 0; padding: 0; max-width: 340px; text-align: left;
}
.pipeline-steps li {
  position: relative; padding: 7px 0 7px 34px; color: var(--ink-soft); font-size: 14.5px;
  counter-increment: step;
}
.pipeline-steps li::before {
  content: ''; position: absolute; left: 8px; top: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff;
}
.pipeline-steps li.is-running::before { border-color: var(--ink); background: var(--mark); }
.pipeline-steps li.is-running { color: var(--ink); font-weight: 600; }
.pipeline-steps li.is-done { color: var(--ink); }
.pipeline-steps li.is-done::before { border-color: var(--ink); background: var(--ink); }

/* results */
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.chip {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px; padding: 3px 11px;
}
.chip-importance-high, .chip-importance-urgent { background: var(--red-soft); color: var(--red); }
.chip-importance-medium { background: #ece8dd; color: var(--ink-soft); }
.chip-importance-low { background: #eef0f3; color: var(--ink-soft); }
.chip-type { background: #eef0f3; color: var(--ink-soft); font-weight: 500; }
.result-title { font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; margin: 4px 0 10px; letter-spacing: -0.01em; }
.result-summary { color: var(--ink-soft); margin: 0 0 20px; font-size: 15px; }

.result-section-title {
  font-family: var(--font-data); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}

.action-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
  cursor: pointer; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.action-card:hover, .action-card:focus-visible, .action-card.is-active {
  border-color: var(--ink); box-shadow: 0 2px 10px rgba(35, 43, 58, 0.12);
}
.action-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.action-title { font-weight: 700; font-size: 15.5px; }
.badge-required { color: var(--red); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; }
.badge-optional { color: var(--ink-soft); font-size: 11.5px; font-weight: 500; letter-spacing: 0.05em; }
.action-desc { color: var(--ink-soft); font-size: 14px; margin: 4px 0 6px; }
.action-meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--font-data); font-size: 12.5px; color: var(--ink-soft); }
.action-meta .due { color: var(--red); font-weight: 500; }
.action-evidence {
  margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--mark);
  background: #fffbea; font-family: var(--font-doc); font-size: 13px; color: var(--ink);
  display: none;
}
.action-card.is-active .action-evidence { display: block; }
.evidence-hint { font-size: 11px; color: var(--ink-soft); font-family: var(--font-ui); display: block; margin-top: 3px; }

.kv-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 14.5px; cursor: pointer; }
.kv-row:last-child { border-bottom: 0; }
.kv-key { font-family: var(--font-data); font-size: 12.5px; color: var(--ink-soft); min-width: 74px; }
.kv-val strong { font-weight: 700; }

.check-item { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: 14.5px; }
.check-item input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.check-item.checked span { text-decoration: line-through; color: var(--ink-soft); }
.check-req { color: var(--red); font-size: 11px; font-weight: 700; margin-left: auto; }

.warn-card {
  display: flex; gap: 10px; background: #fff8ec; border: 1px solid #f2dfb5;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; cursor: pointer;
}
.warn-card.warn-medical { background: var(--red-soft); border-color: #eec5bd; }
.warn-icon { flex: 0 0 auto; }

.inquiry-box { background: #f0ece0; border-radius: var(--radius); padding: 14px; }
.inquiry-ko { font-family: var(--font-doc); font-size: 14.5px; margin: 0 0 8px; }
.inquiry-en { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.btn-copy {
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.btn-copy.copied { background: var(--ink); color: #fff; }

.reanalyze-row { margin-top: 20px; text-align: center; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 18px; font-size: 13.5px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.demo-footnote { max-width: 720px; margin: 26px auto 0; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* ── how ── */
.how { max-width: 1020px; margin: 0 auto; padding: clamp(48px, 8vh, 88px) 20px; }
.how h2 { text-align: center; font-size: clamp(21px, 3vw, 28px); letter-spacing: -0.01em; margin: 0 0 34px; }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 0 0 30px; }
.how-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.how-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-data); font-size: 13px; margin-bottom: 10px;
}
.how-steps h3 { font-size: 15.5px; margin: 0 0 6px; }
.how-steps p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.stack-line {
  text-align: center; font-family: var(--font-data); font-size: 12px;
  color: var(--ink-soft); letter-spacing: 0.03em;
}

/* ── ledger: serial + evidence indices + print ── */
.result-serial-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.result-serial { font-family: var(--font-data); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.btn-print {
  margin-left: auto; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 5px 12px; font-size: 12.5px; font-weight: 600;
  font-family: var(--font-ui); cursor: pointer;
}
.btn-print:hover { background: var(--ink); color: #fff; }
.ev-idx {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px;
  border: 1.5px solid var(--red); color: var(--red); border-radius: 50%;
  font-family: var(--font-data); font-size: 9.5px; font-weight: 700; padding: 0 2px;
  vertical-align: 2px; margin-right: 6px; flex: none;
}

/* ── the receipt (print-only issued document) ── */
.receipt { display: none; }
@media print {
  body > *:not(.receipt) { display: none !important; }
  .receipt { display: block !important; font-family: var(--font-ui); color: #1a1a1a; padding: 8mm 4mm; }
  .receipt .r-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2.5px solid #232b3a; padding-bottom: 6mm; margin-bottom: 6mm; }
  .receipt .r-brand { font-weight: 800; font-size: 18pt; }
  .receipt .r-brand .k { color: #c8402e; }
  .receipt .r-serial { font-family: var(--font-data); font-size: 9pt; letter-spacing: 0.08em; }
  .receipt .r-title { font-size: 16pt; font-weight: 800; margin: 0 0 3mm; }
  .receipt .r-summary { font-size: 10.5pt; margin: 0 0 6mm; }
  .receipt h3 { font-family: var(--font-data); font-size: 8.5pt; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid #bbb; padding-bottom: 1.5mm; margin: 6mm 0 3mm; }
  .receipt .r-action { margin: 0 0 3.5mm; page-break-inside: avoid; }
  .receipt .r-action-title { font-weight: 600; font-size: 11pt; }
  .receipt .r-req { color: #c8402e; font-size: 8pt; font-weight: 700; margin-left: 2mm; }
  .receipt .r-due { font-family: var(--font-data); font-size: 8.5pt; color: #c8402e; }
  .receipt .r-desc { font-size: 9.5pt; color: #444; margin: 1mm 0; }
  .receipt .r-ev { font-family: var(--font-doc); font-size: 9pt; background: #ffe28a; display: inline; padding: 0 1mm; }
  .receipt ul { margin: 0; padding-left: 5mm; font-size: 10pt; }
  .receipt .r-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10mm; border-top: 1px solid #bbb; padding-top: 4mm; }
  .receipt .r-note { font-size: 8pt; color: #666; max-width: 60%; }
  .receipt .r-stamp {
    width: 22mm; height: 22mm; border: 1.2mm solid #c8402e; border-radius: 50%;
    color: #c8402e; display: grid; place-items: center; text-align: center;
    font-family: var(--font-doc-bold); font-size: 8.5pt; line-height: 1.3;
    transform: rotate(-10deg); letter-spacing: 0.05em;
  }
}

/* ── footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 26px 20px 34px; text-align: center; }
.site-foot p { margin: 4px 0; font-size: 14px; }
.foot-note { color: var(--ink-soft); font-size: 12.5px; }

/* ── responsive ── */
@media (max-width: 920px) {
  .demo-grid { grid-template-columns: 1fr; }
  .paper-col { position: static; }
  .paper { max-height: 300px; }
  .paper.is-open { max-height: none; }
  .paper-toggle {
    display: block; width: 100%; margin-top: 8px;
    border: 1px dashed var(--line); background: transparent; color: var(--blue);
    border-radius: 8px; padding: 8px; font-size: 13.5px; cursor: pointer;
  }
  .how-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 921px) { .paper-toggle { display: none; } }
@media (max-width: 540px) {
  .head-nav a[href='#how'] { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .site-head { padding: 10px 12px; }
  .wordmark { gap: 6px; }
  .wordmark-text { white-space: nowrap; font-size: 15px; }
  .wordmark-seal { width: 28px; height: 28px; font-size: 15px; border-width: 2px; }
  .head-nav { gap: 8px; }
  .lang-switch button { white-space: nowrap; padding: 4px 7px; font-size: 11px; }
  .account-chip { padding: 5px 10px; font-size: 12px; max-width: 84px; }
}
