/* ===========================================================================
   Spaceducators — stylesheet
   Everything visual is driven by the tokens in :root. A design pass should
   start there; component rules below reference tokens only, never raw values.
   =========================================================================== */

:root {
  /* --- colour ----------------------------------------------------------- */
  --c-void:      #0B1026;   /* deep space — dark bands */
  --c-void-2:    #151C3B;   /* raised surface on dark */
  --c-surface:   #FFFFFF;
  --c-surface-2: #F6F7FB;   /* alternating light band */
  --c-line:      #E2E6F2;
  --c-text:      #151829;
  --c-muted:     #5A6178;
  --c-muted-dk:  #A8B0CC;   /* muted text on dark */
  --c-primary:   #2C3AA8;   /* indigo — links, primary buttons */
  --c-primary-d: #1E2A80;
  --c-accent:    #F4A02C;   /* star amber — highlights, badges */
  --c-success:   #1E7A55;
  --c-danger:    #B3261E;

  /* --- type ------------------------------------------------------------- */
  --f-display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-lg:   1.1875rem;
  --t-xl:   1.5rem;
  --t-2xl:  1.875rem;
  --t-3xl:  2.375rem;
  --t-4xl:  clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);

  /* --- space & shape ---------------------------------------------------- */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 5.5rem;
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-pill: 999px;
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --shadow: 0 1px 2px rgba(11,16,38,.05), 0 8px 24px rgba(11,16,38,.06);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-surface);
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-primary-d); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 var(--s-4); letter-spacing: -0.015em; }
h1 { font-size: var(--t-4xl); font-weight: 700; }
h2 { font-size: var(--t-3xl); font-weight: 600; }
h3 { font-size: var(--t-lg);  font-weight: 600; }
p  { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .band-dark::before, .band-dark::after { animation: none !important; transform: none; opacity: 1; }
  .cosmos { display: none; }
}

/* --- layout primitives ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--alt { background: var(--c-surface-2); }
.section__head { max-width: 640px; margin-bottom: var(--s-6); }
.section__head p { color: var(--c-muted); margin-bottom: 0; font-size: var(--t-lg); }
.skip-link {
  position: absolute; left: var(--s-4); top: -3rem; z-index: 100;
  background: var(--c-void); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); transition: top .15s;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* --- dark band ------------------------------------------------------------ */
.band-dark {
  background: var(--c-void);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Signature: a faint starfield, in two slowly-moving layers. Pure CSS, no
   assets. Both layers sit at z-index 0; content is lifted to 1 below. */
.band-dark::before,
.band-dark::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
}
/* near layer — brighter, drifts right, breathes */
.band-dark::before {
  inset: -6% -8%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px   at 27% 68%, rgba(255,255,255,.40), transparent),
    radial-gradient(1.5px 1.5px at 44% 18%, rgba(255,255,255,.30), transparent),
    radial-gradient(1px 1px   at 61% 52%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px   at 76% 30%, rgba(244,160,44,.55), transparent),
    radial-gradient(1px 1px   at 88% 72%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px   at 33% 88%, rgba(255,255,255,.30), transparent);
  animation: star-drift-a 150s linear infinite, star-breathe 9s ease-in-out infinite alternate;
}
/* far layer — dimmer, drifts the other way at half speed = parallax */
.band-dark::after {
  inset: -6% -8%;
  background-image:
    radial-gradient(1px 1px   at 7% 54%, rgba(255,255,255,.26), transparent),
    radial-gradient(1px 1px   at 21% 12%, rgba(255,255,255,.20), transparent),
    radial-gradient(1.5px 1.5px at 38% 76%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px   at 52% 34%, rgba(244,160,44,.28), transparent),
    radial-gradient(1px 1px   at 68% 84%, rgba(255,255,255,.18), transparent),
    radial-gradient(1px 1px   at 81% 46%, rgba(255,255,255,.24), transparent),
    radial-gradient(1px 1px   at 94% 20%, rgba(255,255,255,.20), transparent),
    radial-gradient(1px 1px   at 57% 8%,  rgba(255,255,255,.16), transparent);
  animation: star-drift-b 240s linear infinite, star-breathe 13s ease-in-out infinite alternate-reverse;
}
@keyframes star-drift-a { to { transform: translate3d(2.5%, -1.2%, 0); } }
@keyframes star-drift-b { to { transform: translate3d(-2%, 1%, 0); } }
@keyframes star-breathe { from { opacity: .72; } to { opacity: 1; } }

.band-dark > * { position: relative; z-index: 1; }

/* --- cosmic layer ---------------------------------------------------------
   Injected by site.js into every .band-dark. Three effects, all deliberately
   under-stated: a nebula that drifts, a handful of stars that twinkle out of
   phase, and a meteor that crosses roughly twice a minute. Everything
   animates transform/opacity only, so it stays on the compositor.          */
.cosmos {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  contain: layout paint;
}

/* nebula — two soft clouds, opposing slow drift */
.cosmos__nebula {
  position: absolute; inset: -40%;
  background:
    radial-gradient(38% 46% at 22% 34%, rgba(70,102,190,.24), transparent 70%),
    radial-gradient(30% 38% at 74% 62%, rgba(244,160,44,.13), transparent 70%),
    radial-gradient(26% 34% at 55% 18%, rgba(120,90,200,.16), transparent 70%);
  animation: nebula-drift 130s ease-in-out infinite alternate;
}
@keyframes nebula-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1);    opacity: .85; }
  to   { transform: translate3d(2.5%, -1.5%, 0) scale(1.08); opacity: 1; }
}

/* twinkle — individual stars pulsing out of phase with each other */
.cosmos__star {
  position: absolute; border-radius: 50%;
  background: #fff; opacity: 0;
  animation: twinkle var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: .16; transform: scale(.75); }
  50%      { opacity: var(--peak, .9); transform: scale(1.15); }
}
.cosmos__star { box-shadow: 0 0 4px 1px rgba(255,255,255,.18); }

/* comet — the deliberate one. Small and far away, so it reads as distance
   rather than spectacle: it takes about a minute and a half to cross, fading
   in and out at the edges. The wrapper handles travel, the inner parts handle
   look, so the two never fight over `transform`. */
.cosmos__comet {
  position: absolute; top: var(--top, 26%); left: -14%;
  width: 0; height: 0;
  animation: comet-travel var(--dur, 88s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cosmos__comet-tail {
  position: absolute; right: 0; top: -1px;
  width: var(--tail, 130px); height: 2px;
  background: linear-gradient(90deg,
              rgba(190,214,255,0) 0%,
              rgba(190,214,255,.16) 45%,
              rgba(214,232,255,.52) 100%);
  transform-origin: 100% 50%;
  transform: rotate(var(--angle, -13deg));
  filter: blur(.4px);
}
.cosmos__comet-head {
  position: absolute; right: -2px; top: -2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #EAF2FF;
  box-shadow: 0 0 7px 2px rgba(200,222,255,.75), 0 0 16px 5px rgba(120,160,235,.35);
  animation: comet-pulse 5s ease-in-out infinite;
}
@keyframes comet-travel {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  10%  { opacity: .85; }
  82%  { opacity: .85; }
  96%  { opacity: 0; }
  100% { opacity: 0; transform: translate3d(128vw, var(--rise, -40px), 0); }
}
@keyframes comet-pulse {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.25); opacity: 1; }
}

/* meteor — a short streak, visible for about a second per cycle */
.cosmos__meteor {
  position: absolute; top: var(--top, 20%); left: var(--left, 70%);
  width: 88px; height: 1px; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85));
  border-radius: 1px;
  transform: rotate(18deg);
  animation: meteor var(--dur, 26s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cosmos__meteor::after {
  content: ""; position: absolute; right: -1px; top: -1px;
  width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgba(255,255,255,.7);
}
@keyframes meteor {
  0%   { opacity: 0; transform: rotate(18deg) translate3d(0, 0, 0) scaleX(.2); }
  2%   { opacity: .9; }
  7%   { opacity: .9; transform: rotate(18deg) translate3d(260px, 84px, 0) scaleX(1); }
  9%   { opacity: 0; transform: rotate(18deg) translate3d(330px, 107px, 0) scaleX(.6); }
  100% { opacity: 0; transform: rotate(18deg) translate3d(330px, 107px, 0) scaleX(.6); }
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: var(--c-muted-dk); }
.band-dark a:not(.btn) { color: #fff; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 600;
  padding: 0.7rem 1.35rem; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-d); border-color: var(--c-primary-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-d); }
.band-dark .btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-void); }
.band-dark .btn--primary:hover { background: #ffb44e; border-color: #ffb44e; color: var(--c-void); }
.band-dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.band-dark .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.wordmark {
  font-family: var(--f-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--c-void);
}
.wordmark span:first-child { color: var(--c-primary); }
.wordmark span:last-child  { color: var(--c-void); }
.site-nav-wrap { margin-left: auto; display: flex; align-items: center; gap: var(--s-6); }
.site-nav ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: var(--t-sm); font-weight: 500; color: var(--c-text); text-decoration: none;
  padding-block: var(--s-2); border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--c-primary); }
.site-nav a[aria-current="page"] { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.header-ctas { display: flex; gap: var(--s-3); }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .site-nav-wrap { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: transparent; border: 1px solid var(--c-line); border-radius: var(--r-sm); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--c-text); border-radius: 2px; }
  .site-header.is-open .site-nav-wrap {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--s-4);
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-line);
    padding: var(--s-5); box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav ul { flex-direction: column; gap: var(--s-3); }
  .site-header.is-open .header-ctas .btn { flex: 1; }
}

/* --- hero ----------------------------------------------------------------- */
.hero { padding-block: var(--s-9) var(--s-8); }
.hero__inner { max-width: 780px; }
.hero h1 { margin-bottom: var(--s-5); }
.hero__lead { font-size: var(--t-lg); color: var(--c-muted-dk); margin-bottom: var(--s-6); }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 600; font-family: var(--f-display);
  letter-spacing: .04em; text-transform: uppercase;
  padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  background: rgba(244,160,44,.14); color: var(--c-accent);
  border: 1px solid rgba(244,160,44,.35); margin-bottom: var(--s-5);
}
.hero__bullets {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  list-style: none; padding: 0; margin: var(--s-6) 0 0;
  font-size: var(--t-sm); color: var(--c-muted-dk);
}
.hero__bullets li { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.hero__bullets li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); flex: none;
}

/* --- generic grid + cards ------------------------------------------------- */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover, a.card:focus-visible {
  border-color: var(--c-primary); box-shadow: var(--shadow);
  transform: translateY(-2px); color: inherit;
}
a.card:hover .icon { color: var(--c-accent); }
/* linked cards announce themselves with an arrow that slides in on hover */
a.card h3 { display: flex; align-items: center; gap: var(--s-2); }
a.card h3::after {
  content: "\2192"; color: var(--c-primary);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
a.card:hover h3::after, a.card:focus-visible h3::after { opacity: 1; transform: translateX(0); }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--c-muted); font-size: var(--t-sm); margin-bottom: 0; }
.section--alt .card { background: var(--c-surface); }

.icon {
  display: inline-flex;              /* span is inline by default; without this
                                        width/height are ignored and the svg
                                        sizes against its container instead */
  width: 40px; height: 40px; margin-bottom: var(--s-4);
  color: var(--c-primary); flex: none;
}
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6;
            stroke-linecap: round; stroke-linejoin: round; }

/* --- numbered steps ------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--s-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding-top: var(--s-5); border-top: 2px solid var(--c-line); position: relative; }
.step::before {
  content: "0" counter(step);
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 700;
  color: var(--c-accent); letter-spacing: .08em;
  position: absolute; top: calc(-1 * var(--s-5)); left: 0;
}
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--c-muted); font-size: var(--t-sm); margin-bottom: 0; }

/* --- testimonials --------------------------------------------------------- */
.quote {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.quote blockquote { margin: 0; font-size: var(--t-sm); color: var(--c-text); }
.quote blockquote::before { content: "\201C"; font-family: var(--f-display); font-size: 2.5rem;
  line-height: 0; color: var(--c-accent); display: block; margin-bottom: var(--s-4); }
.quote figcaption { margin-top: auto; font-size: var(--t-xs); }
.quote .name { font-family: var(--f-display); font-weight: 600; display: block; }
.quote .role { color: var(--c-muted); }

/* --- testimonial marquee -------------------------------------------------- */
.marquee {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  /* fade the edges so cards enter and leave rather than being clipped */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee__track { display: flex; gap: var(--s-4); width: max-content; padding-inline: var(--s-5); }
.marquee__track .quote { width: 340px; flex: none; }
/* animation is added by JS only after the track has been duplicated, so a
   non-JS visitor gets a plain scrollable row instead of a jumping loop */
.marquee.is-live { overflow-x: hidden; }
.marquee.is-live .marquee__track { animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(calc(-50% - (var(--gap, 16px) / 2)), 0, 0); } }

.marquee__controls { display: flex; justify-content: flex-end; margin-top: var(--s-4); }
.marquee__toggle {
  font: inherit; font-size: var(--t-xs); font-family: var(--f-display); font-weight: 600;
  color: var(--c-muted); background: transparent; cursor: pointer;
  border: 1px solid var(--c-line); border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
}
.marquee__toggle:hover { color: var(--c-primary); border-color: var(--c-primary); }
.marquee__controls[hidden] { display: none; }

@media (max-width: 620px) { .marquee__track .quote { width: 280px; } }

@media (prefers-reduced-motion: reduce) {
  .marquee.is-live { overflow-x: auto; }
  .marquee.is-live .marquee__track { animation: none !important; }
}

/* --- accordion ------------------------------------------------------------ */
.accordion { border-top: 1px solid var(--c-line); }
.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__btn {
  all: unset; box-sizing: border-box; display: flex; width: 100%; gap: var(--s-4);
  align-items: center; justify-content: space-between; cursor: pointer;
  padding: var(--s-4) 0; font-family: var(--f-display); font-size: var(--t-lg);
  font-weight: 600; color: var(--c-text);
}
.accordion__btn:hover { color: var(--c-primary); }
.accordion__btn .chev { flex: none; width: 20px; height: 20px; color: var(--c-primary); transition: transform .2s; }
.accordion__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion__panel { padding: 0 0 var(--s-5); max-width: 68ch; color: var(--c-muted); }
.accordion__panel[hidden] { display: none; }

/* --- static FAQ ----------------------------------------------------------- */
.faq-static { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .faq-static { grid-template-columns: 1fr; } }
.faq-static h3 { margin-bottom: var(--s-2); }
.faq-static p { color: var(--c-muted); font-size: var(--t-sm); margin-bottom: 0; }

/* --- stat band ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-bottom: var(--s-7); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__value { font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 700; color: var(--c-accent); display: block; }
.stat__label { font-size: var(--t-sm); color: var(--c-muted-dk); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.chips li {
  font-size: var(--t-xs); font-weight: 500; padding: var(--s-2) var(--s-4);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-pill);
  color: #fff; margin: 0;
}
/* Payment marks sit on white cards because most scheme guidelines require
   full-colour marks on a clean background — see assets/payments/README.md. */
.paylogos { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; margin: 0; }
.paylogos li {
  margin: 0; background: #fff; border-radius: var(--r-sm);
  padding: 5px 8px; line-height: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.paylogos img { width: 44px; height: 28px; object-fit: contain; display: block; }

/* Two dark bands in a row read as one block. Give the second a step in tone
   and a lit seam — the same treatment used above the footer, so the page has
   one consistent rule for "a new dark section starts here". */
.band-dark + .band-dark {
  background: #0E1433;
  border-top: 1px solid rgba(255,255,255,.07);
}
.band-dark + .band-dark::before { content: none; }   /* near starfield layer off */

/* --- CTA band ------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: 680px; }
.cta-band p { margin-bottom: var(--s-6); font-size: var(--t-lg); }
.cta-band .btn-row { justify-content: center; }

/* --- service blocks ------------------------------------------------------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6);
  padding-block: var(--s-6); border-top: 1px solid var(--c-line); }
.service:first-child { border-top: none; padding-top: 0; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: var(--s-4); } }
.service h3 { font-size: var(--t-xl); }
.service p { color: var(--c-muted); }
.service ul { list-style: none; padding: 0; margin: 0; }
.service ul li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); }
.service ul li::before { content: "→"; color: var(--c-accent); font-weight: 700; flex: none; }
.note {
  border-left: 3px solid var(--c-accent); background: rgba(244,160,44,.09);
  padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm); color: var(--c-text); margin-bottom: var(--s-4);
}

/* --- tutor cards ---------------------------------------------------------- */
.tutor { gap: var(--s-3); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--c-void); color: var(--c-accent);
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-sm); letter-spacing: .04em;
}
.tutor__head { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-2); }
.tutor__head h3 { margin: 0; }
.tutor__cred { font-size: var(--t-xs); color: var(--c-muted); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: var(--t-xs); padding: 2px var(--s-3); border-radius: var(--r-pill);
  background: var(--c-surface-2); border: 1px solid var(--c-line); color: var(--c-muted); margin: 0;
}
.tutor__meta { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--t-xs); color: var(--c-muted); }
.rating { color: var(--c-accent); font-weight: 600; }
.tutor__avail { font-size: var(--t-xs); color: var(--c-muted); }
.tutor .btn { margin-top: auto; align-self: flex-start; }

/* --- pricing -------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); align-items: stretch; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; gap: var(--s-4); }
.tier--popular { border-color: var(--c-primary); box-shadow: var(--shadow); }
.tier__flag {
  position: absolute; top: -12px; left: var(--s-5);
  background: var(--c-primary); color: #fff; font-family: var(--f-display);
  font-size: var(--t-xs); font-weight: 600; padding: 3px var(--s-3); border-radius: var(--r-pill);
}
.tier__name { font-size: var(--t-base); margin-bottom: var(--s-2); }
.tier__price { font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 700; line-height: 1; }
.tier__unit { font-size: var(--t-sm); color: var(--c-muted); display: block; margin-top: var(--s-2); }
.tier__was { font-size: var(--t-sm); color: var(--c-muted); text-decoration: line-through; margin-right: var(--s-2); }
.tier__save { font-size: var(--t-xs); font-weight: 600; color: var(--c-success); }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier ul li { display: flex; gap: var(--s-3); font-size: var(--t-sm); color: var(--c-muted); }
.tier ul li::before { content: "✓"; color: var(--c-success); font-weight: 700; flex: none; }
.tier .btn { width: 100%; margin-top: auto; }

.callout {
  border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent);
  background: var(--c-surface); border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
}
.callout h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.callout p { margin-bottom: 0; color: var(--c-muted); }

/* --- team + checklist ----------------------------------------------------- */
.member { text-align: left; }
.member .avatar { width: 60px; height: 60px; font-size: var(--t-base); margin-bottom: var(--s-4); }
.member h3 { margin-bottom: 2px; }
.member__title { font-size: var(--t-xs); color: var(--c-primary); font-weight: 600; margin-bottom: var(--s-3); }
.checklist { counter-reset: chk; list-style: none; padding: 0; margin: 0; max-width: 72ch; }
.checklist li {
  counter-increment: chk; position: relative; padding-left: 3rem;
  margin-bottom: var(--s-4); color: var(--c-muted); font-size: var(--t-sm);
}
.checklist li::before {
  content: counter(chk); position: absolute; left: 0; top: -2px;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-xs); color: var(--c-primary);
}

/* --- prose ---------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose p { color: var(--c-muted); }

/* --- contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-7); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s-2); }
.field .req { color: var(--c-danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--t-sm); color: var(--c-text);
  padding: 0.7rem var(--s-4); border: 1px solid var(--c-line);
  border-radius: var(--r-md); background: var(--c-surface);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--c-primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field .error { display: block; font-size: var(--t-xs); color: var(--c-danger); margin-top: var(--s-2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--c-danger); }
.consent { font-size: var(--t-xs); color: var(--c-muted); margin-top: var(--s-4); }
.info-panel { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-6); }
.info-item { display: flex; gap: var(--s-4); margin-bottom: var(--s-5); }
.info-item:last-child { margin-bottom: 0; }
.info-item .icon { width: 26px; height: 26px; margin: 3px 0 0; }
.info-item h3 { font-size: var(--t-sm); margin-bottom: var(--s-1); }
.info-item p { font-size: var(--t-sm); color: var(--c-muted); margin: 0; }

/* --- legal pages ---------------------------------------------------------- */
.legal { padding-block: var(--s-8); }
.legal__meta { font-size: var(--t-sm); color: var(--c-muted); margin-bottom: var(--s-7); }
.legal section { margin-bottom: var(--s-6); }
.legal h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.legal h3 { font-size: var(--t-base); margin: var(--s-5) 0 var(--s-2); }
.legal p, .legal li { color: var(--c-muted); font-size: var(--t-sm); }
.legal ul, .legal ol { padding-left: 1.35em; }
.legal .callout { margin-bottom: var(--s-6); }
.legal .callout p { font-size: var(--t-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin-bottom: var(--s-4); }
.legal th, .legal td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.legal th { font-family: var(--f-display); color: var(--c-text); font-weight: 600; }
.contact-block {
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5); font-size: var(--t-sm);
}
.contact-block p { margin: 0; }
.legal-toc { font-size: var(--t-sm); }

/* --- footer --------------------------------------------------------------- */
/* The closing CTA band and the footer are both dark, so without a break they
   read as one block. A step down in tone plus a lit hairline separates them. */
.site-footer {
  background: #070B18;
  color: var(--c-muted-dk);
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
}
/* a soft light seam along the top edge, brightest in the middle */
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(900px, 90%); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244,160,44,.45), transparent);
}
/* and give the band above it room to end */
.cta-band { padding-bottom: var(--s-9); }
.site-footer h3 { color: #fff; font-size: var(--t-sm); margin-bottom: var(--s-4); letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-6); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: var(--c-muted-dk); text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .wordmark { display: inline-block; margin-bottom: var(--s-4); }
.site-footer .wordmark span:first-child { color: var(--c-accent); }
.site-footer .wordmark span:last-child { color: #fff; }
.footer-blurb { font-size: var(--t-sm); max-width: 34ch; margin-bottom: var(--s-4); }
.footer-addr { font-size: var(--t-xs); font-style: normal; line-height: 1.7; }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: var(--t-xs);
}

/* --- utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
