:root {
  --bg: #0a0f0d;
  --bg-2: #101714;
  --surface: #ffffff;
  --surface-2: #f3f8f5;
  --ink: #0d1512;
  --ink-2: #3c4a44;
  --ink-3: #6a7a72;
  --line: #e2ece7;
  --brand: #2f6bf0;          /* blue (primary) */
  --brand-2: #ec4899;        /* pink (secondary) */
  --brand-dark: #1f55d6;     /* blue hover */
  --pink: #ec4899;
  --pink-dark: #db2777;
  --brand-ink: #ffffff;
  --accent: #00b67a;         /* success green (ticks, stars) */
  --warn: #ffb020;
  --danger: #ff5468;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(12,18,38,.06), 0 8px 24px rgba(12,18,38,.05);
  --shadow-md: 0 6px 18px rgba(12,18,38,.10), 0 24px 60px rgba(12,18,38,.10);
  --container: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--ink-2); margin: 0 0 1em; }
ul { padding-left: 1.1em; }
.muted { color: var(--ink-3); }
.container { width: 92%; max-width: var(--container); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; border-radius: 999px;
  padding: .65rem 1.1rem; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: #2f6bf0;            /* light blue */
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(47,107,240,.32);
}
.btn-primary:hover { background: #1f55d6; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: .95rem;
  background: linear-gradient(135deg, #2f6bf0 0%, #1f55d6 100%);
  box-shadow: 0 6px 14px rgba(47,107,240,.30);
}
.brand-text { font-size: 1.05rem; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: inline-flex; }
.brand-mark svg { width: 64%; height: 64%; display: block; }

/* Hamburger button (hidden on desktop, injected by app.js) */
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: white; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  padding: 0; margin-left: .25rem;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: rgba(13,21,18,.97); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
    padding: .5rem; box-shadow: var(--shadow-md); z-index: 60;
  }
  .site-header.nav-open .nav-links { display: flex; animation: wiz-in .2s ease; }
  .nav-links a { color: #e6efea; padding: .8rem .9rem; border-radius: 9px; font-weight: 600; }
  .nav-links a:hover { background: rgba(255,255,255,.10); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  /* Lighter deep green + pink, no blue */
  background:
    radial-gradient(1050px 580px at 100% -10%, rgba(236,72,153,.48), transparent 56%),
    radial-gradient(950px 540px at 0% 8%, rgba(16,185,129,.46), transparent 56%),
    radial-gradient(1000px 720px at 50% 130%, rgba(56,130,235,.46), transparent 60%),
    linear-gradient(150deg, #1e5a54 0%, #265d86 50%, #553a62 100%);
  color: #eef6f2;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 1rem;
  background: rgba(16,185,129,.08); padding: .35rem .65rem; border-radius: 999px;
}
.lede { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--ink); font-weight: 800; }
.hero-stats span { color: var(--ink-3); font-size: .9rem; }

/* Hero on a dark wash: light text + readable controls */
.hero .eyebrow { color: #cfe0ff; background: rgba(255,255,255,.10); }
.hero h1 { color: #ffffff; }
.hero .lede { color: #cfe0db; }
.hero-stats strong { color: #ffffff; }
.hero-stats span { color: #9fb6af; }
.hero .muted { color: #9fb6af !important; }
.hero .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* ---------- Hero card mockup ---------- */
.hero-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden; transform: rotate(.4deg);
}
.hero-card-top {
  display: flex; align-items: center; gap: .4rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafbff, #f3f5fc);
}
.hero-card-top .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff6262; }
.dot-y { background: #ffc257; }
.dot-g { background: #4cd083; }
.hero-card-title { margin-left: auto; color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.hero-card-body { padding: 1.4rem 1.4rem 1.6rem; }
.hcb-q { font-weight: 600; color: var(--ink); font-size: 1.05rem; margin-bottom: 1rem; }
.hcb-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.hcb-opts li {
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-2); font-size: .95rem; background: #fff;
}
.hcb-opts li.is-correct {
  border-color: rgba(0,200,150,.5); background: rgba(0,200,150,.08); color: var(--ink); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0,200,150,.2);
}

/* ---------- Sections ---------- */
.features, .how, .cta-band { padding: 4rem 0; }
.section-head { text-align: center; margin: 0 auto 2.5rem; max-width: 720px; }
.section-head p { color: var(--ink-3); }

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.3rem 1.5rem;
  color: var(--ink); text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover:not(.is-static) {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow-md); border-color: rgba(47,107,240,.30);
}
.feature-card h3 { margin-top: .8rem; }
.feature-card p { font-size: .95rem; }
.feature-link { margin-top: auto; color: var(--brand); font-weight: 600; font-size: .9rem; }
.feature-link.is-muted { color: var(--ink-3); }

.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(236,72,153,.12));
  border: 1px solid rgba(16,185,129,.18);
  position: relative;
}
.feature-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px;
  background: var(--brand); -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.feature-icon[data-icon="clipboard"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 2h6a2 2 0 0 1 2 2v1h2a1 1 0 0 1 1 1v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h2V4a2 2 0 0 1 2-2zm0 3h6V4H9v1z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 2h6a2 2 0 0 1 2 2v1h2a1 1 0 0 1 1 1v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h2V4a2 2 0 0 1 2-2zm0 3h6V4H9v1z'/></svg>"); }
.feature-icon[data-icon="layers"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.feature-icon[data-icon="eye"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z' fill='black'/></svg>"); }
.feature-icon[data-icon="book"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h7a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4V4zm16 0h-3a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h4V4z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h7a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4V4zm16 0h-3a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h4V4z' fill='black'/></svg>"); }
.feature-icon[data-icon="trend"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 17l5-5 4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/><path d='M14 7h6v6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 17l5-5 4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/><path d='M14 7h6v6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.feature-icon[data-icon="device"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='4' width='14' height='12' rx='2' fill='none' stroke='black' stroke-width='2'/><rect x='14' y='9' width='7' height='12' rx='1.5' fill='none' stroke='black' stroke-width='2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='4' width='14' height='12' rx='2' fill='none' stroke='black' stroke-width='2'/><rect x='14' y='9' width='7' height='12' rx='1.5' fill='none' stroke='black' stroke-width='2'/></svg>"); }

/* ---------- How section ---------- */
.how { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.how-steps li { display: flex; gap: 1rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.step-n {
  flex: 0 0 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: white; font-weight: 700;
}
.how-steps h4 { margin: 0 0 .25em; font-size: 1rem; }
.how-steps p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 20% 50%, rgba(236,72,153,.18), transparent 60%),
    radial-gradient(800px 300px at 80% 50%, rgba(16,185,129,.22), transparent 60%),
    #0c1712;
  color: #e9ecf7;
}
.cta-band h2 { color: white; }
.cta-band p  { color: #b6bdd6; margin: 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- FAQ page ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-cat { margin: 2rem 0 .5rem; font-size: 1.25rem; color: var(--ink); }
.faq-cat:first-child { margin-top: 1rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: white;
  margin-bottom: .7rem; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] { border-color: rgba(16,185,129,.45); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.2rem;
  font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; font-weight: 700; font-size: 1.4rem; color: var(--brand);
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; color: var(--pink); }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }
.faq-item .faq-a p { margin: 0 0 .6em; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }
.faq-q-ic {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px;
  background: linear-gradient(135deg, #2f6bf0, #1f55d6);
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800;
}

/* ---------- Footer ---------- */
.footer-links {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: center;
  padding: 0 0 1.25rem; margin: 0;
}
.footer-links a { color: #cfe7dd; font-size: .92rem; font-weight: 500; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.site-footer { background: #0c1712; color: #cdd3e6; padding: 3rem 0 1.5rem; }
.site-footer .brand-text { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h5 { color: white; margin: .25em 0 .8em; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a { color: #b6bdd6; }
.footer-grid a:hover { color: white; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); color: #8a93b0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Generic page header ---------- */
.page-head {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .35em; }
.page-head p { color: var(--ink-2); max-width: 60ch; }

/* ---------- Test runner ---------- */
.test-wrap { padding: 2rem 0 4rem; }
.test-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1rem;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  position: sticky; top: 68px; z-index: 10;
}
.test-bar .meta { display: flex; gap: 1.25rem; color: var(--ink-2); font-size: .95rem; }
.test-bar .meta strong { color: var(--ink); }
.progress {
  height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
  flex: 1; margin: 0 1rem;
}
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2f6bf0, #1f55d6); width: 0%; transition: width .25s ease; }

.question-card {
  margin-top: 1.5rem;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.q-num { color: var(--ink-3); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.q-text { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: .25rem 0 1.2rem; line-height: 1.35; }
.q-options { display: grid; gap: .6rem; }
.opt {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: white; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.opt:hover { border-color: rgba(16,185,129,.5); background: #fafbff; }
.opt input { margin-top: .25rem; accent-color: var(--brand); }
.opt.is-correct { border-color: rgba(0,200,150,.6); background: rgba(0,200,150,.08); }
.opt.is-wrong   { border-color: rgba(255,84,104,.5); background: rgba(255,84,104,.08); }
.opt .opt-text { color: var(--ink); }
.q-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.q-explain {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--line); color: var(--ink-2);
  font-size: .95rem; display: none;
}
.q-explain.is-shown { display: block; }
.q-explain b { color: var(--ink); }

.result-card {
  margin-top: 1.5rem; background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-md);
}
.result-score { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.result-score .out { color: var(--ink-3); font-weight: 600; font-size: 1.4rem; }
.result-badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-top: .5rem; }
.result-badge.pass { background: rgba(0,200,150,.12); color: #00805f; }
.result-badge.fail { background: rgba(255,84,104,.12); color: #b3293a; }
.result-actions { margin-top: 1.25rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Topic list ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .topic-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  display: block; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: white; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(47,107,240,.30); text-decoration: none; }
.topic-card h3 { margin: .2rem 0 .35em; }
.topic-card p { font-size: .92rem; margin: 0; color: var(--ink-2); }
.topic-tag { font-size: .75rem; color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Highway code page ---------- */
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
@media (max-width: 800px) { .hc-grid { grid-template-columns: 1fr; } }
.hc-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.hc-card h3 { margin-top: 0; }
.hc-card ul { color: var(--ink-2); }
.hc-card li { margin-bottom: .35em; }

/* ---------- Notes / hazard placeholder ---------- */
.notice {
  margin-top: 1.25rem; padding: 1rem 1.1rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2);
}
.notice b { color: var(--ink); }

/* ---------- Autocomplete (test-centre picker) ---------- */
.ac { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  z-index: 20;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  list-style: none; padding: .35rem; margin: 0;
  max-height: 320px; overflow-y: auto;
}
.ac-item {
  padding: .55rem .75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.ac-item:hover, .ac-item.is-active { background: var(--surface-2); }
.ac-main { color: var(--ink); font-weight: 600; font-size: .95rem; }
.ac-sub { color: var(--ink-3); font-size: .8rem; }
.ac-chosen {
  display: inline-block; margin-top: .35rem;
  color: #00805f; font-size: .85rem; font-weight: 600;
}

/* ---------- Animated swap widget (hero on home) ---------- */
.swap-widget {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.swap-badge {
  position: absolute; top: -14px; left: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .8rem .35rem .65rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--ink); font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00b67a; position: relative;
  display: inline-block;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%; border: 2px solid rgba(0,182,122,.55);
  animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.4); opacity: 1; }
  80%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.swap-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-top: .4rem;
}
.swap-system-label {
  color: #00805f; font-weight: 800; font-size: .8rem; letter-spacing: .08em;
}
.swap-system-label::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: #00b67a; border-radius: 50%; margin-right: .5rem; vertical-align: middle;
}
.swap-clock { color: var(--ink-3); font-size: .9rem; font-variant-numeric: tabular-nums; }

.swap-user-row {
  display: flex; align-items: center; gap: .7rem;
  margin: .25rem 0 .5rem;
}
.swap-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .9rem;
  flex: 0 0 38px;
}
.swap-avatar.avatar-1 { background: linear-gradient(135deg, #c2a800, #9ea000); }
.swap-avatar.avatar-2 { background: linear-gradient(135deg, #2f6bf0, #1f55d6); }
.swap-avatar.avatar-3 { background: linear-gradient(135deg, #ff7a59, #e3406b); }
.swap-avatar.avatar-4 { background: linear-gradient(135deg, #00b67a, #007a8a); }
.swap-user-name { margin: 0; font-weight: 700; color: var(--ink); }
.swap-user-desc { margin: 0; color: var(--ink-3); font-size: .85rem; }

.swap-slot {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin: .4rem 0;
  transition: transform .5s ease, opacity .35s ease;
}
.swap-slot .cell span {
  display: block;
  color: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .15rem;
}
.swap-slot .cell b { font-size: 1rem; color: var(--ink); }

.swap-arrows {
  display: flex; justify-content: center; gap: .8rem;
  margin: .25rem 0;
}
.swap-arrows .arrow-box {
  width: 46px; height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.3rem; font-weight: 700;
}
.swap-arrows .arrow-up   { animation: arrow-up   1.6s ease-in-out infinite; }
.swap-arrows .arrow-down { animation: arrow-down 1.6s ease-in-out infinite; }
@keyframes arrow-up   {
  0%, 100% { transform: translateY(4px); opacity: .55; }
  50%      { transform: translateY(-4px); opacity: 1; }
}
@keyframes arrow-down {
  0%, 100% { transform: translateY(-4px); opacity: .55; }
  50%      { transform: translateY(4px); opacity: 1; }
}

.swap-complete {
  display: flex; justify-content: center; margin-top: 1rem;
}
.swap-complete-pill {
  background: rgba(0,182,122,.12);
  color: #00805f;
  border: 1px solid rgba(0,182,122,.35);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 700; font-size: .9rem;
  opacity: 0; transform: scale(.92);
  transition: opacity .4s ease, transform .4s ease;
}
.swap-complete-pill.is-shown { opacity: 1; transform: scale(1); }
.swap-illustrative {
  text-align: center; color: var(--ink-3); font-size: .78rem; margin: .5rem 0 0;
}

/* Slot swap animation */
.swap-anim .swap-slot.top    { transform: translateY(64px); opacity: .85; }
.swap-anim .swap-slot.bottom { transform: translateY(-64px); opacity: .85; }
.swap-fading .swap-slot,
.swap-fading .swap-user-row { opacity: 0; }

/* ---------- Stat counter band ---------- */
.stats-band {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  text-align: center;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--ink); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-num .plus { color: var(--brand); }
.stat-label { color: var(--ink-3); font-size: .92rem; margin: .15rem 0 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons: amber + google ---------- */
.btn-amber { background: #131a2b; color: #fff; box-shadow: 0 6px 18px rgba(19,26,43,.35); }
.btn-amber:hover { background: #25304a; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; background: white; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .8rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-google:hover { background: var(--surface-2); box-shadow: var(--shadow-sm); }
.btn-google .g-logo { display: inline-flex; }

/* ---------- Nav profile chip ---------- */
.nav-cta { display: flex; align-items: center; }
.nav-profile { position: relative; }
.nav-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #2f6bf0, #1f55d6);
  color: white; font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(47,107,240,.30);
}
.nav-avatar:hover { filter: brightness(1.05); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 220px; background: white;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: .4rem; z-index: 40;
}
.nav-menu-head { padding: .6rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.nav-menu-head strong { display: block; color: var(--ink); font-size: .95rem; }
.nav-menu-head span { display: block; color: var(--ink-3); font-size: .8rem; word-break: break-all; }
.nav-menu a, .nav-menu button {
  display: block; width: 100%; text-align: left;
  padding: .55rem .7rem; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--ink-2); text-decoration: none;
}
.nav-menu a:hover, .nav-menu button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
#navSignout { color: var(--danger); font-weight: 600; }

/* ---------- Auth page ---------- */
.auth-wrap { padding: 3rem 0 4rem; background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%); min-height: 70vh; }
.auth-card {
  max-width: 440px; margin: 0 auto;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.9rem;
  box-shadow: var(--shadow-md);
}
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head h1 { font-size: 1.5rem; margin: .75rem 0 .35rem; }
.auth-head .muted { font-size: .95rem; }
.brand-mark-lg {
  width: 48px; height: 48px; border-radius: 12px; font-size: 1.4rem; margin: 0 auto;
}
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0; color: var(--ink-3); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-toggle { text-align: center; margin: 1.1rem 0 .25rem; font-size: .92rem; }
.auth-fineprint { text-align: center; font-size: .8rem; margin: .5rem 0 0; }
.auth-demo-note {
  margin: 1.25rem 0 0; padding: .8rem .9rem;
  background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: 10px; color: var(--ink-3); font-size: .8rem;
}
.auth-demo-note b { color: var(--ink-2); }

/* ---------- Profile page ---------- */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; text-align: center; box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, #2f6bf0, #1f55d6);
  color: white; font-weight: 800; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(47,107,240,.30);
}

/* ---------- How-it-works step cards ---------- */
.steps-grid .step-card { position: relative; padding-top: 1.6rem; }
.step-badge {
  position: absolute; top: -14px; left: 1.3rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: white; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(16,185,129,.4); font-size: .9rem;
}

/* ---------- Swap-later (don't cancel) band ---------- */
.swap-later-band {
  background:
    radial-gradient(600px 300px at 12% 50%, rgba(236,72,153,.20), transparent 60%),
    radial-gradient(600px 300px at 90% 50%, rgba(16,185,129,.16), transparent 60%),
    linear-gradient(180deg, #fdf2f8 0%, #f3fbf7 100%);
  border-top: 1px solid #f6dcea; border-bottom: 1px solid #f6dcea;
  padding: 3rem 0;
}
.swap-later-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.swap-later-inner h2 { color: #9d174d; }
.swap-later-inner p { color: #7a4a60; max-width: 56ch; margin: 0; }

/* ---------- Single pricing plan ---------- */
.single-plan { max-width: 560px; margin: 1.5rem auto 0; }
.single-plan-card {
  position: relative;
  background: white; border: 2px solid rgba(16,185,129,.4);
  border-radius: var(--radius-lg); padding: 2rem 2rem 1.75rem;
  box-shadow: 0 12px 32px rgba(16,185,129,.16), var(--shadow-sm);
}
.plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: white; font-weight: 700; font-size: .78rem;
  padding: .3rem .9rem; border-radius: 999px; letter-spacing: .04em; white-space: nowrap;
}
.single-plan-card .pricing-name { font-size: 1.2rem; }
.single-plan-card .pricing-price { font-size: 3rem; }
.plan-note { font-size: .82rem; text-align: center; margin: .9rem 0 0; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1.25rem;
}
@media (max-width: 620px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  background: white; border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); text-align: center;
}
.trust-ic { width: 18px; height: 18px; flex: 0 0 18px; background: var(--accent); display: inline-block;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.trust-ic[data-icon="shield"]  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.4 8.5-8 11-4.6-2.5-8-6-8-11V5l8-3z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.4 8.5-8 11-4.6-2.5-8-6-8-11V5l8-3z' fill='black'/></svg>"); }
.trust-ic[data-icon="bolt"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2L4 14h6l-1 8 9-12h-6l1-8z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2L4 14h6l-1 8 9-12h-6l1-8z' fill='black'/></svg>"); }
.trust-ic[data-icon="headset"] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3a8 8 0 0 0-8 8v5a3 3 0 0 0 3 3h1v-7H6v-1a6 6 0 0 1 12 0v1h-2v7h1a3 3 0 0 0 3-3v-5a8 8 0 0 0-8-8z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3a8 8 0 0 0-8 8v5a3 3 0 0 0 3 3h1v-7H6v-1a6 6 0 0 1 12 0v1h-2v7h1a3 3 0 0 0 3-3v-5a8 8 0 0 0-8-8z' fill='black'/></svg>"); }
.trust-ic[data-icon="lock"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 1 0-8 0v2z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 1 0-8 0v2z' fill='black'/></svg>"); }

/* ---------- Place cards (test centres by area) ---------- */
.place-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 1.5rem; }
@media (max-width: 980px) { .place-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .place-grid { grid-template-columns: 1fr; } }
.place-card {
  text-align: left; cursor: pointer; font: inherit;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(16,185,129,.4); }
.place-card h3 { margin: .15rem 0 .1rem; font-size: 1.05rem; }
.place-card p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.place-go { margin-top: .5rem; color: var(--brand); font-weight: 600; font-size: .85rem; }

/* ---------- Feature icons: extra (how-it-works) ---------- */
.feature-icon[data-icon="userplus"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 8a7 7 0 0 1 14 0H3zm16-9h2v2h-2v2h-2v-2h-2v-2h2V9h2v2z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 8a7 7 0 0 1 14 0H3zm16-9h2v2h-2v2h-2v-2h-2v-2h2V9h2v2z' fill='black'/></svg>"); }
.feature-icon[data-icon="match"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.4 5.4L20 9l-4 4 1 6-5-2.8L7 19l1-6-4-4 5.6-1.6L12 2z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.4 5.4L20 9l-4 4 1 6-5-2.8L7 19l1-6-4-4 5.6-1.6L12 2z' fill='black'/></svg>"); }
.feature-icon[data-icon="swap"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 7h11l-3-3 1.4-1.4L21.8 7 16.4 12.4 15 11l3-3H7V7zm10 10H6l3 3-1.4 1.4L2.2 17 7.6 11.6 9 13l-3 3h11v1z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 7h11l-3-3 1.4-1.4L21.8 7 16.4 12.4 15 11l3-3H7V7zm10 10H6l3 3-1.4 1.4L2.2 17 7.6 11.6 9 13l-3 3h11v1z' fill='black'/></svg>"); }

/* ---------- Dashboard / portal ---------- */
.dash-timeline {
  display: flex; gap: .4rem; margin: 0 0 1.5rem; flex-wrap: wrap;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
}
.tl-step { flex: 1; min-width: 110px; display: flex; align-items: center; gap: .55rem; position: relative; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-3); font-weight: 700; font-size: .8rem;
  border: 2px solid var(--line);
}
.tl-step.done .tl-dot { background: #00b67a; border-color: #00b67a; color: #fff; }
.tl-step.active .tl-dot { background: #2f6bf0; border-color: #2f6bf0; color: #fff; box-shadow: 0 0 0 4px rgba(47,107,240,.18); }
.tl-label { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.tl-step.done .tl-label, .tl-step.active .tl-label { color: var(--ink); }

.dash-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem; align-items: start; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.dash-card h3 { margin-top: 0; }
.dash-card.flash { animation: dash-flash 1s ease; }
@keyframes dash-flash {
  0% { box-shadow: 0 0 0 0 rgba(47,107,240,.5); }
  100% { box-shadow: 0 0 0 16px rgba(47,107,240,0); }
}

.match-arrows {
  display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .6rem 0;
  color: var(--brand); font-weight: 700;
}
.match-arrows .swp { font-size: 1.3rem; animation: swp 1.4s ease-in-out infinite; }
@keyframes swp { 0%,100% { transform: translateX(-3px);} 50% { transform: translateX(3px);} }

.dash-status-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.dash-status-pill.searching { background: rgba(47,107,240,.12); color: #1f55d6; }
.dash-status-pill.found { background: rgba(0,182,122,.14); color: #00805f; }
.dash-status-pill.pay { background: rgba(255,158,27,.16); color: #9a5a00; }
.dash-status-pill.done { background: rgba(0,182,122,.14); color: #00805f; }

.spinner {
  width: 38px; height: 38px; border-radius: 50%; margin: .25rem auto 1rem;
  border: 4px solid var(--line); border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash-info-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.dash-info-list li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-2); font-size: .92rem; }
.dash-info-list li::before { content: "✓"; color: #00b67a; font-weight: 800; }

.pop-in { animation: pop-in .45s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Swap wizard ---------- */
.wizard {
  max-width: 620px; margin: 1.5rem auto 0;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) { .wizard { padding: 1.5rem 1.2rem; } }

.wiz-progress { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.wiz-progress .seg {
  flex: 1; height: 6px; border-radius: 999px; background: var(--line);
  transition: background .3s ease;
}
.wiz-progress .seg.done   { background: var(--accent); }
.wiz-progress .seg.active { background: var(--brand); }

.wiz-eyebrow {
  text-align: center; color: var(--ink-3);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 .5rem;
}
.wiz-step { display: none; }
.wiz-step.is-active { display: block; animation: wiz-in .35s ease; }
@keyframes wiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wiz-step h2 { text-align: center; margin: 0 0 .3rem; font-size: 1.55rem; }
.wiz-step .wiz-sub { text-align: center; color: var(--ink-3); margin: 0 0 1.5rem; }

.wiz-actions { display: flex; gap: .6rem; margin-top: 1.5rem; }
.wiz-actions .btn { flex: 1; }
.wiz-back { flex: 0 0 auto !important; }

.wiz-skip { text-align: center; margin: .9rem 0 0; }
.wiz-skip a { color: var(--ink-3); font-size: .9rem; text-decoration: underline; cursor: pointer; }

/* Segmented control (transmission, find-mode) */
.seg-toggle {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; gap: 4px;
}
.seg-opt {
  border: none; background: none; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--ink-3); padding: .65rem .5rem; border-radius: 9px; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-opt.is-selected { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Selected centre pill */
.pill-selected {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(0,200,150,.08); border: 1px solid rgba(0,200,150,.4);
  border-radius: 12px; padding: .75rem 1rem; color: var(--ink); font-weight: 600;
  margin-top: .8rem;
}
.pill-selected .tick { color: #00805f; font-weight: 800; }
.pill-selected .change { margin-left: auto; font-weight: 600; font-size: .9rem; cursor: pointer; }

/* Inline label with icon */
.wiz-label-ic { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); margin: 1.4rem 0 .6rem; }
.wiz-label-ic:first-child { margin-top: 0; }
.wiz-label-ic .lic { width: 20px; height: 20px; flex: 0 0 20px; background: var(--brand);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.wiz-label-ic .lic[data-icon="pin"] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z' fill='black'/></svg>"); }
.wiz-label-ic .lic[data-icon="cal"] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zM5 9h14v10H5V9z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zM5 9h14v10H5V9z' fill='black'/></svg>"); }

.wiz-divider { height: 1px; background: var(--line); margin: 1.6rem 0; }

/* Postcode find results */
.pc-results { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.pc-chip {
  border: 1px solid var(--line); background: white; border-radius: 999px;
  padding: .5rem .9rem; cursor: pointer; font: inherit; font-size: .9rem; color: var(--ink-2);
  transition: border-color .12s ease, background .12s ease;
}
.pc-chip:hover { border-color: var(--brand); background: #fafbff; color: var(--ink); }

/* Mobile verify */
.verify-why {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1rem; color: var(--ink-2); font-size: .92rem; margin-bottom: 1.25rem;
}
.verify-why b { color: var(--ink); }
.verify-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, #2f6bf0, #1f55d6);
  display: flex; align-items: center; justify-content: center;
}
.verify-icon::after {
  content: ""; width: 26px; height: 26px; background: white;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='2' width='12' height='20' rx='2.5' fill='none' stroke='black' stroke-width='2'/><line x1='10' y1='18' x2='14' y2='18' stroke='black' stroke-width='2'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='2' width='12' height='20' rx='2.5' fill='none' stroke='black' stroke-width='2'/><line x1='10' y1='18' x2='14' y2='18' stroke='black' stroke-width='2'/></svg>") center/contain no-repeat;
}
.demo-hint {
  margin-top: .9rem; padding: .7rem .9rem; border-radius: 10px;
  background: rgba(255,176,32,.1); border: 1px dashed rgba(255,176,32,.5);
  color: #7a5500; font-size: .85rem;
}
.demo-hint b { color: #5a3f00; }

/* Review step */
.review-list { display: grid; gap: .6rem; }
.review-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.review-row .rl { flex: 0 0 38%; color: var(--ink-3); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.review-row .rv { flex: 1; color: var(--ink); font-weight: 600; }
.review-row .re { flex: 0 0 auto; color: var(--brand); font-weight: 600; font-size: .85rem; cursor: pointer; background: none; border: none; }
.review-section-title { font-weight: 700; color: var(--ink); margin: 1.2rem 0 .5rem; }
.review-section-title:first-child { margin-top: 0; }

/* ---------- Driving schools page ---------- */
.schools-search {
  display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.schools-search input {
  flex: 1; min-width: 240px;
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: white;
}
.schools-search input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

.notice-warn { background: rgba(255,176,32,.08); border-color: rgba(255,176,32,.4); color: #7a5500; }
.notice-warn b, .notice-warn code { color: #5a3f00; }
.notice-warn code { background: rgba(255,176,32,.15); padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }
.notice-error { background: rgba(255,84,104,.08); border-color: rgba(255,84,104,.4); color: #8a1f2c; }
.notice-error b { color: #5e1320; }

.schools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .schools-grid { grid-template-columns: 1fr; } }

.school-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: .4rem;
  box-shadow: var(--shadow-sm);
}
.school-name { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.school-rating { display: flex; align-items: center; gap: .55rem; }
.school-rating-text { font-weight: 600; color: var(--ink); font-size: .92rem; }
.school-rating-text .muted { font-weight: 400; }
.school-addr { margin: 0; color: var(--ink-2); font-size: .92rem; }
.school-status { margin: 0; color: #b35a00; font-size: .85rem; font-weight: 600; }
.school-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.school-actions .btn { padding: .45rem .85rem; font-size: .88rem; }

/* ---------- Hero alert card (EasyTestSwap) ---------- */
.alert-line { margin: 0 0 .25em; font-weight: 600; color: var(--ink); }
.alert-pill { display: inline-block; background: var(--accent); color: white; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; letter-spacing: .05em; margin-right: .4rem; vertical-align: middle; }
.alert-centre { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: .25rem 0; }
.alert-when { color: var(--ink-2); margin: .25rem 0 .5rem; }
.alert-vs { color: var(--ink-3); font-size: .9rem; margin: .25rem 0 1rem; }
.alert-vs s { color: var(--ink-3); }
.alert-saved { color: #00805f; font-weight: 700; }
.alert-actions { display: flex; gap: .5rem; }
.alert-actions .btn { flex: 1; opacity: .92; }
.alert-actions .btn[disabled] { cursor: default; }

/* ---------- Reviews section ---------- */
.reviews-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reviews-rating { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-bottom: .75rem; }
.reviews-headline { color: var(--ink-2); margin: 0; }
.reviews-headline b { color: var(--ink); }

.stars { display: inline-flex; gap: 3px; }
.stars .star {
  width: 20px; height: 20px;
  background: #00b67a;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 17.27 18.18 21 16.54 13.97 22 9.24 14.81 8.62 12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 17.27 18.18 21 16.54 13.97 22 9.24 14.81 8.62 12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z' fill='black'/></svg>") center/contain no-repeat;
  display: inline-block;
}
.stars .star.star-half { background: linear-gradient(90deg, #00b67a 50%, #d8e2eb 50%); }
.stars.stars-lg .star { width: 28px; height: 28px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.review-verified { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.review-verified::before { content: "✓ "; color: #00b67a; font-weight: 800; }
.review-title { margin: .15rem 0 .35em; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.review-body { color: var(--ink-2); font-size: .95rem; margin: 0 0 1rem; }
.review-foot { display: flex; align-items: center; gap: .65rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2f6bf0, #1f55d6);
  color: white; font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 36px;
}
.review-name { margin: 0; font-weight: 700; color: var(--ink); font-size: .92rem; }
.review-meta { margin: 0; color: var(--ink-3); font-size: .8rem; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 580px; margin: 0 auto;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { margin-top: 0; }
.field { display: block; margin-bottom: 1rem; }
.field > label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .95rem; }
.field > small { display: block; color: var(--ink-3); font-size: .82rem; margin-top: .25rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: white;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-check { display: flex; gap: .5rem; align-items: flex-start; }
.field-check input { margin-top: .25rem; accent-color: var(--brand); }

.form-success {
  margin-top: 1rem; padding: 1rem 1.1rem;
  background: rgba(0,200,150,.08);
  border: 1px solid rgba(0,200,150,.35);
  border-radius: 12px;
  color: #00603f;
  display: none;
}
.form-success.is-shown { display: block; }
.form-success b { color: #004a30; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.pricing-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.75rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pricing-card.is-popular {
  border-color: rgba(16,185,129,.5);
  box-shadow: 0 8px 24px rgba(16,185,129,.15), var(--shadow-sm);
}
.popular-badge {
  position: absolute; top: -12px; right: 1.3rem;
  background: var(--brand); color: white; font-weight: 700;
  font-size: .75rem; padding: .25rem .65rem; border-radius: 999px;
  letter-spacing: .04em;
}
.pricing-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.pricing-tag { color: var(--ink-3); font-size: .9rem; margin: .15rem 0 .9rem; }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin: 0; }
.pricing-price .per { font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-left: .25rem; }
.pricing-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .55rem; }
.pricing-list li { padding-left: 1.5rem; position: relative; color: var(--ink-2); font-size: .95rem; }
.pricing-list li::before {
  content: ""; position: absolute; left: 0; top: .3rem;
  width: 16px; height: 16px;
  background: #00b67a;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.pricing-card .btn { margin-top: auto; }

/* ---------- Test centres list ---------- */
.tc-toolbar { display: flex; gap: .75rem; align-items: center; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.tc-search {
  flex: 1; min-width: 240px;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: white;
}
.tc-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.tc-region {
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: white;
}
.tc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (max-width: 900px) { .tc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tc-grid { grid-template-columns: 1fr; } }
.tc-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem;
}
.tc-card h4 { margin: 0; font-size: 1rem; }
.tc-card p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.tc-card .tc-region-tag { font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--brand); }
.tc-card .btn { margin-top: .5rem; padding: .45rem .9rem; font-size: .85rem; align-self: flex-start; }
.tc-empty { padding: 2rem; text-align: center; color: var(--ink-3); }

/* ---------- Resources page ---------- */

/* ---------- Hazard placeholder clip ---------- */
.clip-stage {
  margin-top: 1.5rem; aspect-ratio: 16/9; width: 100%;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 30% 30%, rgba(236,72,153,.18), transparent 60%),
    radial-gradient(600px 300px at 75% 70%, rgba(0,200,150,.18), transparent 60%),
    linear-gradient(180deg, #0f1530, #1a2150);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #c8cee9;
}
.clip-stage::before, .clip-stage::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.08);
}
.clip-stage::before { top: 35%; }
.clip-stage::after  { top: 65%; }
.clip-hit {
  position: absolute; inset: auto 0 0 0; padding: .9rem 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45));
  display: flex; align-items: center; gap: .75rem; color: white;
}
.clip-hit .pill { background: rgba(255,255,255,.15); padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; }

/* ============================================================
   SITE-WIDE DARK GREEN / PINK THEME
   Consistent darker green+pink background with a dark-blue
   undertone, applied across the whole site. Content cards keep
   a light surface with dark text for readability.
   ============================================================ */

/* Base background + default (on-dark) text colour.
   Lighter deep green -> plum base with clearly visible green + pink,
   and no blue/navy. */
body {
  background:
    radial-gradient(1000px 720px at 100% 0%, rgba(236,72,153,.42), transparent 52%),
    radial-gradient(950px 720px at 0% 6%, rgba(16,185,129,.40), transparent 52%),
    radial-gradient(1100px 900px at 50% 118%, rgba(56,130,235,.40), transparent 56%),
    linear-gradient(150deg, #1e5a54 0%, #265d86 50%, #553a62 100%);
  background-attachment: fixed;
  color: #eef6f1;
}
h1, h2, h3, h4, h5 { color: #ffffff; }
p { color: #c2d2cd; }
a { color: #8ec9ff; }
.muted { color: #9fb3ad; }
.lede { color: #c2d2cd; }

/* Header: translucent dark */
.site-header { background: rgba(15,28,37,.82); border-bottom-color: rgba(255,255,255,.10); }
.brand-text { color: #ffffff; }
.nav-links a { color: #cbded8; }
.nav-links a:hover { color: #ffffff; }
.site-header .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,.35); }
.site-header .btn-ghost:hover { background: rgba(255,255,255,.10); }

/* Sections: drop their light backgrounds so the dark base shows through */
.features, .how, .stats-band, .reviews-section, .swap-later-band, .page-head, .auth-wrap {
  background: transparent;
}
.how, .stats-band, .reviews-section, .page-head, .swap-later-band {
  border-top-color: rgba(255,255,255,.08);
  border-bottom-color: rgba(255,255,255,.08);
}

/* On-dark text overrides (these elements sit directly on the background) */
.eyebrow { color: #cfe0ff; background: rgba(255,255,255,.10); }
.section-head p { color: #b6c7c2; }
.page-head p { color: #c2d2cd; }
.page-head p a { color: #8ec9ff; }
.how-grid .lede, .how-grid > div > p { color: #c2d2cd; }
.stat-num { color: #ffffff; }
.stat-label { color: #a7bbb5; }
.reviews-headline { color: #c2d2cd; }
.reviews-headline b { color: #ffffff; }
.swap-later-inner h2 { color: #ffffff; }
.swap-later-inner p { color: #c2d2cd; }
.faq-cat { color: #ffffff; }
#tcBack { color: #ffffff; border-color: rgba(255,255,255,.35); }
#tcCount { color: #a7bbb5; }

/* ---- Card surfaces keep a LIGHT background + DARK text ---- */
:is(.feature-card,.review-card,.faq-item,.form-card,.tc-card,.place-card,
    .pricing-card,.single-plan-card,.wizard,.hero-card,.swap-widget,.hc-card,
    .topic-card,.question-card,.notice,.nav-menu,.result-card,.legal-card,
    .trust-item,.pill-selected,.verify-why,.demo-hint,.auth-demo-note,.ac-list,
    .school-card,.test-bar,.opt,.review-row,.swap-slot) {
  color: var(--ink-2);
}
:is(.feature-card,.review-card,.faq-item,.form-card,.tc-card,.place-card,
    .pricing-card,.single-plan-card,.wizard,.hero-card,.swap-widget,.hc-card,
    .topic-card,.question-card,.notice,.nav-menu,.result-card,.legal-card,
    .trust-item,.pill-selected,.verify-why,.demo-hint,.auth-demo-note,.ac-list,
    .school-card,.test-bar,.opt,.review-row,.swap-slot) :is(h1,h2,h3,h4,h5) {
  color: var(--ink);
}
:is(.feature-card,.review-card,.faq-item,.form-card,.tc-card,.place-card,
    .pricing-card,.single-plan-card,.wizard,.hero-card,.swap-widget,.hc-card,
    .topic-card,.question-card,.notice,.nav-menu,.result-card,.legal-card,
    .trust-item,.pill-selected,.verify-why,.demo-hint,.auth-demo-note,.ac-list,
    .school-card,.test-bar,.opt,.review-row,.swap-slot) p {
  color: var(--ink-2);
}
:is(.feature-card,.review-card,.faq-item,.form-card,.tc-card,.place-card,
    .pricing-card,.single-plan-card,.wizard,.hero-card,.swap-widget,.hc-card,
    .topic-card,.question-card,.notice,.nav-menu,.result-card,.legal-card,
    .trust-item,.pill-selected,.verify-why,.demo-hint,.auth-demo-note,.ac-list,
    .school-card,.test-bar,.opt,.review-row,.swap-slot) .muted {
  color: var(--ink-3);
}
:is(.feature-card,.review-card,.faq-item,.form-card,.tc-card,.place-card,
    .pricing-card,.single-plan-card,.wizard,.hero-card,.swap-widget,.hc-card,
    .topic-card,.question-card,.notice,.nav-menu,.result-card,.legal-card,
    .trust-item,.pill-selected,.verify-why,.demo-hint,.auth-demo-note,.ac-list,
    .school-card,.test-bar,.opt,.review-row,.swap-slot) a {
  color: #2f6bf0;
}

/* Free-resources promo cards (how-steps) */
.how-steps li { color: var(--ink-2); }
.how-steps li h4 { color: var(--ink); }

/* Legal pages: give the body copy a light reading sheet */
.legal-card {
  background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

/* Swap-later CTA button -> light blue (visible on dark) */
.btn-amber { background: #3b82f6; color: #fff; box-shadow: 0 6px 18px rgba(59,130,246,.35); }
.btn-amber:hover { background: #2f6bf0; }
