/* ============================================================
   GREENVILLE — Baseball Diamond System
   Mastermind Marketing, Inc.
   Single stylesheet for the interactive Greenville tracker page.
   Color is driven by CSS variables so the theme lives in one place.
   ============================================================ */

:root {
  --green: #1a9d6b;          /* primary brand green */
  --green-dark: #157a52;     /* hover / link text */
  --green-darker: #0f5e3f;
  --field: #2f9e57;          /* infield grass */
  --field-dark: #25814a;     /* outfield grass band */
  --dirt: #c98a4b;           /* base path dirt */
  --dirt-soft: #d99c5e;
  --gold: #e8b53a;           /* home run / certification accent */
  --gold-dark: #c8941d;
  --ink: #1f2430;            /* primary text */
  --ink-soft: #4b5563;       /* secondary text */
  --ink-faint: #9aa3af;      /* captions / muted labels */
  --line: #e6e8eb;           /* card + divider borders */
  --bg: #f4f5f6;             /* page background */
  --card: #ffffff;           /* card background */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 6px 18px rgba(16, 24, 40, 0.10);
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}
.topbar nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.topbar nav a:hover { color: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.topbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(26,157,107,.16), transparent 70%),
    var(--card);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 38px; padding-bottom: 38px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 34px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #eef8f2;
  border: 1px solid #d7ece1;
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero .tagline {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.hero .mission {
  margin: 0 0 22px;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero .mission b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-hover); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #d7ece1; color: var(--green-dark); }

/* ---------- Hero video slot ---------- */
.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1411;
  border-radius: 10px;
  overflow: hidden;
}
.video-frame video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.video-frame .ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #cfe3d8;
  text-align: center;
  padding: 24px;
}
.video-frame .ph .play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  padding-left: 4px;
}
.video-frame .ph strong { font-size: 15px; color: #eafff4; }
.video-frame .ph small { color: #8fb3a2; font-size: 12.5px; max-width: 320px; }
.video-cap {
  margin: 12px 4px 2px;
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Generic section ---------- */
section.block { padding: 46px 0; }
section.block.tinted { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.sec-head .kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.sec-head h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.02em; }
.sec-head p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   THE FIELD: diamond + scoreboard layout
   ============================================================ */
.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 26px;
  align-items: start;
}

/* --- Diamond card --- */
.diamond-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.diamond-wrap { position: relative; width: 100%; }
.diamond-svg { width: 100%; height: auto; display: block; }

/* base path lines fill in as the runner advances */
.basepath { stroke: var(--dirt); stroke-width: 9; stroke-linecap: round; fill: none; opacity: .55; }
.basepath.lit { stroke: var(--gold); opacity: 1; }

/* base nodes (clickable faces) */
.base {
  cursor: pointer;
  outline: none;
}
.base .node {
  transition: transform .18s ease, filter .18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.base:hover .node { filter: drop-shadow(0 4px 8px rgba(16,24,40,.28)); }
.base:hover .node, .base:focus-visible .node { transform: scale(1.08); }
.base .base-label {
  font-family: var(--font);
  font-weight: 800;
  fill: #fff;
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: -0.01em;
}
.base .base-sub {
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
  text-anchor: middle;
  pointer-events: none;
  fill: var(--ink-soft);
}

/* state-driven base fills (set via class on the <g class="base">) */
.base .node { fill: #ffffff; stroke: #b9c2cb; stroke-width: 2.5; }
.base.locked .node { fill: #eef0f2; stroke: #cdd4db; }
.base.locked .base-label { fill: #aeb6bf; }
.base.unlocked .node { fill: var(--green); stroke: var(--green-darker); }
.base.unlocked .base-label { fill: #fff; }
.base.complete .node { fill: var(--green-darker); stroke: var(--green-darker); }
.base.complete .base-label { fill: #fff; }

/* home run star node */
.base.homerun .node { fill: #f4f6f7; stroke: var(--gold-dark); }
.base.homerun.unlocked .node { fill: var(--gold); stroke: var(--gold-dark); }
.base.homerun.complete .node { fill: var(--gold); stroke: var(--gold-dark); }
.base.homerun .base-label { fill: var(--gold-dark); }
.base.homerun.unlocked .base-label,
.base.homerun.complete .base-label { fill: #5a3d05; }

/* small check mark badge on completed bases */
.base .check { opacity: 0; transition: opacity .2s ease; }
.base.complete .check { opacity: 1; }

/* runner marker */
#runner { transition: transform .5s cubic-bezier(.5,.05,.3,1); }
#runner circle { fill: var(--gold); stroke: #fff; stroke-width: 3; }

/* celebrate pulse on home run */
@keyframes hrpulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.base.homerun.celebrate .node { animation: hrpulse .7s ease 3; }

.diamond-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.diamond-legend span { display: inline-flex; align-items: center; gap: 7px; }
.diamond-legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.lg-locked { background: #eef0f2; border: 1px solid #cdd4db; }
.lg-unlocked { background: var(--green); }
.lg-complete { background: var(--green-darker); }
.lg-homerun { background: var(--gold); }

/* ============================================================
   SCOREBOARD
   ============================================================ */
.scoreboard {
  background: #11241b;
  color: #eafff4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #0c1a13;
}
.scoreboard .sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #0c1a13;
  border-bottom: 1px solid #1d3a2b;
}
.scoreboard .sb-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fe6bf;
}
.scoreboard .sb-base {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #4a3203;
  padding: 4px 10px;
  border-radius: 999px;
}
.sb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #1d3a2b;
}
.sb-cell { background: #11241b; padding: 16px 18px; }
.sb-cell .k {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6fb594;
  font-weight: 700;
}
.sb-cell .v {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fff;
}
.sb-cell .v small { font-size: 15px; color: #6fb594; font-weight: 700; }

/* controls panel under scoreboard */
.controls {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 18px;
}
.controls h4 {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.controls .hint { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-faint); }

.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ctrl-row:first-of-type { border-top: none; }
.ctrl-row .lab { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ctrl-row .lab small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background .14s ease, border-color .14s ease;
}
.stepper button:hover:not(:disabled) { background: #f5faf7; border-color: #d7ece1; color: var(--green-dark); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper .count {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

/* Top 3 list */
.top3 { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.top3 .t3-add { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.top3 .t3-add-row { display: flex; gap: 8px; }
.top3 input[type="text"],
.top3 input[type="tel"],
.top3 input[type="email"] {
  flex: 1 1 auto;
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.top3 input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,157,107,.15); }
.top3 .t3-err {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #c0392b;
}
.top3 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top3 li {
  background: #f5faf7;
  border: 1px solid #d7ece1;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.top3 li .who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.top3 li .nm { font-weight: 700; }
.top3 li .contact { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-soft); font-size: 12.5px; }
.top3 li .contact a { color: var(--green-dark); }
.top3 li .contact a:hover { text-decoration: underline; }
.top3 li .contact .none { color: var(--ink-faint); font-style: italic; }
.top3 .t3-empty {
  font-size: 12.5px; color: var(--ink-faint); font-style: italic;
  background: transparent; border: none; padding: 4px 0;
}

/* Pipeline rows: who + stage chip + actions */
.p-row { display: flex; flex-direction: column; gap: 10px; }
.p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.p-stage {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #e8eef0;
  color: var(--ink-soft);
  border: 1px solid #dbe2e6;
}
.p-stage.s1 { background: #eef8f2; color: var(--green-dark); border-color: #cfeadd; }
.p-stage.s2 { background: #e6f5ec; color: var(--green-dark); border-color: #c2e6d3; }
.p-stage.s3 { background: #def0e6; color: var(--green-darker); border-color: #b3ddc6; }
.p-stage.s4 { background: var(--gold); color: #5a3d05; border-color: var(--gold-dark); }

.p-actions { display: inline-flex; align-items: center; gap: 6px; }
.p-actions button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1;
}
.p-back {
  width: 30px; height: 30px;
  font-size: 15px;
  color: var(--ink-soft);
}
.p-back:hover:not(:disabled) { border-color: #d7ece1; color: var(--green-dark); }
.p-adv {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--green);
  color: #fff;
  border-color: var(--green-darker);
}
.p-adv:hover:not(:disabled) { background: var(--green-dark); }
.p-adv:disabled { background: var(--gold); color: #5a3d05; border-color: var(--gold-dark); cursor: default; opacity: 1; }
.p-actions button:disabled { opacity: .45; cursor: not-allowed; }
.p-actions .rm {
  width: 30px; height: 30px;
  font-size: 17px;
  color: var(--ink-faint);
  border-color: transparent;
  background: transparent;
}
.p-actions .rm:hover { color: #c0392b; }

/* Prospect QR / form call-to-action */
.form-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  background: #f5faf7;
  border: 1px solid #d7ece1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.form-cta:hover { border-color: var(--green); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.form-cta-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.form-cta-txt { display: flex; flex-direction: column; gap: 2px; }
.form-cta-txt strong { font-size: 14.5px; color: var(--ink); }
.form-cta-txt small { font-size: 12.5px; color: var(--ink-soft); }
.form-cta-arrow { margin-left: auto; color: var(--green-dark); font-weight: 800; font-size: 18px; }

.reset-row { margin-top: 16px; text-align: right; }
.reset-row button {
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.reset-row button:hover { color: #c0392b; }

/* ============================================================
   BASE DETAIL MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16,24,40,.35);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.modal .m-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex: 0 0 auto;
}
.modal.is-homerun .m-badge { background: var(--gold); color: #5a3d05; }
.modal .m-head .m-title h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.modal .m-head .m-title .m-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.modal .m-close {
  margin-left: auto;
  border: none;
  background: #f4f5f6;
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal .m-close:hover { background: #e9ebed; }
.modal .m-body { padding: 22px 24px 6px; }
.modal .m-entry { padding: 14px 0; border-top: 1px solid var(--line); }
.modal .m-entry:first-child { border-top: none; padding-top: 4px; }
.modal .m-entry .lab {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal.is-homerun .m-entry .lab { color: var(--gold-dark); }
.modal .m-entry .txt { margin: 0; color: var(--ink); font-size: 15px; }
.modal .m-entry .txt.is-script {
  background: #f5faf7;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  color: var(--ink);
  font-style: italic;
}
.modal.is-homerun .m-entry .txt.is-script { border-left-color: var(--gold); background: #fdf7e8; }
.modal .m-entry .m-link { margin-top: 10px; }
.modal .m-entry ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.modal .m-entry ul li { margin: 3px 0; }
.modal .m-status {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  background: #f5faf7;
  border: 1px solid #d7ece1;
  color: var(--green-dark);
}
.modal .m-status.pending { background: #fff7ec; border-color: #f2dcae; color: #9a6a12; }
.modal .m-foot {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================================
   7 PROTECTIONS + learning concepts
   ============================================================ */
.prot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.prot:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #d7ece1; }
.prot .num {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #eef8f2;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.prot h4 { margin: 0; font-size: 14.5px; letter-spacing: -0.01em; }

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.concept {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.concept h4 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.concept p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.concept .quote { margin: 10px 0 0; font-style: italic; color: var(--green-dark); font-size: 14px; }
.rate-row { display: flex; gap: 12px; margin-top: 12px; }
.rate {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  background: #f9fbfa;
}
.rate .pct { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.rate .yr { font-size: 11.5px; color: var(--ink-faint); }

/* ============================================================
   ROUNDING THE BASES — First / Second / Third base cards
   ============================================================ */
.bases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.base-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.base-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.base-card .bc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.base-card .bc-num {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.base-card .bc-kick {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.base-card .bc-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.base-card .bc-lead { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; }
.base-card .bc-list {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.base-card .bc-list li { color: var(--ink); font-size: 14px; font-weight: 600; }
.base-card ol.bc-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.base-card ol.bc-steps li { color: var(--ink-soft); font-size: 14px; }
.base-card ol.bc-steps li b { color: var(--green-dark); }
.base-card ol.bc-steps.bc-steps-tight { gap: 5px; }
.base-card ol.bc-steps.bc-steps-tight li { color: var(--ink); font-weight: 600; }
.base-card .bc-foot {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ---------- Formula flow ---------- */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  max-width: 900px;
  margin: 0 auto;
}
.formula .step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.formula .step.pres { background: var(--green); color: #fff; border-color: var(--green-darker); }
.formula .step.goal { background: var(--gold); color: #5a3d05; border-color: var(--gold-dark); }
.formula .arrow { color: var(--ink-faint); font-size: 18px; font-weight: 700; }

/* ---------- Reload banner ---------- */
.reload {
  background: linear-gradient(135deg, #11241b, #1d4a32);
  color: #eafff4;
  border-radius: 16px;
  padding: 34px 32px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}
.reload h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.reload p { margin: 0 auto 18px; max-width: 560px; color: #b6e3cc; }
.reload .steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reload .steps span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Certification ---------- */
.cert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  max-width: 640px;
  margin: 0 auto;
}
.cert-card .cert-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.cert-seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fbf2dc;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: 0 0 auto;
}
.cert-card h3 { margin: 0; font-size: 20px; }
.cert-card .cert-sub { margin: 0; font-size: 13px; color: var(--ink-faint); }
.cert-list { list-style: none; margin: 18px 0 0; padding: 0; }
.cert-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.cert-list li .box {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid #cdd4db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}
.cert-list li.done .box { background: var(--green); border-color: var(--green); }
.cert-list li.done .lab { color: var(--ink-faint); text-decoration: line-through; }
.cert-progress {
  margin-top: 18px;
  height: 10px;
  border-radius: 999px;
  background: #eef0f2;
  overflow: hidden;
}
.cert-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .4s ease;
}
.cert-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); text-align: center; }

/* ---------- Closing lesson ---------- */
.lesson-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lesson-quote p { font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.lesson-quote .seq {
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  font-weight: 800;
  color: var(--green-dark);
  font-size: 18px;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 22px 0;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: #11241b;
  color: #eafff4;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16,24,40,.3);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .field-layout { grid-template-columns: 1fr; }
  .prot-grid { grid-template-columns: repeat(2, 1fr); }
  .concept-grid { grid-template-columns: 1fr; }
  .bases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .sec-head h2 { font-size: 25px; }
  .prot-grid { grid-template-columns: 1fr 1fr; }
  .sb-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .topbar nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    padding: 6px 18px 12px;
    z-index: 60;
  }
  .topbar.nav-open nav { display: flex; }
  .topbar nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .topbar nav a:last-child { border-bottom: none; }
}
@media (max-width: 440px) {
  .prot-grid { grid-template-columns: 1fr; }
}
