/* ForkTeller site — docs/DESIGN.md tokens. Mobile-first, no build step. */
:root {
  --paper: #F7F3EC;
  --ink: #1E1E24;
  --ink-soft: #6B6873;
  --card: #FFFFFF;
  --line: #ECE6DC;
  --forky: #FFB020;
  --forky-deep: #FF8A00;
  --go: #58CC02;
  --radius-card: 20px;
  --radius-btn: 16px;
  --gutter: 24px;
  --maxw: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 600 17px/1.55 Nunito, ui-rounded, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  overflow-x: hidden;
}
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p, :lang(ko) li, :lang(ko) td { word-break: keep-all; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--forky-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Header ----------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-weight: 800; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }

/* Hero ------------------------------------------------------------------- */
.hero { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--forky-deep); background: #FFF1D6; padding: 6px 12px; border-radius: 999px; margin: 0 0 16px; }
.hero h1 { font-weight: 900; font-size: clamp(40px, 11vw, 72px); line-height: 1.02; letter-spacing: -1.2px; margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34rem; }

.actions { display: grid; gap: 14px; max-width: 26rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 24px;
  border-radius: var(--radius-btn); background: var(--ink); color: #fff; font-family: inherit; font-weight: 800; font-size: 18px; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; transition: transform .12s ease; }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 700; opacity: .85; line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; }
.soon { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-btn);
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 15px; color: var(--ink-soft); }
.soon::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--forky); flex: none; }
[hidden] { display: none !important; }

/* The verdict demo: Forky + the answer, drawn in HTML (no screenshots yet). */
.stage { position: relative; background: linear-gradient(to bottom, var(--card) calc(100% - 56px), #EFE8DC calc(100% - 56px)); border-radius: 28px; padding: 22px 20px 0; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(30, 30, 36, .25); }
.trip { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.trip .pill { background: var(--paper); border-radius: 999px; padding: 6px 12px; color: var(--ink); }
.trip .line2 { width: 10px; height: 10px; border-radius: 50%; background: #00A84D; }
.answer { display: flex; align-items: center; gap: 16px; margin: 22px 0 6px; }
.arrow { width: 84px; height: 84px; border-radius: 50%; background: var(--forky); display: grid; place-items: center; flex: none; }
.arrow svg { width: 46px; height: 46px; }
.word { font-weight: 900; font-size: 60px; line-height: 1; letter-spacing: -1px; }
.hint { font-weight: 800; font-size: 20px; margin: 0 0 4px; }
.bubble { position: relative; display: inline-block; background: var(--paper); border-radius: 16px; padding: 10px 14px;
  font-weight: 700; font-size: 15px; color: var(--ink-soft); margin-top: 12px; }
.stage .forky { width: 50%; max-width: 230px; height: auto; margin: 4px 4% 10px auto; }

/* Sections --------------------------------------------------------------- */
section { padding: 40px 0; }
h2 { font-weight: 900; font-size: clamp(28px, 7vw, 40px); line-height: 1.1; letter-spacing: -.6px; margin: 0 0 24px; }
.features { display: grid; gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius-card); padding: 24px; }
.feature .num { width: 44px; height: 44px; border-radius: 50%; background: var(--forky); display: grid; place-items: center;
  font-weight: 900; font-size: 20px; margin-bottom: 14px; }
.feature h3 { font-weight: 900; font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); }

.band { display: grid; gap: 16px; }
.band .card { background: var(--card); border-radius: var(--radius-card); padding: 24px; }
.band h3 { font-weight: 900; font-size: 22px; margin: 0 0 8px; }
.band p { margin: 0; color: var(--ink-soft); }
.band .accent { background: var(--ink); color: #fff; }
.band .accent p { color: rgba(255, 255, 255, .78); }

/* Footer ----------------------------------------------------------------- */
footer.site { padding: 40px 0 56px; border-top: 2px solid var(--line); margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 800; margin-bottom: 14px; }
footer.site .links a { text-decoration: none; color: var(--ink); }
footer.site p { margin: 6px 0; }
.lang { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 800; }
.lang select { font: inherit; font-weight: 700; color: var(--ink); background: var(--card); border: 2px solid var(--line);
  border-radius: 10px; padding: 6px 10px; }

/* Legal / support pages -------------------------------------------------- */
.doc { max-width: 46rem; padding-bottom: 24px; }
.doc h1 { font-weight: 900; font-size: clamp(32px, 8vw, 44px); line-height: 1.1; letter-spacing: -.6px; margin: 8px 0 6px; }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 24px; }
.doc h2 { font-size: 22px; letter-spacing: -.2px; margin: 34px 0 10px; }
.doc h3 { font-size: 18px; font-weight: 900; margin: 22px 0 6px; }
.doc p, .doc li { color: #3a3942; }
.doc ul, .doc ol { padding-inline-start: 1.25rem; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 800; }
.doc .card { background: var(--card); border-radius: var(--radius-card); padding: 18px 20px; margin: 14px 0; }
.doc .card p { margin: 6px 0; }
.table-scroll { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 15px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 900; background: #FBF8F3; }
.langtabs { display: inline-flex; gap: 4px; background: var(--card); padding: 4px; border-radius: 12px; margin: 4px 0 8px; }
.langtabs a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 9px; color: var(--ink-soft); }
.langtabs a[aria-current="true"] { background: var(--ink); color: #fff; }
article[lang] + article[lang] { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--line); }
.js article[lang] + article[lang] { margin-top: 0; padding-top: 0; border-top: 0; }
details.faq { background: var(--card); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 900; font-size: 17px; padding: 14px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: inline-end; color: var(--forky-deep); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 14px; }

/* Wider screens ---------------------------------------------------------- */
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-top: 36px; padding-bottom: 72px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store { transition: none; }
}
