/* ── Tropic Teacher · design tokens ─────────────────────────────── */
/* Clean, modern, educator-friendly. The palette tells the site's   */
/* own story: cool-climate teal ↔ warm-climate coral, sunset kept   */
/* as the brand thread.                                             */
:root {
  --paper: #FFFFFF;      /* page ground */
  --mist: #F5F8F9;       /* raised surfaces */
  --line: #E3EAEE;       /* borders */
  --ink: #16303E;        /* primary type */
  --ink-soft: #5E7482;   /* secondary type */
  --warm: #F0641E;       /* warm-climate coral · primary CTA */
  --warm-deep: #D4510F;
  --warm-tint: #FDF1E8;
  --amber: #E9A13B;
  --cool: #0E8FA8;       /* cool-climate teal · secondary accent */
  --cool-deep: #0B6E82;
  --cool-tint: #EAF5F7;
  --sunset: linear-gradient(90deg, #F9B21B, #F6A51E, #F07F1F, #E85420, #D92E2A);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--warm); color: #FFFFFF; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--cool-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool);
}

.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ── sunset divider (brand thread) ──────────────────────────────── */
.stripe {
  height: 4px;
  background: var(--sunset);
  border: 0;
  margin: 0;
}

/* ── topbar: socials above the nav ──────────────────────────────── */
.topbar { background: var(--ink); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  color: #9FBECB;
}
.top-socials { display: flex; gap: 14px; align-items: center; }
.top-socials a { color: #9FBECB; display: inline-flex; }
.top-socials a:hover { color: #FFFFFF; }
.top-socials svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
  .topbar-inner > span { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ── course page ────────────────────────────────────────────────── */
.modules { display: flex; flex-direction: column; max-width: 720px; }
.module {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
}
.module:last-child { border-bottom: 0; }
.module .m-num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--warm); flex: none; width: 34px; }
.module b { font-size: 16px; font-weight: 700; }
.module span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .editions { grid-template-columns: 1fr; } }

/* ── nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg, .brand img { width: 40px; height: 40px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; line-height: 1; }
.wordmark small { display: block; font-family: var(--ui); font-weight: 800; font-size: 9.5px; letter-spacing: 0.32em; color: var(--cool); margin-top: 3px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { font-family: var(--ui); font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--warm); }
/* nav CTA: solid ink so it reads crisply on white, warms on hover */
.nav .btn-coral { background: var(--ink); box-shadow: none; }
.nav .btn-coral:hover { background: var(--warm); }

/* ── buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-coral { background: var(--warm); color: #FFFFFF; box-shadow: 0 4px 14px rgba(240, 100, 30, 0.28); }
.btn-coral:hover { background: var(--warm-deep); }
.btn-ghost { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ── hero: deep water blue with a whisper of noise ──────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.1"/></feComponentTransfer></filter><rect width="180" height="180" filter="url(%23n)"/></svg>'),
    radial-gradient(900px 520px at 76% 28%, rgba(140, 220, 245, 0.16), transparent 62%),
    linear-gradient(180deg, #093F63 0%, #0D6390 55%, #1183AF 100%);
  color: #FFFFFF;
}
.hero .eyebrow { color: #8FDCF2; }
.hero h1 { color: #FFFFFF; }
.hero .hero-copy .lede { color: #E3F2FA; }
.hero .stat b { color: #FFFFFF; }
.hero .stat span { color: #A8D4E6; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-ghost:hover { border-color: #FFFFFF; }
.hero .globe-hint { color: #BBDFEF; opacity: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 24px;
  padding-block: 64px 40px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero h1 .sun-word {
  background: linear-gradient(100deg, #F6A51E 0%, #F0641E 60%, #D92E2A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-ast { color: var(--amber); font-size: 0.55em; vertical-align: super; margin-left: 2px; }
.hero-note {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  font-style: italic;
  color: #A8D4E6;
  margin-top: -12px;
}
.hero-copy .lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 12px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--display); font-size: 27px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { font-family: var(--ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }

#globe-wrap { position: relative; min-height: 480px; margin-inline: -56px -16px; }
#globe { width: 100%; height: 620px; display: block; cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }
.globe-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.85;
  white-space: nowrap;
}

/* ── funnel strip ───────────────────────────────────────────────── */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.funnel-step { position: relative; padding: 24px 26px 24px 20px; border-left: 1px solid var(--line); }
.funnel-step:first-child { border-left: 0; padding-left: 0; }
.funnel-step .fe { display: block; font-size: 32px; line-height: 1; margin-bottom: 12px; }
.funnel-step .k {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cool);
  display: block;
  margin-bottom: 8px;
}
/* the route runs cool climate → warm: teal shifts to coral */
.funnel-step:nth-child(2) .k { color: #2E9C8F; }
.funnel-step:nth-child(3) .k { color: #93A63C; }
.funnel-step:nth-child(4) .k { color: var(--amber); }
.funnel-step:nth-child(5) .k { color: var(--warm); }
.funnel-step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ── offer cards ────────────────────────────────────────────────── */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.offer:hover { border-color: #CBD8DF; box-shadow: 0 12px 32px rgba(22, 48, 62, 0.07); }
.offer.featured {
  grid-column: span 2;
  background: linear-gradient(120deg, var(--warm-tint) 0%, #FFFFFF 55%);
  border-color: #F3CDB2;
}
.offer .tag {
  align-self: flex-start;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cool-tint);
  color: var(--cool-deep);
}
.offer .tag.hot { background: var(--warm-tint); color: var(--warm-deep); }
.offer h3 { font-size: 21px; }
.offer p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.offer .price { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.offer .price small { font-family: var(--ui); font-weight: 600; font-size: 12.5px; color: var(--ink-soft); margin-left: 6px; }
.offer .offer-cta { margin-top: 4px; }

/* ── interactive world map: on the classic water blue ───────────── */
#countries {
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.1"/></feComponentTransfer></filter><rect width="180" height="180" filter="url(%23n)"/></svg>'),
    radial-gradient(900px 520px at 76% 10%, rgba(140, 220, 245, 0.16), transparent 62%),
    linear-gradient(180deg, #093F63 0%, #0D6390 55%, #1183AF 100%);
}
#countries .eyebrow, #countries .facts .eyebrow { color: #8FDCF2; }
#countries .section-head h2 { color: #FFFFFF; }
#countries .section-head p { color: #CFE8F4; }
#countries .map-panel { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
#countries .map-legend { color: #BBDFEF; }
#countries .fact-card { background: rgba(255, 255, 255, 0.96); border-color: transparent; }
#countries .fact-dots button { background: rgba(255, 255, 255, 0.35); }
#countries .fact-dots button:hover { background: #FFFFFF; }
#countries .fact-dots button.on { background: var(--amber); }
.map-panel {
  position: relative;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.map-panel svg { width: 100%; height: auto; display: block; }
.map-panel path.country {
  cursor: pointer;
  transition: fill 0.12s ease;
  /* opacity-only animations keep hover snappy: no filter repaints */
  animation: map-breath 7s ease-in-out infinite, map-enter 0.6s ease backwards;
  animation-play-state: paused, paused;
}
.map-panel.in path.country { animation-play-state: running, running; }
.map-panel path.country:hover { fill: var(--warm); }
@keyframes map-breath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
@keyframes map-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
#worldmap { position: relative; }
.map-emoji {
  position: absolute;
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 3px 6px rgba(4, 30, 48, 0.55));
  animation: emoji-float 4.5s ease-out forwards;
}
@keyframes emoji-float {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  12% { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px) * 0.2), -70%) scale(1.2); }
  22% { transform: translate(calc(-50% + var(--dx, 0px) * 0.35), -80%) scale(1); }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -220%) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .map-emoji { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .map-panel path.country { transition: none; animation: none; }
}
.map-tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -135%);
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--ui);
  font-size: 13.5px;
  padding: 8px 13px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(22, 48, 62, 0.3);
}
.map-tip b { font-weight: 700; }
.map-tip .tip-flag { font-style: normal; font-size: 26px; line-height: 1; vertical-align: -4px; margin-right: 3px; }
.map-tip span { display: block; font-size: 11.5px; font-weight: 600; color: #B9CDD6; margin-top: 1px; }
.map-tip[hidden] { display: none; }
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ── country A-Z index ──────────────────────────────────────────── */
.az-groups { display: flex; flex-direction: column; gap: 44px; }
.az-group h3 { font-size: 22px; margin-bottom: 16px; }
.az-group h3 small { font-family: var(--ui); font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.az-links { columns: 4 200px; column-gap: 28px; }
.az-links a {
  display: block;
  break-inside: avoid;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.az-links a span { font-size: 18px; margin-right: 8px; }
.az-links a:hover { color: var(--warm); text-decoration: none; }

/* ── fun-facts carousel ─────────────────────────────────────────── */
.facts { margin-top: 64px; }
.fact-card {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.22s ease;
}
.fact-card.fading { opacity: 0; }
.fact-card .f-emoji { font-size: 38px; line-height: 1; }
.fact-card p { font-size: 19.5px; line-height: 1.55; color: var(--ink); text-wrap: balance; }
.fact-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.fact-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.fact-dots button:hover { background: var(--ink-soft); }
.fact-dots button.on { width: 24px; background: var(--warm); }

/* ── articles ───────────────────────────────────────────────────── */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.article:hover { text-decoration: none; border-color: #CBD8DF; box-shadow: 0 12px 32px rgba(22, 48, 62, 0.07); }
.article .cat { font-family: var(--ui); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cool); }
.article h3 { font-family: var(--display); font-weight: 700; font-size: 17.5px; line-height: 1.35; letter-spacing: -0.01em; }
.article span { font-family: var(--ui); font-size: 13.5px; font-weight: 600; color: var(--warm); margin-top: auto; }

/* ── about / consulting ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(240, 100, 30, 0.18), transparent 60%),
    radial-gradient(100% 80% at 50% 0%, rgba(14, 143, 168, 0.12), transparent 55%),
    var(--mist);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.portrait svg { width: 78%; margin-bottom: -6%; }
.portrait .photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(22, 48, 62, 0.35);
}
.portrait.has-photo > svg { display: none; }
.portrait figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: var(--measure); }
.about-copy .quote {
  font-size: 21px;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--warm);
  padding-left: 18px;
}
.about-copy p { color: var(--ink-soft); }
.quals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qual {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--ui);
}
.qual .qi { font-size: 20px; line-height: 1.2; }
.qual b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.qual span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.quals-more { font-family: var(--ui); font-weight: 700; font-size: 14.5px; }

/* about page */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 640px; }
.tl-item { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cool);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
}
.tl-item.warm::before { background: var(--warm); }
.tl-item .tl-when { font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tl-item h4 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p { font-size: 15px; color: var(--ink-soft); max-width: 58ch; }

.consult-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  flex-wrap: wrap;
}
.consult-row .price { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--warm); letter-spacing: -0.02em; }
.consult-row .desc { flex: 1; min-width: 220px; font-family: var(--ui); font-size: 14.5px; color: var(--ink-soft); }

/* ── waitlist band ──────────────────────────────────────────────── */
.band {
  position: relative;
  background:
    radial-gradient(600px 300px at 90% 110%, rgba(240, 100, 30, 0.35), transparent 65%),
    radial-gradient(500px 260px at 0% -20%, rgba(14, 143, 168, 0.3), transparent 65%),
    #142F3D;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.band h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: #FFFFFF; }
.band p { color: #B9CDD6; font-size: 16.5px; margin-top: 10px; }
.band-form { display: flex; gap: 10px; flex-wrap: wrap; }
.band-form input {
  flex: 1;
  min-width: 200px;
  font-family: var(--ui);
  font-size: 15px;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}
.band-form input::placeholder { color: var(--ink-soft); }
.btn-navy { background: var(--warm); color: #FFFFFF; }
.btn-navy:hover { background: var(--warm-deep); }
.band .fine { font-family: var(--ui); font-size: 12.5px; color: #8FA9B5; margin-top: 10px; }

/* ── footer ─────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--mist); padding: 48px 0 0; margin-top: 48px; }
.foot-grid { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.foot-brand p { font-family: var(--ui); font-size: 13.5px; color: var(--ink-soft); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
}
.socials a svg { width: 15px; height: 15px; flex: none; color: var(--ink-soft); }
.socials a:hover { border-color: var(--warm); color: var(--warm); text-decoration: none; }
.socials a:hover svg { color: var(--warm); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links b { font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cool); margin-bottom: 4px; }
.foot-links a { font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
/* greyed-out lower footer: the badge sleeps in grayscale, wakes on hover */
.subfooter {
  margin-top: 52px;
  border-top: 1px solid var(--line);
  background: #E8ECEF;
  padding: 44px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.subfooter img {
  width: 92px;
  height: 92px;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}
.subfooter:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.subfooter .sf-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #9AA6AF;
}
.subfooter p { font-family: var(--ui); font-size: 12.5px; color: #9AA6AF; }

/* ── compass page ───────────────────────────────────────────────── */
.flow-svg { width: 100%; height: auto; display: block; }
.flow-panel {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  overflow-x: auto;
}

.quiz {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(22, 48, 62, 0.06);
}
.quiz-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.quiz-progress i { height: 5px; flex: 1; border-radius: 3px; background: var(--line); }
.quiz-progress i.done { background: linear-gradient(90deg, var(--cool), var(--warm)); }
.quiz h3 { font-size: clamp(19px, 2.4vw, 25px); margin-bottom: 6px; }
.quiz .q-sub { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 22px; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz-options button {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-options button small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.quiz-options button:hover { border-color: var(--cool); background: var(--cool-tint); }
.quiz-back {
  margin-top: 18px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.quiz-back:hover { color: var(--ink); }

#compass-result { display: none; }
#minimap {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.result-card {
  border-radius: var(--radius);
  padding: 22px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
}
.result-card .rank { font-family: var(--ui); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.result-card h4 { font-size: 20px; margin: 6px 0 8px; }
.result-card p { font-size: 14px; color: var(--ink-soft); }
.result-card .countries { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.result-card .countries span {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink);
}
.result-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ── schools page ───────────────────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink-soft);
  cursor: pointer;
}
.filters button.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.db-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
}
.db-scroll { overflow-x: auto; }
table.db { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 14.5px; min-width: 760px; }
table.db th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--mist);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.db td { padding: 13px 16px; border-bottom: 1px solid #EEF3F6; color: var(--ink); white-space: nowrap; }
table.db td .sub { display: block; font-size: 12.5px; color: var(--ink-soft); }
table.db td.num { font-variant-numeric: tabular-nums; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.taxfree { background: #E5F4EC; color: #17784F; }
.pill.hiring { background: var(--warm-tint); color: var(--warm-deep); }
tr.locked td { filter: blur(6px); user-select: none; pointer-events: none; }
.paywall {
  position: absolute;
  inset: auto 0 0 0;
  top: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.99) 100%);
}
.paywall-card {
  text-align: center;
  max-width: 440px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.paywall-card .lock { font-size: 30px; }
.paywall-card h3 { font-size: 23px; }
.paywall-card p { font-family: var(--ui); font-size: 14.5px; color: var(--ink-soft); }
.paywall-card .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ── city profile pages ─────────────────────────────────────────── */
.city-hero { padding-block: 64px 48px; }
.city-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mini-globe-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.1"/></feComponentTransfer></filter><rect width="180" height="180" filter="url(%23n)"/></svg>'),
    radial-gradient(420px 300px at 70% 20%, rgba(140, 220, 245, 0.18), transparent 62%),
    linear-gradient(180deg, #093F63 0%, #0D6390 55%, #1183AF 100%);
}
#miniglobe { width: 100%; height: 100%; display: block; }
.mini-globe-panel .pin-caption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BBDFEF;
  white-space: nowrap;
}
.city-hero .crumbs { font-family: var(--ui); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.city-hero h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
.city-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.city-facts span {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
}
.city-facts span.warm { background: var(--warm-tint); border-color: #F3CDB2; color: var(--warm-deep); }
.city-facts span.cool { background: var(--cool-tint); border-color: #BFDFE7; color: var(--cool-deep); }
.profile-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #FFFFFF; }
.profile-list { display: flex; flex-direction: column; }
.profile-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #EEF3F6; align-items: center; }
.profile-row b { font-family: var(--display); font-weight: 700; font-size: 16.5px; }
.profile-row b i { display: block; font-family: var(--ui); font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.profile-row span { font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.profile-row.locked { filter: blur(7px); user-select: none; pointer-events: none; }
.profile-note { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  #globe-wrap { margin-inline: 0; }
  #globe { height: 480px; }
  .funnel { grid-template-columns: 1fr; }
  .funnel-step { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .funnel-step:first-child { border-top: 0; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer.featured { grid-column: span 2; }
  .articles, .result-cards { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .city-hero-grid { grid-template-columns: 1fr; }
  .mini-globe-panel { max-width: 380px; }
  .band { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .offers, .articles, .result-cards, .quiz-options { grid-template-columns: 1fr; }
  .offer.featured { grid-column: span 1; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .article, .offer { transition: none; }
}
