/* KDocLens — design system
   Paper, ink, and one deep green accent. Serif for headings so the product
   reads like the documents it handles; the UI stays quiet around the paper. */

:root {
  --ink: #15181d;
  --ink-2: #4a4f58;
  --ink-3: #767c86;
  --paper: #fbf9f5;
  --paper-2: #f4f1ea;
  --card: #ffffff;
  --line: #e2ddd2;
  --line-2: #cfc8b9;
  --accent: #1d4b43;
  --accent-2: #173d37;
  --accent-soft: #e7efec;
  --terra: #a9502b;
  --terra-soft: #f7ece5;
  --amber: #b07a1c;
  --amber-soft: #faf1df;
  --ok: #2f6b4f;
  --shadow: 0 1px 2px rgba(21, 24, 29, 0.04), 0 8px 28px rgba(21, 24, 29, 0.06);
  --shadow-lg: 0 2px 6px rgba(21, 24, 29, 0.05), 0 24px 60px rgba(21, 24, 29, 0.10);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: #d9e6e1; }

.wrap { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 44px)); margin: 0 auto; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.brand-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 22px; font-size: 14.5px; color: var(--ink-2); margin-left: 8px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-note { font-size: 13px; color: var(--ink-3); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--card);
  padding: 11px 18px; border-radius: 10px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: #fff; border-color: var(--ink-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #173d37; border-color: #173d37; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.small { padding: 8px 13px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); opacity: .6; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06; letter-spacing: -0.02em; margin: 16px 0 18px;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--ok); }

/* document preview card */
.preview {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px 22px 18px;
  transform: rotate(-0.6deg);
}
.preview::after {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2);
  transform: rotate(1.6deg);
}
.preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.preview-col { font-size: 13px; line-height: 1.55; }
.preview-col .label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.preview-col .ko { color: var(--ink-2); background: var(--paper-2); border-radius: 8px; padding: 10px 11px; }
.preview-col .en { color: var(--ink); padding: 10px 0; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.preview-table td { border-top: 1px solid var(--line); padding: 6px 4px; color: var(--ink-2); }
.preview-table td:last-child { text-align: right; color: var(--ink); }
.gloss-pop {
  margin-top: 14px; border: 1px solid var(--line); border-left: 3px solid var(--terra);
  background: var(--terra-soft); border-radius: 8px; padding: 11px 13px; font-size: 12.5px;
}
.gloss-pop b { color: var(--terra); }

/* ── tool ────────────────────────────────────────────────────────────── */
.tool { padding: 26px 0 10px; scroll-margin-top: 80px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tool-top h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.tool-top .free { font-size: 12.5px; color: var(--ink-3); }
.tool-body { padding: 22px; }

.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: linear-gradient(180deg, #fff, #fdfcf9);
  padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.dropzone .icon svg { width: 24px; height: 24px; }
.dropzone strong { display: block; font-size: 16px; margin-bottom: 4px; }
.dropzone span { font-size: 13.5px; color: var(--ink-3); }
.dropzone .formats { margin-top: 10px; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }

.file-chip {
  display: none; align-items: center; gap: 12px; margin-top: 14px;
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 10px; padding: 10px 12px;
}
.file-chip.show { display: flex; }
.file-chip .kind {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; background: var(--accent); color: #fff;
  padding: 4px 7px; border-radius: 5px;
}
.file-chip .name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .size { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.file-chip .remove { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 4px; }
.file-chip .remove:hover { color: var(--terra); }

.row-2 { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-top: 16px; }
.lang-block label, .field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; cursor: pointer; transition: all .12s; color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.tool-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.tool-actions .btn.primary { padding: 12px 24px; font-size: 15.5px; }
.hintline { font-size: 12.5px; color: var(--ink-3); }

.samples { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.samples-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.samples-head h3 { font-size: 14px; margin: 0; font-weight: 600; }
.samples-head span { font-size: 12.5px; color: var(--ink-3); }
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sample-btn {
  text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; transition: border-color .12s, background .12s, transform .1s;
}
.sample-btn:hover { border-color: var(--accent); background: #fdfefd; }
.sample-btn:active { transform: translateY(1px); }
.sample-btn .ko { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.sample-btn .en { font-size: 14.5px; font-weight: 600; margin: 2px 0 4px; }
.sample-btn .blurb { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

.paste-toggle { margin-top: 12px; font-size: 13.5px; }
.paste-toggle button { background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.paste-area { display: none; margin-top: 14px; }
.paste-area.show { display: block; }
textarea {
  width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; font-family: var(--sans); font-size: 14.5px; line-height: 1.6; background: #fff; color: var(--ink);
}
textarea:focus { outline: 2px solid #cfe0da; border-color: var(--accent); }

/* ── status / loading ────────────────────────────────────────────────── */
.status { display: none; padding: 40px 22px; text-align: center; }
.status.show { display: block; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.status p { margin: 0; color: var(--ink-3); font-size: 14px; }
.status .steps { display: flex; gap: 18px; justify-content: center; margin-top: 20px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.status .steps span { display: inline-flex; align-items: center; gap: 6px; }
.status .steps i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.status .steps span.on { color: var(--ink); }
.status .steps span.on i { background: var(--accent); }
.status .elapsed { margin-top: 18px; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); }

/* ── result ──────────────────────────────────────────────────────────── */
.result { display: none; }
.result.show { display: block; }
.result-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 22px;
  border-top: 1px solid var(--line); background: var(--paper-2); flex-wrap: wrap;
}
.result-bar .doc-label { min-width: 0; }
.result-bar .kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.result-bar .doc-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.result-bar .spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line-2); background: var(--card); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.result-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding: 26px 22px 34px; align-items: start; }
.paper-wrap { min-width: 0; }
.paper {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  padding: 46px 52px; font-size: 15.5px; line-height: 1.75; color: var(--ink);
}
.paper-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.paper-head .type { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.paper-head h2 { font-family: var(--serif); font-size: 27px; line-height: 1.25; margin: 6px 0 2px; font-weight: 600; letter-spacing: -0.01em; }
.paper-head .sub { color: var(--ink-3); font-size: 14px; }
.paper h3 { font-family: var(--serif); font-size: 19px; margin: 26px 0 8px; font-weight: 600; }
.paper h4 { font-size: 16px; margin: 20px 0 6px; font-weight: 650; }
.paper p { margin: 0 0 12px; white-space: pre-line; }
.paper ul { margin: 0 0 14px; padding-left: 20px; }
.paper li { margin-bottom: 6px; }
.paper table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; }
.paper th, .paper td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.paper th { background: var(--paper-2); font-weight: 600; }
.paper table.grid td:first-child { background: #fcfbf8; font-weight: 500; width: 30%; }
.paper .orig { display: block; font-size: 12.5px; color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 10px; margin: -4px 0 12px; line-height: 1.6; }
.paper .partial { color: var(--ink-2); background: var(--amber-soft); }
.badge-ko { display: inline-block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); border: 1px solid #e8d3a8; background: #fffaf0; border-radius: 4px; padding: 1px 5px; margin-left: 8px; vertical-align: middle; }
.paper-foot { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }

/* notes column */
.notes { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.note-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 17px; box-shadow: var(--shadow); }
.note-card h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.note-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.gloss-list { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.gloss-list li { padding-bottom: 11px; border-bottom: 1px solid #efebe2; }
.gloss-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.gloss-term { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gloss-term b { font-size: 15px; }
.gloss-term .rom { font-size: 11.5px; color: var(--ink-3); }
.gloss-cat { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; }
.gloss-meaning { font-size: 13.5px; color: var(--ink); margin-top: 3px; }
.gloss-why { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 8px 1fr; gap: 9px; font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--line-2); }
.dot.high { background: var(--terra); }
.dot.medium { background: var(--amber); }
.dot.info { background: var(--ink-3); }
.check-list b { font-weight: 600; display: block; }
.check-list span { color: var(--ink-3); font-size: 12.5px; }
.disclaimer-mini { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin: 0; }

/* ── paywall / errors ────────────────────────────────────────────────── */
.panel { display: none; padding: 28px 22px 34px; }
.panel.show { display: block; }
.panel-head { text-align: center; margin-bottom: 22px; }
.panel-head h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; font-weight: 600; }
.panel-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card);
  display: flex; flex-direction: column; gap: 8px;
}
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .pname { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.plan .price { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.plan .price small { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.plan ul { margin: 4px 0 10px; padding-left: 17px; font-size: 13px; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.notice {
  margin-top: 16px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: var(--ink-2);
}
.notice b { color: var(--ink); }
.error-box { border: 1px solid #e6c9bd; background: var(--terra-soft); border-radius: 12px; padding: 16px 18px; }
.error-box h4 { margin: 0 0 6px; font-size: 15px; color: #7c3a1c; }
.error-box p { margin: 0; font-size: 14px; color: #6b4230; }
.error-box .hint { margin-top: 8px; font-size: 13px; color: #7c5140; }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.015em; margin: 10px 0 10px; font-weight: 500; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step .n { font-family: var(--serif); font-size: 13px; color: var(--ink-3); }
.step h3 { font-family: var(--serif); font-size: 21px; margin: 6px 0 8px; font-weight: 600; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.notes-demo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.term-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.term-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 10px; border-bottom: 1px solid var(--line-2); }
.term-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.term-table td:first-child { width: 32%; font-weight: 600; }
.term-table td span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.callout { border-left: 3px solid var(--accent); background: var(--card); padding: 18px 20px; border-radius: 0 12px 12px 0; box-shadow: var(--shadow); }
.callout h4 { margin: 0 0 8px; font-size: 15px; }
.callout p { margin: 0; font-size: 14px; color: var(--ink-2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ico svg { width: 19px; height: 19px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.price-card.hot { border-color: var(--accent); box-shadow: 0 10px 30px rgba(29, 75, 67, .10); }
.price-card .pname { font-size: 13.5px; font-weight: 600; }
.price-card .pdesc { font-size: 12.5px; color: var(--ink-3); min-height: 38px; margin-top: 4px; }
.price-card .amount { font-family: var(--serif); font-size: 38px; margin: 10px 0 2px; font-weight: 600; letter-spacing: -0.02em; }
.price-card .amount small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-weight: 400; }
.price-card .docs { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.price-card ul { list-style: none; margin: 14px 0 18px; padding: 0; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.price-card ul li { display: flex; gap: 8px; }
.price-card ul li::before { content: "✓"; color: var(--ok); font-size: 12px; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 70ch; }

.cta-band { background: var(--ink); color: #f6f3ec; padding: 64px 0; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 12px; font-weight: 500; letter-spacing: -0.015em; }
.cta-band p { color: #b9b4a8; margin: 0 0 22px; max-width: 52ch; }
.cta-band .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cta-band .btn:hover { background: #fff; }

/* ── legal & guides ──────────────────────────────────────────────────── */
.prose { max-width: 74ch; }
.prose h1 { font-family: var(--serif); font-size: 34px; margin: 0 0 8px; font-weight: 500; }
.prose .updated { color: var(--ink-3); font-size: 13.5px; margin-bottom: 26px; }
.prose h2 { font-family: var(--serif); font-size: 22px; margin: 32px 0 8px; font-weight: 600; }
.prose h3 { font-size: 16.5px; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.prose ul { padding-left: 20px; }
.prose .key { border: 1px solid var(--line-2); background: var(--card); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 14.5px; }
.page-head { padding: 52px 0 10px; }

/* ── footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0 34px; font-size: 13px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h5 { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.footer a { display: block; margin-bottom: 6px; color: var(--ink-2); }
.footer .biz { line-height: 1.7; margin-top: 10px; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.footer .brand { font-size: 18px; margin-bottom: 8px; }

/* ── toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .preview { max-width: 560px; }
  .result-body { grid-template-columns: 1fr; }
  .notes { position: static; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .notes-demo { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .nav-right { display: none; }
  .hero { padding: 36px 0 20px; }
  .lede { font-size: 16.5px; }
  .tool-body { padding: 16px; }
  .row-2 { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: 1fr; }
  .paper { padding: 26px 20px; }
  .paper-head h2 { font-size: 22px; }
  .result-bar { padding: 12px 14px; }
  .result-body { padding: 16px 12px 26px; }
  .steps-grid, .feature-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* ── print: only the document and its notes ──────────────────────────── */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  /* The result lives inside the tool card, so the card stays and only its
     chrome and the rest of the page go. */
  .nav, .hero, .tool-top, .tool-body, .section, .cta-band, .footer, .toast,
  .result-bar, .panel, .status, .btn { display: none !important; }
  .tool { padding: 0; }
  .tool-card { border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .result { display: block !important; }
  .result-body { display: block; padding: 0; }
  .paper { border: 0; box-shadow: none; padding: 0; font-size: 10.5pt; }
  .paper-head h2 { font-size: 18pt; }
  .paper table { font-size: 9.5pt; }
  .notes { position: static; display: block; margin-top: 14mm; page-break-before: always; }
  .note-card { border: 0; box-shadow: none; padding: 0 0 6mm; }
  .gloss-list li, .check-list li { page-break-inside: avoid; }
  .note-card h4 { page-break-after: avoid; }
  .note-card h4 { border-bottom: 1px solid #ccc; padding-bottom: 1mm; }
  .paper-foot { font-size: 8.5pt; }
  a { text-decoration: none; color: inherit; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }

}
