/* Easy Bible Story website. Brand tokens follow the app (src/styles.css). System fonts only (fast, no layout shift). */
:root {
  --navy: #1b2b57;
  --dusk: #2f4a86;
  --page: #fbf4e4;
  --gold: #f6c56f;
  --accent: #4f74b8;
  --accent-strong: #40619c;
  --accent-soft: #eff3fa;
  --bg: #ffffff;
  --surface-2: #f5f7fa;
  --text: #151a24;
  --muted: #4f5868;
  --line: #e3e7ee;
  --note-bg: #fbf3e4;
  --note-ink: #7a4f0c;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1526;
    --surface-2: #161e33;
    --text: #e9ecf3;
    --muted: #b3bccd;
    --line: #2a3450;
    --accent: #8fb0ea;
    --accent-strong: #a9c3f2;
    --accent-soft: #1c2742;
    --note-bg: #2b2415;
    --note-ink: #f3d79c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ko) body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h2.small { font-size: 1.1rem; color: var(--muted); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand .logo, .foot-brand .logo { border-radius: 9px; flex: none; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: .95rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav .nav-cta { color: var(--accent-strong); margin-left: auto; }

/* hero */
.hero { background: radial-gradient(800px 420px at 90% -10%, rgba(246, 197, 111, .25), transparent 60%), linear-gradient(160deg, var(--navy), var(--dusk)); color: #fbf4e4; padding: 48px 0 56px; }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--gold); }
.hero-sub { font-size: 1.2rem; color: #dfe6f5; max-width: 34em; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); order: -1; }
.hero .free-note, .hero .store-note { color: #c9d3ea; }
.hero .store-btn.is-soon { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .08); }
.hero .store-btn.is-soon .soon { color: var(--gold); }
.hero .store-btn:not(.is-soon) { background: #fff; color: var(--navy); }
.campaign { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; }
.campaign a { color: var(--gold); font-weight: 700; }
.campaign[hidden] { display: none; }
@media (min-width: 820px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1fr auto; }
  .hero-icon { width: 260px; height: 260px; border-radius: 58px; order: 0; }
}
.kicker { font-weight: 700; color: var(--accent-strong); font-size: .95rem; margin-bottom: .6em; letter-spacing: .01em; }

/* store buttons */
.store { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.store.center { justify-content: center; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; min-width: 170px; min-height: 56px; padding: 8px 20px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; line-height: 1.2; border: 1.5px solid transparent; }
.store-btn .store-pre { font-size: .75rem; opacity: .85; }
.store-btn .store-name { font-size: 1.15rem; font-weight: 700; }
.store-btn.is-soon { background: transparent; color: var(--text); border-color: var(--line); cursor: default; }
.store-btn .soon { font-size: .8rem; font-weight: 700; color: var(--accent-strong); order: 2; }
.store-note, .free-note { font-size: .92rem; color: var(--muted); margin: 0 0 .4em; }

/* sections */
.sec { padding: 48px 0; }
.sec.alt { background: var(--surface-2); }
.page-head { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.cta { text-align: center; background: var(--accent-soft); }
.cta .lead { margin-left: auto; margin-right: auto; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.modes { counter-reset: m; }
.modes .card h3::before { counter-increment: m; content: counter(m); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .9rem; margin-right: 10px; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.note { background: var(--note-bg); color: var(--note-ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.bullets { padding-left: 1.3em; }
.bullets li { margin-bottom: .5em; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .4em; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 12px; border: 1.5px solid var(--accent); color: var(--accent-strong); text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.actions { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* screenshots */
.shots { list-style: none; margin: 16px -16px 0; padding: 4px 16px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.thumbs { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.thumbs img { border-radius: 10px; border: 1px solid var(--line); }

/* free list, faq */
.free-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 48px; list-style-position: inside; }
details > :not(summary) { margin: 0 16px 16px; }
details ol { padding-left: 1.3em; }
.fl-count { color: var(--muted); font-weight: 600; font-size: .92rem; }
.faq { display: grid; gap: 10px; max-width: 820px; }

/* prices */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 640px; margin-bottom: 16px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.price p { margin: 0 0 .3em; }
.price strong { font-size: 1.3rem; }
.price-region { font-weight: 700; color: var(--muted); }

/* plans, parts */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.days { list-style: none; padding: 0; margin: 0; }
.days > li { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.days ul { list-style: none; padding: 0; margin: 0; }
.day { font-weight: 700; color: var(--accent-strong); }
.part-ref { display: block; font-size: .88rem; color: var(--muted); }
.parts { padding-left: 1.3em; }
.parts li { margin-bottom: .6em; }

/* press */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(7em, 12em) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.files { padding-left: 1.2em; }
.files li { margin-bottom: .4em; }
.swatches { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.swatches li { display: flex; align-items: center; gap: 8px; }
.sw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; }

/* share */
.badge { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; vertical-align: middle; }
.badge.free { background: #e6f4ea; color: #1d6b37; }
.badge.premium { background: var(--note-bg); color: var(--note-ink); }
.refs { padding-left: 1.2em; font-weight: 600; }
.pn { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.pn a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; font-weight: 700; background: var(--bg); }
.pn a span { display: block; color: var(--text); font-weight: 400; }
.pn .next { text-align: right; }

/* steps */
.steps { padding-left: 1.4em; max-width: 820px; }
.steps li { margin-bottom: 1.2em; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: .95rem; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-block; padding: 8px 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
