/* ──────────────────────────────────────────────────────────────
   Expert Service Plans — light theme
   Loaded AFTER /style.css. Everything is scoped to `body.esp` so the
   rest of the site (which is dark) is untouched. Most of the flip is
   done by redefining the token values on body.esp — the shared
   components in style.css read them through var(), so they follow.
   The rules below only patch what style.css hard-codes.
   ────────────────────────────────────────────────────────────── */

body.esp {
  /* Light values for the shared tokens */
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --border: #E4EAF3;
  --text: #55637A;
  --text-dim: #77839A;
  --text-bright: #1B2438;
  --blue-dim: rgba(74,157,253,0.09);
  /* --white and --blue keep their original values: --white is still the
     label colour on blue buttons, --blue is still the brand accent. */

  /* Tokens this page adds */
  --ink: #0A0E1A;            /* headings — the dark site's --bg, reused as ink */
  --blue-deep: #1266D6;      /* #4a9dfd fails contrast on light; this passes AA */
  --border-strong: #D6DFEC;
  --surface-2: #F0F4FA;
  --blue-border: rgba(74,157,253,0.24);
}

/* Ambient wash — light mirror of the dark site's radial glow */
body.esp::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74,157,253,0.10), transparent),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(74,157,253,0.05), transparent);
}

.esp :focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px }

/* ── Shared components: patch the hard-coded dark values ── */
.esp .site-header { background: rgba(246,248,252,0.85) }
.esp .logo { color: var(--ink) }
.esp .header-nav a:hover { color: var(--ink) }
.esp .header-nav .cta { background: var(--blue-deep) }
.esp .header-nav .cta:hover { color: var(--white) }
.esp .btn-primary { background: var(--blue-deep); border: 1px solid var(--blue-deep) }
.esp .btn-secondary:hover { border-color: var(--blue); background: var(--blue-dim) }
.esp .hero h1 { color: var(--ink); letter-spacing: -0.035em; text-wrap: balance }
.esp .hero-badge { color: var(--blue-deep); border-color: var(--blue-border) }
.esp .feat-icon { color: var(--blue-deep) }
.esp .footer-links a:hover { color: var(--ink) }

/* ── Layout ── */
.esp .col {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.esp section { padding: 84px 0 }
.esp section.tight { padding-top: 0 }
.esp .section-head { max-width: 600px; margin: 0 auto 40px; text-align: center }

.esp .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.esp h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 12px;
  text-wrap: balance;
}
.esp h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.esp .sub { font-size: 16px; color: var(--text); line-height: 1.75 }

/* ── Hero ── */
/* Spec line under the CTAs. Deliberately container-less: a bordered pill
   here reads as a third button next to the two above it. */
.esp .hero-meta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
}
.esp .hero-meta span { white-space: nowrap }
.esp .hero-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums }
.esp .hero-meta .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--border-strong); flex-shrink: 0;
}

/* ── The difference ── */
.esp .split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.esp .split-row { padding: 30px 32px }
.esp .split-row + .split-row { border-top: 1px solid var(--border) }
.esp .split-row.accent { background: var(--blue-dim) }
.esp .split-h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: var(--text-dim);
}
.esp .split-row.accent .split-h { color: var(--blue-deep) }
.esp .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px }
.esp .checks .feat {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text); line-height: 1.6;
}
.esp .feat-icon.plain { background: var(--surface-2); color: var(--text-dim) }
.esp .split-foot { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--text-dim) }
.esp .split-row.accent .split-foot { color: var(--blue-deep) }

/* ── Plans — stacked, in the site's product-card idiom ── */
.esp .plans { display: flex; flex-direction: column; gap: 20px }
.esp .plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 32px;
  position: relative;
}
.esp .plan-card.featured { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim) }
.esp .plan-badge {
  position: absolute; top: -10px; left: 32px;
  background: var(--blue-deep); color: var(--white);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 12px; border-radius: 100px;
}
.esp .plan-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.esp .plan-name { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.2 }
.esp .plan-what { font-size: 14px; color: var(--text-dim); margin-top: 2px }
.esp .plan-price { text-align: right; flex-shrink: 0 }
.esp .plan-price .amt {
  font-size: 30px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.esp .plan-card.featured .plan-price .amt { color: var(--blue-deep) }
.esp .plan-price .per { font-size: 12px; color: var(--text-dim); font-weight: 500 }
.esp .plan-inherit {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--blue-deep); margin: 22px 0 16px;
}
.esp .plan-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin-bottom: 28px }
.esp .plan-feats .feat {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text); line-height: 1.6;
}
.esp .plan-feats .feat b { color: var(--text-bright); font-weight: 600 }
.esp .peek {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--blue-deep); font-weight: 600;
  cursor: pointer; text-align: left;
  border-bottom: 1px dashed var(--blue);
}
.esp .peek:hover { border-bottom-style: solid }
.esp .peek::after { content: ' \24D8'; font-size: 0.72em }
.esp .plans-foot {
  margin: 22px auto 0; font-size: 13.5px; color: var(--text-dim);
  text-align: center; max-width: 520px;
}
.esp .pdf-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-deep); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--blue-border); padding-bottom: 1px;
}
.esp .pdf-link:hover { border-bottom-color: var(--blue-deep) }

/* ── Rates ── */
.esp .rate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.esp .rate-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 24px; align-items: center; padding: 20px 32px;
}
.esp .rate-row + .rate-row { border-top: 1px solid var(--border) }
.esp .rate-row.head {
  background: var(--surface-2);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-dim); padding: 14px 32px;
}
.esp .rate-what { font-size: 14px; font-weight: 700; color: var(--ink) }
.esp .rate-what small { display: block; font-weight: 400; color: var(--text-dim); font-size: 12.5px; margin-top: 2px }
.esp .rate-num {
  font-size: 17px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; text-align: right; min-width: 90px;
}
.esp .rate-num.member { color: var(--blue-deep) }
.esp .rate-num small { display: block; font-size: 11px; font-weight: 500; color: var(--text-dim) }
.esp .rate-foot { margin: 22px auto 0; font-size: 13.5px; color: var(--text-dim); text-align: center; max-width: 560px }

/* ── Strategy session ── */
.esp .note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.esp .note-card h2 { font-size: 22px; margin-bottom: 10px }
.esp .note-card p { font-size: 14px }
.esp .hour-badge {
  text-align: center;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  padding: 20px 26px;
}
.esp .hour-badge .big {
  font-size: 34px; font-weight: 800; color: var(--blue-deep);
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.esp .hour-badge .unit {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--blue-deep); margin-top: 6px;
}

/* ── Why us ── */
.esp .why { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px }
.esp .why-item p { font-size: 13.5px; color: var(--text); line-height: 1.65 }
.esp .why-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--blue-dim); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.esp .why-dot svg { width: 14px; height: 14px }

/* ── Mark ── */
.esp .mark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: start;
}
.esp .portrait {
  width: 96px; height: 96px; border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.esp .mark-quote {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.5; margin-bottom: 14px;
}
.esp .mark-meta {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--blue-deep); margin-bottom: 12px;
}
.esp .mark-card p { font-size: 13.5px; line-height: 1.7 }
.esp .mark-card p + p { margin-top: 10px }

/* ── Final CTA ── */
.esp .final-card {
  background: var(--ink);
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
}
.esp .final-card h2 { color: var(--white); margin-bottom: 14px }
.esp .final-card p { color: #94a3b8; font-size: 15.5px; max-width: 460px; margin: 0 auto 30px }
.esp .final-card .label { color: var(--blue) }
.esp .final-card .btn-secondary {
  background: transparent; color: #e2e8f0; border-color: rgba(255,255,255,0.16);
}
.esp .final-card .btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3) }
.esp .final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap }
.esp .site-footer { margin-top: 40px }

/* ── Modal ── */
.esp .modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,14,26,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.esp .modal[open] { display: flex }
.esp .modal-box {
  background: var(--surface);
  border-radius: 16px;
  max-width: 640px; width: 100%;
  max-height: 84vh; overflow-y: auto;
  box-shadow: 0 30px 70px -20px rgba(10,14,26,0.35);
}
.esp .modal-head {
  position: sticky; top: 0; background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 26px 30px 20px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  border-radius: 16px 16px 0 0;
}
.esp .modal-head h3 { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 0 }
.esp .modal-head .label { margin-bottom: 6px }
.esp .x {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; flex-shrink: 0; font-size: 13px; line-height: 1; font-family: inherit;
}
.esp .x:hover { color: var(--ink); border-color: var(--border-strong) }
.esp .modal-body { padding: 24px 30px 30px }
.esp .grp {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-dim);
  margin: 28px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.esp .grp:first-child { margin-top: 0 }
.esp .grp.accent { color: var(--blue-deep); border-bottom-color: var(--blue-border) }
.esp .mlist { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 0 }
.esp .mlist li {
  display: flex; gap: 11px; font-size: 13.5px;
  color: var(--text); align-items: flex-start; line-height: 1.6;
}
.esp .mlist li b { color: var(--text-bright); font-weight: 600 }
.esp .mnote {
  margin-top: 24px; padding: 16px 18px;
  background: var(--surface-2); border-radius: 12px;
  font-size: 13px; color: var(--text); line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .esp .checks,
  .esp .plan-feats,
  .esp .why { grid-template-columns: 1fr }
  .esp .plan-price { text-align: left }
  .esp .note-card,
  .esp .mark-card { grid-template-columns: 1fr }
  .esp .rate-row { grid-template-columns: 1fr auto; gap: 12px 16px; padding: 18px 22px }
  .esp .rate-row.head { padding: 12px 22px }
  .esp .rate-row.head .h-adhoc { display: none }
  .esp .split-row,
  .esp .plan-card,
  .esp .note-card,
  .esp .mark-card { padding-left: 22px; padding-right: 22px }
  .esp .final-card { padding: 44px 24px }
}
@media (max-width: 560px) {
  .esp .hero-meta .sep { display: none }
}
@media (prefers-reduced-motion: reduce) {
  .esp .btn-primary:hover { transform: none }
}
