/* SciScholar website styles — colors match the SciScholar app */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque.woff2) format('woff2-variations'), url(fonts/bricolage-grotesque.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree.woff2) format('woff2-variations'), url(fonts/figtree.woff2) format('woff2');
}

:root {
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --ink: #151922;
  --body: #4B5263;
  --muted: #626978;
  --line: #DDE3EC;
  --navy: #052357;
  --navy-deep: #041A40;
  --on-navy: #C9D5EA;
  --on-navy-muted: #9FB0CE;
  --blue: #0968EE;
  --blue-tint: #E6F2FF;
  --cyan: #29C5F6;
  --yellow: #FFD166;
  --premium: #0B4E35;
  --premium-ink: #073B2B;
  --wrong: #C2410C;
  --wrong-tint: #FFF0DF;

  --cr-bg: #F1EAFF; --cr-line: #D5C2FA; --cr-ink: #7134E8; --cr-solid: #7134E8;
  --ll-bg: #EAF8E9; --ll-line: #BCE6C6; --ll-ink: #15803D; --ll-solid: #16A34A;
  --sci-bg: #E6F2FF; --sci-line: #B5D8FC; --sci-ink: #0968EE; --sci-solid: #0968EE;
  --math-bg: #FFF0DF; --math-line: #FFD2B3; --math-ink: #C2410C; --math-solid: #F97316;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --grid: linear-gradient(rgba(5, 35, 87, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 35, 87, 0.06) 1px, transparent 1px);
  --grid-light: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: #0650B8; }
h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; color: #fff; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-logo { display: block; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.footer-brand .brand-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }
.app-box .brand-logo { width: 52px; height: 52px; border-radius: 14px; }
.subject-icon-img { display: block; width: 56px; height: 56px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 0; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; font-weight: 700; }
.nav .btn-pill, .btn-pill { background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 0 18px; min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; }
.nav .btn-pill:hover, .btn-pill:hover { background: #0757CB; color: #fff; }

/* Shared section bits */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--grid { background-color: var(--bg); background-image: var(--grid); background-size: 28px 28px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.h2 { font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.section-head p:not(.kicker) { font-size: 18px; color: var(--body); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; padding: 12px 0; }
.arrow-link svg { width: 20px; height: 20px; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.badge-link { display: inline-flex; border-radius: 10px; }
.badge-link img { display: block; height: 60px; width: auto; }

/* Hero */
.hero { background-color: var(--navy); background-image: var(--grid-light); background-size: 28px 28px; color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: #DCE6F7; }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--cyan); flex: none; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.03; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--on-navy); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero .text-link { color: #fff; font-weight: 700; font-size: 17px; text-underline-offset: 5px; padding: 12px 2px; }
.hero .text-link:hover { color: var(--cyan); }
.hero .fine { font-size: 15px; color: #B9C6DD; }
.hero-art { flex: 1 1 340px; min-width: 0; position: relative; display: flex; justify-content: center; align-items: center; padding: 12px 0; }
.hero-blob { position: absolute; width: min(300px, 78vw); height: 86%; border-radius: 44px; background: var(--yellow); transform: rotate(-6deg); }
.phone { position: relative; width: min(300px, 78vw); background: #0B1530; border: 1.5px solid rgba(255,255,255,0.22); border-radius: 44px; padding: 11px; }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.float-card { position: absolute; left: 0; bottom: 14%; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px 16px; width: max-content; max-width: min(320px, 100%); }
.float-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.float-card .tile { width: 40px; height: 40px; border-radius: 12px; background: #E4F1FF; color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.float-card .tile svg { width: 22px; height: 22px; stroke-width: 2.2; }
.float-card strong { display: block; font-size: 15px; }
.float-card span span { font-size: 14px; color: var(--muted); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
.card p { color: var(--body); }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 24px; height: 24px; }
.card--premium { background: var(--premium); border-color: var(--premium); color: #fff; }
.card--premium p { color: #D3EADD; }
.premium-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--premium-ink); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; border-radius: 999px; padding: 6px 12px; }
.premium-badge svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* Subjects */
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.subject { background: var(--s-bg); border: 1.5px solid var(--s-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.subject--cr { --s-bg: var(--cr-bg); --s-line: var(--cr-line); --s-ink: var(--cr-ink); --s-solid: var(--cr-solid); }
.subject--ll { --s-bg: var(--ll-bg); --s-line: var(--ll-line); --s-ink: var(--ll-ink); --s-solid: var(--ll-solid); }
.subject--sci { --s-bg: var(--sci-bg); --s-line: var(--sci-line); --s-ink: var(--sci-ink); --s-solid: var(--sci-solid); }
.subject--math { --s-bg: var(--math-bg); --s-line: var(--math-line); --s-ink: var(--math-ink); --s-solid: var(--math-solid); }
.subject-head { display: flex; align-items: center; gap: 14px; }
.subject-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--s-solid); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.subject-icon svg { width: 28px; height: 28px; }
.subject h3 { font-weight: 700; font-size: 24px; line-height: 1.2; }
.subject p { color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li, .chip { background: #fff; border: 1px solid var(--s-line); color: var(--s-ink); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 6px 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 14px; }
.step-num { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.steps li:first-child .step-num { background: var(--yellow); }
.steps h3 { font-weight: 700; font-size: 22px; }
.steps p { color: var(--body); }

/* Screenshot gallery */
.gallery { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; margin: 0; list-style: none; padding-left: 0; scroll-snap-type: x mandatory; }
.gallery li { flex: 0 0 min(208px, 70vw); display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.gallery .frame { background: var(--ink); border-radius: 34px; padding: 8px; margin-bottom: 8px; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 27px; }
.gallery h3 { font-weight: 700; font-size: 19px; }
.gallery p { font-size: 15px; line-height: 1.5; color: var(--body); }

/* Quiz */
.quiz-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.try-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.quiz { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.quiz--featured { flex: 1 1 460px; min-width: 0; max-width: 600px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.quiz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.quiz-num { font-family: var(--display); font-weight: 800; font-size: 16px; }
.quiz-tag { background: var(--s-bg, var(--blue-tint)); color: var(--s-ink, var(--blue)); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 5px 12px; }
.quiz-note { font-size: 14px; color: var(--muted); }
.quiz-q { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 16px; min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 17px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:hover { border-color: #A9B6CB; }
.option .letter { width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.option.is-correct { border-color: var(--blue); background: var(--blue-tint); }
.option.is-wrong { border-color: var(--wrong); background: var(--wrong-tint); }
.quiz.is-answered .option { cursor: default; }
.quiz-hint { font-size: 15px; color: var(--muted); }
.feedback { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.feedback[hidden] { display: none; }
.verdict { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.verdict.good { color: var(--blue); }
.verdict.bad { color: var(--wrong); }
.verdict svg { width: 20px; height: 20px; stroke-width: 2.6; flex: none; }
.feedback .explain { color: var(--body); }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.btn-outline { background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 18px; min-height: 44px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.btn-outline:hover { background: var(--bg); }
.scorebar { background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.scorebar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.scorebar-score { font-family: var(--display); font-weight: 800; font-size: 22px; }
.scorebar-right { display: flex; align-items: center; gap: 14px; color: var(--body); font-size: 15px; }
.progress { height: 10px; border-radius: 999px; background: #D2D9E4; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .25s; }
.quiz-list { display: flex; flex-direction: column; gap: 20px; }

/* Guide cards */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: border-color .15s, transform .15s; }
.guide-card:hover { color: var(--ink); border-color: var(--blue); transform: translateY(-2px); }
.guide-card .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.guide-card .title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.guide-card .desc { color: var(--body); }
.guide-card .more { margin-top: 6px; font-weight: 700; font-size: 15px; color: var(--blue); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { font-weight: 700; font-size: 19px; line-height: 1.3; }
.faq-item p { color: var(--body); }
.faq-item a { font-weight: 700; }

/* Maker strip */
.maker { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0; }
.maker .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.maker .small { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.maker .name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.maker .tag { color: var(--body); }
.btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.btn-ghost:hover { color: var(--ink); background: var(--bg); }

/* Final CTA */
.final-cta { background-color: var(--navy); background-image: var(--grid-light); background-size: 28px 28px; color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.final-cta .wrap { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.final-cta h2 { font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.final-cta h2 em { font-style: normal; color: var(--cyan); }
.final-cta p { font-size: 19px; color: #B9C6DD; }
.final-cta .badge-link img { height: 64px; }
.final-cta .fine { font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C6DD; padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-about { flex: 1 1 340px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.footer-brand .brand-mark svg { width: 19px; height: 19px; }
.footer-brand span { font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.65; color: var(--on-navy-muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col h2 { font-family: var(--text); margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-col a { color: #E6ECF7; text-decoration: none; font-size: 15px; padding: 10px 0; }
.footer-col a:hover { color: var(--cyan); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--on-navy-muted); }

/* Inner page header */
.page-hero { background-color: var(--bg); background-image: var(--grid); background-size: 28px 28px; border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0; }
.page-hero .wrap { max-width: calc(760px + 2 * var(--gutter)); display: flex; flex-direction: column; gap: 18px; }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--body); font-weight: 600; }
.page-hero h1 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.page-hero h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.32em 0 var(--yellow); }
.page-hero .lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--body); }
.note { align-self: flex-start; font-size: 14px; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.cta-box { margin-top: 12px; background-color: var(--navy); background-image: var(--grid-light); background-size: 28px 28px; color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-box h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.cta-box p { font-size: 18px; color: #B9C6DD; }

/* Article */
.article-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.article { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--body); }
.pill { background: var(--blue-tint); color: var(--blue); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 5px 12px; }
.article h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.article h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.32em 0 var(--yellow); }
.article .lede { font-size: 20px; line-height: 1.6; color: var(--body); }
.article h2 { margin-top: 16px; font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; scroll-margin-top: 16px; }
.article p, .article li { font-size: 18px; line-height: 1.7; }
.article ul, .article ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.article .subject-list { list-style: none; padding: 0; gap: 12px; }
.article .subject-list li { background: var(--s-bg); border: 1.5px solid var(--s-line); border-radius: 16px; padding: 14px 18px 14px 14px; font-size: 17px; line-height: 1.55; display: flex; align-items: center; gap: 14px; }
.article .subject-list img { width: 36px; height: 36px; flex: none; }
.article .subject-list strong { color: var(--s-ink); }
.keydates { background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: 22px 24px; }
.keydates h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: 0; }
.keydates dl { margin: 0; }
.keydates .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.keydates dt { color: var(--body); }
.keydates dd { margin: 0; font-weight: 700; }
.keydates .small { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; }
.toc p { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc a { font-weight: 600; font-size: 16px; padding: 8px 0; }
.app-box { background: var(--blue-tint); border-radius: 20px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.app-box .brand-mark { width: 52px; height: 52px; border-radius: 14px; }
.app-box .brand-mark svg { width: 28px; height: 28px; }
.app-box .copy { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app-box .copy strong { font-family: var(--display); font-weight: 800; font-size: 20px; }
.app-box .copy span { font-size: 16px; color: var(--body); }
.app-box .badge-link img { height: 52px; }
.sources { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.sources h2 { margin: 0; font-family: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sources li, .sources p { font-size: 15px !important; line-height: 1.6 !important; color: var(--body); }
.sidebar { flex: 1 1 280px; min-width: 0; position: sticky; top: 24px; }
.side-card { background: #fff; border: 1.5px solid var(--ink); border-radius: 24px; padding: 24px; box-shadow: 8px 8px 0 var(--yellow); display: flex; flex-direction: column; gap: 14px; }
.side-card .kicker { font-size: 13px; }
.side-card strong { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.side-card p { color: var(--body); }
.side-card .badge-link { align-self: flex-start; }
.side-card .badge-link img { height: 56px; }
.side-card .center-link { font-weight: 700; font-size: 15px; padding: 10px 0; }

/* Simple text pages */
.prose { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 18px; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.placeholder { background: #FFF7E0; border: 2px dashed #E0A800; border-radius: 16px; padding: 18px 20px; font-size: 16px !important; color: #5C4400 !important; }
.contact-card { background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-card .email { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 26px); word-break: break-word; }

@media (max-width: 860px) {
  .sidebar { position: static; }
}
@media (max-width: 520px) {
  .float-card { left: 50%; transform: translateX(-50%); bottom: 8px; max-width: calc(100% - 16px); }
  .nav { gap: 4px 16px; }
  .nav a { font-size: 15px; }
  .nav .nav-faq { display: none; }
  .badge-link img { height: 56px; }
  .final-cta .badge-link img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card, .option, .progress span { transition: none; }
}

/* ---------- Slide-in on scroll ---------- */
.reveal-zone { overflow-x: hidden; overflow-x: clip; }
.js .reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.from-left { transform: translateX(-80px); }
.js .reveal.from-right { transform: translateX(80px); }
.js .reveal.from-below { transform: translateY(48px); }
.js .reveal.delay-1 { transition-delay: .12s; }
.js .reveal.delay-2 { transition-delay: .24s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.from-left, .js .reveal.from-right, .js .reveal.from-below { opacity: 1; transform: none; transition: none; }
}
