:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --inset: #f7f8fa;
  --text: #191f28;
  --sub: #4e5968;
  --muted: #8b95a1;
  --line: #e5e8eb;
  --accent: #3182f6;
  --accent-hover: #1b64da;
  --accent-weak: #e8f3ff;
  --on-accent: #ffffff;
  --ok: #1d8a4e;
  --err: #e5484d;
  --r1: #3182f6;
  --r2: #e5734a;
  --r3: #1d9e74;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171c;
    --card: #202027;
    --inset: #2a2a32;
    --text: #ececef;
    --sub: #b0b8c1;
    --muted: #7e8590;
    --line: #34343d;
    --accent: #4593fc;
    --accent-hover: #6aa8fd;
    --accent-weak: #1c2b44;
    --ok: #3ccb7f;
    --err: #ff6b6e;
    --r1: #6aa8fd;
    --r2: #f2916a;
    --r3: #4cc79c;
    color-scheme: dark;
  }
}

*, *::before, *::after { 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);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p, li, dd, dt, figcaption { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.04em; text-decoration: none; }
.top-nav { display: flex; gap: 28px; }
.top-nav a { color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: var(--text); }

.hero { padding-top: clamp(72px, 13vw, 160px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; line-height: 1.18; max-width: 14em; }
.hero-sub { margin-top: 24px; font-size: clamp(18px, 2vw, 22px); color: var(--sub); max-width: 30em; line-height: 1.6; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-quiet { background: var(--card); color: var(--text); }
.btn-quiet:hover { background: var(--inset); }
.btn-block { width: 100%; }

.products { display: grid; gap: 24px; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5.5vw, 64px);
  scroll-margin-top: 80px;
}

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--inset); color: var(--sub); }
.tag-accent { background: var(--accent-weak); color: var(--accent); }

.product h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.2; }
.lede { margin-top: 14px; font-size: clamp(19px, 2vw, 22px); font-weight: 600; line-height: 1.5; color: var(--text); }

.points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 20px; color: var(--sub); font-size: 16px; line-height: 1.65; }
.points li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }

.meta { margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 500; }
.links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.links a { color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.links a::after { content: " \2192"; }
.links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.credit { margin-top: 10px; color: var(--muted); font-size: 13px; }
.credit a { color: var(--sub); text-underline-offset: 3px; }

.product-side { min-width: 0; display: grid; gap: 16px; }

.waitlist { background: var(--inset); border-radius: var(--radius-md); padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 16px; scroll-margin-top: 96px; }
.waitlist h3 { font-size: 22px; font-weight: 800; }
.waitlist-help { color: var(--sub); font-size: 15px; margin-top: -8px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.field input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; background: var(--card); color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s ease; }
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-status { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.waitlist-status:empty { display: none; }
.waitlist-status[data-state="ok"] { color: var(--ok); }
.waitlist-status[data-state="error"] { color: var(--err); }
.waitlist.is-done .field, .waitlist.is-done .btn { display: none; }

.pane { margin: 0; background: var(--inset); border-radius: var(--radius-md); overflow: hidden; }
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.pane-bar img { border-radius: 5px; }
.pane-tabs { margin-left: auto; display: flex; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pane-tabs > * { padding: 4px 10px; border-radius: 8px; }
.pane-tabs b { background: var(--card); color: var(--text); }
.pane-body { padding: 20px 18px 22px; display: grid; gap: 14px; }
.pane-cell { font-size: 13px; font-weight: 600; color: var(--muted); }
.formula, .ref, .pane-cell, .install pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.formula { font-size: 14.5px; font-weight: 500; line-height: 1.9; background: var(--card); padding: 12px 14px; border-radius: 12px; overflow-wrap: anywhere; word-break: normal; }
.ref { padding: 2px 6px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.r1 { color: var(--r1); background: color-mix(in srgb, var(--r1) 13%, transparent); }
.r2 { color: var(--r2); background: color-mix(in srgb, var(--r2) 13%, transparent); }
.r3 { color: var(--r3); background: color-mix(in srgb, var(--r3) 13%, transparent); }
.recipe { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.9; color: var(--sub); }
.recipe li { counter-increment: step; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.recipe .step { min-width: 0; }
.recipe li::before { content: counter(step); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--card); font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1; transform: translateY(2px); }
.recipe b, .result b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.result { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); font-weight: 600; }
.result b { font-size: 18px; }
.pane figcaption { padding: 0 18px 16px; font-size: 12px; color: var(--muted); }

.flow { background: var(--inset); border-radius: var(--radius-md); padding: 28px 24px; display: grid; gap: 22px; }
.flow-line { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: center; text-align: center; font-weight: 700; font-size: 16px; }
.flow-line li { background: var(--card); border-radius: 12px; padding: 14px 8px; }
.flow-line li:nth-child(2) { color: var(--accent); background: var(--accent-weak); }
.flow-states { margin: 0; display: grid; gap: 8px; }
.flow-states div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 12px 14px; background: var(--card); border-radius: 12px; }
.flow-states dt { color: var(--sub); font-weight: 500; }
.flow-states dd { margin: 0; color: var(--muted); font-weight: 600; text-align: right; }
.flow-states dd.on { color: var(--accent); }

.install { background: var(--inset); border-radius: var(--radius-md); overflow: hidden; }
.install-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 18px; font-size: 14px; font-weight: 600; color: var(--sub); }
.copy { border: 0; background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer; }
.copy:hover { color: var(--accent); }
.install pre { margin: 0; padding: 14px 18px 18px; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; overflow-x: auto; font-size: 12.5px; line-height: 1.8; color: var(--sub); }

.about { padding-top: clamp(80px, 12vw, 140px); padding-bottom: clamp(80px, 12vw, 140px); }
.about h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.about p { margin-top: 14px; font-size: clamp(18px, 2vw, 21px); color: var(--sub); max-width: 32em; }

.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.foot-brand { font-weight: 800; color: var(--text); letter-spacing: -0.04em; margin-right: auto; font-size: 16px; }
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 880px) {
  .product { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-nav { gap: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .product { border-radius: 24px; }
  .points li { font-size: 15.5px; }
  .install pre { font-size: 12px; }
  .foot-brand { flex-basis: 100%; }
}
