/* home.css — styling unique to index.html. Mobile-first; desktop upgrades at the bottom.
   Concept: a flight journey. Dark sky hero with a globe + flight arc, tall destination cards, a route-map journey,
   alternating dark / pale sections so no part of the page feels empty.
   (.pill and .cta live in components.css — they are shared with About, Countries and the country pages.) */

/* ================= HERO (always fits the screen) =================
   Mobile: real hero content + one button; the tool opens as an app-style bottom sheet.
   Desktop: headline on the left, the tool inline on the right. */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; color: var(--color-text-inverse);
  min-height: calc(100svh - var(--announce-h) - var(--header-h) - var(--bottom-nav-h) - var(--safe-bottom) - var(--safe-top) - 96px);
  padding: var(--sp-5) 0 calc(var(--sp-6) + var(--sp-3)); border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.6px) 0 0 / 22px 22px, var(--grad-hero); }
.hero__globe { position: absolute; width: 560px; height: 560px; right: -250px; top: -140px; color: rgba(255,255,255,.17); pointer-events: none; }
.hero__arc { position: absolute; left: 0; bottom: 4%; width: 100%; max-width: 980px; height: auto; pointer-events: none; }
.hero__arc-path { fill: none; stroke: rgba(255,255,255,.38); stroke-width: 1.6; stroke-dasharray: 3 9; stroke-linecap: round; }
.hero__plane { fill: #fff; color: #fff; }
.hero__grid { position: relative; display: grid; gap: var(--sp-4); width: 100%; }
.hero h1 { margin-top: var(--sp-4); color: var(--color-text-inverse); font-size: clamp(1.9rem, min(1.25rem + 3vw, 7.4svh), 3.4rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--color-blue-pale); white-space: nowrap; }
.hero__lead { margin-top: var(--sp-3); color: var(--color-text-inverse-muted); font-size: var(--fs-lead); max-width: 40ch; }
.hero .btn-row { margin-top: var(--sp-5); }
.hero .btn-row .btn { flex: 1 1 100%; }
.hero__desktop-only { display: none; }
.hero__trust { flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-5); font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-inverse-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; stroke-width: 3; }

/* Hero buttons. WhatsApp button: a slightly larger logo that stays still on hover (only arrows nudge sideways) */
.hero .btn--wa .icon { width: 19px; height: 19px; }
.hero .btn--wa:hover .icon { transform: none; }
/* Phones: one quiet text link under the main button — a second route without a second button */
.hero__alt { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--sp-3); padding: .35rem 0; font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-inverse); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.hero__alt .icon { width: 15px; height: 15px; stroke-width: 2.6; transition: transform var(--speed) var(--ease); }
.hero__alt:active .icon { transform: translateX(3px); }

/* ================= HERO TOOL — quick planner =================
   One input per tab, an instant answer, one button to the full tools on mbbs-abroad-planner.html (MBBS Planner).
   The body has ONE fixed height so switching tabs never resizes the card. Mobile = bottom sheet you can swipe down. */
.tool-scrim { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(11,31,77,.55); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.tool-scrim.is-open { opacity: 1; visibility: visible; }
body.sheet-open { overflow: hidden; }
.tool { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-menu); max-height: 94svh; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-2) var(--sp-4) calc(var(--sp-5) + var(--safe-bottom)); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -20px 50px rgba(7,18,52,.35); transform: translateY(105%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s; }
.tool.is-open { transform: translateY(calc(var(--drag, 0px) - var(--kb, 0px))); visibility: visible; }
.tool:focus { outline: none; }
/* phone keypad up (js/pages/home.js sets --kb to its height): the sheet sits on top of the keypad, as a floating card */
.tool.kb-open { max-height: calc(var(--vvh, 100svh) - 12px); padding-bottom: var(--sp-4); border-radius: var(--radius-xl); }
.tool.kb-open .tool__grab, .tool.kb-open .tool__meta, .tool.kb-open .tool__note { display: none; }
.tool.kb-open .tool__head { margin-top: var(--sp-3); }
.tool.is-dragging { transition: none; }
.tool__grab { width: 100%; height: 22px; margin: 0 0 var(--sp-1); display: grid; place-items: center; cursor: grab; touch-action: none; }
.tool__grab::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--color-border); }
.tool__close { position: absolute; top: 14px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--color-wash); color: var(--color-text-muted); }
.tool__close .icon { width: 18px; height: 18px; }
.tool__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: 0 44px var(--sp-3) 0; }
.tool__kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); }
.tool__live { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); animation: pulse-dot 2s ease-in-out infinite; }
.tool__meta { font-size: .7rem; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
/* tabs: a white pill slides under the active tab (transform only) */
.tool__tabs { --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; background: var(--color-wash); border-radius: 14px; }
.tool__tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px; background: var(--color-surface); box-shadow: var(--shadow-sm); transform: translateX(calc(var(--i) * 100%)); transition: transform .3s var(--ease); }
.tool__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-muted); transition: color var(--speed) var(--ease); }
.tool__tab .icon { width: 16px; height: 16px; }
.tool__tab[aria-selected="true"] { color: var(--color-primary); }
.tool__tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.tool__body { height: var(--tool-body-h, 272px); margin-top: var(--sp-4); }
.tool__panel { display: flex; flex-direction: column; height: 100%; animation: tool-in .28s var(--ease); }
@keyframes tool-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tool .field { gap: .3rem; min-width: 0; }
.tool .field label, .qb__top label { font-size: var(--fs-xs); font-weight: 700; }
.tool select, .tool .field input { min-height: 44px; padding: .5rem .75rem; }
.tool__go { margin-top: auto; flex-shrink: 0; }
.tool__note { margin-top: var(--sp-3); font-size: .68rem; font-weight: 600; line-height: 1.4; color: var(--color-text-muted); text-align: center; }
.tool__note.is-off { visibility: hidden; }   /* hidden, not removed, so the card never changes height */
.qstatus { min-height: 2.6em; margin: var(--sp-3) 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--color-text-muted); }
.qstatus strong { color: var(--color-primary); }
.qstatus .is-good { color: var(--color-status-ink); }    /* above the cutoff */
.qstatus .is-short { color: var(--color-short-ink); }    /* short of the cutoff */

/* 1. Eligibility: inputs on the left, gauge on the right */
.qe { display: grid; grid-template-columns: 1fr 112px; gap: var(--sp-3); align-items: center; }
.qe__inputs { display: grid; gap: var(--sp-3); min-width: 0; }
.tool .qe__score { font-size: 1.15rem; font-weight: 800; color: var(--color-primary); -moz-appearance: textfield; appearance: textfield; }
.qe__score::-webkit-inner-spin-button, .qe__score::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gauge { position: relative; }
.gauge__svg { width: 100%; height: auto; overflow: visible; }
.gauge__track, .gauge__fill { fill: none; stroke-width: 11; stroke-linecap: round; }
.gauge__track { stroke: var(--color-wash-deep); }
.gauge__fill { stroke: var(--color-primary); stroke-dasharray: 100; stroke-dashoffset: var(--off, 100); transition: stroke-dashoffset .6s var(--ease), stroke .3s var(--ease); }
.gauge.is-pass .gauge__fill { stroke: var(--color-status); }
.gauge.is-short .gauge__fill { stroke: var(--color-short); }
.gauge__mark { fill: var(--color-surface); stroke: var(--color-text); stroke-width: 2; opacity: 0; transition: opacity .3s var(--ease); }
.gauge.has-mark .gauge__mark { opacity: 1; }
.gauge__read { position: absolute; left: 0; right: 0; bottom: -2px; display: grid; justify-items: center; line-height: 1; }
.gauge__read b { font-size: 1.45rem; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gauge__read span { margin-top: 2px; font-size: .62rem; font-weight: 700; color: var(--color-text-muted); }

/* 2. Budget: slider + destination pills that light up */
.qb__top { display: flex; align-items: baseline; justify-content: space-between; }
.qb__top small { font-size: .68rem; font-weight: 600; color: var(--color-text-muted); }
.qb__top output { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.qb__range { margin-top: var(--sp-2); }
.qb__fits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.qb__pill { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem .3rem .45rem; border-radius: 999px; border: 1.5px solid var(--color-border); font-size: .74rem; font-weight: 700; color: var(--color-text-muted); transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.qb__pill .icon { width: 13px; height: 13px; stroke-width: 3; opacity: .3; }
.qb__pill.is-in { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
.qb__pill.is-in .icon { opacity: 1; }
.qb__fits + .qstatus { margin-top: var(--sp-2); }

/* 3. Compare: two selects with a swap button + a snapshot of averages */
.qx__pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-2); }
.qx__pick select { width: 100%; min-width: 0; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); font-size: 16px; font-weight: 700; color: var(--color-primary); }
.qx__pick select:focus { outline: none; border-color: var(--color-primary); }
.qx__vs { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: var(--color-text-inverse); transition: transform .35s var(--ease); }
.qx__vs .icon { width: 16px; height: 16px; }
.qx__vs:hover { transform: rotate(180deg); }
.qx { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin: var(--sp-3) 0; }
.qx__card { display: grid; gap: .45rem; align-content: start; padding: var(--sp-3); border-radius: var(--radius-md); background: var(--color-wash); }
.qx__card > div { display: flex; flex-direction: column; }
.qx__top { flex-direction: row !important; align-items: center; justify-content: space-between; gap: .3rem; }
.qx__top small { font-size: .66rem; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
.qx__card b { font-size: 1.05rem; font-weight: 800; line-height: 1.15; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.qx__card span { font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.qx__tag { padding: .12rem .5rem; border-radius: 999px; background: var(--color-primary); color: var(--color-text-inverse); font-size: .6rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.qx__tag--ghost { visibility: hidden; }
.qx__same { grid-column: 1 / -1; padding: var(--sp-4); border-radius: var(--radius-md); background: var(--color-wash); font-size: var(--fs-sm); color: var(--color-text-muted); text-align: center; }

/* ================= HIGHLIGHT STRIP (floats over the hero's bottom edge) ================= */
.proof { position: relative; z-index: 3; margin-top: calc(-1 * var(--sp-6)); }
.proof__card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 0; box-shadow: 0 16px 36px rgba(11,31,77,.16); }
.proof__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-hero); }
.proof__item { display: flex; align-items: center; gap: .65rem; padding: var(--sp-5) var(--sp-3) var(--sp-4); }
.proof__item:nth-child(odd) { border-right: 1px solid var(--color-border); }
.proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
.proof__num { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.proof__num--text { font-size: 1.02rem; white-space: nowrap; }
.proof__item .icon-badge { width: 40px; height: 40px; }
.proof__label { margin-top: .3rem; font-size: var(--fs-xs); line-height: 1.3; color: var(--color-text-muted); }

/* ================= SECTION HEADS ================= */
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-3) var(--sp-5); }
.section-head__link { display: none; }

/* ================= FIND YOUR PATH ================= */
.paths-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.path-feature { display: grid; grid-template-columns: 92px 1fr; gap: var(--sp-4); align-items: center; padding: var(--sp-4); border: 0; color: #fff; background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.6px) 0 0 / 20px 20px, var(--grad-hero); overflow: hidden; }
.path-feature .img-slot { --ratio: 3 / 4; border-radius: 10px; box-shadow: 0 10px 24px rgba(7,18,52,.4); background: rgba(255,255,255,.12); }
.path-feature .img-slot.is-empty::after { content: "COVER\A 600×800"; font-size: 8px; padding: 0; border-width: 1px; }
.path-feature__label { display: inline-block; margin-bottom: .35rem; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-blue-pale); }
.path-feature h3 { color: #fff; font-size: 1.15rem; line-height: 1.2; }
.path-feature p { margin-top: .35rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--color-text-inverse-muted); }
.path-feature .btn { margin-top: var(--sp-3); }
.path-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-md); }
.path-card h3 { font-size: var(--fs-base); font-weight: 800; line-height: 1.25; }
.path-card p { font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.45; margin-top: .1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.path-card__go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-wash); color: var(--color-primary); transition: background var(--speed) var(--ease), color var(--speed) var(--ease); }
.path-card__go .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.path-card:hover .path-card__go { background: var(--color-primary); color: #fff; }
.path-card__more { display: none; }
.path-card, .path-feature { transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
@media (hover: hover) { .path-card:hover, .path-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }

/* ================= DESTINATIONS ================= */
.section__more { margin-top: var(--sp-4); }
.dest-tall__fee { font-weight: 600; color: var(--color-text-inverse-muted); }
.dest-tall__fee b { font-weight: 800; color: #fff; }

/* ================= WHERE OUR STUDENTS STUDY (university cards) ================= */
.uni-card { overflow: hidden; }
.uni-card__img { --ratio: 16 / 10; border-radius: 0; }
.uni-card__img img { transition: transform .6s var(--ease); }
@media (hover: hover) { .uni-card:hover .uni-card__img img { transform: scale(1.05); } }
.uni-card__body { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding: var(--sp-4); }
.uni-card__country { align-self: flex-start; padding: .2rem .6rem; border-radius: 999px; background: var(--color-wash); color: var(--color-primary); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.uni-card h3 { margin-top: .2rem; font-size: 1.02rem; line-height: 1.25; }
.uni-card__place { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-xs); font-weight: 600; color: var(--color-text-muted); }
.uni-card__place .icon { width: 14px; height: 14px; }
.uni-card p { font-size: var(--fs-xs); line-height: 1.5; color: var(--color-text-muted); }
.uni-card__go { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--color-border); font-size: var(--fs-xs); font-weight: 800; color: var(--color-primary); }
.uni-card__go .icon { width: 14px; height: 14px; stroke-width: 2.6; transition: transform var(--speed) var(--ease); }
.uni-card:hover .uni-card__go .icon { transform: translateX(4px); }

/* ================= TRUST BANNER ================= */
.banner { position: relative; isolation: isolate; overflow: hidden; color: var(--color-text-inverse); background: var(--grad-night); }
.banner__bg { position: relative; }
.banner__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, var(--color-night), transparent); pointer-events: none; }
.banner__bg .img-slot { aspect-ratio: 4 / 3; border-radius: 0; background: var(--grad-night); }
.banner__bg .img-slot img { object-position: 70% 50%; }
.banner__bg .img-slot.is-empty::after { align-items: center; justify-content: center; border: 0; color: rgba(255,255,255,.55); }
.banner__shade { display: none; }
.banner > .container { padding-block: var(--sp-5) var(--sp-6); }
.banner h2 { color: var(--color-text-inverse); }
.banner .lead { color: var(--color-text-inverse-muted); margin-top: var(--sp-2); }
.banner__points { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.banner__point { display: flex; gap: var(--sp-3); align-items: flex-start; }
.banner__point h3 { font-size: var(--fs-sm); color: var(--color-text-inverse); }
.banner__point p { font-size: var(--fs-xs); color: var(--color-text-inverse-muted); margin-top: .1rem; }

/* ================= JOURNEY (one colour, animated route) ================= */
.journey { --p: 0; position: relative; margin-top: var(--sp-5); }
.journey__rail { position: absolute; left: 22px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--color-border) 0 6px, transparent 6px 12px); }
.journey__fill { position: absolute; inset: 0; border-radius: 3px; background: var(--color-primary); transform-origin: top; transform: scaleY(var(--p)); }
.journey__plane { z-index: 2; transition: opacity .35s var(--ease); position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(30,58,138,.4); }
.journey__plane .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.journey.is-done .journey__plane { opacity: 0; }
.journey__steps { position: relative; display: grid; gap: var(--sp-5); }
.journey__step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.journey__node { position: relative; z-index: 1; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); color: var(--color-text-muted); border: 2px solid var(--color-border); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.journey__text { padding-top: .1rem; opacity: .5; transition: opacity .4s var(--ease); }
.journey__text small { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.journey__text h3 { font-size: var(--fs-base); }
.journey__text p { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: .15rem; }
.journey__step.is-active .journey__node { background: var(--color-primary); border-color: var(--color-primary); color: #fff; transform: scale(1.08); }
.journey__step.is-active .journey__text { opacity: 1; }

/* ================= STUDENT STORY (dark band) ================= */
.story-band { overflow: hidden; }
.story-band__quote-mark { position: absolute; bottom: var(--sp-4); right: var(--sp-4); width: 84px; height: 84px; color: rgba(255,255,255,.1); stroke-width: 1.4; }
.story { position: relative; display: grid; gap: var(--sp-5); }
.story__who { display: flex; align-items: center; gap: var(--sp-3); }
.story .img-slot { width: 76px; flex-shrink: 0; border-radius: 50%; --ratio: 1 / 1; border: 3px solid rgba(255,255,255,.35); }
.story .img-slot.is-empty::after { content: "PHOTO\A 400×400"; font-size: 8px; padding: 0; border: 0; }
.story__name { display: block; font-weight: 800; font-size: var(--fs-base); color: #fff; }
.story__school { display: block; font-size: var(--fs-xs); color: var(--color-text-inverse-muted); }
.story blockquote { font-size: 1.2rem; font-weight: 600; line-height: 1.5; color: #fff; }
.story-band .btn--link { color: var(--color-blue-pale); margin-top: var(--sp-5); }

/* ================= CLOSING CTA: one-field "Call me back" form inside the shared blue .cta card ================= */
.cta-call { display: grid; gap: var(--sp-2); min-width: 0; }
.cta-call__label { font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-inverse); }
.cta-call__row { display: grid; gap: var(--sp-2); }
.cta-call__msg { min-height: 1.2em; font-size: var(--fs-xs); font-weight: 600; color: #fff; }
.cta-call__msg:empty { display: none; }
.cta .cta-call__alt { margin-top: 0; font-size: var(--fs-xs); color: var(--color-text-inverse-muted); }
.cta-call__alt a { font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }

/* ================= TABLET + DESKTOP ================= */
@media (min-width: 768px) {
  .proof__card { grid-template-columns: repeat(4, 1fr); }
  .proof__item { gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-4); }
  .proof__item .icon-badge { width: 46px; height: 46px; }
  .proof__item, .proof__item:nth-child(-n+2) { border-bottom: 0; }
  .proof__item:not(:last-child) { border-right: 1px solid var(--color-border); }
  .proof__num { font-size: 1.7rem; }
  .proof__num--text { font-size: 1.25rem; }
  .hero__mobile-only, .tool__grab, .tool__close, .tool-scrim { display: none !important; }
  .hero__desktop-only { display: inline-flex; }
  .hero__trust.hero__desktop-only { display: flex; }
  .hero .btn-row .btn { flex: 0 0 auto; }
  /* Tool becomes an inline card (no longer a bottom sheet) */
  .tool { position: relative; left: auto; right: auto; bottom: auto; z-index: auto; max-height: none; overflow: visible; transform: none; visibility: visible; padding: var(--sp-5); border-radius: var(--radius-xl); box-shadow: 0 24px 50px rgba(7,18,52,.4), 0 0 0 1px rgba(255,255,255,.4); }
  .tool.is-open { transform: none; }
  .tool__head { margin-right: 0; }
  .tool__body { --tool-body-h: 268px; }
  .section-head__link { display: inline-flex; }
  .paths-grid { grid-template-columns: 1.7fr 1fr 1fr; gap: var(--sp-3); }
  .path-feature { grid-template-columns: 150px 1fr; gap: var(--sp-5); padding: var(--sp-5); }
  .path-feature h3 { font-size: 1.35rem; }
  .path-feature p { font-size: var(--fs-sm); }
  .path-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); }
  .path-card .icon-badge { margin-bottom: var(--sp-1); }
  .path-card__go { display: none; }
  .path-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-xs); font-weight: 800; color: var(--color-primary); }
  .path-card__more .icon { width: 14px; height: 14px; stroke-width: 2.6; transition: transform var(--speed) var(--ease); }
  .path-card:hover .path-card__more .icon { transform: translateX(4px); }
  .path-card p { flex: 1; -webkit-line-clamp: 3; }
  .story-band__quote-mark { top: var(--sp-5); bottom: auto; width: 120px; height: 120px; }
  .story { grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-7); }
  .story blockquote { font-size: 1.6rem; }
  .cta-call__row { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--announce-h) - var(--header-h-lg) - 80px); padding: var(--sp-5) 0 calc(var(--sp-6) + var(--sp-4)); }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sp-7); }
  .hero__arc { left: auto; right: 0; width: 58%; bottom: 10%; opacity: .7; }
  .hero__lead { font-size: 1.15rem; }
  .hero .btn-row .btn { min-height: 52px; padding-inline: 1.6rem; }
  .tool { max-width: 460px; margin-left: auto; width: 100%; }
  .section-head { margin-bottom: var(--sp-6); }
  .banner { padding: var(--sp-7) 0; }
  .banner__bg { position: absolute; inset: 0; z-index: -2; }
  .banner__bg::after { display: none; }
  .banner__bg .img-slot { height: 100%; aspect-ratio: auto; background: none; }
  .banner__bg .img-slot img { object-position: center; }
  .banner__bg .img-slot.is-empty::after { align-items: flex-start; justify-content: flex-end; }
  .banner > .container { padding-block: 0; }
  .banner__shade { display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,29,78,.94) 0%, rgba(12,29,78,.78) 50%, rgba(12,29,78,.3) 100%); }
  .banner__inner { max-width: 560px; }
  .journey__rail { left: 8.333%; right: 8.333%; top: 22px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(to right, var(--color-border) 0 6px, transparent 6px 12px); }
  .journey__fill { transform-origin: left; transform: scaleX(var(--p)); }
  .journey__plane { left: calc(var(--p) * 100%); top: 50%; }
  .journey__plane .icon { transform: rotate(90deg); }
  .journey__steps { grid-template-columns: repeat(6, 1fr); gap: var(--sp-2); }
  .journey__step { flex-direction: column; align-items: center; text-align: center; padding: 0 var(--sp-2); }

}

/* Respect reduced-motion: no sliding tab pill, no panel fade */
@media (prefers-reduced-motion: reduce) {
  .tool__tabs::before, .gauge__fill { transition: none; }
  .tool__panel { animation: none; }
}

/* ================= FROM THE BLOG (3 newest posts; hidden until the first post exists) =================
   Phones: one swipeable row of cards. Computers: the newest large on the left, two stacked on the right. */
.home-blog__row { display: flex; gap: var(--sp-3); overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: var(--sp-1) var(--gutter) var(--sp-3); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.home-blog__row::-webkit-scrollbar { display: none; }
.home-blog__card { flex: 0 0 82%; max-width: 340px; overflow: hidden; scroll-snap-align: start; color: var(--color-text); }
.home-blog__img { --ratio: 1200 / 630; border-radius: 0; }
.home-blog__img.is-empty::after { content: none; }
.home-blog__img img { transition: transform .5s var(--ease); }
.home-blog__body { display: flex; flex: 1; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); }
.home-blog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; font-size: var(--fs-xs); font-weight: 600; color: var(--color-text-muted); }
.home-blog__cat { color: var(--color-primary); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.home-blog__title { font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--color-primary-ink); text-wrap: balance; }
.home-blog__desc { font-size: var(--fs-sm); color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .home-blog__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .home-blog__card:hover .home-blog__img img { transform: scale(1.04); }
}
@media (min-width: 1024px) {
  .home-blog__row { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: var(--sp-4); overflow: visible; margin-inline: 0; padding: 0; }
  .home-blog__card { max-width: none; }
  .home-blog__card:first-child { grid-row: span 2; }
  .home-blog__card:first-child .home-blog__title { font-size: 1.5rem; line-height: 1.2; }
  /* The two smaller ones: photo left, words right */
  .home-blog__card:not(:first-child) { display: grid; grid-template-columns: 42% 1fr; }
  .home-blog__card:not(:first-child) .home-blog__img { aspect-ratio: auto; height: 100%; }
  .home-blog__card:not(:first-child) .home-blog__desc { -webkit-line-clamp: 2; }
}
@media (prefers-reduced-motion: reduce) { .home-blog__img img { transition: none; } }
