/* Focus Learning Hub: shared styles for the hub, exam pages and onboarding. */
:root {
  --ink: #0b1f1e;
  --ink-2: #33494a;
  --muted: #5d7170;
  --line: #e1e9e8;
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --cta: #ffc53d;
  --cta-hover: #ffb703;
  --cta-ink: #1b1400;
  --good: #0f9d58;
  --good-bg: #e7f7ee;
  --bad: #d93a3a;
  --bad-bg: #fdecec;
  --star: #f5a623;
  /* Per-page brand values are set inline on <html>. */
  --brand: #15423f;
  --brand-ink: #15423f;
  --brand-deep: #0a2523;
  --brand-deeper: #061716;
  --brand-tint: #eaf3f2;
  --brand-glow: rgba(95, 211, 198, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 30, 0.06), 0 2px 8px rgba(11, 31, 30, 0.05);
  --shadow: 0 2px 6px rgba(11, 31, 30, 0.05), 0 12px 32px rgba(11, 31, 30, 0.08);
  --shadow-lg: 0 24px 64px rgba(6, 23, 22, 0.28);
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-ink);
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.4vw + 12px, 46px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 14px; border: 0;
  font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 8px 24px rgba(255, 183, 3, 0.35); }
.btn--cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn--lg { min-height: 60px; padding: 16px 30px; font-size: 18px; border-radius: 16px; }
.btn--block { width: 100%; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.85; font-weight: 500; }
.store-badge strong { display: block; font-size: 17px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.store-badge.is-primary { box-shadow: 0 0 0 3px var(--cta); }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; border-bottom: 1px solid transparent; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.nav.is-scrolled { color: var(--ink); background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img, .brand .brand__mark { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.brand__mark { display: grid; place-items: center; background: var(--brand); color: #fff; }
.brand__mark svg { width: 22px; height: 22px; }
.nav__links { display: none; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; color: inherit; opacity: 0.82; }
.nav__links a:hover { opacity: 1; }
.nav__cta { margin-left: auto; min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 12px; box-shadow: none; white-space: nowrap; }
@media (max-width: 420px) {
  .nav__inner { gap: 12px; }
  .nav__cta { padding: 9px 14px; font-size: 14px; min-height: 40px; }
  .brand { font-size: 16px; }
  .phone__screen { min-height: 0; }
}
.brand { color: inherit; }
.brand span { white-space: nowrap; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* Hero (exam pages + hub) */
.hero {
  position: relative; z-index: 2; color: #fff;
  background:
    radial-gradient(900px 520px at 85% 10%, var(--brand-glow), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 197, 61, 0.14), transparent 60%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-deeper) 100%);
  padding: 120px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) {
  .hero { padding: 140px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}
.hero .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.1); padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.hero .eyebrow img { width: 22px; height: 22px; border-radius: 6px; }
.hero h1 { font-size: clamp(40px, 5.2vw + 14px, 68px); margin-top: 22px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--cta); }
.hero__lead { margin-top: 20px; font-size: clamp(18px, 0.6vw + 15px, 21px); color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.7); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 16px; height: 16px; color: #7ee2b8; }
.resume { margin-top: 22px; display: none; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); max-width: 520px; text-decoration: none; }
.resume.is-visible { display: flex; }
.resume strong { display: block; font-size: 15px; }
.resume small { color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.resume svg { width: 20px; height: 20px; margin-left: auto; flex: none; }

/* Phone mock with the live mini quiz */
.phone {
  position: relative; width: min(100%, 380px); margin: 0 auto; padding: 14px;
  border-radius: 44px; background: linear-gradient(145deg, #2a3b3a, #0e1a19);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone__screen { position: relative; border-radius: 32px; background: #fff; color: var(--ink); overflow: hidden; min-height: 540px; display: flex; flex-direction: column; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.phone__bar img { width: 34px; height: 34px; border-radius: 9px; }
.phone__bar strong { font-size: 15px; display: block; line-height: 1.2; }
.phone__bar small { font-size: 12px; color: var(--muted); }
.phone__float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.phone__float svg { width: 22px; height: 22px; }
.phone__float--a { left: -64px; top: -22px; animation: float 6s ease-in-out infinite; }
.phone__float--b { right: -48px; bottom: -24px; animation: float 7s ease-in-out -2s infinite; }
@media (max-width: 1200px) { .phone__float--a { left: -24px; } .phone__float--b { right: -16px; } }
.phone__float span { color: var(--muted); font-weight: 600; display: block; font-size: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .phone__float { display: none; } }

.mq { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mq__meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mq__dots { display: flex; gap: 6px; }
.mq__dots i { width: 22px; height: 6px; border-radius: 6px; background: var(--line); }
.mq__dots i.is-done { background: var(--brand); }
.mq__dots i.is-now { background: var(--cta); }
.mq__q { font-size: 17px; font-weight: 700; line-height: 1.4; }
.mq__opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 12px 14px;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; line-height: 1.4; font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.opt:hover:not([disabled]) { border-color: var(--brand); background: var(--brand-tint); }
.opt__key { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.opt[disabled] { cursor: default; }
.opt.is-correct { border-color: var(--good); background: var(--good-bg); }
.opt.is-correct .opt__key { background: var(--good); color: #fff; }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.is-wrong .opt__key { background: var(--bad); color: #fff; }
.opt.is-dim { opacity: 0.55; }
.explain { border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); font-size: 14px; line-height: 1.5; color: var(--ink-2); animation: rise 0.3s ease; }
.explain strong { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.explain strong svg { width: 18px; height: 18px; }
.explain.is-good strong { color: var(--good); }
.explain.is-bad strong { color: var(--bad); }
.mq__foot { margin-top: auto; }
.mq__done { text-align: center; padding: 26px 8px 8px; display: grid; gap: 12px; justify-items: center; animation: rise 0.35s ease; }
.mq__score { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.mq__done p { color: var(--muted); font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 26px 0; }
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item svg { width: 28px; height: 28px; color: var(--brand-ink); flex: none; }
.trust__item strong { display: block; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.trust__item span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.3; }
@media (min-width: 860px) { .trust__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }

/* Features */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.feature:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transform: translateY(-2px); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.step__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: #fff; margin-bottom: 18px; }
.step h3 { font-size: 21px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.center-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; text-align: center; }
.center-cta small { color: var(--muted); font-size: 14px; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; margin: 0 -20px; scrollbar-width: thin; }
.shots img { width: 100%; height: auto; border-radius: 22px; scroll-snap-align: center; box-shadow: var(--shadow); background: var(--bg-soft); aspect-ratio: 600 / 1067; object-fit: cover; }
@media (min-width: 1100px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; } }

/* Coverage */
.coverage { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .coverage { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.count { padding: 20px 16px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.count strong { display: block; font-size: clamp(24px, 2vw + 12px, 34px); letter-spacing: -0.03em; color: var(--brand-ink); }
.count span { font-size: 13.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; }
.chip svg { width: 16px; height: 16px; color: var(--good); }

/* Science */
.science { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sci { padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.sci h3 { font-size: 18px; color: #fff; }
.sci p { margin-top: 8px; color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.sci__tag { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cta); }
.dark { background: linear-gradient(160deg, var(--brand-deep), var(--brand-deeper)); color: #fff; }
.dark .section-head p { color: rgba(255, 255, 255, 0.75); }
.dark .eyebrow { color: var(--cta); }

/* Rating band */
.rating { display: grid; gap: 24px; align-items: center; padding: 36px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
@media (min-width: 860px) { .rating { grid-template-columns: auto 1fr auto; gap: 40px; } }
.rating__score { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rating__score + .stars svg { width: 22px; height: 22px; }
.rating p { color: var(--muted); }
.rating h3 { font-size: 22px; margin-bottom: 6px; }

/* Pricing */
.plans { display: grid; gap: 18px; max-width: 920px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 32px; border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; gap: 18px; }
.plan--pro { box-shadow: 0 0 0 2px var(--brand), var(--shadow); position: relative; }
.plan__tag { position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 24px; }
.plan > p { color: var(--muted); font-size: 15.5px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--good); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 4vw + 10px, 54px); max-width: 820px; margin: 0 auto; }
.final p { margin: 18px auto 0; max-width: 560px; color: rgba(255, 255, 255, 0.78); font-size: 18px; }
.final .btn { margin-top: 32px; }
.final .stores { justify-content: center; margin-top: 22px; }

/* Footer */
.footer { padding: 56px 0 40px; background: #071312; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.1fr 2fr; } }
.footer .brand { color: #fff; }
.footer__about { margin-top: 14px; max-width: 360px; }
.footer__exams { columns: 2 150px; column-gap: 24px; }
.footer__exams a { display: block; padding: 3px 0; break-inside: avoid; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 10px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(6, 23, 22, 0.25), inset 0 0 0 1px var(--line); transform: translateY(140%); transition: transform 0.3s ease; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 50px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Hub: search + catalog */
.search { position: relative; margin-top: 30px; max-width: 560px; }
.search input { width: 100%; height: 62px; padding: 0 20px 0 54px; border-radius: 16px; border: 0; font: inherit; font-size: 17px; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.search input::placeholder { color: #7b8b8a; }
.search > svg { position: absolute; left: 18px; top: 19px; width: 24px; height: 24px; color: var(--muted); pointer-events: none; }
.search__list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); max-height: 360px; overflow: auto; display: none; }
.search__list.is-open { display: block; }
.search__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search__list a:hover, .search__list a.is-active { background: var(--bg-soft); }
.search__list img { width: 34px; height: 34px; border-radius: 9px; }
.search__list strong { display: block; font-size: 15.5px; line-height: 1.2; }
.search__list small { color: var(--muted); font-size: 13px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.popular a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); text-decoration: none; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.popular a:hover { background: rgba(255, 255, 255, 0.2); }

.icon-wall { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: rotate(-8deg); max-width: 460px; margin: 0 auto; }
.icon-wall a { display: block; border-radius: 24%; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; aspect-ratio: 1; background: #fff; }
.icon-wall a:hover { transform: scale(1.06) rotate(4deg); }
.icon-wall a:nth-child(4n + 2), .icon-wall a:nth-child(4n + 4) { transform: translateY(28px); }
.icon-wall a:nth-child(4n + 2):hover, .icon-wall a:nth-child(4n + 4):hover { transform: translateY(28px) scale(1.06); }
.icon-wall img { width: 100%; height: 100%; }
@media (max-width: 979px) { .icon-wall { display: none; } }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow: visible; } }
.tab { flex: none; padding: 10px 18px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.catalog { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.exam-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease; position: relative; }
.exam-card:hover { box-shadow: inset 0 0 0 1.5px var(--card-color, var(--brand)), var(--shadow); transform: translateY(-3px); }
.exam-card__top { display: flex; align-items: center; gap: 14px; }
.exam-card__top img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.exam-card h3 { font-size: 21px; }
.exam-card__app { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.exam-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.exam-card__meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.exam-card__meta .stars svg { width: 14px; height: 14px; }
.exam-card__go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); transition: background 0.2s ease, color 0.2s ease; }
.exam-card:hover .exam-card__go { background: var(--card-color, var(--brand)); color: #fff; }
.exam-card__go svg { width: 18px; height: 18px; }
.exam-card.is-soon { opacity: 0.7; pointer-events: none; }
.exam-card .soon { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.exam-card[hidden] { display: none; }

/* Onboarding */
.ob-body { background: var(--bg-soft); min-height: 100vh; min-height: 100dvh; }
.ob { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ob__top { position: sticky; top: 0; z-index: 10; background: rgba(244, 248, 247, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ob__bar { display: flex; align-items: center; gap: 14px; height: 64px; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.ob__icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); text-decoration: none; }
.ob__icon-btn:hover { background: #fff; }
.ob__icon-btn svg { width: 22px; height: 22px; }
.ob__icon-btn[hidden] { visibility: hidden; display: grid; }
.ob__progress { flex: 1; height: 8px; border-radius: 8px; background: #dfe8e7; overflow: hidden; }
.ob__progress i { display: block; height: 100%; width: 10%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--cta))); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.ob__main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 20px 140px; }
.ob__step { animation: stepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.ob__kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); }
.ob h1 { font-size: clamp(28px, 2.6vw + 16px, 38px); margin-top: 10px; letter-spacing: -0.03em; }
.ob h1:focus { outline: none; }
.ob__sub { margin-top: 10px; color: var(--muted); font-size: 17px; }
.choices { display: grid; gap: 12px; margin-top: 28px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 18px; text-align: left;
  border-radius: 16px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); cursor: pointer;
  font-weight: 700; font-size: 17px; transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-sm); }
.choice:active { transform: scale(0.99); }
.choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--brand), var(--shadow); background: var(--brand-tint); }
.choice__emoji { font-size: 26px; width: 34px; text-align: center; flex: none; }
.choice small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 2px; }
.choice__check { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; color: transparent; background: #fff; }
.choice[aria-pressed="true"] .choice__check { background: var(--brand); box-shadow: none; color: #fff; }
.choice__check svg { width: 16px; height: 16px; }
.choice--col { flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 96px; }
.choice--col strong { font-size: 24px; letter-spacing: -0.02em; }
.choice--col small { margin: 0; }
.date-row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.date-row input { height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; color: var(--ink); background: #fff; }
.ob__dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244, 248, 247, 0), var(--bg-soft) 30%); }
.ob__dock-inner { max-width: 600px; margin: 0 auto; }
.ob__dock .btn { width: 100%; }
.ob__dock .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.ob__hint { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 8px; }

.note-card { margin-top: 28px; padding: 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.note-card h3 { font-size: 19px; }
.note-card p { margin-top: 8px; color: var(--ink-2); }
.bars { display: grid; gap: 14px; margin-top: 20px; }
.bars div { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.bars span { display: block; height: 14px; border-radius: 8px; background: var(--brand); transform-origin: left; animation: grow 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bars div:first-child span { background: #c7d4d3; }
@keyframes grow { from { transform: scaleX(0); } }
.cite { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.ob-quiz { margin-top: 24px; padding: 20px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: grid; gap: 14px; }

.building { text-align: center; padding-top: 40px; }
.building__ring { width: 120px; height: 120px; margin: 0 auto 28px; position: relative; }
.building__ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.building__ring circle { fill: none; stroke-width: 10; }
.building__ring .track { stroke: #dfe8e7; }
.building__ring .fill { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 0.6s ease; }
.building__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
.checklist { list-style: none; margin: 28px auto 0; padding: 0; display: grid; gap: 12px; max-width: 420px; text-align: left; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--muted); transition: color 0.3s ease; }
.checklist li i { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px #cfdbda; display: grid; place-items: center; color: transparent; transition: all 0.3s ease; }
.checklist li i svg { width: 15px; height: 15px; }
.checklist li.is-done { color: var(--ink); }
.checklist li.is-done i { background: var(--good); box-shadow: none; color: #fff; }

.reveal-head { text-align: center; padding-top: 8px; }
.reveal-head .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-weight: 800; font-size: 14px; }
.reveal-head .badge svg { width: 18px; height: 18px; }
.reveal-head h1 { margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.tile { padding: 16px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tile small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.tile strong { display: block; font-size: 24px; letter-spacing: -0.02em; margin-top: 2px; line-height: 1.2; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.panel { margin-top: 16px; padding: 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { font-size: 19px; letter-spacing: -0.015em; }
.panel > p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.score-dots { display: flex; gap: 8px; margin-top: 12px; }
.score-dots i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.score-dots i svg { width: 18px; height: 18px; }
.score-dots .ok { background: var(--good); }
.score-dots .no { background: var(--bad); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--brand); }
.timeline small { display: block; font-size: 12.5px; font-weight: 800; color: var(--brand-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.timeline strong { display: block; font-size: 16.5px; margin-top: 2px; }
.timeline span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.day { padding: 10px 4px; border-radius: 12px; background: var(--brand-tint); text-align: center; font-size: 12px; line-height: 1.25; }
.day b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.day span { display: block; margin-top: 6px; font-weight: 700; color: var(--ink); font-size: 11.5px; }
.day.is-rest { background: var(--bg-soft); }
.day.is-rest span { color: var(--muted); font-weight: 600; }
.pledge { margin-top: 16px; display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border-radius: var(--radius-lg); border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; text-align: left; font-weight: 700; font-size: 16.5px; transition: box-shadow 0.2s ease, background 0.2s ease; }
.pledge .choice__check { margin-left: 0; width: 30px; height: 30px; }
.pledge[aria-pressed="true"] { background: var(--good-bg); box-shadow: inset 0 0 0 2px var(--good); }
.pledge[aria-pressed="true"] .choice__check { background: var(--good); box-shadow: none; color: #fff; }
.pledge small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.get { margin-top: 16px; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--brand-deep), var(--brand-deeper)); color: #fff; box-shadow: var(--shadow); }
.get h2 { font-size: 23px; }
.get p { color: rgba(255, 255, 255, 0.8); margin-top: 8px; font-size: 15.5px; }
.get .stores { margin-top: 18px; }
.get__qr { display: none; gap: 20px; align-items: center; margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); }
.get__qr svg { width: 128px; height: 128px; background: #fff; border-radius: 12px; padding: 8px; flex: none; }
.get__qr p { margin: 0; }
.is-desktop .get__qr { display: flex; }
.get__web { display: inline-block; margin-top: 16px; color: #fff; font-size: 14.5px; font-weight: 600; }
.get__fine { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }

/* Simple centered pages (get, 404) */
.simple { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.simple__card { max-width: 480px; display: grid; justify-items: center; gap: 16px; }
.simple__card img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.simple__card h1 { font-size: 32px; }
.simple__card p { color: var(--muted); }
.simple__card .get__qr { display: flex; background: var(--bg-soft); color: var(--ink); text-align: left; }
