/* Tokens copied from components/onboarding/palette.ts — light is the design file's own, dark is its translation. */
:root { color-scheme: light dark;
  --eb-page-top: #FBFFD4; --eb-page-bottom: #FFFFFF;
  --eb-ink: #0E3A02; --eb-body: rgba(0,0,0,.6);
  --eb-pane: #DDE7D2;
  --eb-hero-bg: #0E3A02; --eb-hero-text: #FFFAEE;
  --eb-outline: rgba(14,58,2,.28);
  --eb-cta-bg: rgba(14,58,2,.3); --eb-cta-text: #092A00;
  --eb-focus: #0B3200;
  --eb-card: #F0E8D8;
  --eb-error: #8A1C1C; --eb-ok: #1F6B0A; --eb-device: #111;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 48px; --space-5: 96px;
  --radius: 24px; --radius-s: 12px;
  --w: 1120px;
}
@media (prefers-color-scheme: dark) { :root {
  --eb-page-top: #151A10; --eb-page-bottom: #0A0C07;
  --eb-ink: #CFE0C2; --eb-body: rgba(232,240,226,.62);
  --eb-pane: #1C2416;
  --eb-hero-bg: #CFE0C2; --eb-hero-text: #12210A;
  --eb-outline: rgba(207,224,194,.3);
  --eb-cta-bg: #2C3A22; --eb-cta-text: #CFE0C2;
  --eb-focus: #CFE0C2;
  --eb-card: #26241D;
  --eb-error: #F2A6A6; --eb-ok: #A9D68F;
}}

*, *::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; font: 400 16px/1.6 Pretendard, -apple-system, system-ui, sans-serif; color: var(--eb-ink);
  background: linear-gradient(var(--eb-page-top), var(--eb-page-bottom) 60%) fixed; min-height: 100dvh; }
img { display: block; max-width: 100% ; height: auto }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance }
p { margin: 0; color: var(--eb-body) }
a { color: inherit }
:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: 3px }
.wrap { width: min(var(--w), 100% - 2 * var(--space-2)); margin-inline: auto }
section { padding-block: var(--space-4) }
@media (min-width: 768px) { section { padding-block: var(--space-5) } }

/* Language switch — names the OTHER language, like components/onboarding/LanguageSwitch.tsx */
.lang { position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 12px; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--eb-body); text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; transition: color .2s }
[lang="ko"] .lang-en, [lang="en"] .lang-ko { display: none }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s; border: 0; font: inherit; font-weight: 600 }
.btn:hover { transform: translateY(-1px) } .btn:active { transform: scale(.98) }
.btn-primary { background: var(--eb-hero-bg); color: var(--eb-hero-text) }
.btn-secondary { background: var(--eb-cta-bg); color: var(--eb-cta-text) }

/* Hero */
.hero { position: relative; padding-top: var(--space-5) }
.hero .wrap { display: grid; gap: var(--space-4); align-items: center }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 5fr 7fr } }
.wordmark { width: 180px; height: auto }
.tagline { font-size: clamp(28px, 4vw, 44px); font-weight: 700; white-space: pre-line; margin-top: var(--space-3) }
.sub { font-size: 18px; margin-top: var(--space-2) }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3) }
.devices { position: relative }
.frame { background: var(--eb-device); border-radius: 28px; padding: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 20px 50px rgba(0,0,0,.18) }
.frame img { border-radius: 18px }
.frame img { width: 100%; height: 100%; object-fit: cover }
.frame-ipad { width: 100%; aspect-ratio: 1194 / 834 }
.frame-iphone { display: none; position: absolute; right: 0; bottom: -6%; width: 20%; border-radius: 36px; padding: 8px }
@media (min-width: 720px) { .frame-ipad { width: 84% } .frame-iphone { display: block } }
.frame-iphone img { border-radius: 28px }

/* Stories */
.stories .wrap { display: grid; gap: var(--space-3) }
@media (min-width: 768px) { .stories .wrap { grid-template-columns: repeat(3, 1fr) } }
.story { background: var(--eb-pane); border-radius: var(--radius); padding: var(--space-3); transition: transform .25s }
.story img { border-radius: var(--radius-s) }
.story h2 { font-size: 24px; margin-top: var(--space-2); white-space: pre-line }
.story p { margin-top: var(--space-1); white-space: pre-line }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story:nth-child(1):hover { transform: rotate(-1.5deg) } .story:nth-child(2):hover { transform: rotate(1.3deg) } .story:nth-child(3):hover { transform: rotate(-1deg) }
}

/* Tour */
.tour h2, .steps h2, .beta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: var(--space-3) }
.tour .grid { display: grid; gap: var(--space-3) }
@media (min-width: 768px) { .tour .grid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1024px) { .tour .grid { grid-template-columns: repeat(3, 1fr) } }
.tour-item .frame { width: min(70%, 220px); aspect-ratio: 393 / 852; margin: 0 auto var(--space-2); border-radius: 36px; padding: 8px }
.tour-item .frame img { border-radius: 28px; width: 100%; height: 100%; object-fit: cover; object-position: top }
.tour-item h3 { font-size: 18px } .tour-item p { margin-top: 4px }

/* Steps */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step }
@media (min-width: 768px) { .steps ol { grid-template-columns: repeat(3, 1fr) } }
.steps li { counter-increment: step; border-top: 1px solid var(--eb-outline); padding-top: var(--space-2) }
.steps li::before { content: counter(step, decimal-leading-zero); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--eb-body); font-size: 14px }
.steps h3 { font-size: 20px; margin-top: 6px }

/* Beta form */
.beta .card { background: var(--eb-pane); border-radius: var(--radius); padding: var(--space-3); max-width: 560px }
.field { margin-top: var(--space-2) } .field label { display: block; font-weight: 600; margin-bottom: 6px }
.field input { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; border: 1px solid var(--eb-outline); border-radius: var(--radius-s); background: var(--eb-page-bottom); color: var(--eb-ink) }
.field input:focus { outline: 2px solid var(--eb-focus); outline-offset: 1px; border-color: transparent }
.hint { margin-top: 6px }
.msg { min-height: 24px; margin-top: 8px } .msg.error { color: var(--eb-error) } .msg.ok { color: var(--eb-ok) }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.beta button[disabled] { opacity: .5; cursor: progress }
form[data-state="done"] .field, form[data-state="done"] .consent, form[data-state="done"] button { display: none }

/* Footer */
footer { padding: var(--space-4) 0; border-top: 1px solid var(--eb-outline); font-size: 14px; color: var(--eb-body) }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between }
footer nav { display: flex; gap: var(--space-2) } footer nav a { cursor: pointer; transition: color .2s; min-height: 44px; display: inline-flex; align-items: center }
footer .lang { position: static }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
@media (prefers-color-scheme: dark) { .wordmark { filter: brightness(0) invert(.85) } }
