/* Same palette as the extension: warm paper, deep green ink. */
:root {
  --bg: #f6f4ef;
  --surface: #fffdf9;
  --ink: #1f2a27;
  --muted: #5f5d55;
  --faint: #8a877c;
  --line: #e2ddd1;
  --accent: #2f7d6d;
  --accent-soft: #e3efe9;
  --field: #fbfaf6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1e1f;
    --surface: #23282a;
    --ink: #e9e6df;
    --muted: #b6b2a8;
    --faint: #8d897f;
    --line: #353c3f;
    --accent: #6cbfab;
    --accent-soft: #23362f;
    --field: #1d2224;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
html:not([lang="en"]) [data-lang="en"],
html[lang="en"] [data-lang="ko"] { display: none !important; }

main { max-width: 980px; margin: 0 auto; padding: 24px 16px 80px; }
a { color: var(--accent); text-underline-offset: 3px; }

header nav { display: flex; gap: 20px; align-items: center; font-size: 15px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
header .name { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
header .name img { width: 26px; height: 26px; }
header nav a:not(.name) { color: var(--muted); text-decoration: none; }
header nav a:not(.name):hover { color: var(--ink); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 54px); }
h2 { font-size: 26px; margin: 88px 0 20px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--muted); max-width: 30em; margin-top: 18px; }
.faint { color: var(--faint); font-size: 14px; }

/* ---- hero ---- */
.hero { display: grid; gap: 40px; padding-top: 56px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1fr 420px; } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #10221d; } }
.btn small { font-weight: 400; opacity: .8; }

/* ---- the live demo: a simple-authentication form that fills itself ---- */
.demo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 30px 60px -30px rgba(31, 42, 39, .25); }
.demo .bar { display: flex; gap: 6px; margin: -10px 0 18px; }
.demo .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo h3 { font-size: 16px; margin-bottom: 14px; }
.demo .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.demo .tabs span { font-size: 12px; text-align: center; padding: 7px 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.demo .tabs span.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.demo .row { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.demo .row label { color: var(--muted); }
.demo .box { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); padding: 0 10px; display: flex; align-items: center; font-size: 15px; transition: box-shadow .3s; overflow: hidden; white-space: nowrap; }
.demo .box.lit { box-shadow: 0 0 0 2px var(--accent); }
.demo .split { display: grid; grid-template-columns: 84px 1fr; gap: 6px; }
.demo .agree { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.demo .check { width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 4px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.demo .check.on { background: var(--accent); border-color: var(--accent); }
.demo .check.on::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.demo .submit { margin-top: 16px; height: 42px; border-radius: 9px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 14px; opacity: .9; }
.demo .chip { position: absolute; top: 74px; left: 50%; transform: translate(-50%, 6px); opacity: 0; transition: opacity .25s, transform .25s; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(31, 42, 39, .16); font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.demo .chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.demo .chip.show { opacity: 1; transform: translate(-50%, 0); }
.demo .chip.press { transform: translate(-50%, 0) scale(.96); }

/* ---- steps ---- */
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .no { font-weight: 700; color: var(--accent); font-size: 15px; padding-top: 2px; }
.steps p { color: var(--muted); margin: 4px 0 0; }

/* ---- formats ---- */
.formats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 720px) { .formats { grid-template-columns: repeat(3, 1fr); } }
.formats div { background: var(--surface); padding: 18px; }
.formats b { display: block; font-size: 14px; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.formats code { display: block; font: 15px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- never stored ---- */
.never { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.never li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; text-decoration: line-through; text-decoration-color: var(--faint); color: var(--muted); }

/* ---- pricing ---- */
.price { width: 100%; border-collapse: collapse; font-size: 16px; }
.price th, .price td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price thead th { font-size: 15px; color: var(--faint); font-weight: 600; }
.price thead th:last-child { color: var(--accent); }
.price td:first-child { color: var(--muted); width: 38%; }
.price .amount { font-size: 22px; font-weight: 700; }

/* ---- faq ---- */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---- legal pages ---- */
.doc { max-width: 720px; }
.doc h1 { font-size: 34px; margin-top: 48px; }
.doc h2 { font-size: 20px; margin: 40px 0 10px; }
.doc ul, .doc ol { padding-left: 20px; color: var(--muted); }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }

footer { margin-top: 88px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: grid; gap: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
footer nav a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .demo * { transition: none !important; } }
