/* 사용 가이드 공통 스타일(landing 의 색·글꼴과 같은 토큰). 페이지는 tools/guide/gen_guides.py 가 만든다. */
:root{
  color-scheme: light;
  --bg:#ffffff; --soft:#fff6dc; --yellow:#ffefb4; --accent:#f5a623; --accent-d:#d98c12;
  --ink:#2c3744; --ink2:#5b6675; --muted:#8b95a3; --line:#eceff3; --card:#ffffff;
  --radius:24px;
}
*{ box-sizing:border-box; }
.step > *, .hero-in > *, .leg li > div, .rel a > div, .first > div{ min-width:0; }
body{ overflow-x:hidden; }
html{ scroll-behavior:smooth; }
body{ margin:0; background:var(--bg); color:var(--ink); line-height:1.6;
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;
  -webkit-font-smoothing:antialiased; word-break:keep-all; overflow-wrap:break-word; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1080px; margin:0 auto; padding:0 24px; }

/* Header / Footer */
.hdr{ position:sticky; top:0; z-index:20; background:rgba(255,255,255,.88); backdrop-filter:saturate(180%) blur(12px); border-bottom:1px solid var(--line); }
.hdr-in{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; }
.logo img{ width:32px; height:32px; border-radius:9px; }
.nav{ display:flex; align-items:center; gap:28px; font-size:15px; font-weight:600; color:var(--ink2); }
.nav a:hover{ color:var(--ink); }
.btn-sm{ background:var(--ink); color:#fff !important; padding:9px 18px; border-radius:999px; font-size:14px; font-weight:700; }
footer{ border-top:1px solid var(--line); padding:36px 0 56px; font-size:13.5px; color:var(--muted); margin-top:24px; }
.f-links{ display:flex; flex-wrap:wrap; gap:6px 22px; margin-bottom:14px; font-weight:600; color:var(--ink2); }
.f-links a:hover{ color:var(--ink); }

/* Hero */
.hero{ background:linear-gradient(180deg,var(--yellow) 0%, #fff8e3 70%, #fff 100%); overflow:hidden; }
.hero-in{ display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:32px; padding:48px 0 36px; }
.hero-in.solo{ grid-template-columns:1fr; padding:56px 0 40px; max-width:820px; }
.crumb{ font-size:13px; color:var(--muted); margin-bottom:14px; }
.crumb a{ text-decoration:underline; }
.eyebrow{ display:inline-block; background:#fff; color:var(--accent-d); font-weight:800; font-size:13px; padding:6px 14px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.05); margin-bottom:16px; }
h1{ font-size:clamp(30px,5vw,48px); line-height:1.22; letter-spacing:-1px; font-weight:800; margin:0 0 16px; text-wrap:balance; }
h1 em{ font-style:normal; background:linear-gradient(transparent 62%, rgba(245,166,35,.45) 62%); }
.lead{ font-size:clamp(16px,2vw,18px); color:var(--ink2); margin:0 0 26px; }
.stores{ display:flex; flex-wrap:wrap; gap:12px; }
.store{ display:inline-flex; align-items:center; gap:10px; padding:12px 20px; border-radius:16px; font-weight:800; font-size:15px; transition:transform .15s; }
.store:hover{ transform:translateY(-2px); }
.store small{ display:block; font-size:11px; font-weight:600; opacity:.8; line-height:1.1; }
.store b{ display:block; line-height:1.15; }
.store.play{ background:var(--ink); color:#fff; box-shadow:0 8px 20px rgba(44,55,68,.25); }
.store.apple{ background:#fff; color:var(--ink); box-shadow:0 8px 20px rgba(0,0,0,.08); border:1px solid var(--line); }
.hero-visual{ padding:6px 0; }

/* Phone mock (화면 비율은 이미지 그대로) */
.phone{ position:relative; width:100%; max-width:270px; margin:0 auto; border-radius:38px; background:#111; padding:7px; box-shadow:0 30px 60px rgba(44,55,68,.22), 0 0 0 1px rgba(0,0,0,.06); }
.phone img{ display:block; width:100%; height:auto; border-radius:32px; background:#fff; }
.hero-visual .phone{ transform:rotate(2deg); }

/* Body */
.art{ padding-top:28px; }
.legend-hint{ text-align:center; color:var(--ink2); font-size:14.5px; margin:8px 0 22px; }
.dot{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--accent-d); color:#fff; font-size:12.5px; vertical-align:1px; }
.toc{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin:0 0 36px; }
.toc a{ padding:8px 14px; border-radius:999px; border:1px solid var(--line); font-size:13.5px; font-weight:700; color:var(--ink2); background:#fff; }
.toc a:hover{ border-color:var(--accent); color:var(--accent-d); }
h2{ font-size:clamp(22px,3.4vw,30px); line-height:1.3; letter-spacing:-.5px; margin:0 0 18px; font-weight:800; }
section{ padding:30px 0; }

.step{ display:grid; grid-template-columns:300px 1fr; gap:44px; align-items:center; padding:40px 0; scroll-margin-top:80px; border-top:1px solid var(--line); }
.step:first-of-type{ border-top:0; }
.step.rev{ grid-template-columns:1fr 300px; }
.step.rev figure{ order:2; }
.step figure{ margin:0; background:var(--soft); border-radius:32px; padding:26px 18px; }
.step:nth-of-type(3n+2) figure{ background:#eef4ff; }
.step:nth-of-type(3n) figure{ background:#eaf8f0; }
.tagp{ display:inline-block; color:var(--accent-d); font-weight:800; font-size:13.5px; margin-bottom:8px; }
.step h3{ font-size:clamp(21px,2.8vw,27px); margin:0 0 10px; letter-spacing:-.4px; line-height:1.3; }
.txt > p{ color:var(--ink2); font-size:16.5px; margin:0 0 20px; }
.leg{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.leg li{ display:flex; gap:14px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 16px; box-shadow:0 4px 14px rgba(44,55,68,.04); }
.leg li > b{ flex:0 0 auto; width:28px; height:28px; border-radius:50%; background:var(--accent-d); color:#fff; display:grid; place-items:center; font-size:14px; }
.leg strong{ display:block; font-size:15px; }
.leg span{ color:var(--ink2); font-size:14.5px; display:block; }
.note{ margin:18px 0 0; padding:14px 18px; border-radius:14px; background:var(--soft); color:#5a4a22; font-size:14.5px; }

.blk{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:26px 26px 18px; margin:22px 0; box-shadow:0 8px 22px rgba(44,55,68,.05); }
.blk h3{ margin:0 0 12px; font-size:21px; letter-spacing:-.3px; }
.blk p, .blk li{ color:var(--ink2); font-size:15.5px; }
.blk ul{ padding-left:20px; margin:8px 0 12px; display:grid; gap:6px; }
.tbl{ overflow-x:auto; margin:10px 0 14px; }
table{ border-collapse:collapse; width:100%; min-width:520px; font-size:14.5px; }
th,td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
th{ background:#faf6ea; color:var(--ink); white-space:nowrap; }
td:first-child{ font-weight:700; white-space:nowrap; }

/* FAQ / related / CTA */
.faq details{ background:#fff; border:1px solid var(--line); border-radius:14px; margin:10px 0; padding:2px 18px; }
.faq summary{ cursor:pointer; font-weight:800; padding:14px 0; list-style:none; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary:after{ content:'+'; float:right; color:var(--accent-d); font-weight:900; }
.faq details[open] summary:after{ content:'–'; }
.faq details p{ margin:0 0 14px; color:var(--ink2); font-size:15px; }
.more{ color:var(--ink2); font-size:14.5px; margin-top:18px; }
.more a{ color:var(--accent-d); text-decoration:underline; }
.rel{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.rel a{ display:flex; gap:14px; align-items:flex-start; border:1px solid var(--line); border-radius:16px; padding:16px; background:#fff; }
.rel a:hover{ border-color:var(--accent); }
.rel span{ font-size:26px; line-height:1; }
.rel b{ display:block; font-size:16px; }
.rel small{ display:block; color:var(--ink2); font-size:13.5px; margin-top:2px; }
.cta{ background:linear-gradient(135deg,#ffe08a,#f5a623); border-radius:32px; padding:48px 24px; text-align:center; margin:36px 0 20px; }
.cta h2{ margin-bottom:8px; }
.cta p{ color:#5a4a22; margin:0 0 22px; }
.cta .stores{ justify-content:center; }

/* Hub */
.firsts{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.first{ display:flex; gap:14px; align-items:flex-start; background:var(--soft); border-radius:18px; padding:18px; }
.first i{ font-style:normal; flex:0 0 auto; width:32px; height:32px; border-radius:50%; background:var(--accent-d); color:#fff; display:grid; place-items:center; font-weight:800; }
.first b{ display:block; font-size:17px; }
.first small{ display:block; color:var(--ink2); font-size:13.5px; margin-top:2px; }
.gcards{ display:grid; gap:16px; grid-template-columns:repeat(3,1fr); }
.gcard{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:22px; overflow:hidden; background:#fff; box-shadow:0 8px 22px rgba(44,55,68,.05); transition:transform .15s, box-shadow .15s; }
.gcard:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(44,55,68,.1); }
.gimg{ height:210px; overflow:hidden; background:var(--soft); display:flex; justify-content:center; align-items:flex-start; padding:16px 16px 0; }
.gimg img{ width:150px; height:auto; border-radius:18px 18px 0 0; box-shadow:0 8px 20px rgba(44,55,68,.18); }
.gimg span{ font-size:64px; align-self:center; }
.gtxt{ padding:16px 18px 20px; }
.gtxt b{ display:block; font-size:17px; margin-bottom:4px; }
.gtxt small{ color:var(--ink2); font-size:13.5px; line-height:1.5; display:block; }

@media (max-width:980px){ .gcards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .gcards{ grid-template-columns:1fr; } }
@media (max-width:820px){
  .nav a:not(.btn-sm){ display:none; }
  .hero-in{ grid-template-columns:1fr; padding:36px 0 24px; text-align:center; }
  .hero-in.solo{ text-align:left; padding:36px 0 24px; }
  .hero-visual{ display:none; }
  .stores{ justify-content:center; }
  .hero-in.solo .stores{ justify-content:flex-start; }
  .step, .step.rev{ grid-template-columns:1fr; gap:22px; padding:30px 0; }
  .step.rev figure{ order:0; }
  .step figure{ max-width:340px; margin:0 auto; width:100%; }
  .blk{ padding:20px 18px 14px; }
}
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } .store,.gcard{ transition:none; } }
