/* Paper UI tokens, mirrored in plain CSS: white and black carry the structure. */
:root {
  --bg: #f5f5f5;
  --raised: #ffffff;
  --sunken: #ebebec;
  --ink: #1d1d1f;
  --ink-strong: #111114;
  --subtle: #5a5a61;
  --border: #e1e1e4;
  --border-strong: #b3b3b9;
  --solid: #111114;
  --on-solid: #fafafa;
  --focus: #205ce3;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --raised: #1d1d1f;
    --sunken: #0b0b0d;
    --ink: #f5f5f5;
    --ink-strong: #ffffff;
    --subtle: #919199;
    --border: #2e2e32;
    --border-strong: #5a5a61;
    --solid: #fafafa;
    --on-solid: #111114;
    --focus: #5b90fe;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--mono); font-size: .9em; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--solid); color: var(--on-solid); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top .mark { width: 28px; height: 28px; color: var(--ink-strong); }
.top a.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.top nav { display: flex; gap: 20px; font-size: .9rem; color: var(--subtle); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .top nav .opt { display: none; } }

/* hero */
.hero { padding: 56px 0 72px; text-align: center; }
.lockup { width: min(420px, 82%); height: auto; color: var(--ink-strong); display: block; margin: 0 auto 32px; }
.hero .pitch { font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 650; margin: 0 auto 16px; max-width: 20ch; text-wrap: balance; color: var(--ink-strong); }
.hero p.lede { color: var(--subtle); font-size: 1.125rem; max-width: 52ch; margin: 0 auto 32px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; border: 1px solid var(--border-strong); background: transparent; color: var(--ink); transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--raised); border-color: var(--ink); }
.btn.primary { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.btn.primary:hover { background: var(--solid); opacity: .86; }
.btn svg { width: 16px; height: 16px; flex: none; }
.meta { margin-top: 16px; font-size: .85rem; color: var(--subtle); }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--raised); border-block: 1px solid var(--border); }
.eyebrow { font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin: 0 0 12px; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 0 0 20px; color: var(--ink-strong); text-wrap: balance; }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 8px; font-weight: 650; color: var(--ink-strong); }
h3.gap { margin: 48px 0 16px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.sub { color: var(--subtle); max-width: 60ch; margin: -8px 0 32px; }

.problems { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.problems li { position: relative; padding-left: 22px; }
.problems li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 2px; background: var(--ink); }

/* features */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--subtle); font-size: .95rem; text-wrap: pretty; }

/* table */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 0; }
@media (max-width: 560px) { th, td { padding: 10px 10px; font-size: .88rem; } tbody th { width: 34%; } }
caption { position: absolute; left: -9999px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); font-weight: 600; background: var(--sunken); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 500; width: 38%; }
td.yes { font-weight: 600; color: var(--ink-strong); }
td.no { color: var(--subtle); }

/* download */
.dl { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.dl > * { min-width: 0; }
@media (min-width: 840px) { .dl { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.code { display: flex; align-items: center; gap: 8px; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 16px 0 0; }
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.code code::-webkit-scrollbar { display: none; }
.copy { flex: none; min-height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--ink); font: 600 .8rem var(--sans); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.copy[hidden] { display: none; }
.reqs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; color: var(--subtle); font-size: .95rem; }
.reqs strong { color: var(--ink); font-weight: 600; }
.card .btn { margin-top: 16px; }

ol.steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 66ch; }
ol.steps li { counter-increment: s; position: relative; padding-left: 40px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font: 600 .8rem var(--sans); color: var(--subtle); }
.note { margin: 20px 0 0; max-width: 66ch; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--ink); border-radius: var(--radius-sm); background: var(--raised); color: var(--subtle); font-size: .92rem; overflow-wrap: anywhere; }

dl.perms { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--raised); }
dl.perms div { padding: 16px 20px; border-bottom: 1px solid var(--border); }
dl.perms div:last-child { border-bottom: 0; }
dl.perms dt { font-weight: 650; color: var(--ink-strong); margin-bottom: 2px; }
dl.perms dd { margin: 0; color: var(--subtle); font-size: .95rem; }
dl.perms .opt-tag { font-weight: 500; color: var(--subtle); font-size: .8rem; margin-left: 6px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--subtle); font-size: .9rem; }
footer .cols { display: grid; gap: 20px; }
@media (min-width: 720px) { footer .cols { grid-template-columns: 1fr auto; } }
footer p { margin: 0 0 8px; max-width: 70ch; text-wrap: pretty; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
