/* Pikkola Polish: a writing studio on warm paper.
   Ivory ground, forest green ink for actions, coral for the marks a machine
   leaves behind. Weights stay at 400, 500, 600 and 700. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/inter.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --r: 6px;
  --r-sm: 4px;
}

html[lang="ko"] {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
html[lang="ja"] {
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: normal;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] summary { word-break: auto-phrase; line-break: strict; overflow-wrap: break-word; }

html[data-theme="light"] {
  --bg: #fffdf9;
  --bg-2: #f7f1e4;
  --surface: #fffdf9;
  --surface-2: #faf5ea;
  --surface-3: #f3ebdc;
  --ink: #1c2118;
  --ink-2: #454a3c;
  --ink-3: #787a68;
  --line: #e6ddc9;
  --line-2: #d2c7ac;
  --accent: #15803d;
  --accent-ink: #f7fff9;
  --accent-soft: #e5f2e8;
  --coral: #c14a30;
  --coral-soft: #fbe4da;
  --amber: #96661a;
  --amber-soft: #f8eed3;
  --code-bg: #1a2319;
  --code-ink: #e3ebdc;
  --code-line: #2c3a2a;
  --shadow: 0 1px 2px rgba(28, 33, 24, .05), 0 20px 44px -38px rgba(28, 33, 24, .55);
  --paper-line: rgba(193, 74, 48, .14);
}

html[data-theme="dark"] {
  --bg: #0f1511;
  --bg-2: #131b15;
  --surface: #171f19;
  --surface-2: #131b15;
  --surface-3: #1d2720;
  --ink: #edf0e5;
  --ink-2: #b7bdab;
  --ink-3: #868f7b;
  --line: #29332a;
  --line-2: #3c493c;
  --accent: #74cb93;
  --accent-ink: #07130b;
  --accent-soft: #18291d;
  --coral: #f0947a;
  --coral-soft: #33201a;
  --amber: #e0b568;
  --amber-soft: #2c2414;
  --code-bg: #0a110c;
  --code-ink: #dbe3d4;
  --code-line: #22301f;
  --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 26px 50px -40px rgba(0, 0, 0, .95);
  --paper-line: rgba(240, 148, 122, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 34% at 94% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%),
    radial-gradient(38% 26% at 0% 12%, color-mix(in srgb, var(--coral) 5%, transparent), transparent 70%);
  pointer-events: none;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.024em; line-height: 1.16; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-name { font-weight: 600; letter-spacing: -0.015em; }
.brand-tool { padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }
.site-nav { display: flex; gap: 18px; margin-left: 6px; }
.site-nav a { color: var(--ink-2); font-size: 13.5px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-field { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-globe { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.lang-field select { appearance: none; border: 0; background: transparent; padding: 0 2px; font-size: 12.5px; font-family: var(--mono); color: var(--ink-2); cursor: pointer; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.ico-sun { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="dark"] .ico-moon { display: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(1.6rem, 3.6vw, 2.6rem);
}
.eyebrow-row { display: flex; align-items: center; gap: 12px; }
.eyebrow-rule { flex: 1; height: 1px; background: var(--line-2); max-width: 64px; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
html[lang="ko"] .eyebrow, html[lang="ja"] .eyebrow { letter-spacing: 0.04em; }
.hero h1 { margin-top: 16px; font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.036em; }
.hero h1 em { font-style: normal; color: var(--coral); border-bottom: 2px solid color-mix(in srgb, var(--coral) 32%, transparent); }
.hero-lede { margin-top: 18px; max-width: 52ch; font-size: 16.5px; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--accent); border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.hero-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.facts { display: flex; gap: 30px; margin: 28px 0 0; padding: 0; flex-wrap: wrap; }
.facts dt { font-family: var(--mono); font-size: 19px; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* hero: the marked proof */
.proof-card {
  margin: 0;
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--line) 55%, transparent) 31px 32px),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 20px 24px 22px 46px;
}
.proof-card::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 30px; width: 1px;
  background: var(--paper-line);
}
.proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.proof-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.proof-lang { font-family: var(--mono); font-size: 10px; color: var(--coral); letter-spacing: 0.08em; }
.proof-text { font-size: 14.5px; line-height: 2.2; color: var(--ink-2); }
.proof-text b { font-weight: 600; color: var(--ink); }
.proof-margins { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.proof-margins span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.proof-stamp {
  position: absolute; right: 12px; bottom: -14px;
  width: 78px; height: 78px; display: grid; place-items: center;
  border: 2px solid var(--coral); border-radius: 50%;
  color: var(--coral); background: color-mix(in srgb, var(--bg) 80%, transparent);
  transform: rotate(-9deg);
}
.proof-stamp b { font-family: var(--mono); font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.proof-stamp small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }

/* marks inside proof text */
mark.m { background: var(--coral-soft); color: var(--ink); border-radius: 2px; padding: 0 1px; box-decoration-break: clone; }
mark.m[data-group="format"] { background: var(--amber-soft); }
mark.m[data-group="phrase"] { background: var(--accent-soft); }
mark.m[data-group="marks"] { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--coral) 65%, transparent); }
mark.m[data-group="format"] { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--amber) 55%, transparent); }
mark.m[data-group="phrase"] { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------------------------------------------------------- report layout */
.report {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0 34px;
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line);
}
.rail { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.rail-num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.rail-lab { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ko"] .rail-lab, html[lang="ja"] .rail-lab { letter-spacing: 0.05em; }
.report-body { min-width: 0; }
section { padding-block: 0; }
.section-head { max-width: 44rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); }
.section-lede { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); max-width: 72ch; }

/* ----------------------------------------------------------------- studio */
.studio { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.desk { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.desk-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.desk-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.lang-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 600; }
.desk-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.mini { padding: 4px 8px; border: 1px solid transparent; border-radius: 3px; background: transparent; font-size: 11.5px; color: var(--ink-3); }
.mini:hover { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.mini.is-on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
#input {
  display: block; width: 100%; min-height: 340px; resize: vertical;
  padding: 20px 22px; border: 0; background: transparent;
  font-family: var(--sans); font-size: 15.5px; line-height: 1.95; color: var(--ink);
  caret-color: var(--accent);
}
#input:focus { outline: none; }
#input::placeholder { color: var(--ink-3); }
.desk:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.desk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.desk-foot .dot-sep { padding: 0 6px; }

/* the margin column */
.margin { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.score-card { padding: 14px 16px 16px; }
.score-top { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.dial { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: var(--line); stroke-width: 3; }
.dial-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .35s ease, stroke .2s ease; }
.dial-num { font-family: var(--mono); font-size: 25px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.dial-lab { position: absolute; bottom: 16px; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.score-verdict { font-size: 14px; font-weight: 600; line-height: 1.35; }
.score-line { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.score-after { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent); }
.score-parts { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); list-style: none; display: grid; gap: 3px; }
.score-parts li { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--ink-3); }
.score-parts li b { font-family: var(--mono); font-weight: 600; color: var(--ink-2); }
.score-parts li.is-clean { color: var(--accent); }

.stats { padding: 4px 16px 12px; }
.stats dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0; }
.stats .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.stats dt { font-size: 11.5px; color: var(--ink-3); }
.stats dd { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.stats .wide { grid-column: 1 / -1; }

.rhythm { padding: 12px 16px 14px; }
.rhythm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rhythm-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ko"] .rhythm-h, html[lang="ja"] .rhythm-h { letter-spacing: 0.03em; }
.rhythm-val { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.rhythm-bars { display: flex; align-items: flex-end; gap: 2px; height: 54px; margin-top: 10px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.rhythm-bars i { flex: 1 1 0; min-width: 2px; max-width: 14px; background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 1px 1px 0 0; }
.rhythm-bars i[data-long="1"] { background: var(--coral); }
.rhythm-foot { margin-top: 8px; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

/* proof sheet */
.sheet { margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.tab { padding: 4px 11px; border: 0; border-radius: 2px; background: transparent; font-size: 12px; color: var(--ink-2); }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--ink); color: var(--bg); }
.tab[disabled] { opacity: .45; cursor: not-allowed; }
.tab .tab-n { font-family: var(--mono); font-size: 10px; margin-left: 5px; opacity: .7; }
.sheet-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.scope { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.scope button { padding: 3px 9px; border: 0; border-radius: 2px; background: transparent; font-size: 11.5px; color: var(--ink-3); }
.scope button.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sheet-body { position: relative; min-height: 190px; }
.pane { padding: 18px 20px; }
.pane-proof { font-size: 15px; line-height: 2.05; white-space: pre-wrap; word-break: break-word; }
.pane-proof:empty::before { content: attr(data-empty); color: var(--ink-3); font-size: 13.5px; }
.pane-text { font-size: 15px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
.pane-diff { font-size: 14.5px; line-height: 2; white-space: pre-wrap; word-break: break-word; }
.pane-diff del { background: var(--coral-soft); color: color-mix(in srgb, var(--coral) 85%, var(--ink)); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 2px; padding: 0 2px; margin: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pane-diff ins { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); text-decoration: none; border-radius: 2px; padding: 0 2px; margin: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pane-diff .gap { color: var(--ink-3); font-family: var(--mono); font-size: 11px; padding: 0 4px; }
.sheet-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.legend-key { display: inline-flex; align-items: center; gap: 5px; }
.legend-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend-key i[data-group="marks"] { background: var(--coral-soft); box-shadow: inset 0 -2px 0 var(--coral); }
.legend-key i[data-group="format"] { background: var(--amber-soft); box-shadow: inset 0 -2px 0 var(--amber); }
.legend-key i[data-group="phrase"] { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.sheet-foot .spacer { margin-left: auto; }

/* changes + issues */
.findings { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.panel-h { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ko"] .panel-h, html[lang="ja"] .panel-h { letter-spacing: 0.03em; }
.panel-count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.issue-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.issue { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.issue:last-child { border-bottom: 0; }
.issue:hover { background: var(--surface-2); }
.issue-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.issue-kind { flex: none; width: 7px; height: 7px; border-radius: 2px; margin-top: 6px; }
.issue-kind[data-group="marks"] { background: var(--coral); }
.issue-kind[data-group="format"] { background: var(--amber); }
.issue-kind[data-group="phrase"] { background: var(--accent); }
.issue-title { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.issue-count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.issue-fix { grid-column: 1 / -1; padding-left: 15px; font-size: 11.5px; color: var(--ink-3); }
.issue-fix b { color: var(--ink-2); font-weight: 600; }
.issue-empty { padding: 22px 14px; font-size: 13px; color: var(--ink-3); }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 12.5px; color: var(--ink-2); }
.change-list li:last-child { border-bottom: 0; }
.change-list b { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.change-empty { padding: 22px 14px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ------------------------------------------------------------------ table */
.ref-table { margin-top: 22px; border-top: 1px solid var(--line-2); }
.ref-row { display: grid; grid-template-columns: 210px 232px minmax(0, 1fr); gap: 18px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.ref-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.ref-name { font-size: 12px; font-weight: 600; color: var(--ink); align-self: start; overflow-wrap: anywhere; }
.ref-sample { font-family: var(--mono); font-size: 11px; color: var(--ink-3); align-self: start; overflow-wrap: anywhere; }

/* -------------------------------------------------------------------- how */
.how-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.how-card { padding: 20px 22px 22px 0; border-right: 1px solid var(--line); }
.how-card + .how-card { padding-left: 22px; }
.how-card:last-child { border-right: 0; padding-right: 0; }
.how-num { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: 0.1em; }
.how-card h3 { margin-top: 8px; font-size: 15.5px; }
.how-card p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.score-notes { margin: 20px 0 0; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.score-notes h3 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.score-notes ul { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.score-notes li { margin-top: 4px; }

/* ---------------------------------------------------------------- privacy */
.priv-strip { margin-top: 4px; }
.priv-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); }
.priv-inner h2 { font-size: 17px; }
.priv-inner p { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); max-width: 66ch; }
.text-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); white-space: nowrap; }
.text-link:hover { border-bottom-color: var(--accent); }

/* -------------------------------------------------------------------- faq */
.faq-list { margin-top: 18px; border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { padding: 14px 2px; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; font-family: var(--mono); font-size: 13px; color: var(--accent); flex: none; }
.qa[open] summary::before { content: "–"; }
.qa p { padding: 0 2px 17px 22px; font-size: 13.5px; color: var(--ink-2); max-width: 82ch; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 42px 0 26px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; }
.footer-brand p { margin-top: 10px; font-size: 13px; color: var(--ink-3); max-width: 40ch; }
.footer-links h3 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.footer-links ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-links a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { grid-column: 1 / -1; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 14px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 70; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* document pages */
.doc { padding-block: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 78ch; }
.doc h1 { font-size: clamp(1.9rem, 3.8vw, 2.5rem); }
.doc .updated { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.doc .lede-doc { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.doc h2 { margin-top: 30px; font-size: 18px; }
.doc p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.doc li { margin-top: 6px; }
.doc a { color: var(--accent); }
.doc code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.narrow { max-width: 880px; }

/* funnel */
.funnel { padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.2rem, 4vw, 3.4rem); border-top: 1px solid var(--line); }
.funnel-head { margin: 0 0 1rem; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ko"] .funnel-head, html[lang="ja"] .funnel-head, html[lang="ko"] .funnel-kicker, html[lang="ja"] .funnel-kicker { letter-spacing: 0.02em; }
.funnel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.funnel-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .18s ease, background-color .18s ease; }
.funnel-card:hover, .funnel-card:focus-visible { border-color: var(--accent); background: var(--surface-2); }
.funnel-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); }
.funnel-title { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.funnel-sub { max-width: 38ch; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.funnel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.funnel-price { flex: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.funnel-cta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.funnel-card-coffee .funnel-cta { font-family: var(--mono); font-size: 11.5px; font-weight: 500; overflow-wrap: anywhere; }
.funnel-arrow { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.funnel-card:hover .funnel-arrow { transform: translateX(2px); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .margin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .score-card { grid-row: span 2; }
}
@media (max-width: 1000px) {
  .ref-row { grid-template-columns: 180px 200px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .proof-card { max-width: 560px; }
  .report { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; align-items: baseline; gap: 10px; padding: 0 0 12px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-card { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .how-card + .how-card { padding-left: 0; }
  .how-card:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .margin { grid-template-columns: minmax(0, 1fr); }
  .score-card { grid-row: auto; }
  .findings { grid-template-columns: minmax(0, 1fr); }
  #input { min-height: 280px; padding: 16px; font-size: 15px; }
  .pane { padding: 14px 16px; }
  .sheet-head { gap: 8px; }
  .sheet-tools { width: 100%; margin-left: 0; gap: 6px; }
  .sheet-tools .btn { flex: 1 1 auto; padding: 9px 10px; font-size: 12.5px; white-space: nowrap; }
  .sheet-tools .scope { flex: 1 1 auto; justify-content: center; }
  .sheet-tools .scope button { flex: 1; padding: 5px 6px; font-size: 11px; }
  .ref-row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 12px 0; }
  .ref-head { display: none; }
  .ref-sample { margin-top: 1px; }
  .stats dl { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .funnel-grid { grid-template-columns: 1fr; }
  .tab { padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .dial-arc, .funnel-card, .funnel-arrow { transition: none; }
}
