/* Marketing site, tool pages, use-case pages and guides (static HTML from scripts/site.mjs + guides.mjs).
 * Builds on the variables in app.css. Every page uses the same .wrap container: full width up to
 * 1240 px with side padding, so content lines up with the header and footer on every page. */
:root {
  --m-indigo: #5b4bff; --m-violet: #9b3dff; --m-pink: #ff4fa3; --m-orange: #ff8a3d; --m-amber: #ffb547;
  --m-teal: #14b8a6; --m-sky: #38bdf8; --m-green: #22c55e;
  --m-grad: linear-gradient(120deg, #5b4bff 0%, #9b3dff 45%, #ff4fa3 100%);
  --m-band: #f4f2ff; --m-band-2: #fff6ee; --m-ink: #14112e;
  --m-max: 1280px;          /* widest content line; backgrounds still run edge to edge */
  --m-gutter: clamp(20px, 5vw, 64px);  /* 20 px phones → 5% tablets/laptops → 64 px desktop */
  --m-pad: max(var(--m-gutter), calc((100% - var(--m-max)) / 2));
  --sp-sec: 56px;           /* vertical rhythm: section padding */
  --sp-gap: 28px;           /* heading → content, block → block */
}
:root[data-theme='dark'] { --m-band: #17153a; --m-band-2: #1e1533; --m-ink: #f3f1ff; }

body.site { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
.wrap { width: 100%; margin: 0; padding-left: var(--m-pad); padding-right: var(--m-pad); }
.site h1, .site h2, .site h3 { letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.site img { max-width: 100%; height: auto; }
.grad-text { background: var(--m-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.m-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.m-top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.m-top .brand { display: flex; align-items: center; gap: 10px; padding: 0; font-weight: 800; font-size: 1.12rem; line-height: 1; color: var(--text); white-space: nowrap; }
.m-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.m-nav > a, .m-drop > summary { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; min-height: 40px; }
.m-drop > summary::-webkit-details-marker { display: none; }
.m-drop > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .6; }
.m-nav > a:hover, .m-drop > summary:hover, .m-nav > a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.m-drop { position: relative; }
.m-drop-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 340px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.m-drop-panel a { display: grid; grid-template-columns: 38px 1fr; gap: 0 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); }
.m-drop-panel a:hover { background: var(--surface-2); }
.m-drop-panel a .mi { grid-row: span 2; }
.m-drop-panel b { font-size: .95rem; } .m-drop-panel small { color: var(--text-3); font-size: .82rem; line-height: 1.35; }
.m-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.m-cta .icon-btn { width: 40px; height: 40px; }
.m-burger { display: none; }
.m-burger > summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; color: var(--text); }
.m-burger > summary::-webkit-details-marker { display: none; }
.m-burger-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px var(--m-pad) 20px; display: grid; gap: 2px; max-height: calc(100vh - 66px); overflow: auto; }
.m-burger-panel a { padding: 12px 10px; border-radius: 10px; font-weight: 600; color: var(--text); min-height: 44px; display: flex; align-items: center; gap: 10px; }
.m-burger-panel a:hover { background: var(--surface-2); }
.m-burger-panel .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding: 12px 10px 4px; }
.m-burger-panel .btn { margin-top: 10px; justify-content: center; }
@media (max-width: 1060px) { .m-nav { display: none; } .m-burger { display: block; } .m-top .wrap { gap: 10px; } }
@media (max-width: 520px) { .m-cta .btn-ghost-sm, .m-cta .theme-tg { display: none; } }
@media (max-width: 360px) { .m-cta > .btn-primary { display: none; } }
@media (max-width: 440px) { .m-top .brand { white-space: normal; font-size: 1rem; line-height: 1.1; min-width: 0; max-width: 9.5em; } .m-top .brand-mark { flex: none; } .m-cta { flex: none; } }

/* mini icon tiles (colour per tile) */
.mi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.mi .ico { width: 20px; height: 20px; }
.c1 { background: linear-gradient(135deg, #5b4bff, #8b7dff); } .c2 { background: linear-gradient(135deg, #ff4fa3, #ff7ac8); }
.c3 { background: linear-gradient(135deg, #ff8a3d, #ffb547); } .c4 { background: linear-gradient(135deg, #14b8a6, #34d399); }
.c5 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); } .c6 { background: linear-gradient(135deg, #9b3dff, #c084fc); }
.c7 { background: linear-gradient(135deg, #ef4444, #fb7185); } .c8 { background: linear-gradient(135deg, #16a34a, #4ade80); }

/* ---------- buttons ---------- */
.btn-xl { min-height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; font-weight: 700; }
.btn-grad { background: var(--m-grad); color: #fff; border: 0; box-shadow: 0 14px 34px -14px #9b3dff; }
.btn-grad:hover { filter: brightness(1.08); color: #fff; }
.btn-white { background: #fff; color: #2a1d8f; border-color: #fff; }
.btn-white:hover { background: #f1eeff; color: #2a1d8f; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-glass:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- hero ---------- */
.m-hero { position: relative; overflow: hidden; padding: var(--sp-sec) 0; background:
  radial-gradient(700px 420px at 8% 0%, color-mix(in srgb, var(--m-pink) 22%, transparent), transparent 70%),
  radial-gradient(800px 500px at 100% 20%, color-mix(in srgb, var(--m-indigo) 24%, transparent), transparent 70%),
  radial-gradient(600px 400px at 60% 110%, color-mix(in srgb, var(--m-amber) 22%, transparent), transparent 70%), var(--bg); }
.m-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.m-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 16px 0 14px; font-weight: 850; }
.m-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 600px; }
.m-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.m-hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.m-hero .ticks span { display: inline-flex; align-items: center; gap: 6px; }
.m-hero .ticks .ico { width: 18px; height: 18px; color: var(--m-green); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: .88rem; color: var(--text-2); box-shadow: var(--shadow); }
.eyebrow b { white-space: nowrap; background: var(--m-grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.hero-visual { position: relative; min-width: 0; width: 100%; max-width: 620px; justify-self: end; }
@media (max-width: 900px) { .hero-visual { justify-self: center; } }
.hero-sheet { position: relative; z-index: 1; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(40, 20, 120, .45), 0 0 0 1px rgba(20, 10, 80, .06); transform: rotate(2deg); max-width: 470px; margin-left: auto; }
.hero-sheet img { display: block; width: 100%; border-radius: 6px; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.float small { display: block; font-weight: 500; color: var(--text-3); font-size: .78rem; }
.float.f1 { left: 0; top: 14%; } .float.f2 { right: -6px; bottom: 16%; } .float.f3 { left: 6%; bottom: 2%; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; z-index: 0; }
.blob.b1 { width: 160px; height: 160px; background: var(--m-grad); right: -30px; top: -30px; }
.blob.b2 { width: 90px; height: 90px; background: linear-gradient(135deg, var(--m-amber), var(--m-orange)); left: 8%; bottom: -24px; }
@media (max-width: 900px) {
  .m-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-sheet { margin: 0 auto; max-width: 380px; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
}
@media (max-width: 600px) { :root { --sp-sec: 40px; --sp-gap: 22px; } .p-hero { padding: 28px 0; } }
@media (max-width: 480px) { .float { display: none; } .m-hero .actions .btn { width: 100%; justify-content: center; } }

/* ---------- sections ---------- */
.sec { padding: var(--sp-sec) 0; }
.sec:not(.band):not(.band-2) + .sec:not(.band):not(.band-2) { padding-top: 0; } /* two plain sections in a row: one gap, not two */
.sec.band { background: var(--m-band); } .sec.band-2 { background: var(--m-band-2); }
.sec-h { max-width: 820px; margin-bottom: var(--sp-gap); }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-h .kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--m-violet); margin-bottom: 10px; }
:root[data-theme='dark'] .sec-h .kicker { color: #c9a6ff; }
.sec-h h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 10px; font-weight: 820; }
.sec-h p { font-size: 1.12rem; color: var(--text-2); margin: 0; }

/* logos/strip of exam names */
.strip { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.strip span { font-weight: 800; color: var(--text-3); letter-spacing: .02em; font-size: 1.02rem; }
.strip .lbl { font-weight: 600; font-size: .9rem; color: var(--text-3); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-m { padding: 24px; border-radius: 20px; color: #fff; position: relative; overflow: hidden; }
.stat-m b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 850; line-height: 1.05; letter-spacing: -.02em; }
.stat-m span { opacity: .92; font-weight: 600; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* video */
.video-frame { position: relative; border-radius: 22px; padding: 10px; background: var(--m-grad); box-shadow: 0 50px 100px -40px rgba(91, 75, 255, .55); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0f0c29; }
.video-frame .play { position: absolute; inset: 10px; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; border-radius: 14px; background: rgba(15, 12, 41, .25); color: #fff; cursor: pointer; font: inherit; font-weight: 750; font-size: 1.05rem; transition: background .2s; }
.video-frame .play:hover { background: rgba(15, 12, 41, .1); }
.video-frame .play svg { width: 92px; height: 92px; padding: 24px 22px 24px 28px; border-radius: 50%; background: var(--m-grad); box-shadow: 0 20px 50px -10px rgba(155, 61, 255, .8); transition: transform .2s; }
.video-frame .play:hover svg { transform: scale(1.08); }
.video-frame .play span { padding: 6px 14px; border-radius: 999px; background: rgba(15, 12, 41, .55); }
.video-frame .play[hidden] { display: none; }
@media (max-width: 520px) { .video-frame .play svg { width: 64px; height: 64px; padding: 16px 14px 16px 20px; } .video-frame .play span { display: none; } }
.video-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); gap: 32px; align-items: center; }
.video-notes { display: grid; gap: 20px; }
@media (max-width: 1000px) { .video-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-gap); } .video-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.video-notes div { display: flex; gap: 12px; align-items: flex-start; }
.video-notes b { display: block; } .video-notes p { margin: 2px 0 0; color: var(--text-2); font-size: .95rem; }
@media (max-width: 760px) { .video-notes { grid-template-columns: minmax(0, 1fr); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.step .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 850; font-size: 1.2rem; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.18rem; } .step p { margin: 0; color: var(--text-2); }
.steps.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 8px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .steps.s3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* feature cards */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.fcard { display: block; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); transition: transform .15s, box-shadow .15s; min-width: 0; }
a.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.fcard .mi { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; } .fcard .mi .ico { width: 23px; height: 23px; }
.fcard h3 { margin: 0 0 8px; font-size: 1.15rem; } .fcard p { margin: 0; color: var(--text-2); }
.fcard .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--brand); }

/* alternating showcase rows with screenshots */
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.show + .show { margin-top: var(--sp-sec); }
.show.flip > :first-child { order: 2; }
.show h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 10px 0 12px; } .show p { color: var(--text-2); font-size: 1.06rem; }
.show ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.show li { display: flex; gap: 10px; align-items: flex-start; } .show li .ico { width: 20px; height: 20px; color: var(--m-green); flex: none; margin-top: 3px; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 70px -30px rgba(30, 20, 90, .45); background: var(--surface); }
.shot img { display: block; width: 100%; }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .shot-bar i:nth-child(2) { background: #febc2e; } .shot-bar i:nth-child(3) { background: #28c840; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 750; font-size: .8rem; color: #fff; }
@media (max-width: 860px) { .show { grid-template-columns: minmax(0, 1fr); } .show.flip > :first-child { order: 0; } }

/* why free / privacy panel */
.free { border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(255, 181, 71, .45), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(255, 79, 163, .45), transparent 70%), linear-gradient(135deg, #3b2bd6, #7b2ff7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.free h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 12px; } .free p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.free-list { display: grid; gap: 12px; }
.free-list > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.free-list b { display: block; color: #fff; } .free-list span { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.free-list .ico { width: 24px; height: 24px; flex: none; color: #ffe08a; }
@media (max-width: 860px) { .free { grid-template-columns: minmax(0, 1fr); } }

/* comparison table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--surface-2); font-size: .9rem; } .cmp tr:last-child td { border-bottom: 0; }
.cmp th.us, .cmp td.us { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); font-weight: 650; }
.cmp .y { color: var(--m-green); font-weight: 800; } .cmp .n { color: #ef4444; font-weight: 800; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; }
.cmp-wrap .cmp { min-width: 640px; }

/* audience cards */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.aud a { display: flex; flex-direction: column; border-radius: 22px; padding: 26px; color: #fff; min-height: 230px; position: relative; overflow: hidden; transition: transform .15s; }
.aud a:hover { transform: translateY(-4px); color: #fff; }
.aud h3 { color: #fff; margin: 14px 0 8px; font-size: 1.25rem; } .aud p { margin: 0; opacity: .92; flex: 1; }
.aud .go { margin-top: 16px; font-weight: 800; }
.aud .ico { width: 30px; height: 30px; }
@media (max-width: 1000px) { .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aud { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-m { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px 20px; align-items: start; }
.faq-m details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; box-shadow: var(--shadow); }
.faq-m summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-m summary::-webkit-details-marker { display: none; }
.faq-m summary::after { content: '+'; font-size: 1.4rem; font-weight: 500; color: var(--brand); flex: none; }
.faq-m details[open] summary::after { content: '−'; }
.faq-m details p { margin: 0 0 16px; color: var(--text-2); }

/* final CTA */
.cta-band { border-radius: 28px; padding: clamp(28px, 4vw, 48px); text-align: center; color: #fff; background: radial-gradient(500px 260px at 15% 0%, rgba(255, 181, 71, .5), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(56, 189, 248, .45), transparent 70%), linear-gradient(120deg, #5b4bff, #9b3dff 50%, #ff4fa3); }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 12px; } .cta-band p { font-size: 1.15rem; opacity: .95; margin: 0 auto; max-width: 620px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* page hero (inner pages) */
.p-hero { padding: 40px 0; background: radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--m-pink) 16%, transparent), transparent 70%), radial-gradient(700px 360px at 100% 0%, color-mix(in srgb, var(--m-indigo) 20%, transparent), transparent 70%), var(--bg); border-bottom: 1px solid var(--border); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.p-hero.solo .wrap { grid-template-columns: minmax(0, 1fr); }
.p-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 12px 0 12px; font-weight: 830; }
.p-hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 820px; margin: 0; }
.p-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.p-hero .art { min-width: 0; }
.p-hero .art .hero-sheet { transform: rotate(-2deg); max-width: 340px; }
.crumbs-m { font-size: .88rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs-m a { color: var(--text-3); } .crumbs-m a:hover { color: var(--brand); }
@media (max-width: 860px) { .p-hero .wrap { grid-template-columns: minmax(0, 1fr); } .p-hero .art { display: none; } }
@media (max-width: 480px) { .p-hero .actions .btn, .cta-band .actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; height: auto; padding-top: 12px; padding-bottom: 12px; } }

/* prose: articles, tool pages, legal pages */
.prose { font-size: 1.05rem; line-height: 1.75; min-width: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.5em 0 .45em; } .prose h3 { font-size: 1.15rem; margin: 1.2em 0 .35em; }
.prose p { margin: 0 0 .9em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; }
.prose table { width: 100%; margin: 1em 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }

/* article layout: content + sidebar, full container width */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 32px; padding-bottom: var(--sp-sec); align-items: start; }
.doc-side { position: sticky; top: 86px; display: grid; gap: 16px; min-width: 0; }
.side-card { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.side-card h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.side-card ol, .side-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.side-card li a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text-2); font-size: .93rem; line-height: 1.4; }
.side-card li a:hover { background: var(--surface-2); color: var(--brand); }
.side-cta { padding: 22px; border-radius: 18px; color: #fff; background: var(--m-grad); }
.side-cta b { display: block; font-size: 1.15rem; margin-bottom: 6px; } .side-cta p { margin: 0 0 14px; opacity: .92; font-size: .95rem; }
.side-cta .btn { width: 100%; justify-content: center; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text-3); font-size: .92rem; margin: 14px 0 0; }
@media (max-width: 980px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-side { position: static; } .doc-side .toc { display: none; } }

/* inline CTA box inside articles */
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 16px; background: var(--m-band); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border)); margin: 22px 0; }
.g-tool { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin: 18px 0 26px; box-shadow: var(--shadow); }
.g-faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px; margin: 8px 0; background: var(--surface); }
.g-faq summary { font-weight: 700; cursor: pointer; padding: 10px 0; }
.g-faq details p { margin: 0 0 12px; }
.g-list { columns: 2; padding-left: 1.2em; } @media (max-width: 600px) { .g-list { columns: 1; } }
.calc-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.calc-g label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
@media (max-width: 520px) { .calc-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-score { font-size: 2.4rem; font-weight: 800; } .calc-score small { font-size: 1.1rem; color: var(--text-3); }

/* guides index cards */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); transition: transform .15s, box-shadow .15s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.gcard .top { height: 8px; } .gcard .in { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard h3 { margin: 0; font-size: 1.1rem; } .gcard p { margin: 0; color: var(--text-2); font-size: .95rem; flex: 1; }
.gcard small { color: var(--text-3); font-weight: 600; }
.gtag { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; color: #fff; }

/* tool page "launch" panel */
.launch { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 30px; }
.launch b { font-size: 1.1rem; } .launch p { margin: 2px 0 0; color: var(--text-2); }

/* ---------- footer ---------- */
.m-foot { margin-top: 0; padding: 48px 0 24px; background: #0f0c29; color: #c9c6e8; }
.m-foot a { color: #c9c6e8; } .m-foot a:hover { color: #fff; }
.m-foot .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.m-foot .brand { padding: 0; color: #fff; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.m-foot p { margin: 12px 0 0; font-size: .95rem; color: #a8a4cf; max-width: 320px; }
.m-foot h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 14px; }
.m-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.m-foot li a { display: inline-block; padding: 4px 0; font-size: .95rem; }
.m-foot .base { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: #8f8bb8; }
.m-foot .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.m-foot .pills span { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e3e0ff; }
@media (max-width: 960px) { .m-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-foot .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .m-foot .cols { grid-template-columns: minmax(0, 1fr); } }

/* reveal on scroll is CSS-only: content is always visible (no JS needed) */
@media (prefers-reduced-motion: no-preference) {
  .m-hero h1, .m-hero .lead, .m-hero .actions { animation: rise .6s both; }
  .m-hero .lead { animation-delay: .08s; } .m-hero .actions { animation-delay: .16s; }
  .hero-sheet { animation: floaty 7s ease-in-out infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes floaty { 50% { transform: rotate(2deg) translateY(-8px); } }
}

.extras { margin-top: var(--sp-sec); }
/* long-form text across the full width: two columns on wide screens, headings never orphaned */
.prose-cols { columns: 2 460px; column-gap: 48px; }
.prose-cols h2 { break-after: avoid; margin-top: 0; padding-top: .9em; }
.prose-cols > h2:first-child { padding-top: 0; }
.prose-cols ul, .prose-cols ol, .prose-cols p { break-inside: avoid-column; }
