/* ==========================================================================
   azurefundamentalsexamprep.com — 2026 rebuild
   One stylesheet for the whole site. No framework, no webfonts: the previous
   build pulled Tailwind, two Google Font families, Material Icons and the
   Firebase UI CSS on every page, which is most of why it felt slow.

   Cached 7 days by Firebase Hosting, so any edit here must bump the ?v=N
   query on every page that links it. See CLAUDE.md.
   ========================================================================== */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2430;
  --border: #2a3441;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --accent: #2f81f7;
  --accent-soft: rgba(47, 129, 247, 0.14);
  --good: #3fb950;
  --good-soft: rgba(63, 185, 80, 0.14);
  --bad: #f85149;
  --bad-soft: rgba(248, 81, 73, 0.14);
  --gold: #e3b341;
  --radius: 12px;
  --maxw: 860px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f8fa;
    --surface-2: #eef2f6;
    --border: #d6dee6;
    --text: #14212e;
    --muted: #5a6b7b;
    --accent: #0b62d6;
    --accent-soft: rgba(11, 98, 214, 0.1);
    --good: #1a7f37;
    --good-soft: rgba(26, 127, 55, 0.1);
    --bad: #cf222e;
    --bad-soft: rgba(207, 34, 46, 0.1);
    --gold: #9a6700;
    --shadow: 0 8px 28px rgba(16, 32, 48, 0.1);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin-top: 2.2em; }
h3 { font-size: 1.12rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }

/* ---------- header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  min-height: 58px;
}
.brand {
  font-weight: 700; font-size: 1rem; color: var(--text);
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); }

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 11px; font: inherit; font-size: .9rem;
  cursor: pointer;
}
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); font-size: .89rem; padding: 6px 10px; border-radius: 7px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; width: 100%; order: 3;
    flex-direction: column; gap: 0; padding-bottom: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 8px; border-radius: 0; border-top: 1px solid var(--border); }
}

/* ---------- hero ------------------------------------------------------ */
.hero { padding: 46px 0 12px; }
.hero .eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; cursor: pointer;
  background: var(--accent); color: #fff; text-align: center;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }

/* ---------- cards / grid ---------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid .card h3 { margin-top: 0; }
.grid .card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
a.card { color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card .count {
  display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-top: 12px;
}

/* ---------- app promo ------------------------------------------------- */
.promo {
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin: 34px 0; box-shadow: var(--shadow);
}
.promo h2 { margin-top: 0; font-size: 1.3rem; }
.promo ul { margin: 0 0 4px; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.promo li { margin-bottom: 5px; }
.promo .price { color: var(--gold); font-weight: 600; }
.promo-alt { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- quiz ------------------------------------------------------ */
.quiz { margin: 26px 0; }
.quiz-bar {
  display: flex; align-items: center; gap: 12px;
  font-size: .87rem; color: var(--muted); margin-bottom: 12px;
}
.quiz-bar .track {
  flex: 1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden;
}
.quiz-bar .fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.q-text { font-size: 1.12rem; font-weight: 600; margin: 0 0 4px; }
.q-hint { font-size: .84rem; color: var(--muted); margin: 0 0 14px; }

.options { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.opt {
  display: flex; gap: 11px; align-items: flex-start;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px;
  transition: border-color .12s, background .12s;
}
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt .key {
  flex: 0 0 24px; height: 24px; border-radius: 6px; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; background: var(--surface-2); color: var(--muted);
}
.opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt.selected .key { background: var(--accent); color: #fff; }
.opt.correct { border-color: var(--good); background: var(--good-soft); }
.opt.correct .key { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .key { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }

.explain {
  margin-top: 14px; padding: 15px; border-radius: 10px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  font-size: .95rem;
}
.explain .verdict { font-weight: 700; margin: 0 0 6px; }
.explain .verdict.ok { color: var(--good); }
.explain .verdict.no { color: var(--bad); }
.explain p:last-child { margin-bottom: 0; }
.explain .ref { font-size: .87rem; }

.result { text-align: center; padding: 12px 0; }
.result .score { font-size: 3rem; font-weight: 700; line-height: 1; margin: 6px 0; }
.result .score.pass { color: var(--good); }
.result .score.fail { color: var(--gold); }
.result .verdict-line { color: var(--muted); margin-bottom: 18px; }

/* ---------- FAQ / accordion ------------------------------------------- */
details.faq {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0 16px; margin-bottom: 9px; background: var(--surface);
}
details.faq > summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none;
  display: flex; gap: 10px; align-items: flex-start;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::before {
  content: "+"; color: var(--accent); font-weight: 700; flex: 0 0 auto;
}
details.faq[open] > summary::before { content: "\2212"; }
details.faq .answer { padding: 0 0 14px 22px; color: var(--muted); font-size: .95rem; }
details.faq .answer p { margin-bottom: .7em; }

/* ---------- comparison table ------------------------------------------ */
.cmp { display: grid; gap: 12px; }
.cmp-row { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.cmp-row h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cmp-row .desc { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.cmp-vendors { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cmp-v { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.cmp-v .who {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 3px;
}
.cmp-v a { font-size: .9rem; display: block; }
.cmp-row .diff { font-size: .9rem; color: var(--muted); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- notes / prose --------------------------------------------- */
.note {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 15px 18px; margin: 20px 0; font-size: .95rem;
}
.note strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .45em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- footer ---------------------------------------------------- */
.site-footer {
  margin-top: 64px; border-top: 1px solid var(--border);
  padding: 28px 0 44px; font-size: .9rem; color: var(--muted);
}
.site-footer .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .84rem; }

/* ---------- misc ------------------------------------------------------ */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
