/* ═══════════════════════════════════════════════════════════════════════════
   NRG2fly Selfscan
   Palette taken from the Pyramid of Airport Electrification and the logo:
   navy + blues for landside, greens for airside, amber for calls to action.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy:       #1B2E5F;
  --navy-deep:  #0F1D3D;
  --blue:       #4E9BD1;
  --blue-mid:   #5BA8DC;
  --blue-pale:  #C5E4F7;
  --blue-wash:  #EAF4FC;

  --bg:         #F2F7FC;
  --surface:    #FFFFFF;
  --border:     #DCE7F2;
  --border-in:  #C3D5E6;

  --amber:      #F5A623;
  --amber-dk:   #DB8E12;

  --text:       #33415C;
  --muted:      #7A8AA3;
  --ok:         #1D9E75;
  --warn:       #D9534F;

  /* pyramid layer colours — straight from the diagram */
  --l1: #C5E4F7;
  --l2: #5BA8DC;
  --l3: #CFF0D7;
  --l4: #85CA66;
  --l5: #C9F0D3;

  --r:    14px;
  --r-sm: 9px;
  --ease: 220ms cubic-bezier(.4,0,.2,1);
  --shadow:    0 2px 10px rgba(27,46,95,.06);
  --shadow-lg: 0 12px 34px rgba(27,46,95,.13);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); margin: 0; letter-spacing: -.01em; }

a { color: var(--blue); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ── Header + progress ──────────────────────────────────────────────────── */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
header img { height: 34px; width: auto; }
.logo-divider { width: 1px; height: 18px; background: var(--border); }
.logo-sub { font-size: 13px; font-weight: 600; color: var(--muted); }

.lang-toggle { margin-left: auto; display: flex; gap: 4px; }
.lang-btn {
  font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: transparent;
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: 5px 9px; cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.lang-btn:hover { color: var(--navy); border-color: var(--blue-mid); }
.lang-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }

#progress-wrap {
  position: sticky;
  top: 61px;
  z-index: 19;
  display: none;
  gap: 4px;
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
#progress-wrap.on { display: flex; }
.seg {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #DDE7F1;
  transition: background var(--ease);
}
.seg.done { background: var(--blue-mid); }
.seg.now  { background: var(--navy); }

/* ── Layout ─────────────────────────────────────────────────────────────── */

main { max-width: 780px; margin: 0 auto; padding: 30px 18px 90px; }

.screen { display: none; }
.screen.active { display: block; animation: rise .42s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: scale(.94); }        to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn i { width: 17px; height: 17px; }

.btn-primary { background: var(--amber); color: #22160A; box-shadow: 0 4px 14px rgba(245,166,35,.36); }
.btn-primary:hover:not(:disabled) { background: var(--amber-dk); transform: translateY(-2px); box-shadow: 0 7px 20px rgba(245,166,35,.44); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-deep); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--muted); padding: 14px 12px; font-weight: 600; }
.btn-ghost:hover { color: var(--navy); }

.btn-lg { font-size: 16.5px; padding: 17px 32px; }

/* ── Opening screen ─────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.open-h { font-size: clamp(30px, 6.2vw, 44px); line-height: 1.12; margin-bottom: 16px; }
.open-p { font-size: 16.5px; line-height: 1.68; color: var(--text); max-width: 60ch; margin: 0 0 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 30px; padding: 8px 15px; display: inline-flex; align-items: center; gap: 7px;
}
.chip i { width: 14px; height: 14px; color: var(--blue); }

.open-note { font-size: 13px; color: var(--muted); margin-top: 13px; }

/* Role self-identification — doubles as the primary call to action */
.role-label { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.roles { display: grid; gap: 10px; }
.role {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 15px 16px; cursor: pointer; font-family: inherit;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.role:hover { border-color: var(--amber); transform: translateX(3px); box-shadow: var(--shadow); }
.role-ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-wash); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.role-ic i { width: 19px; height: 19px; }
.role-tx { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.role-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.role-go { margin-left: auto; color: var(--amber); flex-shrink: 0; }
.role-go i { width: 19px; height: 19px; }

.trust { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px; }
.trust-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-item {
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--blue-wash); border: 1px solid var(--blue-pale);
  border-radius: var(--r-sm); padding: 9px 14px;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.trust-item i { width: 13px; height: 13px; color: var(--blue); transition: transform var(--ease); }
.trust-item:hover { background: #fff; border-color: var(--blue); transform: translateY(-2px); }
.trust-item:hover i { transform: translate(2px, -2px); }
.trust-all {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--blue); text-decoration: none;
}
.trust-all i { width: 15px; height: 15px; transition: transform var(--ease); }
.trust-all:hover { color: var(--navy); }
.trust-all:hover i { transform: translateX(3px); }

/* ── Quiz ───────────────────────────────────────────────────────────────── */

/* Quiz: a cinematic photo band on top of the card, question beneath.
   One layout on every screen size; landscape photos crop naturally in a
   wide short band. */
.quiz-split { display: flex; flex-direction: column; overflow: hidden; }
.quiz-content { padding: 16px 22px 20px; }
.quiz-photo { order: -1; position: relative; height: 200px; }
.quiz-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.quiz-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,46,95,.04) 55%, var(--surface) 100%);
  pointer-events: none;
}
.quiz-photo-cap {
  position: absolute; right: 11px; bottom: 8px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(15, 29, 61, .8);
}
.quiz-photo.off { display: none; }

@media (max-width: 640px) {
  .quiz-photo { height: 140px; }
  .quiz-content { padding: 12px 16px 16px; }
}

/* Question transition — the whole question block moves as one piece, so
   advancing reads as turning a page rather than the text swapping underneath. */
#quizStage { transition: opacity .17s ease, transform .17s ease; }
#quizStage.q-leave { opacity: 0; transform: translateX(-18px); }
#quizStage.q-enter { animation: qIn .26s var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.q-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; gap: 12px; }
.q-step { font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.q-time { font-size: 12.5px; color: var(--muted); }
.q-text { font-size: clamp(22px, 4.4vw, 30px); line-height: 1.25; margin-bottom: 9px; }
.q-hint { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }

.tiles { display: grid; gap: 10px; margin-bottom: 8px; }

.tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 15px 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.tile:hover { border-color: var(--blue-mid); transform: translateX(3px); box-shadow: var(--shadow); }
.tile.selected { border-color: var(--navy); border-width: 2px; background: var(--blue-wash); }

.tile-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-wash); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), color var(--ease);
}
.tile-icon i { width: 19px; height: 19px; }
.tile.selected .tile-icon { background: var(--navy); color: #fff; }

.tile-label { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.tile-sub   { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.tile-check {
  margin-left: auto; align-self: center; flex-shrink: 0;
  width: 23px; height: 23px; border-radius: 50%;
  border: 2px solid var(--border-in);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.tile-check i { width: 13px; height: 13px; color: #fff; opacity: 0; }
.tile.selected .tile-check { background: var(--navy); border-color: var(--navy); }
.tile.selected .tile-check i { opacity: 1; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; }
.quiz-nav .spacer { flex: 1; }

/* ── Pyramid ────────────────────────────────────────────────────────────── */

.pyramid { position: relative; margin: 6px 0; }
.pyr-side {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 12px 0 6px;
}
.pyr-row { position: relative; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 3px; }
.pyr-fill { position: absolute; inset: 0; transition: filter .5s var(--ease), opacity .5s var(--ease); }
.pyr-label {
  position: relative; z-index: 2; font-size: 12.5px; font-weight: 700; color: var(--navy);
  text-align: center; padding: 0 14px; line-height: 1.25;
}
/* Not yet reached: neutral, nothing wrong with it. */
.pyr-row.locked .pyr-fill  { filter: grayscale(1); opacity: .38; }
.pyr-row.locked .pyr-label { color: #94A3B8; }
.pyr-row.locked .pyr-label::after { content: ' 🔒'; font-size: 10px; }

/* A hole BENEATH something they own. Reads as a problem rather than a rung
   they have not climbed yet: still identifiable by colour, but outlined. */
.pyr-row.gap .pyr-fill  { filter: grayscale(.55); opacity: .5; }
.pyr-row.gap .pyr-label { color: var(--warn); }
.pyr-row.gap .pyr-label::after { content: ' ⚠'; font-size: 10px; }
.pyr-row.gap::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border: 1.5px dashed var(--warn); opacity: .75;
}

.you-are-here {
  position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 700;
  padding: 6px 11px; border-radius: 6px; white-space: nowrap; z-index: 3;
  box-shadow: 0 3px 12px rgba(27,46,95,.3);
  animation: pop .5s .35s var(--ease) both;
}
/* Same chip, amber, on the lowest hole — the row they should act on. */
.you-are-here.start-here {
  background: var(--warn);
  box-shadow: 0 3px 12px rgba(217,83,79,.32);
  animation-delay: .5s;
}

/* compact variant used on the opening screen */
.pyramid.mini .pyr-row   { height: 26px; margin-bottom: 2px; }
.pyramid.mini .pyr-label { font-size: 10px; }

/* ── Reveal ─────────────────────────────────────────────────────────────── */

.verdict { padding: 0; margin-bottom: 22px; text-align: center; animation: pop .5s var(--ease) both; overflow: hidden; }
.verdict-body { padding: 26px 24px; }

/* Hero — their airport's photo behind name + tier, PDF-cover style */
.verdict-hero { position: relative; height: 230px; }
.verdict-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,61,0) 30%, rgba(15,29,61,.78) 100%);
}
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 14px; text-align: left; }
.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 4vw, 27px); font-weight: 700; color: #fff;
  text-shadow: 0 1px 8px rgba(15,29,61,.55); line-height: 1.2;
}
.hero-sub { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); margin-top: 3px; letter-spacing: .04em; }
.hero-credit {
  position: absolute; right: 8px; top: 8px;
  font-size: 9.5px; color: rgba(255,255,255,.75);
  background: rgba(15,29,61,.45); border-radius: 5px; padding: 3px 8px;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Ambition versus position — the tension the roadmap resolves */
.amb {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: var(--r-sm);
  padding: 16px 18px; margin-bottom: 14px;
}
.amb-cols { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.amb-cell { flex: 1 1 40%; min-width: 0; }
.amb-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.amb-val { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.amb-say { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* Their own stated blocker, echoed back */
.mirror {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--navy); line-height: 1.5;
  background: var(--blue-wash); border-radius: var(--r-sm);
  padding: 13px 15px; margin: 0 0 18px;
}
.mirror i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* Airport type-ahead question */
.ap-search input {
  font-size: 17px; padding: 15px 16px;
}
.ap-offline { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.ap-results { display: grid; gap: 8px; margin-top: 10px; }
.ap-results .tile { animation: rise .22s var(--ease) both; }

/* Charger product card (roadmap block 1) */
.charger-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--blue-wash); border: 1px solid var(--blue-pale);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 15px;
}
.charger-card img {
  width: 108px; height: 108px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.charger-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 4px;
}
.charger-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.charger-line { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.verdict-tier { font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); margin-bottom: 9px; }
.verdict-name { font-size: clamp(27px, 5.6vw, 38px); line-height: 1.12; margin-bottom: 13px; }
.verdict-say  { font-size: 15.5px; line-height: 1.7; color: var(--text); max-width: 54ch; margin: 0 auto; }
.verdict-say strong { color: var(--navy); }

.locked-teaser { position: relative; border: 1.5px dashed var(--border-in); border-radius: var(--r); overflow: hidden; background: #FDFCF6; }
.locked-inner { padding: 20px; filter: blur(4px); opacity: .5; pointer-events: none; user-select: none; }
.locked-inner h3 { font-size: 17px; margin-bottom: 10px; }
.locked-inner p  { font-size: 14px; margin: 0 0 7px; }
.locked-over {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253,252,246,.7), rgba(253,252,246,.98));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22px;
}
.locked-over h3 { font-size: 19px; margin-bottom: 7px; }
.locked-over p  { font-size: 14px; color: var(--muted); margin: 0 0 16px; max-width: 42ch; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.form-head { margin-bottom: 22px; }
.form-title { font-size: clamp(23px, 4.4vw, 30px); margin-bottom: 8px; }
.form-sub { font-size: 15px; color: var(--muted); margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.fg { display: flex; flex-direction: column; }
.fg.span2 { grid-column: 1 / -1; }

label { font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--warn); }
.opt { color: var(--muted); font-weight: 400; }

input, textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-in);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(78,155,209,.16); }
input.err, textarea.err { border-color: var(--warn); }
textarea { resize: vertical; min-height: 96px; }

.field-err { font-size: 12.5px; color: var(--warn); margin-top: 5px; min-height: 17px; }

.form-actions, .gate-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }

.privacy { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: #FDECEA; border: 1px solid #F5C6C3; color: #A9342F;
  border-radius: var(--r-sm); padding: 13px 15px; font-size: 14px; margin-top: 16px; display: none;
}
.form-error.on { display: block; }

/* ── Roadmap ────────────────────────────────────────────────────────────── */

.section-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue); margin: 36px 0 14px;
}

.move { display: flex; gap: 15px; padding: 19px; margin-bottom: 12px; align-items: flex-start; }
.move-num {
  width: 33px; height: 33px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.move-t { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; line-height: 1.35; }
.move-d { font-size: 14.5px; color: var(--text); line-height: 1.65; }

.gap-list { padding: 6px 19px; }
.gap-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid #EEF3F8; }
.gap-item:last-child { border-bottom: none; }
.gap-ic {
  width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.gap-ic i { width: 12px; height: 12px; }
.gap-t { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.gap-s { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.svc { margin-bottom: 14px; overflow: hidden; }
.svc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 19px; background: var(--blue-wash); border-bottom: 1px solid var(--border);
}
.svc-head i { width: 19px; height: 19px; color: var(--blue); }
.svc-title { font-size: 16.5px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; }
.svc-body { padding: 17px 19px; }
.svc-why { font-size: 14px; color: var(--text); background: #FFFBF0; border-left: 3px solid var(--amber); padding: 11px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 15px; line-height: 1.6; }
/* Service carousel — one idea at a time: auto-sliding, swipeable, tappable */
.svc-track {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: flex-start;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-slide {
  position: relative;
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 15px 26px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
@media (min-width: 560px) { .svc-slide { flex-basis: 46%; } }
.svc-slide:hover { border-color: var(--blue-mid); }
.mini-lead { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.mini-text { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.mini-more { display: none; font-size: 13px; color: var(--text); line-height: 1.65; margin-top: 9px; }
.mini-count {
  position: absolute; right: 11px; bottom: 8px;
  font-size: 10px; font-weight: 700; color: #B6C4D6;
}
.svc-slide.open { border-color: var(--navy); background: var(--blue-wash); }
.svc-slide.open .mini-more { display: block; animation: rise .22s var(--ease) both; }

.svc-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.svc-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border-in); background: var(--surface);
  color: var(--navy); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 0 2px;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.svc-arrow:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.svc-dots { display: flex; gap: 6px; }
.svc-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border-in);
  cursor: pointer; transition: background var(--ease), width var(--ease);
}
.svc-dots i.on { background: var(--navy); width: 16px; border-radius: 3px; }
.svc-note { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 13px; line-height: 1.6; }

.explainer { background: var(--blue-wash); border: 1px solid var(--blue-pale); border-radius: var(--r-sm); padding: 15px 17px; margin-top: 15px; }
.explainer h4 { font-size: 14.5px; color: var(--navy); margin: 0 0 7px; font-family: 'Inter', sans-serif; font-weight: 700; }
.explainer p  { font-size: 13.5px; margin: 0; line-height: 1.65; color: var(--text); }

.ref-card { display: flex; gap: 0; overflow: hidden; margin-bottom: 14px; text-decoration: none; color: inherit; transition: transform var(--ease), box-shadow var(--ease); }
.ref-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ref-img { width: 132px; flex-shrink: 0; object-fit: cover; }
.ref-body { padding: 15px 17px; }
.ref-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; }
.ref-t { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ref-d { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Charging Network Simulator embed */
.cns-card { padding: 19px; }
.cns-intro { font-size: 14.5px; line-height: 1.65; margin: 0 0 14px; color: var(--text); }
.cns-controls { display: flex; gap: 10px; align-items: stretch; }
.cns-controls input { flex: 1; }
.cns-controls .btn { white-space: nowrap; }
#cns-embed {
  display: none;
  width: 100%;
  height: 500px;   /* room for the timeline bar under the map */
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 15px;
  background: var(--blue-wash);
}
#cns-embed.on { display: block; animation: rise .4s var(--ease) both; }
.cns-err { font-size: 13px; color: var(--warn); margin-top: 9px; min-height: 18px; }

@media (max-width: 560px) {
  .cns-controls { flex-direction: column; }
  .cns-controls .btn { width: 100%; justify-content: center; }
  #cns-embed { height: 420px; }
}

.cta-block { text-align: center; padding: 30px 24px; margin-top: 30px; background: var(--navy); border-radius: var(--r); }
.cta-block h3 { color: #fff; font-size: clamp(21px, 4vw, 27px); margin-bottom: 10px; }
.cta-block p  { color: #C3D5E6; font-size: 15px; margin: 0 0 20px; line-height: 1.65; }

/* context (moved below the roadmap — no longer blocks results) */
.context { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--border); }
.context h3 { font-size: clamp(20px, 3.8vw, 26px); margin-bottom: 10px; }
.context p  { font-size: 14.5px; line-height: 1.72; color: var(--text); }
.context img { border-radius: var(--r-sm); margin: 18px 0; display: block; border: 1px solid var(--border); }

.substack { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; margin-top: 26px; }
.substack p { font-size: 14.5px; margin: 0 0 14px; }

/* ── Success ────────────────────────────────────────────────────────────── */

.success-wrap { text-align: center; padding: 42px 22px; }
.success-ring {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(29,158,117,.12); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  animation: pop .5s var(--ease) both;
}
.success-ring i { width: 36px; height: 36px; }
.success-title { font-size: clamp(25px, 5vw, 34px); margin-bottom: 13px; }
.success-text { font-size: 16px; color: var(--text); line-height: 1.72; max-width: 48ch; margin: 0 auto 12px; }

.next-steps { text-align: left; max-width: 430px; margin: 26px auto 0; padding: 19px; }
.next-steps h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 13px; font-family: 'Inter', sans-serif; }
.next-step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 14px; }
.next-step i { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  main { padding: 22px 15px 70px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions, .gate-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn, .gate-actions .btn { width: 100%; justify-content: center; }
  .verdict-body { padding: 22px 17px; }
  .verdict-hero { height: 175px; }
  .charger-card { flex-direction: column; text-align: center; }
  .charger-card img { width: 100%; height: 140px; object-fit: contain; background: #fff; }
  .pyr-row { height: 46px; }
  .pyr-label { font-size: 11px; padding: 0 9px; }
  .you-are-here { font-size: 10px; padding: 5px 8px; right: -1px; }
  .ref-card { flex-direction: column; }
  .ref-img { width: 100%; height: 128px; }
  .cta-block { padding: 24px 18px; }
  #progress-wrap { top: 59px; padding: 9px 15px; }
}

@media (max-width: 380px) {
  .q-time { display: none; }
}
