/* ExamPredictor.online — global stylesheet (v2: richer, branded theme)
   Mobile-first. Tinted background, indigo→blue→cyan gradients, Font Awesome accents.
   No frameworks. System font stack for fast, FOUT-free rendering. */

:root {
  /* brand */
  --brand-1: #4f46e5;   /* indigo */
  --brand-2: #2563eb;   /* blue   */
  --brand-3: #06b6d4;   /* cyan   */
  --brand-ink: #1e3a8a; /* deep blue for text accents */
  --accent: #f59e0b;    /* amber highlight */
  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #2563eb 52%, #0ea5e9 100%);
  --grad-brand: linear-gradient(135deg, #4f46e5, #06b6d4);
  --grad-soft: linear-gradient(135deg, #eef2ff, #e0f2fe);

  /* ink + surfaces */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e5e9f2;
  --surface: #ffffff;
  --bg: #f4f7fd;
  --bg-soft: #eef2fb;

  /* status */
  --good: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 4px 14px rgba(15, 23, 42, .07), 0 12px 34px rgba(30, 58, 138, .08);
  --shadow-lg: 0 18px 50px rgba(30, 58, 138, .18);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  /* Font Awesome helpers */
  --fa-solid: 900 1em/1 "Font Awesome 6 Free";
  --fa-brand: 400 1em/1 "Font Awesome 6 Brands";
}

* { 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.65;
  color: var(--ink-700);
  background-color: var(--bg);
  background-image:
    radial-gradient(40rem 40rem at 110% -8%, rgba(6, 182, 212, .10), transparent 60%),
    radial-gradient(36rem 36rem at -10% 8%, rgba(79, 70, 229, .10), transparent 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.55rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand-1); text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand-1); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink-900); font-size: 1.16rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: .8rem;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35); letter-spacing: .02em;
}
.brand span b { color: var(--brand-2); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--ink-900); }
.nav-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); }

.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink-700); font-weight: 600; font-size: .98rem; display: inline-flex; align-items: center; gap: .45rem; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--brand-2); text-decoration: none; }
/* nav icons */
.nav-menu li:nth-child(1) a::before { font: var(--fa-solid); content: "\f015"; }
.nav-menu li:nth-child(2) a::before { font: var(--fa-solid); content: "\f1ec"; }
.nav-menu li:nth-child(3) a::before { font: var(--fa-solid); content: "\f02d"; }
.nav-menu li:nth-child(4) a::before { font: var(--fa-solid); content: "\f05a"; }
.nav-menu li:nth-child(5) a::before { font: var(--fa-solid); content: "\f0e0"; }
.nav-menu li a::before { color: var(--brand-3); font-size: .85em; }

@media (max-width: 880px) {
  .nav-menu { position: absolute; left: 0; right: 0; top: 66px; background: #fff;
    border-bottom: 1px solid var(--line); display: none; flex-direction: column;
    padding: .5rem 20px 1rem; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: .35rem 0; border-bottom: 1px solid var(--bg-soft); }
  .nav-menu a { display: flex; padding: .6rem 0; }
}
@media (min-width: 881px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; align-items: center; gap: 1.4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  background: var(--grad-brand); color: #fff; border: 1px solid transparent;
  padding: .75rem 1.3rem; border-radius: 12px; font-weight: 700; font-size: 1rem;
  cursor: pointer; box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(37, 99, 235, .32); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--brand-ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--brand-1); filter: none; }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-hero);
  padding: 3rem 0 3.2rem; margin-bottom: .5rem;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }
.hero::after { width: 260px; height: 260px; left: -90px; bottom: -120px; background: radial-gradient(circle, rgba(6,182,212,.45), transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 1.8rem; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 2.9rem); text-shadow: 0 2px 14px rgba(2, 12, 40, .18); }
.hero-lead { font-size: 1.14rem; color: rgba(255, 255, 255, .92); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: .9rem; backdrop-filter: blur(4px);
}
.eyebrow::before { font: var(--fa-solid); content: "\f0eb"; color: #fde68a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.hero-cta .btn { background: #fff; color: var(--brand-1); box-shadow: 0 12px 30px rgba(2, 12, 40, .22); }
.hero-cta .btn:hover { background: #fff; filter: none; color: var(--brand-1); transform: translateY(-2px); }
.hero-cta .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

/* ---------- Layout columns ---------- */
.layout { display: grid; gap: 2.2rem; padding: 2.2rem 0 3rem; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.sidebar { display: grid; gap: 1.2rem; }
@media (min-width: 980px) { .sidebar { position: sticky; top: 86px; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { margin-top: 0; }

.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.calc-card {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.25rem 1.25rem;
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .15s ease, transform .12s ease, box-shadow .2s ease;
}
.calc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.calc-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.calc-card:hover::before { transform: scaleX(1); }
.calc-card a { text-decoration: none; }
.calc-card .tag {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .72rem; font-weight: 700; color: var(--brand-ink); text-transform: uppercase;
  letter-spacing: .04em; background: var(--grad-soft); border: 1px solid #dbe4fb;
  padding: .25rem .6rem; border-radius: 999px;
}
.calc-card .tag::before { font: var(--fa-solid); content: "\f1ec"; color: var(--brand-2); }
.calc-card h3 { margin: .2rem 0 .15rem; font-size: 1.08rem; }
.calc-card h3::after { font: var(--fa-solid); content: "\f061"; margin-left: .45rem; font-size: .72em; color: var(--brand-3); opacity: 0; transition: opacity .2s, margin .2s; }
.calc-card:hover h3::after { opacity: 1; margin-left: .65rem; }
.calc-card p { margin: 0; font-size: .92rem; color: var(--ink-500); }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding: .9rem 0 0; font-size: .86rem; color: var(--ink-500); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li::after { font: var(--fa-solid); content: "\f105"; margin-left: .15rem; color: #b6c0d4; font-size: .8em; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:first-child a::before { font: var(--fa-solid); content: "\f015"; margin-right: .35rem; color: var(--brand-2); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb [aria-current="page"] { color: var(--ink-700); font-weight: 600; }

/* ---------- Calculator widget ---------- */
.calculator { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.calculator__head { background: var(--grad-soft); border-bottom: 1px solid var(--line); padding: 1.2rem 1.3rem; }
.calculator__head h2 { margin: 0; font-size: 1.28rem; display: flex; align-items: center; gap: .55rem; }
.calculator__head h2::before { font: var(--fa-solid); content: "\f1ec"; color: var(--brand-2); }
.calculator__head p { margin: .35rem 0 0; font-size: .92rem; color: var(--ink-500); }
.calculator__body { padding: 1.4rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .15rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.field .hint { font-size: .8rem; color: var(--ink-500); font-weight: 400; }
.field input[type="number"] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .75rem;
  font-size: 1rem; font-family: inherit; color: var(--ink-900); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input[type="number"]:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.calc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.calc-actions [data-calculate]::before { font: var(--fa-solid); content: "\f1ec"; }
.calc-actions [data-reset]::before { font: var(--fa-solid); content: "\f2f9"; color: var(--ink-500); }

.result { margin-top: 1.3rem; border-top: 1px dashed var(--line); padding-top: 1.3rem; display: grid; gap: 1rem; }
.result[hidden] { display: none; }
.score-display { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.score-badge { flex: 1 1 150px; text-align: center; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid #dbe4fb; padding: 1.1rem; }
.score-badge .num { font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.score-badge .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); font-weight: 700; margin-top: .4rem; }
.score-badge.is-5 { background: linear-gradient(135deg, #dcfce7, #d1fae5); border-color: #a7f3d0; }
.score-badge.is-5 .num { color: var(--good); }
.score-badge.is-4 .num { color: #15803d; }
.score-badge.is-3 .num { color: var(--brand-2); }
.score-badge.is-2 { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.score-badge.is-2 .num { color: var(--warn); }
.score-badge.is-1 { background: linear-gradient(135deg, #fee2e2, #fecaca); border-color: #fca5a5; }
.score-badge.is-1 .num { color: var(--danger); }
.result-note { font-size: .95rem; color: var(--ink-700); }
.result-meter { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,23,42,.08); }
.result-meter > span { display: block; height: 100%; background: var(--grad-hero); width: 0; transition: width .5s cubic-bezier(.4,0,.2,1); }

.disclaimer-box {
  position: relative; background: #fffbeb; border: 1px solid #fcd9a3; border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: .95rem 1.05rem .95rem 2.7rem; font-size: .88rem; color: #7c4a03;
}
.disclaimer-box::before { font: var(--fa-solid); content: "\f06a"; position: absolute; left: 1rem; top: 1rem; color: var(--accent); font-size: 1.05em; }
.disclaimer-box strong { color: #7c4a03; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 360px; background: #fff; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--grad-soft); color: var(--ink-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:nth-child(even) { background: #fafbfe; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: #c7d6fb; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { font: var(--fa-solid); content: "\f059"; color: var(--brand-2); margin-right: .1rem; flex: 0 0 auto; }
.faq summary::after { font: var(--fa-solid); content: "\f067"; font-size: .85rem; color: var(--brand-2); transition: transform .2s; margin-left: auto; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\f068"; }
.faq summary:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); }
.faq .faq-body { padding: 0 1.15rem 1.15rem 2.75rem; color: var(--ink-700); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Author / callouts ---------- */
.author { display: flex; gap: 1.1rem; align-items: flex-start; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.author .avatar { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 8px 18px rgba(79,70,229,.3); }
.author h3 { margin: 0 0 .2rem; font-size: 1.06rem; }
.author h3::before { font: var(--fa-solid); content: "\f4ff"; color: var(--brand-3); margin-right: .45rem; }
.author p { margin: 0; font-size: .92rem; color: var(--ink-500); }

.callout { background: var(--grad-soft); border: 1px solid #d7e2fb; border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.callout h3 { margin-top: 0; }

.pill-list { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list a { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .85rem; font-size: .88rem; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, transform .1s; }
.pill-list a::before { font: var(--fa-solid); content: "\f1ec"; color: var(--brand-3); font-size: .85em; }
.pill-list a:hover { border-color: var(--brand-2); color: var(--brand-1); text-decoration: none; transform: translateY(-1px); }

.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--brand-2); }
.prose h2 { scroll-margin-top: 86px; position: relative; padding-left: .9rem; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 4px; background: var(--grad-brand); }

.section { padding: 1rem 0; }
.lede { font-size: 1.14rem; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .6rem; }
.tag-row .chip { font-size: .78rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--ink-500); }

/* ---------- Article list ---------- */
.post-list { display: grid; gap: 1.1rem; }
.post-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .2s, transform .12s; }
.post-card:hover { border-color: #c7d6fb; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { margin: .2rem 0 .4rem; }
.post-card h3 a::before { font: var(--fa-solid); content: "\f15c"; color: var(--brand-3); margin-right: .5rem; font-size: .85em; }
.post-card .meta { font-size: .8rem; color: var(--ink-500); display: inline-flex; align-items: center; gap: .4rem; }
.post-card .meta::before { font: var(--fa-solid); content: "\f02e"; color: var(--brand-2); }
.post-card p { margin: .4rem 0 0; font-size: .95rem; color: var(--ink-500); }

/* ---------- Blog: featured image, card thumbnails, table of contents ---------- */
.post-hero { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.post-byline i { color: var(--brand-2); }

.post-list-grid { grid-template-columns: 1fr; }
@media (min-width: 620px) { .post-list-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-list-grid { grid-template-columns: 1fr 1fr 1fr; } }
.post-list-grid .post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; overflow: hidden; line-height: 0; }
.post-thumb img { display: block; width: 100%; height: 168px; object-fit: cover; transition: transform .3s ease; }
.post-list-grid .post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card-body { padding: 1.05rem 1.2rem 1.3rem; display: flex; flex-direction: column; }
.post-list-grid .post-card h3 { margin: .3rem 0 .4rem; font-size: 1.05rem; }
.post-list-grid .post-card h3 a::before { content: none; }

.toc ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.toc li { margin: .1rem 0; }
.toc a { display: block; padding: .32rem .2rem .32rem .7rem; font-size: .9rem; color: var(--ink-700); border-left: 2px solid var(--line); }
.toc a:hover { color: var(--brand-2); border-left-color: var(--brand-2); text-decoration: none; }
.toc h3 i { color: var(--brand-3); margin-right: .35rem; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, #111a32, #0f172a 60%); color: #c2cee0; margin-top: 2.4rem; border-top: 4px solid transparent; border-image: var(--grad-hero) 1; }
.site-footer a { color: #d8e3f5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 1.8rem; padding: 2.8rem 0 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.footer-grid h4::before { font: var(--fa-solid); color: var(--brand-3); }
.footer-grid > div:nth-child(2) h4::before { content: "\f1ec"; }
.footer-grid > div:nth-child(3) h4::before { content: "\f02d"; }
.footer-grid > div:nth-child(4) h4::before { content: "\f0c9"; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: .4rem 0; font-size: .93rem; }
.footer-grid li a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-grid li a::before { font: var(--fa-solid); content: "\f105"; color: #5b6b86; font-size: .85em; }
.footer-brand p { font-size: .9rem; color: #9fb0c8; max-width: 40ch; }
.footer-brand p a::before { content: none; }
.footer-disclaimer { border-top: 1px solid #25324a; padding: 1.2rem 0; font-size: .82rem; color: #93a3bd; }
.footer-disclaimer strong { color: #cbd6e6; }
.footer-bottom { border-top: 1px solid #25324a; padding: 1rem 0 2.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; color: #93a3bd; }

/* ---------- Utilities / a11y ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 1px; }

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