/* 참글 랜딩. 토큰 값은 app/globals.css와 같다(docs/adr/0009). 애니메이션은 transform/opacity만. */
:root {
  --bg: #f6f6f7; --surface: #ffffff; --surface-2: #f1f1f3; --line: #e6e6ea; --line-strong: #d4d4da;
  --text: #17171c; --text-2: #55555f; --text-3: #6b6b76;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef0ff; --on-accent: #ffffff;
  --ok: #15803d; --ok-soft: #ecfdf3; --warn: #b45309; --warn-soft: #fff7e6; --block: #c81e1e; --block-soft: #fdeeee;
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  --shadow: 0 1px 2px rgb(16 16 24 / 0.04), 0 2px 8px rgb(16 16 24 / 0.04);
  --radius: 14px; --radius-sm: 9px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12; --surface: #18181d; --surface-2: #212128; --line: #2a2a32; --line-strong: #3a3a44;
    --text: #f2f2f5; --text-2: #b4b4bf; --text-3: #8e8e9a;
    --accent: #8b85ff; --accent-hover: #a29dff; --accent-soft: #23224a; --on-accent: #0f0f12;
    --ok: #4ade80; --ok-soft: #10261a; --warn: #fbbf24; --warn-soft: #2b2110; --block: #f87171; --block-soft: #2e1416;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 15px/1.65 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.3; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -40px; background: var(--surface); padding: 6px 10px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.top-link { color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.top-link:hover { background: var(--surface-2); color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  height: 48px; padding: 0 20px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--surface-2); border-color: var(--line-strong); color: var(--text-3); cursor: not-allowed; }
.input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 14px; height: 48px; }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input::placeholder { color: var(--text-3); }
.notice { font-size: 13.5px; padding: 10px 12px; border-radius: var(--radius-sm); }
.notice.error { background: var(--block-soft); color: var(--block); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.muted { color: var(--text-3); font-size: 13px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; flex: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.block { background: var(--block-soft); color: var(--block); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.demo { color: var(--warn); background: var(--warn-soft); }

/* ---------- 히어로 ---------- */
.hero { text-align: center; padding: 32px 0 0; display: grid; justify-items: center; gap: 14px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: -6px; }
.hero h1 { font-size: clamp(28px, 7.4vw, 52px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; word-break: keep-all; }
.hero h1 em { font-style: normal; color: var(--block); }
.hero-sub { font-size: clamp(15px, 3.8vw, 18px); color: var(--text-2); max-width: 560px; word-break: keep-all; text-wrap: pretty; }
.hero .wl { width: min(100%, 520px); text-align: left; }
@media (max-width: 600px) { .hero { padding-top: 12px; gap: 12px; } }

/* ---------- 사전 신청 ---------- */
.wl { display: grid; gap: 8px; }
.wl-row { display: flex; gap: 8px; }
.wl-row .input { flex: 1; min-width: 0; }
.wl-row .btn { flex: none; }
@media (max-width: 420px) { .wl-row { flex-direction: column; } .wl-row .input { flex: none; } .wl-row .btn { width: 100%; } }
.wl-consent { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.wl-consent input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.wl-consent summary { display: inline; cursor: pointer; text-decoration: underline; }
.wl-consent details { display: inline; }
.terms { margin: 6px 0 0; padding: 10px 12px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius-sm); display: grid; gap: 2px; }
.terms dt { display: inline; font-weight: 600; color: var(--text); }
.terms dd { display: inline; margin: 0 0 0 4px; }
.terms div { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 데모 ---------- */
.stage { width: min(100%, 640px); margin-top: 12px; display: grid; gap: 10px; text-align: left; }
.inputs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 12.5px; margin: 0; padding: 0; list-style: none; }
.inputs li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: var(--text-2); }
.inputs b { color: var(--text); font-weight: 600; }
.paper { position: relative; padding: 18px 18px 16px; box-shadow: 0 24px 60px rgb(16 16 24 / 0.12); overflow: hidden; border-radius: 16px; }
.paper-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--text-3); }
.paper-text { font-size: clamp(15px, 4vw, 18px); line-height: 1.75; display: grid; gap: 2px; min-height: 96px; }
.line { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.line.hide { opacity: 0; transform: translateY(6px); }
.ad-missing { color: var(--block); border: 1.5px dashed var(--block); border-radius: 6px; padding: 0 6px; font-size: 13px; font-weight: 700; justify-self: start; }
.bad { background: var(--block-soft); color: var(--block); border-radius: 4px; box-shadow: 0 0 0 2px var(--block-soft); }
.good { background: var(--ok-soft); color: var(--ok); border-radius: 4px; box-shadow: 0 0 0 2px var(--ok-soft); }
.scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent), transparent); pointer-events: none; opacity: 0; }
.scan.go { opacity: 1; animation: scan 1.2s var(--ease) forwards; }
@keyframes scan { to { transform: translateY(350%); } }
.notes { display: grid; gap: 6px; min-height: 108px; margin: 0; padding: 0; list-style: none; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.note.hide { opacity: 0; transform: translateY(6px); }
@media (max-width: 600px) { .notes { min-height: 0; } }
.demo-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-ctrl > button { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: none; border: 0; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.demo-ctrl > button:hover { background: var(--surface-2); }
.steps { display: flex; gap: 2px; }
.steps button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.steps button::after { content: ""; width: 18px; height: 4px; border-radius: 4px; background: var(--line-strong); transition: background .2s; }
.steps button[aria-current="step"]::after { background: var(--accent); }

/* ---------- 섹션 ---------- */
.sec { padding: 72px 0 0; }
.sec h2 { font-size: clamp(22px, 5vw, 32px); letter-spacing: -0.03em; font-weight: 800; margin: 0 0 8px; word-break: keep-all; text-wrap: balance; }
.sec-p { color: var(--text-2); margin-bottom: 24px; word-break: keep-all; }
.grid-3, .grid-2 { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.tile { padding: 18px; display: grid; gap: 6px; align-content: start; }
.tile h3 { font-size: 16px; }
.tile p { font-size: 14px; color: var(--text-2); word-break: keep-all; }
.tile .chip { justify-self: start; }
.rules { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; word-break: keep-all; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 8px; }
.facts div { display: grid; }
.facts dt { font-size: 13px; color: var(--text-2); order: 2; }
.facts dd { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.signup { max-width: 560px; padding: 20px; }
.foot { margin-top: 80px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); display: grid; gap: 6px; }
.doc { max-width: 720px; padding: 24px 0 0; }
.doc h1 { font-size: 26px; margin-bottom: 8px; }
.doc h2 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* 스크립트가 돌 때만 숨겼다가 보여 준다(스크립트가 없으면 처음부터 보임) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .line, .note, .steps button::after { transition: none; }
  .scan { display: none; }
}
