/* ==========================================================================
   Moore Tutoring Solutions — site stylesheet
   Identity: "graph paper & ink" — cool paper white with a faint math grid,
   deep ink navy, cobalt blue actions, highlighter-yellow marks, mono numerals.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --paper: #f5f7fa;          /* cool paper white */
  --paper-raised: #ffffff;
  --grid-line: rgba(43, 78, 230, 0.07);
  --ink: #10182b;            /* near-black navy ink */
  --ink-soft: #3c4560;       /* secondary text */
  --ink-faint: #6b7490;      /* captions, meta */
  --cobalt: #2b4ee6;         /* primary action */
  --cobalt-deep: #1d38b4;    /* hover / active */
  --cobalt-tint: #e6ebfc;    /* soft chips, callouts */
  --navy-panel: #141d3a;     /* dark sections */
  --navy-panel-2: #1b2650;
  --highlight: #ffd449;      /* highlighter yellow */
  --success: #0e7a56;
  --line: #d9deea;           /* hairline borders */

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 43, 0.05), 0 8px 24px rgba(16, 24, 43, 0.07);
  --shadow-lift: 0 2px 4px rgba(16, 24, 43, 0.06), 0 14px 34px rgba(16, 24, 43, 0.12);
  --wrap: 1120px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* faint graph-paper grid */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--cobalt-deep);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding: clamp(3.2rem, 8vw, 5.5rem) 0;
}

.section--tight {
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
}

/* Eyebrow label — mono, like an exam form field */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--highlight);
  border-radius: 2px;
}

/* Highlighter swipe on key phrases */
.mark {
  background-image: linear-gradient(to top, var(--highlight) 0 38%, transparent 38%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.7s ease 0.25s;
  padding: 0 0.08em;
}

/* The highlighter "sweeps" across the phrase when it scrolls into view */
.mark.is-visible {
  background-size: 100% 100%;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46em;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85em 1.7em;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 78, 230, 0.32);
}

.btn--primary:hover {
  background: var(--cobalt-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 78, 230, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--highlight);
  color: var(--ink);
}

.btn--lg {
  font-size: 1.1rem;
  padding: 1em 2.1em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  flex: none;
}

@media (max-width: 430px) {
  .brand {
    font-size: 0.93rem;
    gap: 0.5rem;
  }

  .brand__mark {
    width: 28px;
    height: 22px;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.97rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--cobalt-tint);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(to top, var(--highlight) 0 26%, transparent 26%);
  border-radius: 0;
}

.nav__cta {
  margin-left: 0.6rem;
}

.nav__cta .btn {
  padding: 0.6em 1.3em;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before {
  position: absolute;
  top: -7px;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 0.8rem 1.2rem 1.4rem;
  }

  .nav__menu.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav__link {
    padding: 0.85rem 0.9rem;
    font-size: 1.05rem;
  }

  /* In the collapsed menu, mark the current page with a side accent
     instead of the full-width underline swipe */
  .nav__link[aria-current="page"] {
    background: var(--cobalt-tint);
    border-radius: 8px;
    box-shadow: inset 4px 0 0 var(--highlight);
  }

  .nav__cta {
    margin: 0.8rem 0 0;
  }

  .nav__cta .btn {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  max-width: 13em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1.2rem;
}

.hero__note {
  font-size: 0.92rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hero__note svg {
  flex: none;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* Scorecard visual in hero — styled like a reported test result */
.scorecard {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.6rem 1.6rem 1.4rem;
  max-width: 420px;
  margin-left: auto;
  position: relative;
}

.scorecard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border-top: 5px solid var(--cobalt);
  pointer-events: none;
}

.scorecard__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 1.1rem;
}

.scorecard__rows {
  display: grid;
  gap: 0.9rem;
}

.scorecard__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.scorecard__label {
  color: var(--ink-soft);
  font-weight: 500;
}

.scorecard__bar {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--cobalt-tint);
  border-radius: 99px;
  overflow: hidden;
}

.scorecard__bar i {
  display: block;
  height: 100%;
  background: var(--cobalt);
  border-radius: 99px;
}

.scorecard__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
}

.scorecard__delta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  background: #e2f4ec;
  border-radius: 6px;
  padding: 0.1em 0.5em;
}

.scorecard__foot {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

@media (max-width: 880px) {
  .scorecard {
    margin: 0 auto;
  }
}

/* ---------- Cards & grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 880px) {
  .card-grid,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0.9rem;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cobalt-tint);
  display: grid;
  place-items: center;
  color: var(--cobalt);
}

.card p:last-child {
  margin-bottom: 0;
}

/* Numbered steps */
.step {
  position: relative;
  padding-top: 0.4rem;
}

.step__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  border-radius: 8px;
  display: inline-block;
  padding: 0.25em 0.7em;
  margin-bottom: 0.9rem;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}

@media (max-width: 880px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat {
  text-align: center;
  padding: 1.4rem 0.8rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--cobalt);
  display: block;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  display: block;
}

/* ---------- Dark panel sections ---------- */
.panel-dark {
  background: var(--navy-panel);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #e8ecf7;
}

.panel-dark h2,
.panel-dark h3 {
  color: #fff;
}

.panel-dark .lead {
  color: #b8c1dd;
}

.panel-dark .eyebrow {
  color: var(--highlight);
}

.panel-dark .card {
  background: var(--navy-panel-2);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d5dbee;
}

/* Light-background cards placed inside dark panels keep ink text */
.panel-dark .tier,
.panel-dark .quote-card {
  color: var(--ink);
}

.panel-dark .tier h3,
.panel-dark .quote-card h3 {
  color: var(--ink);
}

/* ---------- Pricing tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.6rem;
  align-items: stretch;
}

@media (max-width: 980px) {
  .tiers {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tier {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.tier--featured {
  border: 2px solid var(--cobalt);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 981px) {
  .tier--featured {
    transform: translateY(-14px);
  }
}

.tier__flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border-radius: 99px;
  white-space: nowrap;
}

.tier__flag--muted {
  background: var(--ink);
}

.tier__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0.4rem 0 0.2rem;
}

.tier__tag {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.tier__price {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.tier__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.tier__list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}

.tier__list li {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.tier__list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  border-radius: 50%;
  background: var(--cobalt-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.7l4.5-5' fill='none' stroke='%232b4ee6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.tier__list li.tier__no {
  color: var(--ink-faint);
}

.tier__list li.tier__no::before {
  background: #eef0f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5M7.5 2.5l-5 5' stroke='%236b7490' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.tier .btn {
  width: 100%;
}

/* Consultation + payment buttons stack inside each tier card */
.tier .btn + .btn {
  margin-top: 0.65rem;
}

/* ---------- Proof points ("What an ACT score is actually worth") ----------
   Rendered by js/proofSection.js from the data in js/proofPoints.js —
   edit the numbers there, never here or in the HTML. */
.proof-card {
  display: flex;
  flex-direction: column;
}

.proof-card__num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.proof-card__detail {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
}

/* Visible source citation pinned to the bottom of each card.
   --ink-faint on the white card passes WCAG AA (4.7:1). */
.proof-card__source {
  margin: 0.4rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Verification line under the cards. Uses --ink-soft rather than the
   usual --ink-faint because ink-faint only reaches 4.4:1 on the paper
   background — below WCAG AA for small text. */
.proof-foot {
  margin: 1.8rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.proof-cta {
  margin: 1.4rem 0 0;
  text-align: center;
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
  flex: 1;
}

/* Longer reviews run to more than one paragraph. Keep them spaced from each
   other but flush with the name underneath. */
.quote-card blockquote p {
  margin: 0 0 0.9em;
}

.quote-card blockquote p:last-child {
  margin-bottom: 0;
}

.quote-card blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--highlight);
  -webkit-text-stroke: 1px var(--ink);
  margin-bottom: 0.5rem;
}

.quote-card figcaption {
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-card figcaption span {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* Result chips on testimonials */
.result-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  background: #e2f4ec;
  border-radius: 8px;
  padding: 0.3em 0.8em;
}

/* ---------- Counting-up numbers ----------
   Anything carrying data-countup animates from zero when it scrolls into
   view (see js/main.js). Tabular figures keep every digit the same width so
   the number doesn't wobble on its way up. */
[data-countup] {
  font-variant-numeric: tabular-nums;
}

/* ---------- Before / after score blocks (results page) ---------- */
.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin: 1.1rem 0 1.3rem;
  padding: 1.1rem 0.9rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.ba__cell {
  text-align: center;
  min-width: 0;
}

.ba__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ba__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-faint);
}

.ba__cell--after .ba__label {
  color: var(--cobalt);
}

.ba__cell--after .ba__num {
  color: var(--cobalt);
}

.ba__arrow {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-faint);
}

.ba__delta {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  background: #e2f4ec;
  border-radius: 8px;
  padding: 0.3em 0.8em;
}

/* ---------- Guarantee callout ---------- */
.guarantee {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 2.2rem;
  padding: 1.5rem 1.6rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 5px solid var(--success);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guarantee__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--success);
  background: #e2f4ec;
}

.guarantee h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.guarantee p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.panel-dark .guarantee {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: #3ecf9a;
  box-shadow: none;
}

.panel-dark .guarantee p {
  color: #b8c1dd;
}

.panel-dark .guarantee__icon {
  color: #3ecf9a;
  background: rgba(62, 207, 154, 0.14);
}

@media (max-width: 560px) {
  .guarantee {
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* Placeholder badge — remove when real content goes in */
.placeholder-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6d00;
  background: #fdf1c7;
  border: 1px dashed #d9b93d;
  border-radius: 6px;
  padding: 0.25em 0.7em;
  margin-bottom: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 2.2rem auto 0;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cobalt);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--cobalt-tint);
}

/* The open question lifts off the page and grows a cobalt spine */
.faq-item[open] {
  border-color: var(--cobalt);
  box-shadow: var(--shadow-lift);
}

.faq-item[open] summary {
  box-shadow: inset 4px 0 0 var(--cobalt);
}

.faq-item__body {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

/* A form card standing on its own (not in a two-column split) — kept narrow
   enough to stay readable on a wide screen. */
.form-card--centered {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Embedded Google Form (apply page) ----------
   The form itself lives in Google Forms; this is just the window onto it.

   A browser cannot measure the height of a page belonging to another site,
   so these heights are set by hand. Err on the tall side: an iframe taller
   than its form just shows a little extra of the form's own background,
   while one that's too short traps the visitor in a second scrollbar inside
   the page — and people miss questions that way.

   Measured at the time of writing: the longest page of the application (the
   first one, with five questions) needs about 1260px once Google's own
   640px-wide question column stops shrinking.

   IF A PAGE OF THE FORM LOOKS CUT OFF, or a scrollbar appears down the
   right-hand side of the form itself, raise the matching number below. */
.form-embed {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 1320px;
  border: 0;
}

/* Below roughly 760px the window is narrower than Google's 640px question
   column, so the questions start wrapping and the form grows taller. */
@media (max-width: 760px) {
  .form-embed iframe {
    height: 1620px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.form-field label span.req {
  color: var(--cobalt);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.95em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(43, 78, 230, 0.18);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 1rem;
}

.form-success {
  display: none;
  background: #e2f4ec;
  border: 1px solid #b4e0cd;
  color: #0b5c41;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f0c2c2;
  color: #8a2323;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
  font-weight: 500;
}

.form-error.is-visible {
  display: block;
}

/* ---------- Contact info list ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list .card__icon {
  width: 42px;
  height: 42px;
  flex: none;
}

.contact-list strong {
  display: block;
  font-size: 0.95rem;
}

.contact-list a {
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list small {
  color: var(--ink-faint);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 4.8rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(43, 78, 230, 0.045), transparent);
}

.page-hero h1 {
  max-width: 16em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--cobalt);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.4rem, 6vw, 3.8rem) clamp(1.6rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.3em;
}

.cta-band p {
  margin: 0;
  color: #d6ddfa;
  max-width: 34em;
}

/* ---------- Two-column splits ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Values / checklist rows */
.check-rows {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.check-rows li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.check-rows .dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 0.15em;
}

.check-rows strong {
  display: block;
}

.check-rows p {
  margin: 0.15em 0 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-panel);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #b8c1dd;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.8rem, 6vw, 4rem) 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.site-footer .brand,
.site-footer .brand span {
  color: #fff !important;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #b8c1dd;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-tagline {
  margin-top: 1.1rem;
  max-width: 24em;
  color: #8f9ac0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: #7e89ad;
  font-family: var(--font-mono);
}

/* ---------- Reveal animation (restrained; disabled if reduced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .faq-item summary::after {
    transition: none;
  }
}

/* ---------- Animations ---------- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bar-grow {
  from {
    width: 0;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FAQ answers unfold downward out of their question */
@keyframes faq-unfold {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes brand-draw {
  from {
    stroke-dashoffset: 130;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Page-top content eases in on load, line by line */
.hero .eyebrow,
.page-hero .eyebrow {
  animation: rise-in 0.5s ease 0.05s both;
}

.hero h1,
.page-hero h1 {
  animation: rise-in 0.55s ease 0.15s both;
}

.hero .lead,
.page-hero .lead {
  animation: rise-in 0.55s ease 0.28s both;
}

.hero__actions {
  animation: rise-in 0.55s ease 0.4s both;
}

.hero__note {
  animation: rise-in 0.55s ease 0.52s both;
}

/* The hero scorecard slides in, its bars fill, and the score chips pop */
.scorecard {
  animation: rise-in 0.6s ease 0.35s both;
}

.scorecard__bar i {
  animation: bar-grow 1s cubic-bezier(0.25, 0.7, 0.3, 1) 0.8s both;
}

.scorecard__delta {
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both;
}

/* The logo's peak draws itself on page load */
.brand__mark path {
  stroke-dasharray: 130;
  animation: brand-draw 0.9s ease-out 0.1s both;
}

/* FAQ answers unfold as they open */
.faq-item[open] .faq-item__body {
  animation: faq-unfold 0.35s ease;
}

/* Cards lift slightly under the cursor */
.card,
.tier,
.quote-card,
.faq-item {
  transition: opacity 0.55s ease, transform 0.55s ease, translate 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover,
.tier:hover,
.quote-card:hover {
  translate: 0 -5px;
  box-shadow: var(--shadow-lift);
}

/* FAQ rows sit closer together, so they lift a little less */
.faq-item:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-lift);
}

/* Buttons press down on click */
.btn:active,
.btn--primary:hover:active {
  transform: translateY(0) scale(0.97);
}

/* If JavaScript is off, skip the scroll effects and show everything */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .mark {
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .page-hero .eyebrow,
  .hero h1,
  .page-hero h1,
  .hero .lead,
  .page-hero .lead,
  .hero__actions,
  .hero__note,
  .scorecard,
  .scorecard__bar i,
  .scorecard__delta,
  .brand__mark path,
  .faq-item[open] .faq-item__body {
    animation: none;
  }

  .mark {
    background-size: 100% 100%;
    transition: none;
  }

  .card,
  .tier,
  .quote-card,
  .faq-item {
    transition: none;
  }

  .card:hover,
  .tier:hover,
  .quote-card:hover,
  .faq-item:hover {
    translate: none;
  }
}
