@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');}

/* ==========================================================================
   StudyPilot design system
   Brand: deep navy + bright blue/cyan (from the logo). Maple red used sparingly.
   ========================================================================== */
:root {
  --navy-950: #061634;
  --navy-900: #081d45;
  --navy: #0a2557;
  --navy-700: #123a7d;
  --blue: #0b6fe6;
  --blue-600: #0a5fd0;
  --sky: #0ea5f5;
  --cyan: #22c1ff;
  --maple: #d62027;
  --ink: #0b1b3b;
  --text: #24365b;
  --muted: #5d6e90;
  --faint: #8a98b5;
  --line: #e2e9f6;
  --line-strong: #cfd9ee;
  --bg: #f5f8ff;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --ok: #0f9d6b;
  --ok-bg: #e5f8f0;
  --warn: #b7791f;
  --warn-bg: #fff4dc;
  --err: #d13b3b;
  --err-bg: #fdeaea;
  --grad: linear-gradient(135deg, #0b6fe6 0%, #0ea5f5 100%);
  --grad-dark: linear-gradient(160deg, #061634 0%, #0a2557 55%, #0b3a8a 100%);
  --shadow-xs: 0 1px 2px rgba(10, 37, 87, .06);
  --shadow-sm: 0 2px 10px rgba(10, 37, 87, .07);
  --shadow-md: 0 10px 30px rgba(10, 37, 87, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 87, .16);
  --ring: 0 0 0 3px rgba(14, 165, 245, .35);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.i { flex: none; display: inline-block; vertical-align: -0.2em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 999; }
.skip-link:focus { left: 12px; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.66); }
.center { text-align: center; }
.hide-sm { } .hide-md { }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-light { background: linear-gradient(120deg, #7fd4ff, #22c1ff 45%, #b7e6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  font-weight: 700; font-size: .95rem; line-height: 1.2; font-family: var(--font-head);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(11, 111, 230, .32); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(11, 111, 230, .42); filter: saturate(1.08); }
.btn-ghost { background: rgba(11, 111, 230, .08); color: var(--blue); }
.btn-ghost:hover { background: rgba(11, 111, 230, .14); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-white:hover { color: var(--blue); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-danger { background: var(--err-bg); color: var(--err); }
.btn-danger:hover { background: #fbd7d7; color: var(--err); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link-plain { white-space: nowrap; color: var(--navy); font-weight: 600; font-size: .92rem; }
.link-plain:hover { color: var(--blue); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--font-head); }
.link-arrow .i { transition: transform .18s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10, 37, 87, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
.main-nav > a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--navy); transition: background .15s, color .15s; }
.main-nav > a:hover { background: var(--bg-soft); color: var(--blue); }
.main-nav > a.active { color: var(--blue); background: rgba(11, 111, 230, .08); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--navy); cursor: pointer; }
.nav-mobile-cta { display: none; }

/* ---------- layout blocks ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-white { background: #fff; }
.section-dark { background: var(--grad-dark); color: #d6e2fb; position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(11, 111, 230, .09); color: var(--blue); font-weight: 700; font-size: .8rem;
  font-family: var(--font-head); letter-spacing: .02em; margin-bottom: 16px;
}
.eyebrow.on-dark { background: rgba(255,255,255,.1); color: #9fdcff; border: 1px solid rgba(255,255,255,.16); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,193,255,.25); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-xs); }
.card-pad { padding: 24px; }
.card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---------- hero ---------- */
.hero { background: var(--grad-dark); color: #d6e2fb; position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; animation: float 14s ease-in-out infinite; }
.hero .blob.b1 { width: 520px; height: 520px; background: #0b6fe6; top: -160px; right: -120px; }
.hero .blob.b2 { width: 380px; height: 380px; background: #22c1ff; bottom: -140px; left: 28%; opacity: .28; animation-delay: -6s; }
.hero .blob.b3 { width: 300px; height: 300px; background: #d62027; top: 40%; left: -140px; opacity: .12; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-28px) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-bottom: 72px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 28px; }
.hero-search {
  display: flex; align-items: stretch; background: #fff; border-radius: 18px; padding: 8px; gap: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); max-width: 640px; position: relative;
}
.hero-search .hs-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; flex: 1; min-width: 0; color: var(--faint); }
.hero-search input, .hero-search select { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; padding: 14px 0; color: var(--ink); font-weight: 500; }
.hero-search select { cursor: pointer; }
.hero-search .hs-sep { width: 1px; background: var(--line); margin: 10px 0; }
.hero-search .btn { border-radius: 12px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.hero-chips span.lbl { color: rgba(255,255,255,.6); font-size: .85rem; margin-right: 4px; }
.hero-chips a { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #e8f1ff; font-size: .86rem; font-weight: 500; transition: background .15s, transform .15s; }
.hero-chips a:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-1px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: rgba(255,255,255,.75); font-size: .88rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .i { color: var(--cyan); }

.hero-visual { position: relative; min-height: 560px; }
.hv-card { position: absolute; background: #fff; color: var(--text); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px; }
.hv-main { top: 40px; left: 2%; right: 0; animation: float 9s ease-in-out infinite; }
.hv-main .hv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.hv-main h4 { font-size: 1.05rem; margin: 6px 0 2px; }
.hv-list { display: grid; gap: 8px; margin: 14px 0; font-size: .88rem; }
.hv-list li { display: flex; gap: 10px; align-items: center; }
.hv-list .i { padding: 3px; border-radius: 50%; width: 22px; height: 22px; }
.hv-list .ok .i { background: var(--ok-bg); color: var(--ok); }
.hv-list .unk .i { background: var(--warn-bg); color: var(--warn); }
.hv-meter { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.hv-meter i { display: block; height: 100%; width: 82%; background: var(--grad); border-radius: 99px; }
.hv-ai { bottom: 0; left: -2%; width: 56%; padding: 16px; animation: float 11s ease-in-out infinite; animation-delay: -4s; }
.hv-ai .who { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .85rem; margin-bottom: 8px; }
.hv-ai .who .av { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.hv-ai p { margin: 0; font-size: .86rem; line-height: 1.5; }
.hv-deadline { bottom: 30px; right: 0; width: 42%; padding: 14px 16px; display: flex; gap: 12px; align-items: center; animation: float 10s ease-in-out infinite; animation-delay: -7s; }
.hv-deadline .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); display: grid; place-items: center; }
.hv-deadline b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9rem; }
.hv-deadline small { color: var(--muted); }
.hv-plane { position: absolute; top: -44px; right: 30px; width: 84px; opacity: .95; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); animation: float 8s ease-in-out infinite; z-index: 2; }
.hero-wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* stats band */
.stats-band { margin-top: -1px; background: var(--bg); padding: 0; }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-top: -40px; position: relative; z-index: 3; }
.stat { padding: 28px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* marquee */
.marquee { overflow: hidden; padding: 28px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--navy); font-size: .92rem; white-space: nowrap; box-shadow: var(--shadow-xs); }
.mq-item .i { color: var(--blue); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-xs); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(11,111,230,.35); }
.step .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* feature cards */
.feature { padding: 28px; }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 10px 22px rgba(11,111,230,.28); }
.feature .ico.alt { background: linear-gradient(135deg, #123a7d, #0b6fe6); }
.feature .ico.red { background: linear-gradient(135deg, #d62027, #ff5b5f); box-shadow: 0 10px 22px rgba(214,32,39,.25); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* category tiles */
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--ink); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: var(--ink); }
.cat-tile .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cat-tile b { display: block; font-family: var(--font-head); font-size: .97rem; line-height: 1.25; }
.cat-tile small { color: var(--muted); }
.c-rose .ci, .chip.c-rose { background: #ffe9ee; color: #d6336c; }
.c-violet .ci, .chip.c-violet { background: #efe9ff; color: #6f42d8; }
.c-amber .ci, .chip.c-amber { background: #fff2d6; color: #b7791f; }
.c-blue .ci, .chip.c-blue { background: #e2eeff; color: #0b6fe6; }
.c-green .ci, .chip.c-green { background: #e0f7ec; color: #0f9d6b; }
.c-slate .ci, .chip.c-slate { background: #eaeff8; color: #4b5d80; }
.c-cyan .ci, .chip.c-cyan { background: #dcf6ff; color: #0a8bbf; }
.c-pink .ci, .chip.c-pink { background: #ffe6f4; color: #c42b86; }
.c-orange .ci, .chip.c-orange { background: #ffeadb; color: #d9601a; }
.c-teal .ci, .chip.c-teal { background: #dcf7f4; color: #0d9488; }
.c-sky .ci, .chip.c-sky { background: #dff1ff; color: #0a78d1; }
.c-indigo .ci, .chip.c-indigo { background: #e6e9ff; color: #4a4fd6; }
.c-brown .ci, .chip.c-brown { background: #f6ece2; color: #92603a; }
.c-lime .ci, .chip.c-lime { background: #eaf7d4; color: #5a8a13; }
.c-fuchsia .ci, .chip.c-fuchsia { background: #fbe4fb; color: #b032b0; }

/* province tiles */
.prov-tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px; color: #fff; background: var(--grad-dark); min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm); }
.prov-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: #fff; }
.prov-tile::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -60px; top: -80px; background: radial-gradient(circle, rgba(34,193,255,.5), transparent 65%); }
.prov-tile .code { position: absolute; top: 18px; left: 22px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; opacity: .95; letter-spacing: -.04em; }
.prov-tile h3 { color: #fff; margin: 0 0 4px; }
.prov-tile small { color: rgba(255,255,255,.75); }
.prov-tile .go { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.prov-tile:nth-child(2) { background: linear-gradient(160deg, #0a2557, #0b6fe6); }
.prov-tile:nth-child(3) { background: linear-gradient(160deg, #123a7d, #0ea5f5); }
.prov-tile:nth-child(4) { background: linear-gradient(160deg, #061634, #123a7d); }

/* AI showcase */
.ai-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chat-demo { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; color: var(--text); }
.chat-demo .msg { display: flex; gap: 10px; margin-bottom: 14px; }
.chat-demo .msg.me { justify-content: flex-end; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: .93rem; line-height: 1.5; }
.msg.me .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai .bubble { background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 5px; }
.av-ai { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list .i { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(34,193,255,.16); color: var(--cyan); margin-top: 1px; }
.section-white .check-list .i, .card .check-list .i { background: var(--ok-bg); color: var(--ok); }

/* trust / guardrails */
.trust-item { display: flex; gap: 16px; padding: 22px; }
.trust-item .ico { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--cyan); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: rgba(255,255,255,.7); font-size: .93rem; }

/* pricing */
.plan { padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; padding: 5px 16px; border-radius: 99px; font-size: .78rem; font-weight: 700; font-family: var(--font-head); box-shadow: 0 6px 16px rgba(11,111,230,.35); }
.plan h3 { margin-bottom: 2px; }
.plan .price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--navy); margin: 14px 0 4px; letter-spacing: -.02em; }
.plan ul { margin: 20px 0 26px; flex: 1; }
.plan li { display: flex; gap: 10px; margin-bottom: 11px; font-size: .95rem; }
.plan li .i { color: var(--ok); margin-top: 3px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--blue); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; margin: 0 0 14px; }

/* page hero (inner pages) */
.page-hero { background: var(--grad-dark); color: #d6e2fb; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(34,193,255,.35), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 12px; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.78); font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }
.pull-up { margin-top: -40px; position: relative; z-index: 4; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; font-family: var(--font-head); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
  color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6e90' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: #b5c4e3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sky); box-shadow: var(--ring); }
.textarea { min-height: 120px; resize: vertical; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.pw-wrap { position: relative; }
.pw-wrap .pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.pw-wrap .input { padding-right: 46px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select label { position: relative; cursor: pointer; }
.chip-select input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-select span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-size: .88rem; font-weight: 600; color: var(--text); transition: all .15s; }
.chip-select label:hover span { border-color: var(--sky); }
.chip-select input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(11,111,230,.28); }
.chip-select input:focus-visible + span { box-shadow: var(--ring); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin: 16px 0; font-size: .94rem; border: 1px solid; }
.alert .i { margin-top: 2px; }
.alert-success { background: var(--ok-bg); border-color: #b7ead4; color: #0a6b48; }
.alert-error { background: var(--err-bg); border-color: #f5c2c2; color: #a52a2a; }
.alert-info { background: #e8f2ff; border-color: #c4dcff; color: #0a4fa8; }
.alert-warn { background: var(--warn-bg); border-color: #f4dba0; color: #855a10; }
.flash-wrap { margin-top: 12px; }
.form-error { color: var(--err); font-size: .85rem; margin-top: 5px; }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; font-family: var(--font-head); white-space: nowrap; }
.b-slate { background: #eaeff8; color: #4b5d80; } .b-blue { background: #e2eeff; color: #0b6fe6; } .b-green { background: var(--ok-bg); color: #0a7a53; }
.b-amber { background: var(--warn-bg); color: #96640f; } .b-red { background: var(--err-bg); color: #b12d2d; } .b-cyan { background: #dcf6ff; color: #0a7fae; }
.b-indigo { background: #e6e9ff; color: #3d43c2; } .b-violet { background: #efe9ff; color: #5a35c4; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; font-family: var(--font-head); }
.fee { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: -.02em; }
.fee small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fee .fee-to { font-size: .95rem; }
.fee-missing { font-size: .82rem; font-weight: 700; color: var(--warn); display: inline-flex; gap: 5px; align-items: center; letter-spacing: 0; }
.fee-note { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; font-family: var(--font); letter-spacing: 0; }

/* ---------- program cards / catalogue ---------- */
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filters h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; margin-bottom: 16px; }
.filter-group { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > .label { margin-bottom: 10px; }
.filter-group .check { margin-bottom: 8px; }
.filter-group .check small { color: var(--faint); margin-left: auto; }
.filter-scroll { max-height: 210px; overflow: auto; padding-right: 4px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.results-head h2 { font-size: 1.3rem; margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.af { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; background: rgba(11,111,230,.09); color: var(--blue); border-radius: 99px; font-size: .82rem; font-weight: 600; }
.af a { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(11,111,230,.15); color: var(--blue); }
.af a:hover { background: var(--blue); color: #fff; }
.prog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prog-card { display: flex; flex-direction: column; padding: 20px; position: relative; height: 100%; }
.prog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.prog-actions { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn.on { background: #ffe9ee; border-color: #ffc2d1; color: #d6336c; }
.icon-btn.on .i { fill: currentColor; }
.icon-btn.cmp.on { background: #e2eeff; border-color: #b8d3ff; color: var(--blue); }
.prog-card h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 6px; }
.prog-card h3 a { color: var(--ink); }
.prog-card h3 a:hover { color: var(--blue); }
.prog-college { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 500; margin-bottom: 12px; }
.prog-college a { color: var(--text); font-weight: 600; }
.prog-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.prog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.prog-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager .pg-cur { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 11px; font-weight: 700; font-family: var(--font-head); font-size: .9rem; }
.pager a { background: #fff; border: 1px solid var(--line-strong); color: var(--navy); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .pg-cur { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(11,111,230,.3); }
.pager .pg-gap { color: var(--faint); }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .ico { width: 72px; height: 72px; border-radius: 22px; background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h3 { color: var(--ink); }
.filters-toggle { display: none; }
.filters-backdrop { display: none; }

/* suggest dropdown */
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 30; padding: 8px; max-height: 380px; overflow: auto; text-align: left; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .92rem; }
.suggest a:hover, .suggest a.hl { background: var(--bg-soft); }
.suggest a small { color: var(--muted); display: block; }
.suggest a .i { color: var(--blue); }
.suggest .sg-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 12px 4px; font-family: var(--font-head); }

/* detail pages */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; }
.aside-card .fee { font-size: 2rem; display: block; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; font-size: .94rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--warn-bg); border: 1px solid #f4dba0; color: #7a520e; font-size: .9rem; }
.notice .i { margin-top: 2px; flex: none; }
.notice.info { background: #e8f2ff; border-color: #c4dcff; color: #0a4fa8; }
.notice.ok { background: var(--ok-bg); border-color: #b7ead4; color: #0a6b48; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; padding: 12px 16px; background: var(--bg-soft); color: var(--navy); font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fafcff; }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; font-weight: 700; color: var(--navy); }
.compare-table th:first-child { background: var(--bg-soft); }
.compare-table td, .compare-table th { min-width: 220px; }
.compare-table .cmp-best { background: #ecfaf4 !important; }
.compare-head h3 { font-size: 1rem; margin: 8px 0 4px; }

/* compare tray + toast */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line-strong); box-shadow: 0 -12px 40px rgba(10,37,87,.14); padding: 12px 0; animation: slideup .25s ease; }
.compare-tray[hidden] { display: none; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.compare-tray-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ct-items { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); }
.ct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; background: var(--bg-soft); border-radius: 99px; font-weight: 600; color: var(--navy); max-width: 220px; }
.ct-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-pill button { border: 0; background: rgba(10,37,87,.1); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; cursor: pointer; color: var(--navy); padding: 0; }
.ct-actions { display: flex; gap: 8px; align-items: center; }
.toast-host { position: fixed; right: 20px; bottom: 90px; z-index: 90; display: grid; gap: 10px; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; display: flex; gap: 10px; align-items: center; animation: slideup .25s ease; max-width: 340px; }
.toast.err { background: #a52a2a; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--grad-dark); color: #d6e2fb; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -120px; background: radial-gradient(circle, rgba(34,193,255,.4), transparent 65%); }
.auth-side h2 { color: #fff; font-size: 2.1rem; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .82rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #b7c6e6; padding: 0 0 28px; margin-top: 0; position: relative; }
.footer-cta { display: flex; justify-content: space-between; gap: 32px; align-items: center; flex-wrap: wrap; background: var(--grad); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); transform: translateY(-50%); margin-bottom: -20px; box-shadow: var(--shadow-lg); color: #fff; position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -60px; top: -120px; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.footer-cta p { margin: 0; color: rgba(255,255,255,.88); }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 8px 0 40px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.footer-brand .tagline { color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #b7c6e6; font-size: .93rem; }
.footer-grid a:hover { color: #fff; }
.footer-disclaimer { display: flex; gap: 12px; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .82rem; line-height: 1.6; color: #98a9cc; }
.footer-disclaimer p { margin: 0; }
.footer-disclaimer .i { margin-top: 3px; color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-size: .84rem; color: #7f92b8; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-26px); } [data-reveal="right"] { transform: translateX(26px); }
[data-reveal="left"].in, [data-reveal="right"].in { transform: none; }
[data-delay="1"] { transition-delay: .08s; } [data-delay="2"] { transition-delay: .16s; } [data-delay="3"] { transition-delay: .24s; } [data-delay="4"] { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 540px; max-width: 560px; margin: 0 auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .ai-showcase { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 92vw); z-index: 80; transform: translateX(-105%); transition: transform .25s; max-height: none; border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow-lg); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .filters-backdrop { display: block; position: fixed; inset: 0; background: rgba(6,22,52,.5); z-index: 79; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .filters-backdrop.open { opacity: 1; pointer-events: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hide-md { display: none !important; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 24px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s; margin: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a { padding: 13px 14px; font-size: 1rem; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 12px; }
  .hide-sm { display: none !important; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plan.featured { transform: none; }
}
@media (max-width: 680px) {
  .container { width: min(1200px, 100% - 32px); }
  .prog-list { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; padding: 10px; }
  .hero-search .hs-sep { display: none; }
  .hero-search .hs-field { border-bottom: 1px solid var(--line); }
  .hero-search .hs-field:last-of-type { border-bottom: 0; }
  .hero-visual { min-height: 600px; }
  .hv-main { left: 0; }
  .hv-ai { width: 78%; left: 0; bottom: 86px; }
  .hv-deadline { width: 78%; bottom: 0; right: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .compare-tray-inner { flex-direction: column; align-items: stretch; }
  .ct-actions { justify-content: flex-end; }
  .footer-cta { transform: none; margin: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inner public pages: how it works, about, legal
   ========================================================================== */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sky), var(--line)); }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.tl-dot { width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(11,111,230,.3); position: relative; z-index: 1; }
.tl-item .card h3 { margin: 2px 0 6px; font-size: 1.2rem; }
.tl-item .card p { color: var(--muted); margin: 0 0 10px; }
.tl-no { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); font-family: var(--font-head); }

.pipeline { display: flex; align-items: stretch; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pipeline > i { display: grid; place-items: center; color: var(--faint); }
.pl-step { flex: 1 1 150px; max-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; text-align: center; box-shadow: var(--shadow-xs); }
.pl-step span { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 10px; }
.pl-step.ok span { background: var(--ok-bg); color: var(--ok); }
.pl-step b { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; }
.pl-step small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; }

.mlist { list-style: none; margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; display: grid; gap: 7px; font-size: .92rem; }
.mlist li { display: flex; gap: 8px; align-items: flex-start; }
.mlist li .i { margin-top: 3px; flex: none; }
.mlist.ok { background: var(--ok-bg); color: #0a6b48; } .mlist.bad { background: var(--err-bg); color: #a52a2a; } .mlist.unk { background: var(--warn-bg); color: #855a10; }
.labels-grid { display: grid; gap: 14px; }
.labels-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.labels-grid p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.status-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.status-tile p { margin: 8px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }

.card-dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 28px; }
.card-dark h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; color: #fff; }
.card-dark h3 .i { color: #4be3a4; }
.card-dark.no h3 .i { color: #ff8a8f; }
.card-dark ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: rgba(255,255,255,.8); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stats div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.about-stats strong { display: block; font-family: var(--font-head); font-size: 2.3rem; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.about-stats span { color: var(--muted); font-size: .9rem; }
.road { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.road li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.road li b { font-family: var(--font-head); color: var(--blue); }
.road li.done { border-color: #b7ead4; background: #f5fdf9; } .road li.done b { color: var(--ok); }
.road li span { color: var(--muted); }

.prose h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.prose h2:first-of-type { margin-top: 12px; }
.prose p, .prose li { color: var(--text); line-height: 1.75; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.container .card.prose { padding: clamp(24px, 4vw, 44px); }

@media (max-width: 680px) {
  .tl-item { grid-template-columns: 44px 1fr; gap: 14px; } .tl-dot { width: 44px; height: 44px; border-radius: 14px; } .timeline::before { left: 21px; }
  .pipeline > i { display: none; } .pl-step { max-width: none; flex-basis: 45%; }
  .road li { grid-template-columns: 1fr; gap: 4px; }
}
.prose ul, .card-dark ul { list-style: disc; }

/* grid children may shrink below their content width (prevents mobile overflow) */
.detail-grid > *, .two-col > * { min-width: 0; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.kv dd, .kv dt { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .kv { grid-template-columns: minmax(0, 1fr); } }

/* shared with auth pages (portal.css is not loaded there) */
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-pick label { position: relative; cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-pick span { display: grid; gap: 2px; padding: 16px; border-radius: 16px; border: 2px solid var(--line-strong); background: #fff; transition: all .15s; height: 100%; }
.type-pick span .i { color: var(--blue); margin-bottom: 4px; }
.type-pick b { font-family: var(--font-head); color: var(--ink); font-size: .95rem; } .type-pick small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.type-pick label:hover span { border-color: var(--sky); }
.type-pick input:checked + span { border-color: var(--blue); background: #f0f7ff; box-shadow: 0 0 0 4px rgba(14,165,245,.15); }
.type-pick input:focus-visible + span { box-shadow: var(--ring); }
.min-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 28px; color: var(--faint); font-size: .8rem; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .type-pick { grid-template-columns: 1fr; } .min-foot { padding: 16px; } }

/* the footer call-to-action straddles the end of the page: keep the last block clear of it */
@media (min-width: 681px) { #main > section:last-of-type { padding-bottom: 140px; } }
