:root {
  --bg: #f8faff;
  --ink: #1e1b4b;
  --muted: #4b5563;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --soft: #eef2ff;
  --line: #d9def5;
  --card: #fff;
  --gold: #f59e0b;
  --green: #059669;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; line-height: 1.55; font-size: 17px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
a { color: var(--brand-dark); }
section[id] { scroll-margin-top: 70px; }
#resTitle:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; color: var(--ink); }
nav a { margin-left: 18px; text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }

h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 0 0 16px; }
h1 span { color: var(--brand); }
h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; }

.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.art { width: 100%; height: auto; }

.btn {
  background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 999px;
  padding: 11px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--brand-dark); }
.btn.ghost:hover:not(:disabled) { background: var(--soft); color: var(--brand-dark); }
.btn.big { padding: 14px 32px; font-size: 19px; margin-top: 8px; }

.quiz { padding: 24px 0 48px; scroll-margin-top: 70px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.steps li { padding: 6px 16px; border-radius: 999px; background: #e5e7eb; color: #374151; font-weight: 700; font-size: 15px; }
.steps li.on { background: var(--brand); color: #fff; }
.steps li.done { background: #d1fae5; color: #065f46; }

.panel { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel[hidden] { display: none; }
.panel h3 { margin: 0 0 6px; font-size: 24px; outline: none; }
.panel h3 small { font-size: 15px; color: var(--brand); font-weight: 600; }
.hint { color: var(--muted); margin: 0 0 16px; }
.field { display: block; font-weight: 700; margin: 16px 0 8px; }
#nameIn { width: 100%; max-width: 360px; padding: 11px 14px; font: inherit; border: 2px solid var(--line); border-radius: 12px; }
#nameIn:focus { border-color: var(--brand); outline: none; }

.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.age { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.age strong { font-size: 19px; }
.age .rng { color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.age .bl { color: var(--muted); font-size: 15px; }
.age:hover { border-color: var(--brand); }
.age.sel { border-color: var(--brand); background: var(--soft); box-shadow: 0 0 0 3px rgba(79, 70, 229, .2); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
  background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 10px; font: inherit; color: var(--ink);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; min-height: 104px; justify-content: center;
}
.tile svg { color: var(--brand); }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.tile.sel svg { color: #fde68a; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 9px 18px; font: inherit; cursor: pointer; color: var(--ink); font-weight: 600; }
.chip:hover { border-color: var(--brand); }
.chip.sel { background: var(--brand); border-color: var(--brand); color: #fff; }

.nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; }

.results { padding: 24px 0 48px; background: #fff; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.results[hidden] { display: none; }
.res-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 22px; }
.sum-card { background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.sum-card h4, .row h4, .focus h4 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.card { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.card:first-child { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.card-head { display: flex; gap: 12px; align-items: center; }
.rank { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.titles { flex: 1; min-width: 0; }
.titles h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.tagline { margin: 0; color: var(--muted); font-size: 15px; }
.match { text-align: right; line-height: 1.1; }
.match strong { display: block; font-size: 24px; color: var(--green); }
.match span { font-size: 13px; color: var(--muted); }
.bar-track { height: 8px; background: #e5e7eb; border-radius: 99px; margin: 12px 0 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--green)); border-radius: 99px; }
.why { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; }
.why li { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); color: var(--brand-dark); padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.why svg { flex: none; }
.desc { margin: 0 0 12px; }
.focus { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.focus h4 { color: #92400e; }
.focus p { margin: 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); padding: 6px 0; }
.more { padding-top: 6px; }
.row { margin-bottom: 12px; }
.row p { margin: 0; }
.badge { display: inline-block; padding: 1px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.badge.high { background: #d1fae5; color: #065f46; }
.badge.growing { background: #dbeafe; color: #1e40af; }
.badge.steady { background: #fef3c7; color: #92400e; }

.roadmap { margin-top: 28px; background: var(--soft); border-radius: var(--radius); padding: 20px 24px; }
.roadmap h3 { margin: 0 0 8px; }
.roadmap ol { margin: 0; padding-left: 22px; }
.roadmap li { margin-bottom: 6px; }

.future { padding: 48px 0; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.skill { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-top: 6px solid var(--gold); }
.skill h3 { margin: 0 0 6px; font-size: 19px; }
.skill p { margin: 0; color: var(--muted); }

.about { padding: 8px 0 48px; }
.about p { max-width: 70ch; color: var(--muted); }
footer { background: var(--ink); color: #c7d2fe; padding: 22px 0; text-align: center; }

.brand span { white-space: nowrap; }
@media (max-width: 480px) {
  .brand { font-size: 17px; gap: 6px; }
  nav a { margin-left: 10px; font-size: 15px; }
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .art { max-width: 360px; margin: 0 auto; }
  .age-grid, .summary, .cards, .skill-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile:hover { transform: none; }
}
@media print {
  .top, .hero, .quiz, .future, .about, footer, .res-actions { display: none !important; }
  body { background: #fff; font-size: 14px; }
  .results { border: 0; padding: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { break-inside: avoid; }
  details > .more { display: block; }
}

/* ---- added features ---- */
.acts { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.chip.save { padding: 4px 16px; font-size: 15px; }
.cmp { font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cmp input { width: 18px; height: 18px; accent-color: var(--brand); }
.comparebar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 3px solid var(--brand); padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; z-index: 15; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(30, 27, 75, .12); }
.comparebar[hidden] { display: none; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(1000px, 94vw); max-height: 90vh; color: var(--ink); }
dialog::backdrop { background: rgba(30, 27, 75, .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.dlg-head h2 { margin: 0; font-size: 22px; }
.tbl-wrap { overflow: auto; padding: 0 20px 20px; max-height: calc(90vh - 70px); }
#compareTable { border-collapse: collapse; width: 100%; min-width: 560px; }
#compareTable th, #compareTable td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; font-size: 15px; }
#compareTable th { background: var(--soft); }

.browse { padding: 40px 0; background: var(--bg); }
.saved { padding: 32px 0; background: #fffbeb; border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; }
.saved[hidden] { display: none; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; }
.filters label { font-weight: 700; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.filters input, .filters select { font: inherit; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; min-width: 190px; }
.filters input:focus, .filters select:focus { border-color: var(--brand); outline: none; }

.share { margin-top: 28px; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: #f8fafc; }
.share h3 { margin: 0 0 6px; }
.share p { margin: 0 0 10px; color: var(--muted); }
.gpc { color: #92400e !important; font-weight: 700; }
.rate { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rate legend { font-weight: 700; padding: 0; margin-bottom: 6px; float: left; margin-right: 10px; }
.rate button:disabled { opacity: .5; cursor: not-allowed; }
.preview { margin-bottom: 10px; }
.preview pre { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow: auto; font-size: 13px; max-height: 220px; margin: 6px 0 0; white-space: pre-wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-weight: 600; }
.check[hidden] { display: none; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
#shareStatus { color: var(--green); font-weight: 700; align-self: center; }

.policy { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.policy h1 { font-size: 34px; }
.policy h2 { font-size: 22px; margin-top: 28px; }
.policy table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy th { background: var(--soft); }

@media print { .comparebar, .acts, .share, .browse, .saved { display: none !important; } }
@media (max-width: 800px) { body { padding-bottom: 0; } .filters label, .filters input, .filters select { width: 100%; } }

.lang { display: inline-flex; margin-left: 16px; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.lang button { font: inherit; font-size: 14px; font-weight: 700; padding: 3px 12px; border: 0; background: #fff; color: var(--brand-dark); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }
:lang(hi) { line-height: 1.7; }
.policy nav a, .top nav a { white-space: nowrap; }
@media (max-width: 480px) { .lang { margin-left: 8px; } .lang button { padding: 3px 8px; } nav a:nth-child(3) { display: none; } }

body.has-cmp { padding-bottom: 150px; }
@media (min-width: 600px) { body.has-cmp { padding-bottom: 80px; } }

/* ---- visual polish layer ---- */
:root {
  --bg: #f6f7fd;
  --ink: #171a3a;
  --muted: #55607a;
  --brand-2: #7c3aed;
  --soft: #eef0ff;
  --line: #e0e4f5;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 58, .06), 0 2px 8px rgba(23, 26, 58, .05);
  --shadow-md: 0 4px 12px rgba(23, 26, 58, .07), 0 12px 28px rgba(79, 70, 229, .10);
  --shadow-lg: 0 8px 20px rgba(23, 26, 58, .08), 0 24px 48px rgba(79, 70, 229, .16);
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
body {
  font-family: "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -.02em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { letter-spacing: 0; }

/* header */
.top { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 12px rgba(23, 26, 58, .04); }
.brand { letter-spacing: -.01em; }
nav a { color: var(--ink); padding: 6px 4px; border-radius: 8px; font-size: 15.5px; position: relative; }
nav a:hover { text-decoration: none; color: var(--brand); }
nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
nav a:hover::after { transform: scaleX(1); }
.lang { border-width: 1.5px; box-shadow: var(--shadow-sm); }
.lang button { transition: background .15s, color .15s; }
.lang button:hover:not([aria-pressed="true"]) { background: var(--soft); }

/* hero */
.hero { padding: 64px 0 44px; background: radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, .13), transparent 60%), radial-gradient(700px 380px at -5% 10%, rgba(79, 70, 229, .12), transparent 60%); }
h1 { font-weight: 800; }
h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.art { filter: drop-shadow(0 20px 36px rgba(79, 70, 229, .22)); }

/* buttons */
.btn { background: var(--grad); border: 2px solid transparent; padding: 12px 26px; box-shadow: 0 4px 14px rgba(79, 70, 229, .32); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover:not(:disabled) { background: var(--grad); border-color: transparent; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79, 70, 229, .38); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { box-shadow: none; }
.btn.ghost { background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-sm); color: var(--brand-dark); }
.btn.ghost:hover:not(:disabled) { background: var(--soft); border-color: #c7ccf5; filter: none; box-shadow: var(--shadow-sm); }
.btn.big { padding: 15px 36px; font-size: 18px; margin-top: 10px; }

/* quiz */
.steps { counter-reset: st; gap: 10px; margin-bottom: 20px; }
.steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); color: var(--muted); padding: 5px 16px 5px 6px; transition: background .2s, border-color .2s, color .2s; }
.steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e8eaf6; color: var(--muted); font-size: 13px; }
.steps li.on { background: var(--soft); border-color: var(--brand); color: var(--brand-dark); }
.steps li.on::before { background: var(--grad); color: #fff; }
.steps li.done { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.steps li.done::before { content: "\2713"; background: #10b981; color: #fff; }
.panel { border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 28px; }
.panel h3 { font-size: 26px; }
#nameIn, .filters input, .filters select { border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
#nameIn:focus, .filters input:focus, .filters select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.age, .tile, .chip { border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s, background .15s, color .15s; }
.age:hover, .tile:hover, .chip:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.age:hover { transform: translateY(-2px); }
.age.sel { background: linear-gradient(180deg, #f5f6ff, var(--soft)); box-shadow: 0 0 0 3px rgba(79, 70, 229, .22); }
.tile { border-radius: 16px; }
.tile.sel, .chip.sel { background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px rgba(79, 70, 229, .35); color: #fff; }
.tile svg { transition: transform .2s ease; }
.tile:hover svg { transform: scale(1.12); }

/* results & cards */
.results { background: linear-gradient(180deg, #fff, #fafaff); }
.sum-card { background: linear-gradient(180deg, #f5f6ff, var(--soft)); border: 1px solid var(--line); border-radius: 16px; }
.tags li { box-shadow: var(--shadow-sm); }
.card { border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c7ccf5; }
.card:first-child { border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px rgba(245, 158, 11, .14), var(--shadow-md); }
.rank { background: var(--grad); box-shadow: 0 3px 8px rgba(79, 70, 229, .35); }
.match strong { background: linear-gradient(135deg, #059669, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bar-track { background: #e8eaf6; height: 9px; }
.bar-fill { background: linear-gradient(90deg, #4f46e5, #7c3aed 55%, #10b981); }
.focus { background: linear-gradient(180deg, #fffdf3, #fffbeb); }
details summary:hover { color: var(--brand); }
.acts { border-top: 1px solid var(--line); }
.roadmap { background: linear-gradient(135deg, #eef0ff, #f5eefe); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.roadmap h3 { color: var(--brand-dark); }

/* sections */
.future { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill { border: 1px solid var(--line); border-top: 5px solid var(--brand); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.skill:nth-child(3n+2) { border-top-color: var(--brand-2); }
.skill:nth-child(3n) { border-top-color: var(--gold); }
.skill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.share { background: #fbfbff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.saved { background: linear-gradient(180deg, #fffdf3, #fffbeb); }
h2 { font-weight: 800; }
.browse h2, .future h2, .about h2, .saved h2 { position: relative; padding-bottom: 14px; margin-bottom: 12px; }
.browse h2::after, .future h2::after, .about h2::after, .saved h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--grad); }

/* compare bar & dialog */
.comparebar { border-top: 0; box-shadow: 0 -6px 24px rgba(23, 26, 58, .14); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog { box-shadow: 0 30px 80px rgba(23, 26, 58, .35); }
dialog::backdrop { background: rgba(23, 26, 58, .55); backdrop-filter: blur(3px); }

/* footer */
footer { background: linear-gradient(135deg, #171a3a, #2a2370); color: #c9cdf5; padding: 30px 0; }
footer a { color: #fde68a; }

/* privacy pages */
.policy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 32px auto 64px; padding: 36px 36px 44px; }
.policy h2 { color: var(--brand-dark); }
@media (max-width: 600px) { .policy { margin: 0 auto; border-radius: 0; border-left: 0; border-right: 0; padding: 24px 18px 40px; } }

@media (prefers-reduced-motion: reduce) {
  .card:hover, .skill:hover, .age:hover, .btn:hover:not(:disabled), .tile:hover svg { transform: none; }
  nav a::after, .btn, .card, .skill { transition: none; }
}
@media print {
  .card:hover { transform: none; }
  .card, .card:first-child, .roadmap { box-shadow: none; }
  h1 span, .match strong { -webkit-text-fill-color: initial; color: #000; background: none; }
}

/* ---- multi-page layout, icons and imagery ---- */
.menu-btn { display: none; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; width: 44px; height: 44px; place-items: center; color: var(--brand-dark); cursor: pointer; box-shadow: var(--shadow-sm); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { margin-left: 14px; }
.top nav a[aria-current="page"] { color: var(--brand); }
.top nav a[aria-current="page"]::after { transform: scaleX(1); }
.top nav .lang { margin-left: 18px; }
.btn svg { flex: none; }
.btn [data-ico] { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.btn.big { display: inline-flex; align-items: center; }
.btn.light { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.btn.light:hover:not(:disabled) { background: #fff; color: var(--brand-dark); }
.center { text-align: center; margin: 28px 0 0; }

/* colour chips for icons */
.ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--brand); flex: none; }
.ic.hue0 { background: #eef0ff; color: #4f46e5; }
.ic.hue1 { background: #f3e8ff; color: #7c3aed; }
.ic.hue2 { background: #d1fae5; color: #059669; }
.ic.hue3 { background: #fef3c7; color: #d97706; }
.ic.hue4 { background: #ffe4e6; color: #e11d48; }
.ic.hue5 { background: #e0f2fe; color: #0284c7; }

/* hero extras */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.eyebrow svg { color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta-row .btn.big { margin-top: 10px; }

/* stats */
.stats { margin-top: -6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-md); }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.stat .ic { grid-row: span 2; }
.stat strong { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.stat span:last-child { color: var(--muted); font-size: 14px; }

/* bands & section headings */
.band { padding: 72px 0; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head .lead { margin: 0 auto; }

/* how it works */
.how-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; margin: 0; }
.how-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-card .ic { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 14px; }
.how-card h3 { margin: 0 0 6px; font-size: 20px; }
.how-card p { margin: 0; color: var(--muted); }
.how-card .num { position: absolute; top: 18px; right: 20px; font-size: 44px; font-weight: 800; color: #e6e9fb; line-height: 1; }
.how-grid .how-card:not(:last-child)::after { content: ""; position: absolute; top: 58px; right: -22px; width: 22px; border-top: 3px dotted #b8bff0; }

/* interest pills */
.pill-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.pill:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.pill .ic { width: 36px; height: 36px; border-radius: 50%; }

/* age cards */
.age-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.age-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.age-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: .5; }
.age-card.kid::before { background: #fef3c7; }
.age-card.teen::before { background: #e0f2fe; }
.age-card.adult::before { background: #f3e8ff; }
.age-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ic.age-kid { background: #fef3c7; color: #d97706; }
.ic.age-teen { background: #dbeafe; color: #2563eb; }
.ic.age-adult { background: #f3e8ff; color: #7c3aed; }
.age-card .ic { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 12px; position: relative; }
.age-card h3 { margin: 0; font-size: 22px; position: relative; }
.age-card .rng { color: var(--brand-dark); font-weight: 700; font-size: 14px; position: relative; }
.age-card p { margin: 6px 0 0; color: var(--muted); position: relative; }

/* feature cards */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-grid.three { grid-template-columns: repeat(3, 1fr); }
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.about .feat { background: #fff; box-shadow: var(--shadow-sm); }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat .ic { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 19px; }
.feat p { margin: 0; color: var(--muted); }
.about { padding: 48px 0 56px; }
.prose { margin: 24px 0 0; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.prose p { margin: 0; max-width: none; color: var(--muted); font-size: 17px; line-height: 1.65; }
@media (max-width: 700px) { .prose { grid-template-columns: 1fr; padding: 20px 18px; } }

/* icons in quiz controls, skills and cards */
.tile .ic { width: 52px; height: 52px; border-radius: 16px; background: #eef0ff; transition: background .15s; }
.tile.sel .ic { background: rgba(255, 255, 255, .2); }
.age .ic { width: 48px; height: 48px; margin-bottom: 6px; }
.skill .ic { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 10px; }
.skill .ic.sk0 { background: #eef0ff; color: #4f46e5; }
.skill .ic.sk1 { background: #f3e8ff; color: #7c3aed; }
.skill .ic.sk2 { background: #fef3c7; color: #d97706; }
.future { padding: 56px 0 72px; }
.band.future-band .skill-grid, .future .skill-grid { margin-top: 0; }
.avatar { position: relative; flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 10px rgba(23, 26, 58, .15); }
.avatar.hue0 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.avatar.hue1 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.avatar.hue2 { background: linear-gradient(135deg, #34d399, #059669); }
.avatar.hue3 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.avatar.hue4 { background: linear-gradient(135deg, #fb7185, #e11d48); }
.avatar.hue5 { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.rank { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; font-size: 12px; border: 2px solid #fff; background: var(--ink); box-shadow: none; }
.card:first-child .rank { background: var(--gold); color: #fff; }

/* sub-page hero */
.page-hero { padding: 48px 0 36px; background: radial-gradient(800px 320px at 90% -20%, rgba(124, 58, 237, .14), transparent 60%), radial-gradient(600px 300px at 0% 0%, rgba(79, 70, 229, .12), transparent 60%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 10px; }
.page-hero .lead { margin: 0; }
.ph-grid { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; }
.ph-art { position: relative; height: 150px; }
.ph-art .orb { position: absolute; border-radius: 50%; }
.ph-art .o1 { width: 140px; height: 140px; right: 20px; top: 4px; background: var(--grad); opacity: .16; }
.ph-art .o2 { width: 56px; height: 56px; left: 10px; bottom: 10px; background: #fde68a; }
.ph-art .o3 { width: 18px; height: 18px; left: 36px; top: 14px; background: #10b981; }
.ph-art .big { position: absolute; right: 38px; top: 20px; width: 104px; height: 104px; border-radius: 30px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-lg); transform: rotate(-6deg); }
.ph-art .big svg { width: 56px; height: 56px; }

/* call-to-action band */
.cta-band { padding: 56px 0; background: var(--grad); color: #fff; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0 0 18px; color: #e0e1ff; font-size: 18px; }
.cta-art { width: 100%; max-width: 280px; justify-self: end; height: auto; }

/* footer */
.foot { display: grid; gap: 14px; justify-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { color: #c9cdf5; text-decoration: none; font-weight: 600; margin: 0; padding: 2px 0; }
.foot-links a::after { content: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-line { font-size: 14px; color: #a9aef0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); width: 100%; }
.foot-line a { color: #fde68a; }
.quiz { padding: 36px 0 56px; }
.browse { padding: 32px 0 64px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .top #mainNav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(23, 26, 58, .1); }
  body.menu-open .top #mainNav { display: flex; }
  .top #mainNav a { margin: 0; padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); display: block; }
  .top #mainNav a::after { content: none; }
  .top #mainNav a:nth-child(3) { display: block; }
  .top #mainNav .lang { margin: 14px 0 0; align-self: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .age-cards, .how-grid { grid-template-columns: 1fr; }
  .how-grid .how-card::after { content: none !important; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-art { justify-self: start; max-width: 220px; }
}
@media (max-width: 700px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-art { display: none; }
  .band { padding: 52px 0; }
  .why-grid, .why-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; padding: 18px; }
  .cta-row .btn.big { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .how-card:hover, .pill:hover, .age-card:hover, .feat:hover { transform: none; }
}
@media print { .menu-btn, .page-hero, .cta-band { display: none !important; } }
.foot-links a:nth-child(3) { display: inline; }

/* ---- privacy pages ---- */
.pol { max-width: 860px; padding-top: 36px; padding-bottom: 64px; display: grid; gap: 18px; }
.pol-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.pol-card .ic { width: 52px; height: 52px; border-radius: 16px; }
.pol-body { min-width: 0; }
.pol-body h2 { font-size: 22px; margin: 0 0 8px; color: var(--brand-dark); }
.pol-body p { margin: 0 0 10px; color: var(--muted); }
.pol-body p:last-child, .pol-body ul:last-child { margin-bottom: 0; }
.pol-body strong { color: var(--ink); }
.pol-body ul { margin: 0; padding-left: 20px; color: var(--muted); }
.pol-body li { margin-bottom: 6px; }
.tbl-scroll { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 14px; }
.pol-body table { border-collapse: collapse; width: 100%; min-width: 440px; }
.pol-body th, .pol-body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pol-body tr:last-child td { border-bottom: 0; }
.pol-body th { background: var(--soft); color: var(--brand-dark); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.page-hero .lead strong { color: var(--ink); }

/* language links in the header of static pages */
.lang a { font: inherit; font-size: 14px; font-weight: 700; padding: 3px 12px; background: #fff; color: var(--brand-dark); text-decoration: none; display: inline-block; }
.top nav .lang a { margin: 0; padding: 3px 12px; border-radius: 0; color: var(--brand-dark); }
.top nav .lang a::after { content: none; }
.top nav .lang a[aria-current="true"] { background: var(--brand); color: #fff; }
.top nav .lang a:not([aria-current="true"]):hover { background: var(--soft); }
.foot-line a[aria-current="page"] { text-decoration: underline; }

@media (max-width: 900px) {
  .top #mainNav .lang a { padding: 3px 12px; border-bottom: 0; display: inline-block; font-size: 14px; }
}
@media (max-width: 600px) {
  .pol-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}
@media print {
  .pol-card { box-shadow: none; break-inside: avoid; }
  .pol-card .ic { display: none; }
  .pol-card { grid-template-columns: 1fr; }
}

/* ---- colourful section backgrounds ---- */
:root { --bg: #eceffd; }
body { background: var(--bg); }

.hero { background: radial-gradient(700px 380px at 88% 0%, rgba(124, 58, 237, .22), transparent 62%), radial-gradient(600px 340px at 0% 20%, rgba(99, 102, 241, .20), transparent 62%), linear-gradient(180deg, #e4e8ff, #eceffd); }
.page-hero { background: radial-gradient(700px 300px at 92% -10%, rgba(124, 58, 237, .25), transparent 62%), radial-gradient(500px 260px at 0% 0%, rgba(79, 70, 229, .2), transparent 62%), linear-gradient(180deg, #e2e6ff, #eceffd); border-bottom-color: #d3d9f7; }

/* home page bands */
#how.band { background: linear-gradient(180deg, #eceffd, #e3e7ff); border: 0; }
#interests.band { background: radial-gradient(500px 260px at 10% 0%, rgba(167, 139, 250, .35), transparent 60%), radial-gradient(500px 260px at 95% 100%, rgba(56, 189, 248, .22), transparent 60%), linear-gradient(135deg, #2b2784, #4338ca 55%, #6d28d9); border: 0; }
#interests .sec-head h2 { color: #fff; }
#interests .sec-head .lead { color: #d7dafc; }
#interests .pill { background: #fff; border-color: transparent; }
#ages.band { background: linear-gradient(180deg, #fff6e2, #ffeccb); border: 0; }
#ages .age-card { border-color: #f3dfb8; }
#why.band { background: linear-gradient(180deg, #def7ee, #cdf0e4); border: 0; }
#why .feat { background: #fff; border-color: #bfe6d6; box-shadow: var(--shadow-sm); }
#future.band, .future { background: linear-gradient(180deg, #e9e3ff, #ddd5fb); border: 0; }
.skill { background: #fff; }

/* quiz, results, browse and other pages */
.quiz { background: linear-gradient(180deg, #eceffd, #e3e7ff); }
.results { background: linear-gradient(180deg, #fff6e2, #fff0d6); border-top: 1px solid #f3dfb8; }
.sum-card { background: #fff; border-color: #f0dcb4; }
.roadmap { background: linear-gradient(135deg, #e2e6ff, #efe3ff); }
.share { background: #fff; }
.browse { background: linear-gradient(180deg, #eceffd, #e3e7ff); }
.saved { background: linear-gradient(180deg, #fff3cf, #ffeaae); border-color: #f3d98a; }
.about { background: linear-gradient(180deg, #def7ee, #cdf0e4); }
.about .feat { border-color: #bfe6d6; }
.pol { position: relative; }
body:has(.pol) { background: linear-gradient(180deg, #e6e9ff, #efe9ff 60%, #e6f6f0); }
.stat-grid { background: #fff; }
.filters input, .filters select { background: #fff; }

/* ---- calmer palette + career illustrations ---- */
:root { --bg: #f3f4fd; }
body, body:has(.pol) { background: var(--bg); }

.hero { background: radial-gradient(700px 380px at 90% 0%, rgba(124, 58, 237, .12), transparent 62%), linear-gradient(180deg, #e9ebff, #f3f4fd); }
.page-hero { background: radial-gradient(700px 300px at 92% -10%, rgba(124, 58, 237, .13), transparent 62%), linear-gradient(180deg, #e9ebff, #f3f4fd); border-bottom-color: var(--line); }

/* alternate only between page tint and white, plus one deep accent band */
#how.band { background: transparent; }
#ages.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#ages .age-card { border-color: var(--line); }
#why.band { background: #eaecfc; border: 0; }
#why .feat { border-color: var(--line); }
#future.band, .future { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quiz, .browse, .about { background: transparent; }
.results { background: #fff; border-top: 1px solid var(--line); }
.sum-card { background: #f3f4fd; border-color: var(--line); }
.roadmap { background: #eef0ff; }
.saved { background: #eaecfc; border-color: var(--line); }
.about .feat { border-color: var(--line); }

/* one icon colour family */
.ic.hue0, .ic.hue1, .ic.hue2, .ic.hue3, .ic.hue4, .ic.hue5,
.ic.age-kid, .ic.age-teen, .ic.age-adult, .skill .ic.sk0, .skill .ic.sk1, .skill .ic.sk2 { background: #eef0ff; color: #4f46e5; }
.age-card::before, .age-card.kid::before, .age-card.teen::before, .age-card.adult::before { background: #eef0ff; }
.skill, .skill:nth-child(3n+2), .skill:nth-child(3n) { border-top-color: var(--brand); }

/* career illustrations on cards */
.card { overflow: visible; }
.card-art { position: relative; margin: -18px -18px 14px; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; aspect-ratio: 320 / 150; background: linear-gradient(180deg, #dbe1ff, #eef0ff); }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-art.bg0 { background: linear-gradient(180deg, #d9dfff, #eef0ff); }
.card-art.bg1 { background: linear-gradient(180deg, #e3dbff, #f2edff); }
.card-art.bg2 { background: linear-gradient(180deg, #c9ecda, #e7f7ee); }
.card-art.bg3 { background: linear-gradient(180deg, #cbe8ff, #e8f5ff); }
.card-art.bg4 { background: linear-gradient(180deg, #fde9ad, #fff6dc); }
.card-art .rank { top: 10px; left: 10px; width: 30px; height: 30px; font-size: 14px; box-shadow: var(--shadow-sm); }
.card:first-child .card-art .rank { background: var(--gold); }
@media print { .card-art { display: none; } }

/* ---- features: progress, filters, featured result, toast, FAQ, back-to-top ---- */
.btn.small { padding: 6px 16px; font-size: 14px; }
.linkbtn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--brand-dark); cursor: pointer; text-decoration: underline; padding: 4px 6px; }
.linkbtn[hidden] { display: none; }

/* saved badge in the header */
.top nav .saved-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 14px; padding: 0; border-radius: 50%; color: var(--brand-dark); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.top nav .saved-link::after { content: none; }
.top nav .saved-link:hover { color: #e11d48; border-color: #fbcfe8; }
.sl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.count-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.count-badge[hidden] { display: none; }

/* quiz progress + live count */
.progress { height: 6px; background: #dfe3fa; border-radius: 99px; overflow: hidden; margin: -4px 0 18px; }
.progress span { display: block; height: 100%; width: 33%; background: var(--grad); border-radius: 99px; transition: width .35s ease; }
.panel:not([hidden]) { animation: panelIn .3s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.live-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 14px; flex-wrap: wrap; }
.live { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; background: #eef0ff; color: var(--brand-dark); border-radius: 999px; font-weight: 700; font-size: 14.5px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }

/* careers page filters */
.chip-label { margin: 0 0 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip-row .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 15px; }
.chip-row .chip svg { color: var(--brand); }
.chip-row .chip.sel svg { color: #fde68a; }
.count-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.count-row .hint { margin: 0; font-weight: 600; }
.count-row .btn[hidden] { display: none; }
.filters { align-items: flex-end; }
.empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1.5px dashed #c7ccf5; border-radius: var(--radius); padding: 40px 20px; }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 8px; }
.empty h3 { margin: 6px 0; }
.empty p { color: var(--muted); margin: 0; }

/* cards: gold ring only on the best result; featured layout for the top match */
.card:first-child { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card:first-child .rank { background: var(--ink); }
.card.best { border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px rgba(245, 158, 11, .14), var(--shadow-md); }
.card.best .card-art .rank { background: var(--gold); }
.ribbon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 999px; letter-spacing: .02em; box-shadow: var(--shadow-sm); white-space: nowrap; }
.card.best .card-art .rank { left: 12px; }
@media (min-width: 801px) {
  #cards .card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 26px; align-content: start; padding: 20px; }
  #cards .card.featured > * { grid-column: 2; }
  #cards .card.featured > .card-art { grid-column: 1; grid-row: 1 / span 12; margin: -20px 0 -20px -20px; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); aspect-ratio: auto; min-height: 100%; }
  #cards .card.featured .card-art svg { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
  #cards .card.featured .titles h3 { font-size: 26px; }
}
@media print { #cards .card.featured { display: block; } .ribbon { display: none; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 40; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-cmp .toast { bottom: 96px; }

/* back to top */
.to-top { position: fixed; right: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 30; }
.to-top svg { transform: rotate(-90deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
body.has-cmp .to-top { bottom: 96px; }
@media print { .to-top, .toast { display: none !important; } }

/* scroll-in */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media print, (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .panel:not([hidden]) { animation: none; } }

/* FAQ */
.faq-band { padding: 56px 0 64px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; transition: box-shadow .2s ease, background .2s ease; }
.faq details[open] { background: #fff; box-shadow: var(--shadow-md); border-color: #c7ccf5; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; color: var(--brand); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2212"; background: var(--brand); color: #fff; }
.faq p { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 900px) {
  .top #mainNav .saved-link { display: flex; align-items: center; gap: 10px; width: auto; height: auto; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; margin: 0; padding: 12px 4px; justify-content: flex-start; }
  .top #mainNav .saved-link .sl-text { position: static; width: auto; height: auto; clip: auto; font-size: 17px; font-weight: 600; }
  .top #mainNav .saved-link .count-badge { position: static; border: 0; }
}
.filters label[hidden] { display: none; }
@media (min-width: 801px) {
  #cards .card.featured .card-art::before { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: rgba(255, 255, 255, .6); left: 50%; bottom: -80px; transform: translateX(-50%); }
  #cards .card.featured .card-art::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(124, 58, 237, .14); right: 18px; top: 60px; }
}

/* ---- hero search, fields, spotlight, career detail ---- */
.hero-search { display: flex; gap: 8px; margin-top: 18px; max-width: 460px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 20px; box-shadow: var(--shadow-md); }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; background: transparent; color: var(--ink); }
.hero-search .btn { padding: 9px 18px; box-shadow: none; }
.hero-search .btn [data-ico] { margin: 0; }

.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.field-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7ccf5; }
.field-card .ic { width: 54px; height: 54px; border-radius: 16px; }
.fc-text { flex: 1; min-width: 0; }
.fc-text h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.fc-text span { color: var(--muted); font-size: 14px; }
.fc-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--brand); flex: none; transition: transform .2s ease, background .2s, color .2s; }
.field-card:hover .fc-go { transform: translateX(3px); background: var(--brand); color: #fff; }

.spot-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); max-width: 920px; margin: 0 auto; }
.spot-card .card-art { margin: 0; border-radius: 0; aspect-ratio: auto; min-height: 260px; }
.spot-card .card-art svg { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.spot-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.spot-body h3 { margin: 0 0 4px; font-size: 28px; }
.spot-body .tagline { margin: 0 0 12px; }
.spot-body p { margin: 0 0 12px; }
.spot-body .btn { margin-top: 6px; }

.saved-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.saved-head h2 { margin-bottom: 0; }
.saved-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill { display: inline-flex; align-items: center; padding: 4px 14px; background: var(--brand); color: #fff; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tag-pill[hidden] { display: none; }
.more-link { margin-left: auto; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--brand-dark); white-space: nowrap; }
.more-link::after { content: " \2192"; }
.more-link:hover { text-decoration: underline; }
.res-actions .btn svg { margin-right: 6px; vertical-align: -3px; }

/* career detail page */
.det-hero { padding: 28px 0 36px; }
.det-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; }
.det-art { border-radius: 24px; margin: 0; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.crumb { display: inline-block; margin-bottom: 10px; font-weight: 700; text-decoration: none; color: var(--brand-dark); }
.crumb::before { content: "\2190  "; }
.crumb:hover { text-decoration: underline; }
.det-info h1 { margin: 0 0 6px; }
.det-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.det-badges .badge { margin: 0; }
.int-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--brand-dark); }
.det-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.det-actions .chip.save { padding: 8px 22px; }
.det-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 48px; align-items: start; }
.det-main, .det-side { display: grid; gap: 18px; }
.det-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.det-sec h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); margin: 0 0 8px; }
.det-sec p { margin: 0; font-size: 18px; }
.det-sec.accent { background: #fffbeb; border-color: #fde68a; }
.det-sec.accent h2 { color: #92400e; }
.related h2 { text-align: center; margin-bottom: 24px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { display: block; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mini-card .card-art { margin: 0; border-radius: 0; }
.mc-text { padding: 14px 18px 18px; }
.mc-text h3 { margin: 0 0 2px; font-size: 18px; }
.mc-text span { color: var(--muted); font-size: 15px; }
.nf { max-width: 560px; margin: 64px auto; }
.nf h1 { font-size: 30px; }
.nf .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .det-grid, .det-body { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .field-grid { grid-template-columns: 1fr; }
  .spot-card { grid-template-columns: 1fr; }
  .spot-card .card-art { min-height: 0; aspect-ratio: 320 / 150; }
  .spot-card .card-art svg { position: static; }
  .spot-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .field-card:hover, .mini-card:hover { transform: none; } }

/* printing only the saved careers */
@media print {
  .more-link, .hero-search, .saved-head .btn { display: none !important; }
  body.print-saved .saved { display: block !important; background: #fff; border: 0; }
  body.print-saved main > :not(.saved), body.print-saved footer, body.print-saved .top { display: none !important; }
  body.print-saved .saved .card { break-inside: avoid; }
  body.print-saved .saved details > .more { display: block; }
}

/* ---- mobile and tablet layer (keep last) ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg { max-width: 100%; }
h1, h2, h3, p, li, summary { overflow-wrap: break-word; }
.wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
input, select, textarea { font-size: 16px; }
.comparebar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.to-top, .toast { margin-bottom: env(safe-area-inset-bottom); }

/* hover lifts only where hover exists (avoids "stuck" hover after a tap) */
@media (hover: none) {
  .card:hover, .how-card:hover, .feat:hover, .age-card:hover, .age:hover, .tile:hover, .skill:hover, .pill:hover, .field-card:hover, .mini-card:hover { transform: none; }
  .btn:hover:not(:disabled) { transform: none; }
}

/* comfortable tap targets on small and touch screens */
@media (max-width: 900px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .chip.save { min-height: 44px; padding: 6px 22px; }
  .cmp { min-height: 44px; padding: 0 6px; font-size: 16px; gap: 8px; }
  .cmp input { width: 22px; height: 22px; }
  .more-link { padding: 12px 0; }
  .crumb { padding: 10px 0; margin-bottom: 4px; }
  .foot-links a { padding: 10px 6px; }
  .btn.small, .linkbtn { min-height: 44px; }
  .chip-row .chip { min-height: 42px; }
  .lang button, .lang a { padding: 8px 14px; }
  details summary { padding: 12px 0; }
  .check input { width: 24px; height: 24px; }
  .check { margin: 12px 0; }
  .steps li { min-height: 36px; }
}

/* tablet: keep two columns instead of collapsing to one */
@media (min-width: 601px) and (max-width: 800px) {
  .cards, .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  /* 1fr tracks can refuse to shrink below their content; minmax(0,1fr) lets them */
  .age-grid, .summary, .cards, .skill-grid, .field-grid, .mini-grid, .age-cards, .how-grid, .why-grid, .why-grid.three, .cta-grid, .spot-card, .det-grid, .det-body, .hero-grid, .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .det-main, .det-side { min-width: 0; }
  .card, .panel, .share, .roadmap { min-width: 0; }
  .hero { padding: 36px 0 24px; }
  .hero-grid { gap: 24px; }
  .band { padding: 48px 0; }
  .sec-head { margin-bottom: 26px; }
  .quiz { padding: 24px 0 40px; }
  .page-hero { padding: 32px 0 26px; }
  .results { padding: 24px 0 40px; }
  .res-head { flex-direction: column; gap: 10px; }
  .res-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .res-actions .btn { text-align: center; padding: 10px 12px; font-size: 15px; justify-content: center; }
  .acts { flex-wrap: wrap; gap: 4px 14px; }
  .more-link { margin-left: 0; width: 100%; }
  .nav { gap: 10px; }
  .nav .btn { flex: 1; text-align: center; }
  .share { padding: 18px; }
  .share .nav { flex-direction: column-reverse; align-items: stretch; }
  .share .nav #shareStatus { text-align: center; }
  .dlg-head { padding: 12px 16px; }
  .tbl-wrap { padding: 0 12px 16px; }
  #compareTable th[scope="row"] { position: sticky; left: 0; background: var(--soft); min-width: 96px; z-index: 1; }
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .tbl-wrap { max-height: calc(100dvh - 64px); }
}

@media (max-width: 600px) {
  .panel { padding: 20px 16px; }
  .panel h3 { font-size: 22px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 96px; padding: 12px 8px; font-size: 15px; }
  .steps { gap: 6px; }
  .steps li { font-size: 13px; padding: 4px 12px 4px 5px; }
  .chips { gap: 8px; }
  .chip { padding: 10px 16px; }
  .card { padding: 14px; }
  .card-art { margin: -14px -14px 12px; }
  .titles h3 { font-size: 18px; }
  .match strong { font-size: 21px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 16px; }
  .stat { grid-template-columns: 1fr; row-gap: 6px; justify-items: start; }
  .stat .ic { grid-row: auto; width: 40px; height: 40px; }
  .stat strong { font-size: 24px; }
  .hero-search { max-width: none; }
  .spot-body h3 { font-size: 24px; }
  .det-sec { padding: 18px; }
  .det-sec p { font-size: 17px; }
  .det-hero { padding: 16px 0 24px; }
  .det-grid { gap: 20px; }
  .det-actions .chip.save, .det-actions .btn { flex: 1; text-align: center; justify-content: center; }
  .page-hero h1 { font-size: 28px; }
  .band h2, h2 { font-size: 24px; }
  .cta-band { padding: 40px 0; }
  .pol-card { padding: 18px; }
  .filters { gap: 10px; }
  .count-row { gap: 8px; }
  /* interest chips scroll sideways instead of wrapping into many rows */
  .chip-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px 10px; padding: 2px 20px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .chip-row .chip { flex: none; scroll-snap-align: start; }
  /* floating buttons sit above the compare bar, which wraps on phones */
  body.has-cmp .to-top { bottom: 128px; }
  body.has-cmp .toast { bottom: 140px; }
  .comparebar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .comparebar #compareText { flex-basis: 100%; text-align: center; font-weight: 600; }
  .comparebar .btn { flex: 1; }
  .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
  .toast { bottom: 20px; font-size: 15px; }
}

@media (max-width: 380px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  h1 { font-size: 28px; }
  .lead { font-size: 17px; }
  .btn.big { padding: 13px 24px; font-size: 17px; }
  .res-actions { grid-template-columns: 1fr; }
  .tile .ic { width: 44px; height: 44px; }
  .brand { font-size: 17px; }
  .chip-row { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

/* landscape phones: keep the sticky header from eating the screen */
@media (max-height: 480px) and (orientation: landscape) {
  .top { position: static; }
  .hero, .page-hero { padding-top: 20px; }
  dialog { max-height: 100dvh; }
}
.filters input, .filters select, #nameIn, .hero-search input { font-size: 16px; }

.theme-btn { margin-left: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--brand-dark); display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; box-shadow: var(--shadow-sm); }
.theme-btn:hover { background: var(--soft); }
@media (max-width: 900px) { .top #mainNav .theme-btn { margin: 14px 0 0; } }
@media print { .theme-btn { display: none; } }

/* try-it checklist on career pages */
.plan-count { font-weight: 700; color: var(--green); font-size: 15px !important; margin-bottom: 8px !important; }
.plan-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.plan-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 17px; }
.plan-list input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.plan-list input:checked + span { color: var(--muted); text-decoration: line-through; }
.plan.all .plan-count::after { content: " \1F389"; }
@media print { .plan-sec { display: none; } }

.recent { padding: 24px 0 8px; }
.recent[hidden] { display: none; }
.recent h2 { font-size: 22px; margin-bottom: 12px; }
.plan-badge { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--green); }
@media print { .recent { display: none !important; } }

/* ---- vibrant layer: livelier colour, depth and motion (keep last) ---- */
:root {
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
  --grad-fresh: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --ring: 0 0 0 4px rgba(79, 70, 229, .16);
}
body { background-image: radial-gradient(circle at 1px 1px, rgba(79, 70, 229, .07) 1px, transparent 0); background-size: 26px 26px; }

/* gentle page entrance and reading progress */
@keyframes sv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: sv-in .45s ease both; }
@supports (animation-timeline: scroll()) {
  @keyframes sv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad-warm); transform-origin: 0 50%; transform: scaleX(0); animation: sv-progress auto linear both; animation-timeline: scroll(root block); }
}

/* header */
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
nav a[aria-current="page"] { color: var(--brand); }
nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--grad-warm); }

/* hero: floating colour blobs and art */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.hero::before { width: 360px; height: 360px; left: -90px; top: 40px; background: radial-gradient(circle, #a5b4fc, transparent 70%); animation: sv-float 14s ease-in-out infinite; }
.hero::after { width: 320px; height: 320px; right: -60px; bottom: -80px; background: radial-gradient(circle, #fcd34d, transparent 70%); animation: sv-float 17s ease-in-out infinite reverse; }
@keyframes sv-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, -22px) scale(1.08); } }
.hero .art { animation: sv-bob 7s ease-in-out infinite; }
@keyframes sv-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(.8deg); } }
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); }
.eyebrow { border: 1.5px solid transparent; background-image: linear-gradient(#fff, #fff), var(--grad-warm); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: var(--shadow-sm); }
.hero-search { transition: box-shadow .2s, border-color .2s; }
.hero-search:focus-within { box-shadow: var(--ring), var(--shadow-md); }

/* buttons: soft shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn:hover:not(:disabled)::after { left: 130%; }
.btn.ghost::after { display: none; }

/* stats: colourful numbers */
.stat-grid { border-color: #dfe3fb; }
.stat strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat:nth-child(2) strong { background-image: var(--grad-warm); }
.stat:nth-child(3) strong { background-image: var(--grad-cool); }
.stat:nth-child(4) strong { background-image: var(--grad-fresh); }

/* section headings get a small accent bar */
.sec-head h2::after { content: ""; display: block; width: 56px; height: 5px; margin: 12px auto 0; border-radius: 99px; background: var(--grad-warm); }

/* cards: coloured top edge, deeper shadow on hover */
.how-card, .feat, .age-card, .skill { border-top-width: 4px; }
.how-card:nth-child(1), .feat:nth-child(4n+1), .age-card.kid { border-top-color: #f59e0b; }
.how-card:nth-child(2), .feat:nth-child(4n+2), .age-card.teen { border-top-color: #06b6d4; }
.how-card:nth-child(3), .feat:nth-child(4n+3), .age-card.adult { border-top-color: #7c3aed; }
.feat:nth-child(4n) { border-top-color: #10b981; }
.how-card .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; opacity: .28; }
.how-card:hover, .feat:hover, .age-card:hover, .field-card:hover, .skill:hover { box-shadow: var(--shadow-lg); }
.skill { transition: transform .2s ease, box-shadow .2s ease; }
.skill:hover { transform: translateY(-3px); }

.field-card { position: relative; overflow: hidden; }
.field-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.field-card:nth-child(6n+2)::before { background: var(--grad-warm); }
.field-card:nth-child(6n+3)::before { background: var(--grad-cool); }
.field-card:nth-child(6n+4)::before { background: var(--grad-fresh); }
.field-card:nth-child(6n+5)::before { background: linear-gradient(135deg, #ec4899, #7c3aed); }
.field-card:nth-child(6n)::before { background: linear-gradient(135deg, #f97316, #facc15); }

/* career and spotlight cards */
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7ccf5; }
.card .card-art svg { transition: transform .5s ease; }
.card:hover .card-art svg { transform: scale(1.05); }
.bar-track { height: 10px; }
.bar-fill { background: linear-gradient(90deg, #4f46e5, #7c3aed 50%, #10b981); }
.match strong { background: var(--grad-fresh); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.spot-card { transition: transform .25s ease, box-shadow .25s ease; }
.spot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* quiz: friendlier selections */
.tile, .chip, .age { transition: transform .15s ease, background .15s, border-color .15s, box-shadow .15s, color .15s; }
.tile.sel, .chip.sel { background: var(--grad); box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.tile.sel { position: relative; }
.tile.sel::after { content: "\2713"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #4f46e5; font-size: 13px; font-weight: 800; line-height: 20px; text-align: center; }
.tile.sel .ic { background: rgba(255, 255, 255, .22); }
.tile:active, .chip:active, .age:active { transform: scale(.97); }
.steps li.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
.steps li.on::before { background: rgba(255, 255, 255, .25); color: #fff; }
.panel { box-shadow: var(--shadow-md); border-color: #dfe3fb; }
#nameIn:focus { box-shadow: var(--ring); }

/* call to action and footer */
.cta-band { background: radial-gradient(500px 260px at 90% 0%, rgba(251, 191, 36, .35), transparent 62%), radial-gradient(500px 280px at 0% 100%, rgba(6, 182, 212, .35), transparent 62%), var(--grad); }
.cta-art { animation: sv-bob 8s ease-in-out infinite; }
footer { background: radial-gradient(600px 220px at 100% 0%, rgba(124, 58, 237, .45), transparent 62%), radial-gradient(500px 200px at 0% 100%, rgba(6, 182, 212, .25), transparent 62%), linear-gradient(135deg, #171a3a, #2a2370); }

/* floating button */
.to-top { background: var(--grad); box-shadow: 0 8px 20px rgba(79, 70, 229, .4); }

@media (max-width: 700px) {
  .hero::before, .hero::after { opacity: .35; }
  .sec-head h2::after { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  main, .hero::before, .hero::after, .hero .art, .cta-art { animation: none; }
  .top::after, .btn::after { display: none; }
}
@media print {
  body { background-image: none; }
  .hero::before, .hero::after, .top::after { display: none; }
}

/* ---- vibrant layer 2: career pages, browse filters, sub-page heroes ---- */
/* sub-page heroes: bolder gradient banner */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(520px 260px at 95% 0%, rgba(251, 191, 36, .28), transparent 62%), radial-gradient(520px 260px at 0% 100%, rgba(6, 182, 212, .22), transparent 62%), linear-gradient(135deg, #e3e6ff, #efe7ff); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: var(--grad); opacity: .1; animation: sv-float 16s ease-in-out infinite; }
.page-hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ph-art .big { animation: sv-bob 6s ease-in-out infinite; }

/* career page */
.det-hero { background: linear-gradient(180deg, #e6e9ff, transparent); }
.det-info h1 { font-size: clamp(32px, 5vw, 52px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.det-art { transition: transform .4s ease; }
.det-art:hover { transform: rotate(-1.5deg) scale(1.02); }
.det-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.det-side { position: sticky; top: 82px; }
.det-sec { position: relative; border-left: 5px solid #818cf8; transition: transform .2s ease, box-shadow .2s ease; }
.det-sec:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.det-main .det-sec:nth-child(1) { border-left-color: #4f46e5; }
.det-main .det-sec:nth-child(2) { border-left-color: #f59e0b; }
.det-main .det-sec:nth-child(3) { border-left-color: #06b6d4; }
.det-main .det-sec:nth-child(4) { border-left-color: #10b981; }
.det-main .det-sec:nth-child(5) { border-left-color: #ec4899; }
.det-side .det-sec:nth-child(1) { border-left-color: #7c3aed; }
.det-side .det-sec:nth-child(2) { border-left-color: #0ea5e9; }
.det-sec h2 { display: flex; align-items: center; gap: 8px; }
.det-sec h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .55; }
.det-sec.accent { background: linear-gradient(135deg, #fffbeb, #fff3c4); }
.int-chip { transition: transform .15s ease, box-shadow .15s ease; }
.int-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.related { background: linear-gradient(180deg, transparent, #e9ebff); }
.mini-card:hover { box-shadow: var(--shadow-lg); }
.mini-card .card-art svg { transition: transform .5s ease; }
.mini-card:hover .card-art svg { transform: scale(1.06); }
.mc-text h3 { transition: color .15s; }
.mini-card:hover .mc-text h3 { color: var(--brand); }

/* browse page: filters in a floating panel */
.filters { background: #fff; border: 1px solid #dfe3fb; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-md); }
.filters select, .filters input { box-shadow: var(--shadow-sm); }
.chip { box-shadow: var(--shadow-sm); }
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
#browseCards .card, #cards .card { background-image: linear-gradient(180deg, #fff, #fafaff); }

/* results page: celebratory top match */
#cards .card:first-child { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18), var(--shadow-md); }
.summary .sum-card { box-shadow: var(--shadow-sm); border-top: 4px solid #818cf8; }
.summary .sum-card:nth-child(2) { border-top-color: #f59e0b; }
.roadmap { border-left: 6px solid #7c3aed; box-shadow: var(--shadow-sm); }

/* FAQ and prose */
.faq details { transition: box-shadow .2s ease, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: #c7ccf5; }
.faq summary { transition: color .15s; }
.faq summary:hover { color: var(--brand); }

/* friendlier text selection and scrollbar */
::selection { background: #c7d2fe; color: #1e1b4b; }
html { scrollbar-color: #a5b4fc transparent; }

@media (max-width: 900px) {
  .det-side { position: static; }
  .det-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::after, .ph-art .big { animation: none; }
  .det-art:hover, .det-sec:hover { transform: none; }
}
@media print {
  .page-hero::after { display: none; }
  .det-info h1, .page-hero h1 { background: none; color: #000; -webkit-text-fill-color: #000; }
}

/* contrast fixes */
.card:first-child .card-art .rank, .rank.gold { background: #b45309; }
.plan-count { color: #047857; }

/* ---- dark theme: real dark colours (replaces the old invert trick) ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1124; --ink: #eceeff; --muted: #aeb5d8; --brand: #5b5ef2; --brand-dark: #b4baff;
  --soft: #20254a; --line: #2e3463; --card: #171b34; --gold: #fbbf24; --green: #34d399;
  --surface: #171b34; --surface-2: #1e2347;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, .45), 0 24px 48px rgba(0, 0, 0, .4);
  --ring: 0 0 0 4px rgba(139, 147, 255, .28);
}
:root[data-theme="dark"] body { background-color: var(--bg); background-image: radial-gradient(circle at 1px 1px, rgba(139, 147, 255, .08) 1px, transparent 0); }
:root[data-theme="dark"] ::selection { background: #3b4290; color: #fff; }
:root[data-theme="dark"] { scrollbar-color: #4b53a8 transparent; }

/* surfaces */
:root[data-theme="dark"] :is(.top, .about .prose, .eyebrow, .panel, .card, .skill, .how-card, .feat, .about .feat, .age-card, .field-card, .mini-card, .spot-card, .stat-grid, .filters, .det-sec, .share, .policy, .pol-card, .comparebar, .dlg-head, dialog, .empty, .faq details, .age, .tile, .chip, .pill, .hero-search, .menu-btn, .theme-btn, .lang, .lang button, .lang a, .tags li, .int-chip, .fc-go, .btn.ghost, .top #mainNav, .top nav .saved-link, .steps li, .preview pre, .skip, .ph-art .big, .focus) {
  background-color: var(--surface); color: var(--ink);
}
:root[data-theme="dark"] :is(.card, .skill, .how-card, .feat, .age-card, .field-card, .mini-card, .spot-card, .stat-grid, .filters, .det-sec, .share, .panel, .age, .tile, .chip, .pill, .hero-search, .tags li, .int-chip, .btn.ghost, .lang, .menu-btn, .theme-btn, .faq details) { border-color: var(--line); }
:root[data-theme="dark"] .top { background-color: rgba(14, 17, 36, .85); box-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] #browseCards .card, :root[data-theme="dark"] #cards .card { background-image: none; }
:root[data-theme="dark"] .comparebar { background-color: rgba(23, 27, 52, .95); }
:root[data-theme="dark"] .lang button[aria-pressed="true"] { background: var(--grad); color: #fff; }
:root[data-theme="dark"] .eyebrow { background-image: linear-gradient(var(--surface), var(--surface)), var(--grad-warm); }
:root[data-theme="dark"] .det-sec.accent, :root[data-theme="dark"] .focus { background: linear-gradient(135deg, #2c2610, #3a300c); border-color: #5c4a10; }
:root[data-theme="dark"] .det-sec.accent h2, :root[data-theme="dark"] .focus h4 { color: #fcd34d; }
:root[data-theme="dark"] .tile.sel, :root[data-theme="dark"] .chip.sel, :root[data-theme="dark"] .age.sel { color: #fff; }
:root[data-theme="dark"] .age.sel { background: var(--surface-2); }
:root[data-theme="dark"] .tile .ic, :root[data-theme="dark"] .ic.hue0, :root[data-theme="dark"] .ic.hue1, :root[data-theme="dark"] .ic.hue2, :root[data-theme="dark"] .ic.hue3, :root[data-theme="dark"] .ic.hue4, :root[data-theme="dark"] .ic.hue5,
:root[data-theme="dark"] .age-card::before, :root[data-theme="dark"] .ic.age-kid, :root[data-theme="dark"] .ic.age-teen, :root[data-theme="dark"] .ic.age-adult, :root[data-theme="dark"] .skill .ic { background: var(--surface-2); color: #a5b0ff; }
:root[data-theme="dark"] .tile.sel .ic { background: rgba(255, 255, 255, .2); color: #fde68a; }
:root[data-theme="dark"] .fc-go { background-color: var(--surface-2); color: #a5b0ff; }
:root[data-theme="dark"] .field-card:hover .fc-go { background: var(--grad); color: #fff; }

/* bands and page backgrounds */
:root[data-theme="dark"] :is(.band.alt, #ages.band, #future.band, .future, .results, .faq-band) { background: #121631; border-color: var(--line); }
:root[data-theme="dark"] :is(#how.band, .quiz, .browse, .about, .related) { background: transparent; }
:root[data-theme="dark"] #why.band { background: #151a3a; }
:root[data-theme="dark"] .saved { background: #171c40; border-color: var(--line); }
:root[data-theme="dark"] :is(.sum-card) { background: var(--surface-2); border-color: var(--line); }
:root[data-theme="dark"] .roadmap { background: #1b2048; }
:root[data-theme="dark"] .hero { background: radial-gradient(700px 380px at 90% 0%, rgba(124, 58, 237, .28), transparent 62%), radial-gradient(600px 320px at 0% 20%, rgba(79, 70, 229, .22), transparent 62%), linear-gradient(180deg, #131737, #0e1124); }
:root[data-theme="dark"] .page-hero { background: radial-gradient(520px 260px at 95% 0%, rgba(251, 191, 36, .14), transparent 62%), radial-gradient(520px 260px at 0% 100%, rgba(6, 182, 212, .14), transparent 62%), linear-gradient(135deg, #14183a, #1b1546); border-bottom-color: var(--line); }
:root[data-theme="dark"] .det-hero { background: linear-gradient(180deg, #151a3d, transparent); }
:root[data-theme="dark"] .hero::before { background: radial-gradient(circle, #4f46e5, transparent 70%); opacity: .4; }
:root[data-theme="dark"] .hero::after { background: radial-gradient(circle, #b45309, transparent 70%); opacity: .3; }
:root[data-theme="dark"] .det-art { border-color: var(--surface); }
:root[data-theme="dark"] .stat-grid, :root[data-theme="dark"] .panel { border-color: var(--line); }

/* text and small parts */
:root[data-theme="dark"] :is(h1, h2, h3, h4, .brand, .titles h3, .tc, nav a, .fc-text h3, .mc-text h3, .age strong) { color: var(--ink); }
:root[data-theme="dark"] nav a[aria-current="page"], :root[data-theme="dark"] nav a:hover { color: #a5b0ff; }
:root[data-theme="dark"] a { color: #a5b0ff; }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn:hover { color: #fff; }
:root[data-theme="dark"] .btn.ghost { color: #c7ccff; }
:root[data-theme="dark"] .btn.light { background: #fff; color: #3730a3; }
:root[data-theme="dark"] .how-card .num { opacity: .35; }
:root[data-theme="dark"] .why li, :root[data-theme="dark"] .tag-pill { background: var(--surface-2); color: #c7ccff; }
:root[data-theme="dark"] .why li { color: #c7ccff; }
:root[data-theme="dark"] .bar-track { background: #262c58; }
:root[data-theme="dark"] .badge.high { background: #064e3b; color: #a7f3d0; }
:root[data-theme="dark"] .badge.growing { background: #1e3a8a; color: #bfdbfe; }
:root[data-theme="dark"] .badge.steady { background: #5b3a06; color: #fde68a; }
:root[data-theme="dark"] .plan-count { color: #6ee7b7; }
:root[data-theme="dark"] .steps li { color: var(--muted); }
:root[data-theme="dark"] .steps li.on { background: var(--grad); color: #fff; }
:root[data-theme="dark"] .steps li.done { background: #064e3b; color: #a7f3d0; }
:root[data-theme="dark"] :is(input, select, textarea, #nameIn, .filters input, .filters select, .hero-search input) { background-color: var(--surface-2); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] ::placeholder { color: #8088b5; }
:root[data-theme="dark"] .top #mainNav { background-color: var(--surface); }
:root[data-theme="dark"] .toast { background: #eceeff; color: #14183a; }
:root[data-theme="dark"] dialog::backdrop { background: rgba(0, 0, 0, .65); }
:root[data-theme="dark"] table, :root[data-theme="dark"] th, :root[data-theme="dark"] td { border-color: var(--line); }
:root[data-theme="dark"] th { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] :is(.faq summary, details summary) { color: #c7ccff; }
:root[data-theme="dark"] body:has(.pol) { background: var(--bg); }
:root[data-theme="dark"] .policy a { color: #a5b0ff; }
:root[data-theme="dark"] .card.featured .ribbon { color: #1e1b4b; }
:root[data-theme="dark"] .ribbon { background: #fbbf24; color: #1e1b4b; }
:root[data-theme="dark"] .card:first-child .card-art .rank, :root[data-theme="dark"] .rank.gold { background: #b45309; color: #fff; }

/* hand-drawn pictures sit on soft dark tints so they stay readable */
:root[data-theme="dark"] .card-art { background: linear-gradient(180deg, #232a5c, #1a2050); }
:root[data-theme="dark"] .card-art.bg1 { background: linear-gradient(180deg, #2a2260, #1c1850); }
:root[data-theme="dark"] .card-art.bg2 { background: linear-gradient(180deg, #14403a, #112e30); }
:root[data-theme="dark"] .card-art.bg3 { background: linear-gradient(180deg, #123e5c, #10304a); }
:root[data-theme="dark"] .card-art.bg4 { background: linear-gradient(180deg, #4d3a10, #3a2c0e); }
:root[data-theme="dark"] .art { filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .5)); }

:root[data-theme="dark"] .rank { background: #5b5ef2; color: #fff; }
:root[data-theme="dark"] .tile svg, :root[data-theme="dark"] .tile .ic { color: #a5b0ff; }
:root[data-theme="dark"] .tile.sel svg { color: #fde68a; }
:root[data-theme="dark"] .live { background: var(--surface-2); color: #c7ccff; }

/* ---- usability layer: touch targets, scroll cues, small-screen tables ---- */
html { scroll-padding-top: 76px; }
input[type="checkbox"], input[type="radio"] { accent-color: #4f46e5; width: 22px; height: 22px; cursor: pointer; }
a { text-underline-offset: 3px; }
.card:focus-within, .det-sec:focus-within { box-shadow: var(--ring), var(--shadow-md); }

/* comfortable tap targets */
.foot-links a { padding: 10px 4px; display: inline-block; }
.foot-line a, .more-link, .crumb { display: inline-block; padding: 8px 2px; }
.lang button, .lang a { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
label:has(> input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
@media (pointer: coarse) { .lang button, .lang a { min-height: 40px; } }

/* filter strip: show that it scrolls sideways */
.chip-row { scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.chip-row .chip { scroll-snap-align: start; }
@media (max-width: 700px) {
  .chip-row { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 36px; }
}
:root[data-theme="dark"] .about .prose { border-left-color: var(--brand); }
#allCareers .tags { justify-content: center; gap: 10px 10px; max-width: 1040px; margin: 0 auto; }
#allCareers .tags li { padding: 0; font-size: 15px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
#allCareers .tags a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
#allCareers .tags li:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
#allCareers .tags a:hover, #allCareers .tags a:focus-visible { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { #allCareers .tags li:hover { transform: none; } }
