/* =====================================================================
   Program Finder X · Phase 3
   components.css — the visual layer. Derives entirely from tokens.css.
   ===================================================================== */

:root { --wa: #25D366; --wa-700: #1da851; }

@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

/* skip link */
.skip {
  position: fixed; left: var(--s-3); top: var(--s-3); z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm); transform: translateY(-150%); transition: transform var(--dur-2);
}
.skip:focus { transform: none; color: #fff; }

/* ============================ buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .62rem 1.05rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--t-sm); line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--dur-2) var(--ease), color var(--dur-2), border-color var(--dur-2), transform var(--dur-1), box-shadow var(--dur-2);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-700); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .45rem .8rem; font-size: var(--t-xs); }

/* ============================ header ============================ */
.hdr {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); font-family: var(--font-display); }
.brand:hover { color: var(--ink); }
.brand__logo { height: 44px; width: auto; display: block; }
@media (max-width: 560px) { .brand__logo { height: 38px; } }
/* footer logo sits on a dark band — a soft light chip keeps every part legible */
.foot-logo { height: 56px; width: auto; display: block; }
.brand__mark { color: var(--primary); font-size: 1.4rem; line-height: 1; }
.brand__name { font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__name strong { font-weight: 800; }
.hdr__profile {
  font-size: var(--t-xs); color: var(--ink-3); background: var(--surface-2);
  border: 1px solid var(--line); padding: .35rem .7rem; border-radius: var(--r-pill);
  max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hdr__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
/* "Ask Maya AI" — the standout AI action: blue gradient, gold sparkle, shine sweep, glow */
.hdr__ask { position: relative; overflow: hidden; border: none; color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--primary) 0%, #4d78de 52%, var(--primary) 100%);
  box-shadow: 0 7px 20px -7px rgba(53,99,201,.7), inset 0 0 0 1px rgba(255,255,255,.18); }
.hdr__ask svg { width: 18px; height: 18px; flex: none; color: var(--amber); filter: drop-shadow(0 0 6px rgba(251,188,36,.7)); position: relative; z-index: 1; }
.hdr__ask span { position: relative; z-index: 1; }
.hdr__ask::after { content: ""; position: absolute; top: 0; left: -70%; width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg);
  animation: askShine 3.4s ease-in-out infinite; }
@keyframes askShine { 0%, 55% { left: -70%; } 100% { left: 135%; } }
.hdr__ask:hover { color: #fff; transform: translateY(-1px);
  box-shadow: 0 11px 28px -7px rgba(53,99,201,.85), inset 0 0 0 1px rgba(255,255,255,.28); }
@media (prefers-reduced-motion: reduce) { .hdr__ask::after { animation: none; } }
@media (max-width: 560px) { .hdr__ask span, .hdr__ask { display: none; } .btn--wa span { display: none; } }

/* ============================ hero ============================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 3.5rem); min-height: calc(100dvh - var(--header-h)); display: flex; align-items: center; }
.hero::before {
  content: ''; position: absolute; inset: -45% 0 auto 50%; transform: translateX(-50%);
  width: min(1000px, 98%); aspect-ratio: 2/1;
  background:
    radial-gradient(42% 60% at 32% 38%, color-mix(in srgb, var(--safe) 22%, transparent), transparent 70%),
    radial-gradient(46% 64% at 68% 42%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 72%);
  filter: blur(6px);
  z-index: -1; pointer-events: none;
}
.hero__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  display: inline-block; color: var(--safe-700, #0BB37E); margin-bottom: var(--s-4);
  background: var(--safe-tint); padding: .45rem .9rem; border-radius: var(--r-pill);
}
.hero__title { font-size: var(--t-display); font-weight: 800; letter-spacing: -.03em; }
/* highlighted phrase in the headline — solid indigo over the clipped-text title */
.hero__title .hl { position: relative; color: var(--primary); -webkit-text-fill-color: var(--primary); white-space: nowrap; }
.hero__title .hl::after {
  content: ''; position: absolute; left: -.06em; right: -.06em; bottom: .08em; height: .28em;
  background: color-mix(in srgb, var(--primary) 18%, transparent); border-radius: 6px; z-index: -1;
}
.hero__sub { margin-top: var(--s-4); max-width: 56ch; color: var(--ink-3); font-size: var(--t-lg); }

/* ask field */
.ask { width: min(680px, 100%); margin-top: var(--s-8); }
.ask__field {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: .4rem .4rem .4rem 1rem;
  box-shadow: var(--shadow-md); transition: box-shadow var(--dur-2), border-color var(--dur-2);
}
.ask__field:focus-within { border-color: var(--primary); box-shadow: var(--shadow-lg), var(--ring); }
.ask__icon { color: var(--ink-4); flex: none; }
.ask__input { flex: 1; border: none; background: none; outline: none; padding: .6rem 0; font-size: var(--t-base); color: var(--ink); min-width: 0; }
.ask__input::placeholder { color: var(--ink-4); }
.ask__go { flex: none; }
@media (max-width: 520px) {
  .ask__field { flex-wrap: wrap; border-radius: var(--r-lg); }
  .ask__go { width: 100%; }
}

/* example chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); width: min(620px, 100%); margin: var(--s-5) auto 0; }
.chip {
  font-size: var(--t-xs); color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .4rem .8rem;
  transition: border-color var(--dur-2), color var(--dur-2), background var(--dur-2);
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }

/* hero — "chat with Maya" entry */
.hero__maya {
  display: inline-flex; align-items: center; gap: 9px; margin-top: var(--s-6);
  padding: .5rem 1.05rem .5rem .55rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  font-size: var(--t-sm); font-weight: 600; box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-1);
}
.hero__maya strong { color: var(--primary); font-weight: 700; }
.hero__maya:hover { border-color: color-mix(in srgb, var(--primary) 38%, var(--line-2)); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.hero__maya-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--safe), var(--primary)); color: #fff;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--primary) 34%, transparent); }
.hero__maya > svg:last-child { color: var(--ink-4); transition: transform var(--dur-2); }
.hero__maya:hover > svg:last-child { transform: translateX(3px); color: var(--primary); }

/* hero — browse-by-country cards */
.hero__browselabel { margin: var(--s-8) auto var(--s-4); font-size: var(--t-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.herocards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); width: min(620px, 100%); margin: 0 auto; }
.herocard {
  flex: 1 1 230px; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: .8rem 1.35rem .8rem .85rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  cursor: pointer; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2), border-color var(--dur-2);
}
.herocard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 22%, var(--line)); }
.herocard .cflag { width: 30px; height: 20px; vertical-align: 0; }
.herocard__txt { display: flex; flex-direction: column; line-height: 1.25; }
.herocard__name { font-weight: 700; color: var(--ink); font-size: var(--t-sm); }
.herocard__count { color: var(--ink-4); font-size: var(--t-xs); }
@media (max-width: 520px) { .herocard { flex: 1 1 42%; } }
.hero__browse { margin-top: var(--s-7); color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; }
.hero__browse:hover { color: var(--primary); }

/* ============================ app layout ============================ */
.app__in { display: grid; grid-template-columns: var(--rail) 1fr; gap: var(--s-8); align-items: start; padding-block: var(--s-8); }
@media (max-width: 960px) { .app__in { grid-template-columns: 1fr; } }

/* ============================ filter rail ============================ */
.rail {
  position: sticky; top: calc(var(--header-h) + var(--s-4));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; max-height: calc(100vh - var(--header-h) - var(--s-8));
  display: flex; flex-direction: column;
}
.rail__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.rail__title { font-size: var(--t-lg); }
.rail__close { display: none; font-size: 1.1rem; color: var(--ink-3); width: 2rem; height: 2rem; border-radius: var(--r-sm); }
.rail__close:hover { background: var(--bg-2); }
.rail__form { padding: var(--s-2) var(--s-5); overflow-y: auto; }
.rail__foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }

.fgroup { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.fgroup:last-child { border-bottom: none; }
.fgroup__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: var(--ink); font-weight: 700; font-size: var(--t-sm); }
.fgroup__head .chev { transition: transform var(--dur-2); color: var(--ink-4); }
.fgroup[data-open="false"] .chev { transform: rotate(-90deg); }
.fgroup[data-open="false"] .fgroup__body { display: none; }
.fgroup__body { margin-top: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }

.opt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
.opt[hidden] { display: none; }
/* facet option with 0 results under the current filters */
.opt--dead { opacity: .42; cursor: not-allowed; }
.opt--dead input { cursor: not-allowed; }
.opt--dead .opt__count { text-decoration: line-through; }
.opt--off { display: none; }   /* facet-unavailable option (e.g. institute not in the chosen location) */
.opt__season { margin-left: 6px; font-size: var(--t-xs); color: var(--ink-4); font-weight: 500; }
/* Location tree: indent province (one level) and city (two levels) to show the
   Country › State › City hierarchy (specificity beats the generic .opt padding) */
.opt.opt--p { padding-left: 20px; }
.opt.opt--c { padding-left: 54px; }
.opt--p > span, .opt--c > span { color: var(--ink-3); }
/* expand/collapse caret — browse a node's children without selecting it */
.opt__caret { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border: 0;
  background: none; color: var(--ink-4); cursor: pointer; padding: 0; border-radius: 4px; }
.opt__caret:hover { color: var(--ink); background: var(--surface-2); }
.opt__caret svg { transition: transform .15s ease; }
.opt--open > .opt__caret svg { transform: rotate(90deg); }
.opt__caret--none { visibility: hidden; pointer-events: none; }
/* selected-summary shown on the collapsed Location head */
.fgroup__sum { font-weight: 500; font-size: var(--t-xs); color: var(--ink-4); }
/* "Or choose specific schools" divider inside the University/College group */
.finst-or { margin: 14px 0 8px; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.fsub--year .eyebrow { color: var(--ink-3); font-weight: 700; letter-spacing: .04em; }
/* --- "this filter is blocking your results" highlight --- */
.fgroup--blame { background: var(--amber-bg, #FFF6E8); border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--amber, #DB8400); }
.fgroup--blame > .fgroup__head { color: var(--amber, #DB8400); }
.fgroup--blame > .fgroup__head::after { content: "⚠ blocking results"; margin-left: 8px; font-size: var(--t-xs); font-weight: 600; color: var(--amber, #DB8400); }
.opt--blame { background: var(--amber-bg, #FFF6E8); border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--amber, #DB8400); }
.smartbar__toggle.blame, label.blame, .switch.blame { box-shadow: 0 0 0 2px var(--amber, #DB8400); border-radius: 999px; }

.state__culprits { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.state__culprits-h { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 2px; }
.cpill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--amber, #DB8400); background: var(--amber-bg, #FFF6E8); color: var(--ink, #0E1B2E);
  font-size: var(--t-sm); font-weight: 500; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease; }
.cpill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cpill__x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--amber, #DB8400); color: #fff; font-size: 11px; font-weight: 700; }
.cpill b { font-weight: 700; }
.cpill__yield { color: var(--safe, #0FA06A); font-weight: 700; white-space: nowrap; }
.opt input { width: 1rem; height: 1rem; accent-color: var(--primary); }
.opt__count { margin-left: auto; font-size: var(--t-xs); color: var(--ink-4); }
.opt:hover { color: var(--ink); }
.fselect, .finput {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: var(--t-sm);
}
.fselect:focus, .finput:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.frange { width: 100%; accent-color: var(--primary); }
.frange__val { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.rail__scrim { position: fixed; inset: 0; background: rgba(14,27,46,.4); z-index: 70; }

/* ============================ smart bar ============================ */
.smartbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap; margin-bottom: var(--s-5);
}
.smartbar__msg { min-width: 0; }
.smartbar__headline { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--t-lg); }
.smartbar__detail { display: block; color: var(--ink-3); font-size: var(--t-sm); margin-top: 2px; }
.smartbar__controls { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.smartbar__filtersBtn { display: none; }
@media (max-width: 960px) { .smartbar__filtersBtn { display: inline-flex; } }
.count-badge { background: var(--primary); color: #fff; border-radius: var(--r-pill); font-size: var(--t-2xs); padding: 1px 7px; margin-left: 2px; }

/* eligible toggle */
.toggle { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; font-size: var(--t-sm); color: var(--ink-2); user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--line-2); position: relative; transition: background var(--dur-2); flex: none; }
.toggle__dot { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform var(--dur-2) var(--ease); }
.toggle input:checked + .toggle__track { background: var(--safe); }
.toggle input:checked + .toggle__track .toggle__dot { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track { box-shadow: var(--ring); }

/* sort */
.sortsel { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); color: var(--ink-3); }
.sortsel select { padding: .45rem 1.8rem .45rem .7rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236B7A8D' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right .6rem center; -webkit-appearance: none; appearance: none; color: var(--ink); font-weight: 600; }
.sortsel select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

/* ============================ results grid + cards ============================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--s-5); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--shadow-xs); transition: box-shadow var(--dur-2), transform var(--dur-2), border-color var(--dur-2);
  animation: rise var(--dur-3) var(--ease-out) both;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.grid .card:nth-child(1){animation-delay:.02s} .grid .card:nth-child(2){animation-delay:.06s}
.grid .card:nth-child(3){animation-delay:.10s} .grid .card:nth-child(4){animation-delay:.14s}
.grid .card:nth-child(5){animation-delay:.18s} .grid .card:nth-child(6){animation-delay:.22s}

.card__top { display: flex; align-items: flex-start; gap: var(--s-3); }
.card__logo { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); flex: none; position: relative; overflow: hidden; }
.card__logoimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; border-radius: inherit; }
.card__topmeta { flex: 1; min-width: 0; }
.card__band { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-2xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); }
.band--Safe   { background: var(--safe-tint);  color: var(--safe); }
.band--Strong { background: var(--match-tint); color: var(--primary); }
.band--Match  { background: var(--bg-2);       color: var(--ink-3); }
.band--Reach  { background: var(--reach-tint); color: var(--reach); }

/* signature: fit ring */
.fitring {
  --p: 0; --fit: var(--primary);
  position: relative; width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--fit) calc(var(--p) * 1%), var(--line) 0);
  display: grid; place-items: center; transition: --p 1.1s var(--ease-out);
}
.fitring[data-band="Safe"]   { --fit: var(--safe); }
.fitring[data-band="Strong"] { --fit: var(--primary); }
.fitring[data-band="Match"]  { --fit: #8B8BF8; }
.fitring[data-band="Reach"]  { --fit: var(--reach); }
.fitring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.fitring__val { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink); line-height: 1; }
.fitring__pct { font-size: .55rem; color: var(--ink-4); font-weight: 700; }

.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); line-height: var(--lh-snug); letter-spacing: -.01em; }
.card__titlelink { color: inherit; text-decoration: none; }
.card__titlelink:hover { color: var(--primary); }
.card__inst { font-size: var(--t-sm); color: var(--ink-3); margin-top: 2px; }
.card__instlink { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: color .12s, border-color .12s; }
.card__instlink:hover { color: var(--primary); border-bottom-color: currentColor; }
.card__loc { font-size: var(--t-xs); color: var(--ink-4); display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; }
.cflag { display: inline-block; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(16,27,46,.1); flex: none; vertical-align: -3px; }
.cflag svg { display: block; width: 100%; height: 100%; }
.opt .cflag { margin-right: 8px; vertical-align: -2px; }
.card__pin { color: var(--ink-4); }

.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reason { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 9px; }
.reason svg { color: var(--safe); flex: none; }
.reason--warn { background: var(--reach-tint); border-color: transparent; color: #9a6200; }
.reason--warn svg { color: var(--reach); }

.card__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.fee__total { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.fee__label { font-size: var(--t-2xs); color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; }
.fee__local { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.intake { text-align: right; }
.intake__name { font-size: var(--t-xs); font-weight: 600; color: var(--safe); }
.intake__none { font-size: var(--t-xs); color: var(--ink-4); }

.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: var(--t-2xs); font-weight: 600; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 7px; }
.flag--gold { background: var(--gold-tint); color: #8a6d23; border-color: transparent; }

.card__actions { display: flex; gap: var(--s-2); }
.card__actions .btn { flex: 1; }
.iconbtn { width: 38px; height: 38px; flex: none !important; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-3); display: grid; place-items: center; transition: all var(--dur-2); }
.iconbtn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); }
.iconbtn[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); }

/* ============================ skeletons ============================ */
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.skel__line, .skel__box { background: linear-gradient(100deg, var(--bg-2) 30%, var(--surface-2) 50%, var(--bg-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }
.skel__box { width: 46px; height: 46px; }
.skel__line { height: 12px; }
.skel__line.w70 { width: 70%; } .skel__line.w50 { width: 50%; } .skel__line.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================ empty / error ============================ */
.state { grid-column: 1 / -1; text-align: center; padding: var(--s-16) var(--s-5); color: var(--ink-3); }
.state__icon { font-size: 2rem; margin-bottom: var(--s-3); }
.state__title { font-family: var(--font-display); color: var(--ink); font-size: var(--t-h3); margin-bottom: var(--s-2); }
.state__btn { margin-top: var(--s-5); }
.state__recos { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }
.state__recos + .state__btn { margin-top: var(--s-3); }

/* ============================ pager ============================ */
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-8); margin-bottom: 96px; }
.pager button { min-width: 38px; height: 38px; padding: 0 .6rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: var(--t-sm); }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button[aria-current="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ============================ chat panel ============================ */
.chat {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out);
}
.chat.open { transform: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.chat__id { display: flex; align-items: center; gap: var(--s-3); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--safe), var(--primary)); color: #fff; font-size: 1.1rem; }
.chat__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.1; }
.chat__role { font-size: var(--t-xs); color: var(--ink-4); }
.chat__close { width: 2rem; height: 2rem; border-radius: var(--r-sm); color: var(--ink-3); }
.chat__close:hover { background: var(--bg-2); }
.chat__log { flex: 1; overflow-y: auto; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.msg { max-width: 85%; padding: .65rem .9rem; border-radius: var(--r-md); font-size: var(--t-sm); line-height: var(--lh-snug); }
.msg--ai { align-self: flex-start; background: var(--bg-2); color: var(--ink-2); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: bounce 1s infinite; }
.typing span:nth-child(2){animation-delay:.15s} .typing span:nth-child(3){animation-delay:.3s}
@keyframes bounce { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-4px);opacity:1} }
.chat__form { display: flex; gap: var(--s-2); padding: var(--s-4); border-top: 1px solid var(--line); }
.chat__input { flex: 1; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .6rem 1rem; font-size: var(--t-sm); background: var(--surface-2); outline: none; }
.chat__input:focus { border-color: var(--primary); box-shadow: var(--ring); background: var(--surface); }
.chat__send { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.chat__send:hover { background: var(--primary-700); }
.chat__scrim { position: fixed; inset: 0; background: rgba(14,27,46,.4); z-index: 85; }

/* ============================ shortlist bar ============================ */
.shortlist { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: slideup var(--dur-3) var(--ease-out); }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.shortlist__in { display: flex; align-items: center; gap: var(--s-4); padding-block: var(--s-3); }
.shortlist__count { font-size: var(--t-sm); color: var(--ink-2); }
.shortlist__count strong { color: var(--ink); font-family: var(--font-display); }
.shortlist__thumbs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.slchip { position: relative; flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); }
.slchip__mono { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .72rem; }
.slchip__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.shortlist__actions { margin-left: auto; display: flex; gap: var(--s-2); }

/* ============================ compare dialog ============================ */
.compare { border: none; border-radius: var(--r-lg); padding: 0; margin: auto; max-width: min(1040px, 95vw); width: 100%; box-shadow: var(--shadow-lg); background: var(--surface); }
.compare::backdrop { background: rgba(14,27,46,.5); backdrop-filter: blur(3px); }
.cmp { display: flex; flex-direction: column; max-height: 90vh; }
.cmp__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); }
.cmp__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.cmp__title small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; letter-spacing: 0; }
.cmp__body { overflow: auto; }
.cmp__table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.cmp__table > thead > tr > th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); padding: var(--s-4); border-bottom: 1px solid var(--line); vertical-align: bottom; text-align: left; }
.cmp__table td, .cmp__table tbody th { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp__label { color: var(--ink-4); font-weight: 700; font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp__col { display: flex; align-items: flex-start; gap: 10px; min-width: 200px; }
.cmp__col-logo { width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); overflow: hidden; font-weight: 800; color: var(--primary); font-size: .85rem; }
.cmp__col-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cmp__prog { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.2; }
.cmp__inst { color: var(--ink-3); font-size: .78rem; font-weight: 500; margin-top: 2px; }
.cmp__rm { margin-left: auto; flex: none; }
.cmp__cell { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp__cell--win { background: var(--safe-tint); color: var(--safe); }
.cmp__tag { display: inline-block; margin-left: 6px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--safe); background: #fff; border: 1px solid color-mix(in srgb, var(--safe) 30%, transparent); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.cmp__yes { color: var(--safe); font-weight: 800; }
.cmp__no { color: var(--ink-4); }
.cmp__fit { display: inline-block; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 3px 10px; }
.cmp__fit--safe { color: var(--safe); background: var(--safe-tint); }
.cmp__fit--primary { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.cmp__fit--reach { color: var(--reach); background: color-mix(in srgb, var(--reach) 14%, transparent); }
.cmp__foot { display: flex; align-items: center; gap: var(--s-4); justify-content: space-between; flex-wrap: wrap; padding: var(--s-5) var(--s-6); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.cmp__foot-txt strong { display: block; color: var(--ink); font-weight: 700; font-size: .95rem; }
.cmp__foot-txt span { color: var(--ink-3); font-size: var(--t-xs); }
.cmp__foot-btns { display: flex; gap: 8px; }

/* ============================ responsive ============================ */
@media (max-width: 960px) {
  .rail {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 90%); z-index: 80;
    max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform var(--dur-3) var(--ease-out);
  }
  .rail.open { transform: none; }
  .rail__close { display: grid; place-items: center; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero__sub { font-size: var(--t-base); }
  .shortlist__count { display: none; }
}

/* body state: lock scroll when a drawer is open */
body.no-scroll { overflow: hidden; }

/* ---- top matches shown inside the chat ---- */
.msg--results { background: transparent; padding: 0; max-width: 100%; box-shadow: none; }
.cresults { display: flex; flex-direction: column; gap: var(--s-2); width: 100%; }
.cmini { display: flex; gap: var(--s-3); align-items: stretch; text-align: left; width: 100%;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px;
  padding: var(--s-3); cursor: pointer; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; font: inherit; }
.cmini:hover { box-shadow: var(--shadow-2, 0 6px 20px rgba(14,27,46,.10)); transform: translateY(-1px); border-color: #cfd8e6; }
.cmini__score { flex: 0 0 auto; width: 44px; display: grid; place-items: center; border-radius: 10px;
  font-weight: 800; font-size: 1.05rem; color: var(--primary, #2E5BFF); background: var(--primary-tint); line-height: 1; }
.cmini__score small { display: block; font-size: .5rem; letter-spacing: .08em; opacity: .75; margin-top: 1px; }
.cmini__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmini__name { font-weight: 700; font-size: .9rem; color: var(--ink, #0E1B2E); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmini__sub { font-size: .76rem; color: var(--ink-3, #6B7A8D); }
.cmini__meta { font-size: .76rem; color: var(--ink-2, #44546A); }
.cmini-all { width: 100%; text-align: center; background: var(--primary, #2E5BFF); color: #fff; border: 0;
  border-radius: 10px; padding: var(--s-3); font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; }
.cmini-all:hover { filter: brightness(1.06); }
.cresults__none { font-size: .85rem; color: var(--ink-2, #44546A); margin-bottom: var(--s-2); }
.card--flash { animation: cardflash 1.6s ease; }
@keyframes cardflash { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,91,245,0); } 18% { box-shadow: 0 0 0 3px rgba(91,91,245,.45); } }

/* ---- program-name search box + type-ahead dropdown ---- */
.progsearch { position: relative; margin: 0 0 var(--s-3); }
.progsearch__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.progsearch__input {
  width: 100%; box-sizing: border-box;
  padding: 12px 40px 12px 42px;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.progsearch__input::placeholder { color: var(--ink-4); }
.progsearch__input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.progsearch__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-3); cursor: pointer; font-size: .85rem; line-height: 1;
}
.progsearch__clear:hover { background: var(--line); color: var(--ink); }
.progsearch__drop {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md);
  max-height: 360px; overflow-y: auto;
}
.progsearch__opt {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.progsearch__opt.is-active, .progsearch__opt:hover { background: var(--primary-tint); }
.progsearch__optname { font-weight: 600; color: var(--ink); font-size: .92rem; }
.progsearch__optsub { font-size: .78rem; color: var(--ink-3); }

/* ---- removable filter chips above results ---- */
.filterchips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); }
.filterchips__label { font-size: .8rem; font-weight: 700; color: var(--ink-3, #6B7A8D); margin-right: 2px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-tint); color: var(--primary-700);
  border: 1px solid #d3d3fb; border-radius: 20px; padding: 4px 6px 4px 12px; font-size: .82rem;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: background .12s ease; }
.fchip:hover { background: #dedefb; }
.fchip__x { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(91,91,245,.16); font-size: .68rem; line-height: 1; }
.fchip--clear { background: transparent; color: var(--ink-3, #6B7A8D); border-color: transparent;
  padding: 4px 8px; text-decoration: underline; }
.fchip--clear:hover { background: var(--bg, #F4F7FB); color: var(--ink, #0E1B2E); }
.cmini-all--ghost { background: #fff; color: var(--primary, #2E5BFF); border: 1px solid #d3d3fb; }
.cmini-all--ghost:hover { background: var(--primary-tint); filter: none; }

/* ============ Pass 2: cleaner rail + filter search + mobile polish ============ */
/* in-group "type to filter" box */
.fsearch {
  width: 100%; padding: 8px 12px; margin-bottom: var(--s-2);
  border: 1px solid var(--line-2, #e3e9f2); border-radius: 10px;
  font: inherit; font-size: var(--t-sm); color: var(--ink, #0E1B2E); background: var(--bg, #F4F7FB);
}
.fsearch:focus { outline: none; border-color: var(--primary, #2E5BFF); box-shadow: var(--ring, 0 0 0 3px rgba(91,91,245,.15)); background: #fff; }
.fsearch::placeholder { color: var(--ink-4, #9AA7B8); }

/* roomier, calmer filter groups */
.fgroup { padding: var(--s-3) 0; }
.fgroup__head { padding-block: 4px; letter-spacing: .005em; }
.fgroup__head:hover { color: var(--primary, #2E5BFF); }
.fgroup__body { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.fgroup__body::-webkit-scrollbar { width: 6px; }
.fgroup__body::-webkit-scrollbar-thumb { background: var(--line-2, #e3e9f2); border-radius: 6px; }
.opt { padding: 3px 0; border-radius: 8px; }
.opt:hover { color: var(--ink, #0E1B2E); }

/* mobile: chips scroll sideways instead of stacking into a tall block */
@media (max-width: 720px) {
  .filterchips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filterchips::-webkit-scrollbar { display: none; }
  .fchip { flex: 0 0 auto; }
}
/* mobile: comfy filter drawer + safe-area bottom padding */
@media (max-width: 960px) {
  .rail { width: min(380px, 92%); box-shadow: var(--shadow-lg); }
  .rail__form { padding-bottom: var(--s-8); }
}

/* ============ richer program card (colorful, clean) ============ */
.card__logo--mono { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; border-radius: inherit; }

/* colorful benefit pills */
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-1); }
.flag { font-size: var(--t-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.4; border: 1px solid transparent; }
.flag--gold   { background: #FBF1D9; color: #8A6400; border-color: #F0E0B0; }
.flag--amber  { background: #FEF3E2; color: #B5650A; border-color: #F8DDB8; }
.flag--green  { background: #E2F5EC; color: #0B7B52; border-color: #BDE9D3; }
.flag--blue   { background: #E6EEFF; color: var(--primary-700); border-color: #CBDAFB; }
.flag--purple { background: #F0E9FF; color: #6B30D6; border-color: #DFD0FB; }
.flag--teal   { background: #DEF5F3; color: #0A8076; border-color: #BDE9E4; }
.flag--indigo { background: #E8EAFF; color: #3B3DCC; border-color: #D2D5FB; }
.flag--pink   { background: #FCE8F1; color: #C01E68; border-color: #F8CFE0; }
.flag--slate  { background: #EEF1F6; color: #475569; border-color: #DCE2EC; }

/* labeled detail list */
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--line); }
.dgrid__row { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dgrid dt { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-4, #9AA7B8); font-weight: 600; }
.dgrid dt svg { color: var(--primary, #2E5BFF); flex: 0 0 auto; }
.dgrid dd { font-size: var(--t-sm); color: var(--ink, #0E1B2E); font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgrid dd .ok { color: var(--safe, #0FA06A); }
.dgrid dd .muted { color: var(--ink-4, #9AA7B8); font-weight: 500; }
.dgrid__row:nth-child(1) dd, .dgrid__row:nth-child(2) dd { white-space: normal; }

/* footer: price left, actions right */
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.card__price .fee__label { font-size: var(--t-xs); color: var(--ink-4, #9AA7B8); }
.card__price .fee__total { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink, #0E1B2E); }
.card__foot .card__actions { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.card__foot .btn--primary { padding-inline: var(--s-5); }
@media (max-width: 420px) { .dgrid { grid-template-columns: 1fr; } }
/* phones: stack the price above a full-width actions row so the card never
   overflows the screen (the "View details" + icon buttons were too wide inline) */
@media (max-width: 560px) {
  .card__foot { flex-wrap: wrap; row-gap: var(--s-3); }
  .card__foot .card__price { flex: 1 1 auto; }
  .card__foot .card__actions { flex: 1 1 100%; }
}

/* =====================================================================
   MOBILE & TOUCH PASS
   - safe-area insets for notched / home-indicator phones (viewport-fit=cover)
   - keep content clear of the fixed shortlist bar
   - 44px touch targets on touch devices
   ===================================================================== */

/* fixed bottom overlays must clear the home indicator */
.shortlist__in { padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); }
.chat__form    { padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
/* full-height drawers must clear the status bar / notch at the top */
.chat__head, .rail__head { padding-top: calc(var(--s-4) + env(safe-area-inset-top, 0px)); }

/* reserve room so the last card / pager isn't hidden behind the shortlist bar
   (only while the bar is actually showing — no phantom space otherwise) */
body.has-shortlist .app__in { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.pager { margin-bottom: var(--s-8); }

/* touch-friendly hit areas on phones & tablets (any coarse pointer) */
@media (pointer: coarse) {
  .iconbtn { width: 44px; height: 44px; }
  .pager button { min-width: 44px; height: 44px; }
  .chat__close, .rail__close { width: 44px; height: 44px; }
  .chat__send { width: 46px; height: 46px; }
  .opt { padding-block: 9px; }                 /* taller, easier-to-tap filter rows */
  .fgroup__head { padding-block: 6px; }         /* easier collapse toggle */
  .fchip { min-height: 36px; }
  .fchip__x { width: 20px; height: 20px; }
  .chip { padding: .55rem 1rem; }               /* hero example chips */
  .sortsel select { min-height: 42px; }
}

/* compare table: scroll sideways instead of crushing columns on a phone */
@media (max-width: 720px) {
  .cmp__table { min-width: 520px; }
  .cmp__head, .cmp__foot { padding: var(--s-4); }
  .cmp__foot { flex-direction: column; align-items: stretch; }
  .cmp__foot-btns { justify-content: stretch; }
  .cmp__foot-btns .btn { flex: 1; }
}

/* shortlist bar: never let the actions overflow on a small screen */
@media (max-width: 560px) {
  .shortlist__in { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shortlist__in::-webkit-scrollbar { display: none; }
  .shortlist__actions { margin-left: auto; flex: 0 0 auto; }
  .shortlist__actions .btn { white-space: nowrap; }
}

/* culprit pills wrap cleanly in the narrow empty state */
.cpill { flex-wrap: wrap; justify-content: flex-start; text-align: left; }

/* =====================================================================
   PER-CARD CHAT — quick-reply chips inside Maya's conversation
   ===================================================================== */
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qchip {
  font-size: var(--t-xs); font-weight: 600; color: var(--primary, #2E5BFF);
  background: var(--primary-tint, #EEF2FF); border: 1px solid var(--line-2, #D7DEEA);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; line-height: 1.3;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.qchip:hover { background: var(--primary, #2E5BFF); color: #fff; border-color: var(--primary, #2E5BFF); }
.qchip--wa { background: #E7F8EF; color: #0B7B52; border-color: #BDE9D3; text-decoration: none; }
.qchip--wa:hover { background: #0FA06A; color: #fff; border-color: #0FA06A; }
.qchip--ghost { background: transparent; color: var(--ink-3, #6B7A8D); border-color: transparent; }
.qchip--ghost:hover { background: var(--bg-2, #EEF2F8); color: var(--ink, #0E1B2E); }
@media (pointer: coarse) { .qchip { padding: 9px 14px; } }

/* callback chip (per-card) — warm, action-forward */
.qchip--cb { background: #FFF3E0; color: #B45B00; border-color: #FBD9A8; }
.qchip--cb:hover { background: #DB8400; color: #fff; border-color: #DB8400; }

/* "Request a callback" pill in Maya's header */
.chat__cb {
  font-size: var(--t-xs); font-weight: 700; color: #fff;
  background: var(--primary); border: 0; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; margin-right: var(--s-2); white-space: nowrap;
  box-shadow: var(--shadow-xs); transition: background .15s ease;
}
.chat__cb:hover { background: var(--primary-700); }
@media (max-width: 480px) { .chat__cb { padding: 6px 10px; font-size: 11px; } }

/* ===================== LEAD CAPTURE DIALOG ===================== */
.lead {
  border: none; border-radius: var(--r-lg); padding: 0; margin: auto;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
  color: var(--ink-2); background: var(--surface);
}
.lead::backdrop { background: rgba(14,27,46,.5); backdrop-filter: blur(3px); }
.lead__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-3); cursor: pointer; font-size: .9rem; line-height: 1;
}
.lead__close:hover { background: var(--line); color: var(--ink); }
.lead__head { padding: var(--s-6) var(--s-6) var(--s-3); }
.lead__head h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 6px; font-size: 1.3rem; }
.lead__sub { margin: 0; color: var(--ink-3); font-size: .92rem; line-height: 1.5; }
.lead__list { list-style: none; margin: 0; padding: 0 var(--s-6); }
.lead__list li { padding: 8px 12px; margin-bottom: 6px; background: var(--surface-2); border-radius: 10px; font-size: .85rem; color: var(--ink); }
.lead__list li span { color: var(--ink-3); }
.lead__list .lead__more { background: transparent; color: var(--ink-3); padding: 2px 12px; }
.lead__prog { margin: 0 var(--s-6); padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.lead__prog strong { display: block; color: var(--ink); font-size: .95rem; }
.lead__prog span { display: block; color: var(--ink-3); font-size: .82rem; margin-top: 2px; }
.lead__form { padding: var(--s-4) var(--s-6) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.lead__field {
  width: 100%; box-sizing: border-box; padding: 13px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.lead__field::placeholder { color: var(--ink-4); }
.lead__field:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
.lead__err { margin: 0; color: #C0392B; font-size: .85rem; }
.lead__privacy { margin: 4px 0 0; text-align: center; color: var(--ink-4); font-size: .78rem; }
.lead__consent { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: var(--ink-3); line-height: 1.4; cursor: pointer; }
.lead__consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.lead__consent a { color: var(--primary); font-weight: 600; }
.lead__done { padding: var(--s-8) var(--s-6) var(--s-6); text-align: center; display: flex; flex-direction: column; gap: var(--s-3); }
.lead__done h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
.lead__done p { margin: 0 0 var(--s-2); color: var(--ink-3); font-size: .92rem; line-height: 1.5; }
.lead__tick {
  width: 56px; height: 56px; margin: 0 auto var(--s-2); border-radius: 50%;
  background: var(--safe-tint); color: var(--safe); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
}
@media (max-width: 480px) { .lead { max-width: 94vw; } }

/* =====================================================================
   PREMIUM POLISH · additive refinements (scoped; no new generic names)
   Layered last so it intentionally refines the base components above.
   ===================================================================== */

/* — branded logo mark (replaces the old glyph) — */
.brand__mark { width: 30px; height: 30px; display: inline-grid; place-items: center; font-size: 0; line-height: 0; }
.brand__mark svg { width: 30px; height: 30px; filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--primary) 32%, transparent)); }
.brand__name { letter-spacing: -.015em; }

/* — a whisper of fresh mint→indigo depth behind the whole page — */
body {
  background:
    radial-gradient(85% 45% at 18% -6%, color-mix(in srgb, var(--safe) 12%, transparent), transparent 60%),
    radial-gradient(95% 55% at 88% -8%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

/* — primary & WhatsApp CTAs: gradient + tinted glow — */
.btn--primary {
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--primary) 84%, #fff), var(--primary) 52%, var(--primary-700));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 24%, transparent);
}
.btn--primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 32%, transparent); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--wa { box-shadow: 0 6px 16px color-mix(in srgb, var(--wa) 24%, transparent); }
.btn--wa:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--wa) 30%, transparent); transform: translateY(-1px); }

/* ============================================================
   PREMIUM PROGRAM CARD — band-coded ribbon, hero fit ring,
   inset facts panel, tinted price footer. Supersedes the base
   .card padding/gap from the top of this file.
   ============================================================ */
.card {
  padding: 0; gap: 0; overflow: hidden; border-radius: 20px; height: 100%;
  box-shadow: 0 1px 2px rgba(16,27,46,.05), 0 10px 26px -18px rgba(16,27,46,.22);
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--bandsolid, #8B8BF8) 40%, var(--line));
  box-shadow: 0 1px 2px rgba(16,27,46,.05), 0 28px 56px -26px color-mix(in srgb, var(--bandsolid, #8B8BF8) 55%, transparent);
}
/* band-colored top ribbon — scan match strength across the whole grid */
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bandc, #8B8BF8); z-index: 2; }
.card[data-band="Safe"]   { --bandc: linear-gradient(90deg,#0FA06A,#46d39a); --bandsolid:#0FA06A; }
.card[data-band="Strong"] { --bandc: linear-gradient(90deg,#3563C9,#7C8CF0); --bandsolid:#3563C9; }
.card[data-band="Match"]  { --bandc: linear-gradient(90deg,#8B8BF8,#b9b9ff); --bandsolid:#8B8BF8; }
.card[data-band="Reach"]  { --bandc: linear-gradient(90deg,#E68A17,#fbbf24); --bandsolid:#E68A17; }

.card__top { padding: 20px 18px 0; gap: 13px; }
.card__logo { width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 5px 12px -5px rgba(16,27,46,.3); }
.card__logoimg { padding: 5px; }
.card__band { padding: 3px 10px; font-size: .62rem; border: 1px solid color-mix(in srgb, var(--bandsolid, #8B8BF8) 25%, transparent); }
.card__title { font-size: 1.13rem; margin-top: 7px; letter-spacing: -.015em; }
.card__inst { margin-top: 3px; }

/* signature fit ring — larger, gradient stroke, soft colored glow */
.fitring { width: 66px; height: 66px; filter: drop-shadow(0 6px 15px color-mix(in srgb, var(--fit) 40%, transparent)); }
.fitring::before { inset: 6px; }
.fitring__val { font-size: 1.12rem; }
.fitring__pct { font-size: .5rem; letter-spacing: .05em; }

.flags { padding: 0 18px; margin-top: 15px; gap: 7px; }
.reasons { padding: 0 18px; margin-top: 11px; gap: 7px; }
.reason { background: #fff; border-color: var(--line); }

/* facts in a soft inset panel (bottom margin gives breathing room before the footer) */
.dgrid { margin: 16px 18px 18px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; gap: 12px 16px; }
.dgrid dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.dgrid dd { font-size: .9rem; }

/* price footer — tinted hero zone, bold INR total, confident CTA */
/* footer stacks (price row, then full-width action row) so the buttons can never
   overflow a narrow card edge */
.card__foot {
  margin-top: auto; padding: 15px 18px;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bandsolid, #8B8BF8) 5%, transparent), color-mix(in srgb, var(--bandsolid, #8B8BF8) 9%, transparent));
  border-top: 1px solid color-mix(in srgb, var(--bandsolid, #8B8BF8) 16%, var(--line));
}
.card__price { display: flex; align-items: baseline; gap: 8px; flex: none; flex-wrap: wrap; }
.card__price .fee__label { text-transform: uppercase; letter-spacing: .07em; font-size: .6rem; font-weight: 800; color: var(--ink-4); }
.card__price .fee__total { font-size: 1.4rem; letter-spacing: -.02em; }
.card__foot .card__actions { width: 100%; gap: 8px; flex: none; }
.card__foot .card__actions .btn--primary { flex: 1; font-weight: 700; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
/* every footer button shares the exact same height + radius */
.card__foot .card__actions .btn--primary,
.card__foot .card__actions .iconbtn { height: 46px; min-height: 46px; padding-block: 0; border-radius: 13px; }
.card__foot .card__actions .iconbtn { width: 46px; flex: none; }

/* — filter rows: clear hover + a real "selected" state — */
.opt { padding-inline: 8px; margin-inline: -8px; transition: background var(--dur-1) ease, color var(--dur-1) ease; }
.opt:hover { background: var(--surface-2); }
.opt:has(input:checked) { background: var(--primary-tint); }
.opt:has(input:checked) > span:first-of-type { color: var(--primary); font-weight: 600; }

/* — icon buttons & chips: springy micro-lift — */
.iconbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.fchip:hover, .chip:hover { transform: translateY(-1px); }

/* — refined thin scrollbars (rail, chat, search dropdown) — */
.rail__form, .chat__log, .progsearch__drop { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail__form::-webkit-scrollbar, .chat__log::-webkit-scrollbar, .progsearch__drop::-webkit-scrollbar { width: 8px; height: 8px; }
.rail__form::-webkit-scrollbar-thumb, .chat__log::-webkit-scrollbar-thumb, .progsearch__drop::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 999px; border: 2px solid var(--surface);
}

/* — keep it calm for reduced-motion users — */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn--primary:hover, .btn--wa:hover, .iconbtn:hover, .fchip:hover, .chip:hover { transform: none; }
}

/* =====================================================================
   SITE FOOTER (shared by finder + program detail)
   ===================================================================== */
/* premium dark footer */
.site-foot { margin-top: var(--s-16); background: var(--ink); color: #aab2c9; position: relative; overflow: clip; }
.site-foot a { color: #aab2c9; }
.site-foot__mesh { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background: radial-gradient(620px 380px at 12% 0%, rgba(91,91,245,.22), transparent 60%),
              radial-gradient(560px 360px at 92% 12%, rgba(16,201,142,.14), transparent 58%); }
.site-foot > .wrap { position: relative; z-index: 1; }

/* CTA band */
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding-block: 44px; border-bottom: 1px solid rgba(255,255,255,.09); }
.foot-cta h3 { color: #fff; font-size: clamp(1.45rem, 1.1rem+1.5vw, 2.1rem); letter-spacing: -.025em; line-height: 1.12; }
.foot-cta h3 .hl { color: var(--safe); }
.foot-cta p { margin-top: 8px; color: #8a93b6; font-size: 1rem; }
.foot-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-cta .btn--glass { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.foot-cta .btn--glass:hover { background: rgba(255,255,255,.16); }

/* main grid */
.foot-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 44px; padding-block: 54px 40px; }
.foot-brand__top { display: flex; align-items: center; gap: 10px; }
.foot-brand__top .brand__mark { width: 32px; height: 32px; display: inline-grid; place-items: center; }
.foot-brand__top .brand__mark svg { width: 32px; height: 32px; }
.foot-brand__top .brand__name { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; }
.foot-tag { margin-top: 14px; font-size: .92rem; line-height: 1.65; max-width: 320px; }
.foot-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.foot-contact a, .foot-contact span { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.foot-contact svg { width: 16px; height: 16px; color: var(--safe); flex: none; margin-top: 2px; }
.foot-contact a:hover { color: #fff; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.foot-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2); }
.foot-social a:hover { transform: translateY(-3px); }
.foot-social svg { width: 19px; height: 19px; color: #eef1fa; display: block; }
.foot-social a:hover svg { color: #fff; }
/* brand-coloured hovers so the icons feel intentional */
.foot-social a:nth-child(1):hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 10px 22px -8px rgba(24,119,242,.7); }      /* Facebook */
.foot-social a:nth-child(2):hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; box-shadow: 0 10px 22px -8px rgba(220,39,67,.7); } /* Instagram */
.foot-social a:nth-child(3):hover { background: #000; border-color: rgba(255,255,255,.4); box-shadow: 0 10px 22px -8px rgba(0,0,0,.8); } /* X */
.foot-social a:nth-child(4):hover { background: #0A66C2; border-color: #0A66C2; box-shadow: 0 10px 22px -8px rgba(10,102,194,.7); }     /* LinkedIn */
.foot-social a:nth-child(5):hover { background: #FF0000; border-color: #FF0000; box-shadow: 0 10px 22px -8px rgba(255,0,0,.6); }        /* YouTube */
.foot-social a:nth-child(6):hover { background: var(--wa); border-color: var(--wa); box-shadow: 0 10px 22px -8px rgba(37,211,102,.7); }  /* WhatsApp */
.foot-col h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 15px; }
.foot-col a { display: block; padding: 5px 0; font-size: .9rem; transition: color var(--dur-1), padding var(--dur-1); }
.foot-col a:hover { color: #fff; padding-left: 4px; }
.foot-col__flag { display: inline-block; width: 18px; margin-right: 7px; }

/* trust badges */
.foot-badges { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.09); }
.foot-badge { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 9px 14px; font-size: .84rem; font-weight: 600; color: #cdd3ea; }
.foot-badge b { color: #fff; }
.foot-badge svg { width: 17px; height: 17px; flex: none; }
.foot-badge .star { color: #ffd05a; }
.foot-badge .shield { color: var(--safe); }
.foot-badge .gov { color: #8fa2ff; }

/* big brand wordmark flourish */
.foot-word { font-family: var(--font-display); font-weight: 800; line-height: .92; text-align: center; white-space: nowrap;
  font-size: min(calc(11vw - 4px), 135px); letter-spacing: -.04em; padding-top: 30px; padding-bottom: .22em; margin-bottom: 0;
  color: transparent; user-select: none; pointer-events: none;
  /* logo-coloured spotlight (blue + amber) follows the cursor (--mx/--my).
     padding-bottom keeps the background-clip area below the baseline so the y/g descenders aren't cut. */
  background:
    radial-gradient(320px circle at var(--mx, 50%) var(--my, 60%), rgba(86,128,255,.95), rgba(251,188,36,.62) 38%, rgba(255,255,255,0) 68%),
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.09));
  -webkit-background-clip: text; background-clip: text; transition: opacity var(--dur-3); }

/* bottom bar */
.foot-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  padding-block: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: .84rem; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a:hover { color: #fff; }
.foot-disclaimer { padding-bottom: 26px; font-size: .76rem; color: #6f779a; line-height: 1.6; }

@media (max-width: 1080px) { .foot-main { grid-template-columns: 1fr 1fr 1fr; gap: 36px 28px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .foot-main { grid-template-columns: 1fr 1fr; } .foot-cta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 460px) { .foot-main { grid-template-columns: 1fr; } }

/* =====================================================================
   PROGRAM DETAIL PAGE
   ===================================================================== */
.pd { max-width: 1080px; margin-inline: auto; padding-block: clamp(1.25rem, 3vw, 2.25rem) 0; }
.pd__back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; font-size: var(--t-sm); margin-bottom: var(--s-5); }
.pd__back:hover { color: var(--primary); }
.pd__head { display: flex; align-items: flex-start; gap: var(--s-4); flex-wrap: wrap; }
.pd__logo { width: 64px; height: 64px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); flex: none; overflow: hidden; position: relative; display: grid; place-items: center; }
.pd__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pd__logo span { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 1.3rem; }
.pd__headmeta { flex: 1; min-width: 240px; }
.pd__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.02em; color: var(--ink); line-height: 1.12; }
.pd__inst { margin-top: 6px; color: var(--ink-2); font-size: var(--t-base); font-weight: 600; }
.pd__loc { margin-top: 4px; color: var(--ink-3); font-size: var(--t-sm); display: inline-flex; align-items: center; gap: 6px; }
.pd__rating { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--reach); font-weight: 700; }
.pd__benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.pd__benefit { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--safe); background: var(--safe-tint); border-radius: var(--r-pill); padding: 5px 12px; }
.pd__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-3); margin-top: var(--s-7); }
.pd__fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); box-shadow: var(--shadow-xs); }
.pd__fact dt { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); font-weight: 700; }
.pd__fact dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pd__fact dd small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.pd__intakes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.pd__intake { font-size: var(--t-xs); font-weight: 600; color: var(--safe); background: var(--safe-tint); border-radius: var(--r-sm); padding: 3px 9px; }
.pd__cta { margin-top: var(--s-8); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-5); align-items: stretch; }
@media (max-width: 720px) { .pd__cta { grid-template-columns: 1fr; } }
.pd__lead { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-sm); }
.pd__lead h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.pd__lead p { color: var(--ink-3); font-size: var(--t-sm); margin-top: 4px; }
.pd__lead .lead__field { width: 100%; margin-top: var(--s-3); padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: var(--t-base); background: var(--surface-2); }
.pd__lead .lead__field:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.pd__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pd__aside { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); }
.pd__aside h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.pd__aside p { color: var(--ink-3); font-size: var(--t-sm); line-height: 1.5; }
.pd__notfound { text-align: center; max-width: 520px; margin: 0 auto; padding: var(--s-12, 4rem) 0; }
.pd__notfound h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.pd__notfound p { color: var(--ink-3); margin-top: 8px; }

/* ---- program detail v2: two-column + content sections ---- */
.pd__layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: var(--s-7); margin-top: var(--s-7); align-items: start; }
.pd__main { min-width: 0; }
.pd__rail { position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; display: flex; flex-direction: column; gap: var(--s-4); }
@media (max-width: 860px) { .pd__layout { grid-template-columns: 1fr; } .pd__rail { position: static; } }

.pd__sec { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.pd__sectitle { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd__sectitle small { font-family: var(--font-body); font-weight: 500; font-size: var(--t-xs); color: var(--ink-4); letter-spacing: 0; }
.pd__note { margin-top: var(--s-3);margin-bottom: var(--s-3); color: var(--ink-4); font-size: var(--t-xs); line-height: 1.55; }
.pd__note strong { color: var(--ink-2); }

.pd__costs { margin-top: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pd__costrow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.pd__costrow:last-child { border-bottom: 0; }
.pd__costrow span { color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; }
.pd__costrow b { font-family: var(--font-display); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pd__costrow b small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--ink-3); font-size: var(--t-xs); }
.pd__costrow--total { background: var(--safe-tint); }
.pd__costrow--total span { color: var(--ink); font-weight: 700; }
.pd__costrow--total b { color: var(--safe); font-size: 1.15rem; }

.pd__elig, .pd__eng { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.pd__eligitem { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.pd__eligitem dt { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); font-weight: 700; }
.pd__eligitem dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; }

.pd__engcard { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); background: var(--surface); }
.pd__engname { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); font-weight: 800; }
.pd__engover { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 1.6rem; line-height: 1; margin-top: 4px; }
.pd__engover small { font-family: var(--font-body); font-size: var(--t-xs); color: var(--ink-4); font-weight: 600; }
.pd__engmods { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--ink-3); font-size: var(--t-xs); font-weight: 700; }

.pd__apply { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-md); }
.pd__apply-fee { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.pd__big { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.5rem; line-height: 1.1; }
.pd__big small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.pd__apply-spd { font-size: var(--t-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--safe); background: var(--safe-tint); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.pd__apply .pd__lead { background: transparent; border: 0; box-shadow: none; padding: 0; }
.pd__apply .pd__lead h3 { font-size: 1.05rem; }

.pd__trust { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.pd__trust h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem; }
.pd__trustnums { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.pd__trustnum { flex: 1 1 80px; }
.pd__trustnum b { display: block; font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.pd__trustnum span { color: var(--ink-3); font-size: var(--t-2xs); font-weight: 600; }
.pd__trust p { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--t-xs); line-height: 1.55; }

/* ---- detail v3: content sections, expert, end CTA, mobile bar ---- */
.pd__sectitle { margin-bottom: var(--s-2); margin-top: var(--s-4); }
.pd__prose { color: var(--ink-2); font-size: var(--t-base); line-height: 1.65; margin-top: var(--s-2); }

.pd__docs { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 8px var(--s-5); }
.pd__docs li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.pd__docs li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--safe); font-weight: 800; }

.pd__careers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.pd__career { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; }

.pd__expert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.pd__expert-av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, #8B8BF8, var(--primary)); font-size: 1rem; }
.pd__expert-meta { min-width: 0; }
.pd__expert-meta strong { display: block; font-family: var(--font-display); color: var(--ink); font-weight: 700; font-size: 1rem; }
.pd__expert-meta span { color: var(--ink-3); font-size: var(--t-xs); }
.pd__expert .btn { width: 100%; }

.pd__endcta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.pd__mobilebar { display: none; }
@media (max-width: 860px) {
  .pd__mobilebar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line-2);
    box-shadow: 0 -6px 20px rgba(14,27,46,.10);
  }
  .pd__mobilebar-fee { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
  .pd__mobilebar-fee strong { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
  .pd__mobilebar-fee span { color: var(--ink-4); font-size: var(--t-2xs); }
  .pd-page { padding-bottom: 76px; }
}

/* rich editorial content (admin-authored HTML) */
.pd__rte { color: var(--ink-2); font-size: var(--t-base); line-height: 1.7; margin-top: var(--s-2); }
.pd__rte > *:first-child { margin-top: 0; }
.pd__rte p { margin: 0 0 var(--s-3); }
.pd__rte h3, .pd__rte h4, .pd__rte h5 { font-family: var(--font-display); color: var(--ink); font-weight: 700; line-height: 1.25; margin: var(--s-5) 0 var(--s-2); }
.pd__rte h3 { font-size: 1.1rem; } .pd__rte h4 { font-size: 1rem; } .pd__rte h5 { font-size: .95rem; }
.pd__rte ul, .pd__rte ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
.pd__rte li { margin: 4px 0; }
.pd__rte a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.pd__rte strong, .pd__rte b { color: var(--ink); font-weight: 700; }
.pd__rte table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0; font-size: var(--t-sm); }
.pd__rte th, .pd__rte td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.pd__rte th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.pd__rte blockquote { margin: var(--s-3) 0; padding: 8px 14px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--ink-2); }

.pd__video { position: relative; margin-top: var(--s-4); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.pd__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pd__expert-img { object-fit: cover; padding: 0; }

/* =====================================================================
   PROGRAM DETAIL — DESIGN POLISH v4 (visual refinement + responsiveness)
   Later rules intentionally refine the base .pd* styles above.
   ===================================================================== */
body.pd-page {
  background:
    radial-gradient(1100px 460px at 50% -180px, color-mix(in srgb, var(--primary) 8%, var(--bg)), transparent 70%),
    var(--bg);
}
.pd { max-width: 1120px; padding-block: clamp(1rem, 2.5vw, 2rem) 0; }
.pd__back { transition: color var(--dur-1, .15s) var(--ease, ease); }

/* header — title block; sits beside the price card */
.pd__head { align-items: flex-start; gap: clamp(var(--s-3), 2vw, var(--s-4)); }
.pd__logo { width: 68px; height: 68px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(14,27,46,.10), inset 0 0 0 1px var(--line); }
.pd__logo span { font-size: 1.4rem; background: linear-gradient(135deg, #8B8BF8, var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pd__title { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.12; }
.pd__inst { font-size: 1rem; margin-top: 5px; }
.pd__loc { margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.pd__rating { margin-left: 0; background: var(--surface-2); padding: 2px 10px; border-radius: var(--r-pill); }
.pd__benefits { margin-top: var(--s-4); padding-bottom: clamp(var(--s-5), 3vw, var(--s-6)); border-bottom: 1px solid var(--line); }
.pd__benefit { padding: 6px 13px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--safe) 22%, transparent); }
.pd__benefits + .pd__grid { margin-top: var(--s-5); }

/* section markers + rhythm */
.pd__layout { gap: clamp(var(--s-5), 3vw, var(--s-8)); }
.pd__main > .pd__grid:first-child { margin-top: 0; }
.pd__sec { margin-top: clamp(var(--s-7), 4vw, var(--s-8)); padding-top: clamp(var(--s-6), 3.5vw, var(--s-7)); }
.pd__sectitle { position: relative; padding-left: 15px; }
.pd__sectitle::before { content: ''; position: absolute; left: 0; top: .16em; bottom: .16em; width: 4px; border-radius: 4px; background: linear-gradient(var(--primary), color-mix(in srgb, var(--primary) 45%, var(--safe))); }

/* cards: depth + hover */
.pd__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pd__fact { padding: var(--s-4); display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 86px; }
.pd__fact dt { margin: 0; }
.pd__fact dd { margin: 0; line-height: 1.25; }
.pd__elig, .pd__eng { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.pd__fact, .pd__eligitem, .pd__engcard { border-radius: 16px; transition: transform var(--dur-1, .15s) var(--ease, ease), box-shadow var(--dur-1, .15s) var(--ease, ease), border-color var(--dur-1, .15s) var(--ease, ease); }
.pd__fact:hover, .pd__engcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 26%, var(--line)); }
.pd__costs { border-radius: 16px; box-shadow: var(--shadow-xs); }
.pd__career { transition: border-color var(--dur-1, .15s) var(--ease, ease), color var(--dur-1, .15s) var(--ease, ease); }
.pd__career:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); color: var(--primary); }

/* apply rail: premium sticky panel */
.pd__apply { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 14px 40px -18px rgba(14,27,46,.30), var(--shadow-sm); position: relative; overflow: hidden; }
.pd__apply::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--safe)); }
.pd__big { font-size: 1.7rem; }
.pd__apply .lead__field { border-radius: 12px; padding: .78rem .95rem; transition: border-color var(--dur-1, .15s) var(--ease, ease), box-shadow var(--dur-1, .15s) var(--ease, ease); }
.pd__apply .lead__field:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.pd__expert, .pd__trust { border-radius: 18px; }
.pd__apply .btn:hover, .pd__expert .btn:hover { filter: brightness(.97); }

/* closing CTA — a contained, designed card (not a full-bleed band) */
.pd__endcta { margin: clamp(2.75rem, 6vw, 4.5rem) 0 0; background: none; border: 0; }
.pd__endcta-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(var(--s-5), 3vw, var(--s-7)); flex-wrap: wrap;
  background: linear-gradient(135deg, var(--ink) 0%, color-mix(in srgb, var(--primary) 58%, var(--ink)) 100%);
  border-radius: var(--r-xl, 24px); padding: clamp(var(--s-6), 4vw, var(--s-8));
  box-shadow: 0 26px 64px -30px rgba(91,91,245,.55);
}
.pd__endcta-card::before { content: ''; position: absolute; inset: -55% -18% auto auto; width: 360px; height: 360px; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.pd__endcta-txt { position: relative; min-width: 240px; flex: 1 1 360px; }
.pd__endcta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.65rem); color: #fff; letter-spacing: -.01em; }
.pd__endcta p { color: color-mix(in srgb, #fff 80%, transparent); font-size: var(--t-sm); line-height: 1.55; margin-top: 6px; max-width: 560px; }
.pd__endcta p strong { color: #fff; }
.pd__endcta-btns { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.pd__endcta .btn--primary { background: #fff; color: var(--primary); }
.pd__endcta .btn--primary:hover { background: color-mix(in srgb, #fff 90%, var(--primary)); }

/* clear divider + breathing room before the first content section */
.pd__sec--first { margin-top: clamp(var(--s-6), 4vw, var(--s-8)); }

/* collapsible program description */
.pd__desc { position: relative; }
.pd__desc--clamped { max-height: 260px; overflow: hidden; }
.pd__desc--clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.pd__more { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--primary); font-family: var(--font-body); font-weight: 700; font-size: var(--t-sm); cursor: pointer; }
.pd__more:hover { text-decoration: underline; }

/* accessibility: visible keyboard focus */
.pd a:focus-visible, .pd .btn:focus-visible, .pd__apply .lead__field:focus-visible,
.pd__mobilebar .btn:focus-visible, .pd__endcta .btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px;
}

/* responsive */
@media (max-width: 1024px) { .pd__layout { grid-template-columns: minmax(0,1fr) 300px; } }
@media (max-width: 560px) {
  .pd { padding-inline: 2px; }
  .pd__logo { width: 60px; height: 60px; border-radius: 14px; }
  .pd__logo span { font-size: 1.2rem; }
  .pd__title { font-size: 1.5rem; }
  .pd__grid, .pd__elig, .pd__eng { grid-template-columns: repeat(2, 1fr); }
  .pd__docs { grid-template-columns: 1fr; }
  .pd__rte { font-size: var(--t-sm); }
  .pd__rte table { display: block; overflow-x: auto; }
  .pd__endcta-btns { width: 100%; }
  .pd__endcta-btns .btn { flex: 1; }
}
@media (max-width: 380px) { .pd__grid, .pd__elig, .pd__eng { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .pd__fact, .pd__engcard, .pd__career, .pd__back, .pd__apply .lead__field { transition: none; }
  .pd__fact:hover, .pd__engcard:hover { transform: none; }
}

/* =====================================================================
   LIGHTWEIGHT VISUAL POLISH (zero extra requests, GPU-cheap)
   ===================================================================== */
/* subtle ink→blue gradient on the hero headline — guarded so it never
   renders invisible on browsers without background-clip:text */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title {
    background: linear-gradient(180deg, var(--ink) 32%, color-mix(in srgb, var(--ink) 52%, var(--primary)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
/* image placeholders reserve space so cards don't reflow as logos load */
.card__logo, .pd__logo { background: var(--surface-2); }

/* =====================================================================
   LEAD-FRIENDLY LANDING  — trust strip · how-it-works · social proof
   (Fresh Optimist). All hidden once the visitor enters results mode.
   ===================================================================== */

/* --- hero trust strip --- */
.trustbar { list-style: none; margin: var(--s-7) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) 0; }
.trustbar__item { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.05; padding: 0 clamp(var(--s-4), 3vw, var(--s-8)); }
.trustbar__item + .trustbar__item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 30px; background: var(--line-2); }
.trustbar__item strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--ink); letter-spacing: -.01em; }
.trustbar__item span { margin-top: 4px; font-size: var(--t-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
@media (max-width: 420px) { .trustbar__item { padding-inline: var(--s-4); } .trustbar__item strong { font-size: 1.2rem; } }

/* --- landing wrapper --- */
body.results-mode .land { display: none; }
.land__head { text-align: center; max-width: 40ch; margin: 0 auto var(--s-8); }
.land__head .eyebrow { color: var(--primary); }
.land__title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h2); letter-spacing: -.02em; margin-top: var(--s-2); }

/* --- how it works --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--shadow-xs); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2), border-color var(--dur-2); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 22%, var(--line)); }
.step__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--safe), var(--primary)); box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }
.step__h { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); color: var(--ink); margin-top: var(--s-4); }
.step__p { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--t-sm); line-height: 1.55; }

/* --- social proof --- */
.proof { margin-top: clamp(var(--s-8), 5vw, var(--s-12)); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--s-5), 4vw, var(--s-10)); align-items: center; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }
.proof__title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h3); color: var(--ink); letter-spacing: -.01em; }
.proof__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.proof__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: var(--t-base); font-weight: 500; }
.proof__list svg { flex: none; margin-top: 2px; color: var(--safe-700, #0BB37E); }
.quote { margin: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--safe) 9%, var(--surface)), color-mix(in srgb, var(--primary) 8%, var(--surface))); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(var(--s-5), 4vw, var(--s-8)); box-shadow: var(--shadow-sm); }
.quote__txt { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); line-height: 1.45; color: var(--ink); letter-spacing: -.01em; }
.quote__by { display: flex; align-items: center; gap: 10px; margin-top: var(--s-5); font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); }
.quote__av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--safe), var(--primary)); }

/* --- landing closing CTA --- */
.land__cta { margin-top: clamp(var(--s-8), 5vw, var(--s-12)); display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.land__ctabtn { font-size: var(--t-base); padding-inline: var(--s-8); }
.land__ctanote { font-size: var(--t-xs); color: var(--ink-4); font-weight: 600; }

/* =====================================================================
   PREMIUM TRUST REDESIGN — rating · institutions · features · reviews · CTA
   ===================================================================== */

/* hero star-rating row */
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s-5); flex-wrap: wrap; justify-content: center; }
.rating__stars { display: inline-flex; gap: 2px; }
.rating__stars svg { fill: #F5A623; }
.rating__txt { font-size: var(--t-sm); color: var(--ink-3); }
.rating__txt strong { color: var(--ink); font-weight: 700; }

/* hero trust strip — even, contained, premium */
.trustbar {
  margin: var(--s-4) auto 0; padding: var(--s-4) var(--s-5); list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2);
  width: min(640px, 100%); background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  backdrop-filter: blur(6px);
}
.trustbar__item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 2px var(--s-2); }
.trustbar__item + .trustbar__item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 26px; background: var(--line); }
.trustbar__item strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, .9rem + .6vw, 1.4rem); color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }
.trustbar__item span { margin-top: 4px; font-size: var(--t-2xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); text-align: center; }
@media (max-width: 520px) {
  .trustbar { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-2); }
  .trustbar__item:nth-child(odd)::before { display: none; }
}

/* institutions trust band */
.instband { text-align: center; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(var(--s-5), 3vw, var(--s-7)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.instband__lbl { font-size: var(--t-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.instband__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4) clamp(var(--s-5), 4vw, var(--s-10)); margin-top: var(--s-4); }
.instchip { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); color: var(--ink-2); display: inline-flex; align-items: center; gap: 9px; }

/* section heads (shared) */
.sec__head { text-align: center; max-width: 54ch; margin: clamp(3rem, 6vw, 5rem) auto var(--s-8); }
.sec__head .eyebrow { color: var(--primary); }
.sec__title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h2); letter-spacing: -.02em; margin-top: var(--s-2); }
.sec__sub { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--t-lg); line-height: 1.55; }

/* features grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-xs); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2), border-color var(--dur-2); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 20%, var(--line)); }
.feature__ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.feature__ic--mint { background: var(--safe-tint); color: var(--safe-700, #0BB37E); }
.feature__ic--indigo { background: var(--primary-tint); color: var(--primary); }
.feature__h { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); color: var(--ink); margin-top: var(--s-4); line-height: 1.25; }
.feature__p { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--t-sm); line-height: 1.55; }

/* testimonial wall */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 820px) { .tgrid { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; } }
.tcard { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tcard__stars { color: #F5A623; letter-spacing: 3px; font-size: 1rem; }
.tcard__quote { margin: var(--s-3) 0 0; padding: 0; border: 0; color: var(--ink-2); font-size: var(--t-base); line-height: 1.6; }
.tcard__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: var(--s-5); }
.tcard__av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; background: linear-gradient(135deg, var(--safe), var(--primary)); position: relative; overflow: hidden; }
.tcard__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard__meta { display: flex; flex-direction: column; line-height: 1.3; }
.tcard__meta strong { color: var(--ink); font-weight: 700; }
.tcard__meta span { color: var(--ink-4); font-size: var(--t-xs); }

/* final CTA band */
.ctaband { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-top: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--ink) 0%, color-mix(in srgb, var(--primary) 60%, var(--ink)) 100%);
  border-radius: var(--r-xl, 28px); padding: clamp(var(--s-6), 4vw, var(--s-10)); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--primary) 55%, transparent); }
.ctaband::before { content: ''; position: absolute; inset: -45% -12% auto auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--safe) 32%, transparent), transparent 65%); pointer-events: none; }
.ctaband__txt { position: relative; flex: 1 1 360px; min-width: 260px; }
.ctaband__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; letter-spacing: -.02em; }
.ctaband__p { margin-top: var(--s-2); color: color-mix(in srgb, #fff 82%, transparent); font-size: var(--t-base); line-height: 1.55; max-width: 52ch; }
.ctaband__act { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; flex: 0 0 auto; }
.ctaband .land__ctabtn { background: #fff; color: var(--primary); }
.ctaband .land__ctabtn:hover { background: color-mix(in srgb, #fff 90%, var(--primary)); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.ctaband .land__ctanote { color: color-mix(in srgb, #fff 70%, transparent); }
@media (max-width: 560px) { .ctaband__act, .ctaband .land__ctabtn { width: 100%; } .ctaband__act { align-items: stretch; } }

@media (prefers-reduced-motion: reduce) { .feature:hover { transform: none; } }

/* program-detail "Start your application" CTA + divider */
.pd__applybtn { margin-top: 6px; font-size: var(--t-base); padding-block: .8rem; }
.pd__applyor { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-4); font-size: var(--t-xs); font-weight: 600; }
.pd__applyor::before, .pd__applyor::after { content: ''; height: 1px; background: var(--line); flex: 1; }

/* =====================================================================
   COLLEGE SNAPSHOT CARD  (Maya's "tell me about <college>")
   ===================================================================== */
.msg--card { background: transparent; padding: 0; max-width: 100%; box-shadow: none; }
.cinst { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.cinst__head { display: flex; align-items: center; gap: var(--s-3); }
.cinst__head .card__logo { width: 50px; height: 50px; }
.cinst__id { min-width: 0; }
.cinst__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.2; }
.cinst__type { font-size: .8rem; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.cinst__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cinst__chip { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600;
  color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 9px; }
.cinst__chip svg { width: 14px; height: auto; }
.cinst__dli { font-size: .78rem; color: var(--ink-2); background: var(--safe-tint);
  border: 1px solid color-mix(in srgb, var(--safe) 30%, transparent); border-radius: var(--r-sm); padding: 6px 10px; }
.cinst__dli b { color: var(--safe-700); font-weight: 800; letter-spacing: .02em; margin-right: 4px; }
.cinst__dli small { color: var(--ink-3); }
.cinst__exc { font-size: .82rem; color: var(--ink-2); line-height: 1.5; margin: 0; }
.cinst__foot { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cinst__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: .82rem; font-weight: 700; border-radius: var(--r-pill);
  padding: 8px 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.cinst__btn:hover { background: var(--bg-2); }
.cinst__btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cinst__btn--primary:hover { background: var(--primary-700); color: #fff; }

/* =====================================================================
   INSTITUTE / COLLEGE PAGE  (institute.php)
   ===================================================================== */
.inst-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--surface)); }
.inst-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; }
.inst-hero__bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), var(--surface) 92%); }
.inst-hero__in { position: relative; padding: var(--s-5) var(--s-5) var(--s-6); }
.inst-back { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--ink-3); margin-bottom: var(--s-4); }
.inst-back:hover { color: var(--primary); }
.inst-hero__head { display: flex; align-items: flex-start; gap: var(--s-4); }
.inst-logo { width: 76px; height: 76px; flex: none; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.inst-logo__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem; color: var(--primary); background: var(--primary-tint); }
.inst-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.inst-hero__id { min-width: 0; }
.inst-hero__id h1 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); }
.inst-hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: 6px; }
.inst-tag { font-size: .78rem; font-weight: 700; color: var(--primary-700); background: var(--primary-tint); border-radius: var(--r-pill); padding: 3px 10px; }
.inst-hero__loc { font-size: .9rem; color: var(--ink-2); }
.inst-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.inst-chip { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 4px 11px; }
.inst-chip--star { color: var(--gold); border-color: var(--gold-tint); background: var(--gold-tint); }
.inst-chip--dli { color: var(--safe-700); background: var(--safe-tint); border-color: color-mix(in srgb, var(--safe) 30%, transparent); }
.inst-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.inst-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s-6); align-items: start; padding-block: var(--s-6) var(--s-12); }
.inst-main { min-width: 0; }
.inst-aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.inst-facts { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: var(--s-5); }
.inst-facts__h { font-size: 1rem; margin-bottom: var(--s-3); }
.inst-facts__list { margin: 0 0 var(--s-4); }
.inst-facts__list > div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 9px 0; border-bottom: 1px solid var(--line); }
.inst-facts__list > div:last-child { border-bottom: 0; }
.inst-facts__list dt { font-size: .82rem; color: var(--ink-3); font-weight: 600; flex: none; }
.inst-facts__list dd { font-size: .85rem; color: var(--ink); font-weight: 600; text-align: right; }
.inst-map { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin-bottom: var(--s-4); }
.inst-map iframe { display: block; width: 100%; height: 180px; border: 0; }
.inst-facts__cta { width: 100%; margin-top: var(--s-2); }

.inst-article { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.inst-article > :first-child { margin-top: 0; }
.inst-article h1, .inst-article h2, .inst-article h3, .inst-article h4 { font-family: var(--font-display); color: var(--ink); margin: var(--s-6) 0 var(--s-3); line-height: 1.25; }
.inst-article h1, .inst-article h2 { font-size: 1.4rem; } .inst-article h3 { font-size: 1.15rem; }
.inst-article p { margin: 0 0 var(--s-4); }
.inst-article ul, .inst-article ol { margin: 0 0 var(--s-4) 1.2rem; }
.inst-article li { margin-bottom: 6px; }
.inst-article a { color: var(--primary); text-decoration: underline; }
.inst-article img { border-radius: var(--r-md); margin: var(--s-4) 0; height: auto; max-width: 100%; }
.inst-article table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-4); font-size: .9rem; display: block; overflow-x: auto; }
.inst-article th, .inst-article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.inst-article th { background: var(--surface-2); color: var(--ink); }

@media (max-width: 860px) {
  .inst-body { grid-template-columns: 1fr; }
  .inst-aside { position: static; }
}

/* ---- open-intake On-shore / Off-shore breakdown (program page) ---- */
.pd__intloc{display:flex;align-items:center;gap:8px;margin-top:4px}
.pd__intloc:first-child{margin-top:0}
.pd__intbadge{flex:none;font-size:.66rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:2px 7px;border-radius:999px}
.pd__intbadge--off{background:var(--primary-tint);color:var(--primary-700)}
.pd__intbadge--on{background:var(--safe-tint);color:var(--safe-700)}

/* ---- rich content additions: images + responsive table scroll ---- */
.pd__rte img{max-width:100%;height:auto;border-radius:12px;margin:12px 0}
.pd__rte td,.pd__rte th{vertical-align:top}

/* =====================================================================
   ULTIMATE HEADER NAV — mega menu (mirrors applystudyvisa.com main menu)
   ===================================================================== */
.hdr__in { gap: var(--s-3); }
.hdr { overflow: visible; }

/* primary nav */
.nav { display: flex; align-items: center; gap: 1px; margin-left: var(--s-2); }
/* desktop: logo left · nav centred · actions right (balanced 3-column) */
@media (min-width: 981px) {
  .hdr__in > .brand { flex: 1 1 0; }
  .nav { margin-left: 0; flex: 0 0 auto; }
  .hdr__actions { margin-left: 0; flex: 1 1 0; justify-content: flex-end; }
}
.navItem { position: relative; }
.navLink {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .5rem .66rem; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: .925rem; line-height: 1;
  color: var(--ink-2); background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.navLink:hover { color: var(--primary); background: var(--primary-tint); }
.navLink__chev { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease); opacity: 1; color: var(--ink-3); }
.navItem--has:hover > .navLink .navLink__chev, .navItem.open > .navLink .navLink__chev { color: var(--primary); }
.navItem.open > .navLink .navLink__chev { transform: rotate(180deg); }
.navClose { display: none; }
/* "Search Program" — this app: highlighted */
.navLink--here { color: var(--primary); }
.navLink--here::after {
  content: ""; position: absolute; left: .66rem; right: .66rem; bottom: .28rem; height: 2px;
  background: var(--primary); border-radius: 2px; opacity: .55;
}

/* mega panel */
.mega {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--s-3); z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.985); transform-origin: top left;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.mega--end { left: auto; right: 0; transform-origin: top right; }
.navItem.open > .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .navItem--has:hover > .mega, .navItem--has:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
  .navItem--has:hover > .navLink, .navItem--has:focus-within > .navLink { color: var(--primary); background: var(--primary-tint); }
  .navItem--has:hover > .navLink .navLink__chev { transform: rotate(180deg); }
}

.megaHead { font-size: var(--t-2xs); font-weight: 800; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--ink-4); padding: 2px 8px 8px; }
.megaGrid { display: grid; gap: 2px; }
.mega--countries { width: 460px; }
.mega--countries .megaGrid { grid-template-columns: 1fr 1fr; }
.mega--services { width: 560px; }
.mega--services .megaGrid { grid-template-columns: 1fr 1fr; }
.mega--insts { width: 300px; }

.megaLink { display: flex; align-items: center; gap: 11px; padding: .58rem .7rem; border-radius: var(--r-md);
  color: var(--ink); font-weight: 600; font-size: .9rem; transition: background var(--dur-1) var(--ease); }
.megaLink:hover { background: var(--surface-2); color: var(--primary); }
.megaLink small { display: block; font-weight: 500; font-size: .76rem; color: var(--ink-3); margin-top: 1px; }
.megaLink__flag { width: 32px; height: 24px; flex: none; border-radius: 6px; display: grid; place-items: center;
  font-size: 1.1rem; line-height: 1; text-align: center; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-xs); overflow: hidden; }
.megaLink__flag > * { line-height: 1; }
.megaLink__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary); }
.megaLink__ic svg { width: 18px; height: 18px; }
.megaLink:hover .megaLink__ic { background: var(--primary); color: #fff; }
.mega__foot { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; }
.mega__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--primary); padding: .35rem .7rem; }

/* header right-side extras */
.hdr__tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--ink-2); padding: .5rem; border-radius: var(--r-pill); white-space: nowrap; }
.hdr__tel:hover { color: var(--primary); background: var(--primary-tint); }
.hdr__tel svg { width: 18px; height: 18px; color: var(--safe); }
.hdr__tel span { display: none; } /* desktop = icon only (number stays in drawer/footer + click-to-call) */
.hdr__pay { --b: var(--gold); }

/* hamburger */
.navToggle { display: none; width: 42px; height: 42px; flex: none; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: var(--r-sm); cursor: pointer; place-items: center; }
.navToggle span, .navToggle span::before, .navToggle span::after { content: ""; display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); }
.navToggle span { position: relative; }
.navToggle span::before { position: absolute; top: -6px; left: 0; } .navToggle span::after { position: absolute; top: 6px; left: 0; }
body.nav-open .navToggle span { background: transparent; }
body.nav-open .navToggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .navToggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* drawer-only CTAs (hidden on desktop) */
.navDrawerCtas { display: none; }
.navScrim { position: fixed; inset: 0; background: rgba(16,27,46,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity var(--dur-2), visibility var(--dur-2); z-index: 74; }
body.nav-open .navScrim { opacity: 1; visibility: visible; }

.btn--block { width: 100%; justify-content: center; }

/* hide profile chip when the desktop nav is showing (it returns on mobile) */
@media (min-width: 981px) { .hdr__profile { display: none; } }

/* ---- responsive: progressively shed right-side extras, then collapse to drawer ---- */
@media (max-width: 1240px) { .hdr__pay { display: none; } }                       /* Pay Here → drawer */
@media (max-width: 1120px) { .hdr__tel { display: none; } .hdr__ask span { display: none; } }
@media (max-width: 980px) {
  .navToggle { display: grid; }
  .hdr__tel { display: none; }
  .hdr__ask { display: none; }
  /* drop the blur so .hdr stops being the containing block that traps the fixed drawer */
  .hdr { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  /* while the drawer is open, lift the header's stacking context ABOVE the scrim,
     so the (child) drawer paints over its own scrim instead of being blurred by it */
  body.nav-open .hdr { z-index: 81; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(87vw, 380px);
    margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 14px) 18px 28px; background: var(--surface);
    box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 75;
    transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out);
  }
  body.nav-open .nav { transform: none; }
  .navClose { display: grid; position: absolute; top: 14px; right: 16px; width: 42px; height: 42px;
    border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); place-items: center; cursor: pointer; z-index: 3; }
  .navClose:hover { border-color: var(--primary); background: var(--primary-tint); }
  .navClose svg { width: 20px; height: 20px; color: var(--ink); }
  .navItem { border-bottom: 1px solid var(--line); }
  .navItem--has { position: static; }
  .navLink { width: 100%; justify-content: space-between; padding: .95rem .35rem; font-size: 1.04rem; border-radius: 0; }
  /* clearer "this expands" affordance: bigger, primary-coloured down-caret in a soft pill */
  .navItem--has > .navLink--btn .navLink__chev { width: 22px; height: 22px; opacity: 1; color: var(--primary);
    background: var(--primary-tint); border-radius: 50%; padding: 4px; box-sizing: border-box; }
  .navLink:hover { background: none; }
  .navLink--here::after { display: none; }
  /* accordion */
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    width: auto !important; padding: 0; max-height: 0; overflow: hidden; transition: max-height var(--dur-3) var(--ease); }
  .navItem.open > .mega { max-height: 720px; padding: 2px 0 10px; }
  .mega::before { display: none; }
  .mega--countries .megaGrid, .mega--services .megaGrid { grid-template-columns: 1fr; }
  .megaHead { display: none; }
  .megaLink { padding: .6rem .4rem; }
  .navDrawerCtas { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
  .navTel { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; color: var(--ink-2); padding: .6rem; }
  .navTel svg { width: 17px; height: 17px; color: var(--safe); }
}
@media (max-width: 560px) { .hdr__pay, .hdr__ask span { display: none; } }

/* =====================================================================
   HOMEPAGE — founder-led trust sections (licence · founder · success)
   ===================================================================== */
.grad { background: linear-gradient(110deg, var(--primary), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* govt-approved licence band */
.licence { display: grid; grid-template-columns: 1.55fr 1fr; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface); margin-top: var(--s-10); }
.licence__cert { display: flex; gap: 18px; padding: clamp(20px, 3vw, 34px);
  background: radial-gradient(720px 320px at 0% 0%, rgba(91,91,245,.08), transparent 70%); }
.licence__seal { width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-700)); box-shadow: 0 14px 32px -10px rgba(91,91,245,.55); }
.licence__seal svg { width: 30px; height: 30px; }
.licence__gov { display: inline-block; font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.licence__h { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); margin: 8px 0 0; color: var(--ink); }
.licence__p { color: var(--ink-2); font-size: var(--t-sm); margin-top: 8px; max-width: 48ch; line-height: 1.55; }
.licence__reg { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--safe-tint); border: 1px dashed var(--safe); }
.licence__reglbl { font-size: var(--t-xs); color: var(--safe-700); font-weight: 600; }
.licence__regno { font-family: var(--font-display); font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.licence__side { background: var(--ink); color: #cdd3ea; padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.licence__stat { display: flex; align-items: center; gap: 12px; }
.licence__stat strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.licence__stat span { font-size: var(--t-xs); color: #9aa3c4; }
.licence__stars { color: #ffd05a; letter-spacing: 1px; font-size: 1.1rem; flex: none; }
.licence__cic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(16,201,142,.18); color: var(--safe); flex: none; }
.licence__cic svg { width: 18px; height: 18px; }
.licence__media { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.licence__medialbl { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .1em; color: #8a93b6; font-weight: 700; }
.licence__logos { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.licence__logos span { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: #aeb6d4; }

/* founder personal-brand block */
.founder { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: var(--s-16); }
.founder__media { display: flex; justify-content: center; }
.founder__frame { position: relative; width: min(380px, 100%); border-radius: var(--r-xl); padding: 6px;
  background: linear-gradient(135deg, var(--primary), var(--safe)); box-shadow: var(--shadow-lg); }
.founder__fallback { position: absolute; inset: 6px; border-radius: 26px; display: grid; place-items: center; z-index: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 4rem; color: #fff; background: linear-gradient(135deg, #3563C9, #5E86E0); }
.founder__img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top center; border-radius: 26px; display: block; background: var(--surface-2); }
.founder__plate { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid #fff; border-radius: 16px; padding: 10px 13px; box-shadow: var(--shadow-md); }
.founder__pin { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-700)); }
.founder__platetxt strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; line-height: 1.15; }
.founder__platetxt small { color: var(--ink-3); font-size: .76rem; }
.founder__tick { width: 22px; height: 22px; margin-left: auto; color: var(--primary); flex: none; }
.founder__chip { position: absolute; z-index: 2; top: 16px; right: -10px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 13px; font-weight: 700; font-size: .8rem; color: var(--ink); box-shadow: var(--shadow-md); }
.founder__chip svg { width: 16px; height: 16px; color: var(--safe); }
.founder__quote { font-size: clamp(1.05rem, .95rem + .5vw, 1.28rem); line-height: 1.65; color: var(--ink-2); margin-top: 18px; font-weight: 500; }
.founder__quote strong { color: var(--ink); }
.founder__sign { margin-top: 14px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.founder__stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.founder__stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; }
.founder__stats span { font-size: var(--t-xs); color: var(--ink-3); }
.founder__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* visa-approval success stories */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--s-8); }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scard__top { display: flex; align-items: center; gap: 11px; }
.scard__av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.scard__who { min-width: 0; flex: 1; }
.scard__who strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: .96rem; }
.scard__who span { font-size: var(--t-xs); color: var(--ink-3); }
.scard__visa { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; color: var(--safe-700); background: var(--safe-tint); padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap; flex: none; }
.scard__visa svg { width: 13px; height: 13px; }
.scard__prog { margin-top: 14px; }
.scard__prog strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: .98rem; }
.scard__prog span { font-size: var(--t-sm); color: var(--ink-3); }
.scard__cmt { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; margin-top: 10px; flex: 1; }
.scard__stars { color: #E68A17; letter-spacing: 1px; margin-top: 14px; }

@media (max-width: 900px) {
  .licence { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__media { order: -1; }
  .sgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sgrid { grid-template-columns: 1fr; }
  .licence__cert { flex-direction: column; }
  .founder__chip { right: 10px; }
}
