/* Guide pages (site/<slug>/index.html, built by tools/build_site_pages.py). Same palette and fonts as the landing page. */
:root {
  --bg: #f4f8fd; --deep: #0f2a4d; --deep2: #16437a; --blue: #1559a6; --sky: #6aaeff; --sky2: #86bdf1; --amber: #f2b04a; --amber2: #ffd27a;
  --fg: #13243a; --muted: #566a82; --line: #dbe5f1; --card: #ffffff; --ok: #12805c; --ok-bg: #e2f5ec; --tint: #e8f1fc;
  --shadow: 0 18px 40px -26px rgba(15, 42, 77, .35);
  --display: 'Secular One', 'Heebo', sans-serif; --body: 'Heebo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.75; }
a { color: var(--blue); }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 4vw, 40px); background: rgba(244, 248, 253, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--deep); font-family: var(--display); font-size: 22px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: #1a1205; font-weight: 700; text-decoration: none; padding: 10px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(184, 106, 0, .7); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .75); color: var(--deep); box-shadow: none; border: 1px solid rgba(15, 42, 77, .15); }
.btn.big { padding: 14px 32px; font-size: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky2) 0%, #b9dbfa 55%, var(--bg) 100%); padding: 28px clamp(16px, 4vw, 40px) 56px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 999px; background: rgba(255, 255, 255, .7); filter: blur(2px); }
.hero::before { width: 260px; height: 70px; top: 40px; left: -40px; box-shadow: 80px -18px 0 -6px rgba(255, 255, 255, .7), 160px 4px 0 -10px rgba(255, 255, 255, .6); }
.hero::after { width: 200px; height: 56px; bottom: 70px; right: -30px; box-shadow: -70px -14px 0 -6px rgba(255, 255, 255, .6); }
.hero-in { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.hero .plane { position: absolute; z-index: 0; top: 22px; left: clamp(8px, 6vw, 80px); width: clamp(70px, 14vw, 140px); color: var(--deep); opacity: .9; transform: rotate(-20deg); }
.crumbs { font-size: 14px; color: var(--deep2); margin: 0 0 10px; }
.crumbs a { color: var(--deep2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .7); color: var(--deep); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin: 0 0 12px; }
h1 { font-family: var(--display); font-weight: 400; color: var(--deep); font-size: clamp(32px, 6vw, 52px); line-height: 1.15; margin: 0 0 14px; max-width: 760px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--deep); max-width: 760px; margin: 0 0 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--deep); border-radius: 14px; padding: 8px 14px; font-weight: 500; font-size: 15px; box-shadow: var(--shadow); }
.fact svg { color: var(--blue); width: 20px; height: 20px; }

/* Stage rail */
.rail { max-width: 920px; margin: -30px auto 0; position: relative; z-index: 2; padding: 0 16px; }
.rail ol { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); position: relative; }
.rail li { text-align: center; position: relative; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 13px; line-height: 1.3; padding: 4px 2px; border-radius: 12px; }
.rail .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-family: var(--display); font-size: 17px; }
.rail .on a { color: var(--deep); font-weight: 700; }
.rail .on .n { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(21, 89, 166, .15); }
.rail ol::before { content: ''; position: absolute; top: 35px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.rail .n { position: relative; z-index: 1; }

/* Layout */
main { max-width: 920px; margin: 0 auto; padding: 28px 16px 60px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.toc span { color: var(--muted); font-size: 14px; align-self: center; margin-left: 4px; }
.toc a { font-size: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); color: var(--deep); padding: 4px 12px; border-radius: 999px; }
.toc a:hover { border-color: var(--blue); }
.sec { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px clamp(18px, 3vw, 30px); margin: 0 0 18px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sec-h .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
h2 { font-family: var(--display); font-weight: 400; color: var(--deep); font-size: clamp(22px, 3.4vw, 27px); line-height: 1.3; margin: 0; }
h3 { font-size: 18px; margin: 18px 0 4px; color: var(--deep); }
.sec p { margin: 10px 0; }

/* Category tiles */
.cats { list-style: none; padding: 0; margin: 14px 0 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cats li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; line-height: 1.55; }
.cats .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--blue); box-shadow: 0 4px 10px -6px rgba(15, 42, 77, .4); }
.cats b { display: block; color: var(--deep); margin-bottom: 2px; }
.cats span { color: var(--muted); font-size: 15px; }

/* Checklists */
ul.tips { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
ul.tips li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 10px 12px; line-height: 1.6; }
ul.tips li svg { color: var(--ok); width: 20px; height: 20px; margin-top: 3px; }
ul.plain li svg { color: var(--blue); }

/* Sample questions */
.q { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 14px 0; }
.q .meta { display: inline-block; font-size: 13px; color: var(--blue); background: var(--tint); border-radius: 999px; padding: 2px 10px; margin: 0 0 6px; }
.q .qt { font-size: 18px; color: var(--deep); font-weight: 500; margin: 4px 0 10px; }
.q ol { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.q ol li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.q ol li i { font-style: normal; width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-weight: 700; font-size: 14px; }
.q details summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; list-style: none; }
.q details summary::-webkit-details-marker { display: none; }
.q details summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; line-height: 1; }
.q details[open] summary::before { content: '–'; }
.q .ans { display: flex; gap: 8px; align-items: center; background: var(--ok-bg); color: var(--ok); font-weight: 700; border-radius: 12px; padding: 8px 12px; margin: 10px 0 6px; }
.qtable { border-collapse: collapse; margin: 6px 0 10px; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 15px; }
.qtable caption { text-align: right; font-weight: 700; color: var(--deep); padding-bottom: 6px; }
.qtable th, .qtable td { border: 1px solid var(--line); padding: 6px 12px; text-align: center; }
.qtable th { background: var(--tint); color: var(--deep); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--deep) 0%, var(--deep2) 100%); color: #fff; border-radius: 26px; padding: 30px clamp(20px, 4vw, 40px); margin: 30px 0; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #d6e4f7; margin: 0 0 16px; }
.cta .stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.cta .stats span { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 6px 12px; font-size: 14px; }
.cta .stats b { display: block; font-family: var(--display); font-size: 22px; color: var(--amber2); line-height: 1.2; }
.cta .art { width: 130px; color: rgba(255, 255, 255, .9); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; color: var(--deep); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: 18px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 12px; color: var(--fg); }

/* More guides */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.more a { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--deep); font-weight: 700; transition: border-color .15s; }
.more a:hover { border-color: var(--blue); }
.more a .n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-family: var(--display); }
.note { font-size: 14px; color: var(--muted); text-align: center; }
footer { text-align: center; font-size: 14px; color: var(--muted); padding: 24px 16px 40px; border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }

@media (max-width: 640px) {
  .rail ol { grid-template-columns: repeat(5, 1fr); padding: 10px 6px; }
  .rail a { font-size: 11px; }
  .rail .n { width: 30px; height: 30px; font-size: 15px; }
  .rail ol::before { top: 29px; }
  .cta { grid-template-columns: 1fr; }
  .cta .art { display: none; }
  .hero .plane { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
