/* ==========================================================================
   Obol — light theme
   White ground, slate type, blue accent. Modern SaaS palette.
   ========================================================================== */

:root {
  /* Surface */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-deep: #f8fafc;

  /* Ink */
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-soft: #64748b;

  /* Borders */
  --rule: #e2e8f0;
  --rule-strong: #cbd5e1;

  /* Accent — blue */
  --accent: #2563eb;
  --accent-deep: #1e40af;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-glow: rgba(37, 99, 235, 0.22);

  /* Status */
  --danger: #ef4444;
  --ok: #10b981;

  /* Type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1180px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Soft modern shadow used in place of the old brutalist 8px 8px 0 var(--ink) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.04);
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-glow); color: var(--ink); text-shadow: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Page frame (faint scanline grid, futuristic) ---------- */
.page {
  min-height: 100vh;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 88px 100%;
  background-position: center;
}

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  position: relative;
}
@media (max-width: 720px) {
  .nav__inner { padding: 14px 20px; }
}

/* Hamburger toggle (hidden on desktop, shown on mobile) */
.nav__menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.nav__menu-bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav.is-open .nav__menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav__menu-toggle { display: flex; }
}

/* Mobile menu panel */
@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; right: 16px; left: 16px;
    background: var(--bg);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -8px rgba(13, 17, 23, 0.18);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 8px;
    z-index: 20;
  }
  .nav__links.is-open { display: flex; }
  .nav__link {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    border-bottom: 0;
  }
  .nav__link:hover { background: var(--rule); border-bottom-color: transparent; }
  .nav__cta {
    margin-top: 6px;
    padding: 12px 16px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--bg);
  }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 28px; height: 28px;
  color: var(--ink);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
/* Desktop CTA (mobile override lives in the .nav block above and turns this
   into a solid dark button at <=720px). */
@media (min-width: 721px) {
  .nav__cta {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    padding: 8px 14px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: background 120ms ease, color 120ms ease;
  }
  .nav__cta:hover { background: var(--ink); color: var(--bg); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.eyebrow--dark { color: var(--accent-deep); }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero__headline em {
  font-style: italic;
  color: var(--accent-deep);
  font-variation-settings: "SOFT" 100;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 22px;
}

.hero__cta-note {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.hero__proof {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.check {
  color: var(--ok);
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Signup form ---------- */
.signup { max-width: 520px; }
.signup__row {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 32px -12px rgba(15, 23, 42, 0.10);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.signup__row:focus-within {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px var(--accent-soft),
    0 8px 32px -12px var(--accent-glow);
}
.signup__input {
  flex: 1;
  border: 0;
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.signup__input::placeholder { color: var(--ink-soft); }
.signup__btn {
  border: 0;
  border-left: 1px solid var(--rule-strong);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 15px;
  padding: 0 22px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.signup__btn:hover { background: #ffb84d; color: var(--bg-deep); }
.signup__hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 2px 0;
}
.signup__error {
  font-size: 13px;
  color: var(--danger);
  margin: 10px 2px 0;
  font-weight: 500;
}
@media (max-width: 520px) {
  .signup__row { flex-direction: column; }
  .signup__btn { border-left: 0; border-top: 1px solid var(--rule-strong); padding: 14px 22px; justify-content: center; }
}

/* ---------- Hero visualization (audit dashboard mock) ---------- */
.hero__viz { position: relative; }
.viz {
  background: var(--bg-elev);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(0.5deg);
}
.viz__header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
}
.viz__title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.02em;
}
.viz__dot { width: 10px; height: 10px; border-radius: 50%; }
.viz__dot--red { background: #ef4444; }
.viz__dot--amber { background: var(--accent); }
.viz__dot--green { background: #22c55e; }

.viz__body { padding: 24px; }
.viz__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.viz__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.viz__currency {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 8px;
}
.viz__bar {
  margin-top: 12px;
  height: 8px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.viz__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
}

.viz__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.viz__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
}
.viz__list li:first-child { border-top: 0; padding-top: 0; }
.viz__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f3eee4;
  color: var(--ink-soft);
}
.viz__tag--red { background: #fee2e2; color: var(--danger); }
.viz__tag--amber { background: var(--accent-soft); color: var(--accent-deep); }
.viz__item { color: var(--ink-2); }
.viz__amt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.viz__footer {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 4px;
}
.viz__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 24ch;
}
.section__head { margin-bottom: 48px; max-width: 42ch; }

.problem {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .problem { padding: 64px 0; }
  .problem__grid { grid-template-columns: 1fr; gap: 20px; }
}
.problem__card {
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  position: relative;
}
.problem__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.problem__card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.problem__card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Fit ---------- */
.fit {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.fit__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}
.fit__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.fit__list li {
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .fit { padding: 56px 0; }
  .fit__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Deliverables ---------- */
.deliverables {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
  background: #fbf8f2;
}
.deliverables__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.deliverable {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.deliverable h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.deliverable p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .deliverables { padding: 64px 0; }
  .deliverables__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .deliverables__grid { grid-template-columns: 1fr; }
  .deliverable { min-height: auto; }
}

/* ---------- How it works ---------- */
.how {
  padding: 96px 0;
  background: var(--ink);
  color: #e7e5df;
  border-bottom: 1px solid var(--ink);
}
.how .section__title { color: #fafaf7; max-width: 28ch; }
.how .eyebrow { color: var(--accent); }
.how .eyebrow__dot { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22); }

.how__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}
.how__step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.025);
}
.how__marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent);
}
.how__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: #fafaf7;
}
.how__body p {
  margin: 0;
  color: #c8c5bd;
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}
@media (max-width: 640px) {
  .how { padding: 64px 0; }
  .how__step { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
}

/* ---------- Stats strip ---------- */
.stats {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.stat__label {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 32ch;
}
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Final CTA ---------- */
.cta {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}
.cta__card {
  background: var(--bg-elev);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 56px;
  box-shadow: 10px 10px 0 0 var(--accent-deep);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.cta__copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.cta__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 48ch;
}
@media (max-width: 860px) {
  .cta { padding: 64px 0; }
  .cta__card { grid-template-columns: 1fr; padding: 32px; gap: 28px; box-shadow: 6px 6px 0 0 var(--accent-deep); }
}

/* ---------- FAQ ---------- */
.faq { padding: 88px 0; }
.faq__list {
  margin: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--rule);
}
.faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 40px;
}
.faq__item dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq__item dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .faq { padding: 56px 0; }
  .faq__item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
}

/* ---------- Footer ---------- */
.foot {
  padding: 32px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}
.foot__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.foot__brand {
  display: flex; align-items: baseline; gap: 12px;
}
.foot__tag { color: var(--ink-soft); }
.foot__meta a { color: var(--accent-deep); text-decoration: none; }
.foot__meta a:hover { text-decoration: underline; }

/* ---------- Thanks page ---------- */
.thanks { padding: 88px 0 120px; }
.thanks__inner { max-width: 640px; }
.thanks__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 10px 0 20px;
}
.thanks__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 58ch;
}
.thanks__saved,
.thanks__followup {
  margin-top: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 28px;
}
.thanks__saved {
  color: var(--ok);
  font-weight: 600;
}
.thanks__followup h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.thanks__followup p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.followup {
  display: grid;
  gap: 18px;
}
.followup__field {
  display: grid;
  gap: 8px;
}
.followup__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.followup__input,
.followup__textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  outline: none;
}
.followup__input:focus,
.followup__textarea:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.followup__textarea { resize: vertical; }
.followup__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.followup__check input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.followup__btn {
  justify-self: start;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 16px;
}
.followup__btn:hover { background: var(--accent-deep); }
.thanks__back {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 500;
}
.thanks__back:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.admin {
  min-height: 100vh;
  background: var(--bg);
}
.admin__nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
}
.admin__nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.admin__tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin__meta {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.admin__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.admin__summary {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.admin__h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.admin__sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.admin__stats {
  display: flex; gap: 32px;
  margin: 0;
}
.admin__stats > div { display: flex; flex-direction: column; gap: 4px; }
.admin__stats dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.admin__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}

.admin__table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: auto;
}
.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin__table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
  white-space: nowrap;
}
.admin__table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  vertical-align: top;
}
.admin__table tbody tr:last-child td { border-bottom: 0; }
.admin__table tbody tr:hover { background: var(--bg-elev); }
.admin__when,
.admin__ip,
.admin__utm { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.admin__email a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 500;
}
.admin__email a:hover { text-decoration: underline; }
.admin__ref {
  max-width: 340px;
  color: var(--ink-soft);
  font-size: 13px;
  word-break: break-all;
}
.admin__notes {
  min-width: 220px;
  max-width: 320px;
  color: var(--ink-soft);
  font-size: 13px;
}

.admin__empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-elev);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.admin__empty h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.admin__empty p { margin: 0; }

/* ==========================================================================
   Blog
   ========================================================================== */

/* Desktop nav (mobile rules live near the top of this file, in the
   .nav section, and override the layout below 720px). */
@media (min-width: 721px) {
  .nav__links { display: inline-flex; align-items: center; gap: 18px; }
  .nav__link {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    padding: 8px 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 120ms ease;
  }
  .nav__link:hover { border-bottom-color: var(--ink); }
}

.breadcrumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li::after { content: "/"; color: var(--rule-strong); margin-left: 6px; }
.breadcrumbs li:last-child::after { content: ""; margin: 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs span[aria-current="page"] {
  color: var(--ink); font-weight: 500;
  max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.blog-index { padding: 56px 0 96px; }
.blog-index__inner { max-width: 880px; }
.blog-index__head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.blog-index__head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 8px 0 16px;
}
.blog-index__head p {
  margin: 0; font-size: 18px; line-height: 1.55;
  color: var(--ink-soft); max-width: 60ch;
}
.blog-index__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.blog-index__item { border-bottom: 1px solid var(--rule); }
.blog-index__item:first-child { border-top: 1px solid var(--rule); }
.blog-index__item a {
  display: block; text-decoration: none; color: inherit;
  padding: 32px 0; transition: background 120ms ease;
}
.blog-index__item a:hover { background: rgba(217, 119, 6, 0.04); }
.blog-index__meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 13px; color: var(--ink-soft); margin-bottom: 12px;
}
.blog-index__category {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep);
}
.blog-index__date,
.blog-index__time { font-family: var(--font-mono); font-size: 12px; }
.blog-index__item h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 10px; color: var(--ink);
}
.blog-index__item p {
  margin: 0 0 12px; color: var(--ink-soft);
  font-size: 16px; line-height: 1.55; max-width: 64ch;
}
.blog-index__cta { font-size: 14px; font-weight: 500; color: var(--accent-deep); }
.blog-index__empty {
  padding: 48px 0; text-align: center; color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}
.blog-index__empty p { margin: 0 0 12px; }

.blog-hub {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
}
.blog-hub__search {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.blog-hub__input {
  flex: 1 1 280px;
  font: inherit; font-size: 15px;
  padding: 10px 14px;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.blog-hub__input::placeholder { color: var(--ink-soft); }
.blog-hub__input:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.blog-hub__submit {
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 18px;
  background: var(--ink); color: var(--bg-elev);
  border: 1px solid var(--ink); border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease;
}
.blog-hub__submit:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.blog-hub__clear {
  font-size: 13px; color: var(--ink-soft);
  text-decoration: none; padding: 0 6px;
}
.blog-hub__clear:hover { color: var(--accent-deep); }

.blog-hub__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.blog-hub__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.blog-hub__chip:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.blog-hub__chip.is-active {
  background: var(--ink);
  color: var(--bg-elev);
  border-color: var(--ink);
}
.blog-hub__count {
  font-family: var(--font-mono); font-size: 11px;
  padding: 1px 6px;
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 999px;
}
.blog-hub__chip.is-active .blog-hub__count {
  background: rgba(15, 23, 42, 0.08);
  color: var(--bg-elev);
}
.blog-hub__summary {
  margin: 0 0 16px;
  font-size: 14px; color: var(--ink-soft);
}
.blog-hub__summary strong { color: var(--ink); font-weight: 500; }
.blog-hub__reset {
  font-size: 14px; color: var(--accent-deep); text-decoration: none;
}
.blog-hub__reset:hover { text-decoration: underline; }

.post { padding-bottom: 80px; }
.post__head { padding: 40px 0 28px; border-bottom: 1px solid var(--rule); }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 13px; color: var(--ink-soft);
  margin: 8px 0 18px; font-family: var(--font-mono);
}
.post__category {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.post__dot { color: var(--rule-strong); }
.post__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 18px;
  max-width: 22ch; color: var(--ink);
}
.post__lede {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(19px, 2vw, 22px); line-height: 1.45;
  color: var(--ink-2); max-width: 60ch; margin: 0;
}
.post__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px; align-items: start; padding-top: 48px;
}
@media (max-width: 980px) {
  .post__layout { grid-template-columns: 1fr; gap: 32px; }
}
.post__body {
  font-size: 17px; line-height: 1.7;
  color: var(--ink-2); max-width: 70ch;
}
.post__intro {
  font-size: 19px; line-height: 1.6;
  color: var(--ink-2); margin-top: 0;
}
.post__body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ink); margin: 56px 0 16px; scroll-margin-top: 80px;
}
.post__body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.015em;
  color: var(--ink); margin: 36px 0 10px; scroll-margin-top: 80px;
}
.post__body p { margin: 0 0 18px; }
.post__body ul,
.post__body ol { margin: 0 0 22px; padding-left: 22px; }
.post__body li { margin-bottom: 8px; }
.post__body strong { color: var(--ink); font-weight: 600; }
.post__body em { font-style: italic; }
.post__body a {
  color: var(--accent-deep); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.post__body a:hover { text-decoration-thickness: 2px; }

.post__toc--inline {
  background: var(--bg-elev); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 40px;
}
.post__toc-title {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px; font-family: var(--font-mono);
}
.post__toc--inline ol { margin: 0; padding-left: 22px; font-size: 15px; }
.post__toc--inline ol li { margin-bottom: 6px; }
.post__toc--inline a {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post__toc--inline a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
@media (min-width: 981px) { .post__toc--inline { display: none; } }

.post-aside { position: relative; }
.post-aside__sticky {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 24px;
}
.post-aside__card {
  background: var(--bg-elev); border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 6px 6px 0 0 var(--accent-deep);
}
.post-aside__card .eyebrow { margin-bottom: 14px; }
.post-aside__card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.015em;
  margin: 0 0 8px; color: var(--ink);
}
.post-aside__card p {
  margin: 0 0 16px; font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
}
.post-aside__list {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink-soft);
}
.post-aside__card .signup__row {
  flex-direction: column;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.post-aside__card .signup__input {
  padding: 14px 16px;
  font-size: 15px;
  width: 100%;
}
.post-aside__card .signup__btn {
  border-left: 0;
  border-top: 1px solid var(--ink);
  padding: 12px 22px;
  justify-content: center;
  font-size: 14px;
  width: 100%;
}

.post-aside__toc {
  background: transparent;
  border-top: 1px solid var(--rule); padding-top: 22px;
}
.post-aside__toc-title {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px; font-family: var(--font-mono);
}
.post-aside__toc ol { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.post-aside__toc li { margin-bottom: 8px; line-height: 1.4; }
.post-aside__toc a {
  color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px; margin-left: -12px; display: block;
}
.post-aside__toc a:hover { color: var(--accent-deep); border-left-color: var(--accent); }
@media (max-width: 980px) {
  .post-aside__sticky { position: static; }
  .post-aside__toc { display: none; }
}

.inline-cta {
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--bg-elev);
  color: var(--ink-2);
  border-radius: var(--radius); padding: 36px;
  margin: 48px 0;
  display: grid; grid-template-columns: 1fr; gap: 24px;
  border: 1px solid var(--rule-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 80px -24px var(--accent-glow);
  position: relative;
}
.inline-cta::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  border-radius: var(--radius) 0 0 var(--radius);
}
.inline-cta .eyebrow { color: var(--accent); margin-bottom: 12px; }
.inline-cta .eyebrow__dot { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22); }
.inline-cta h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 8px; color: var(--ink); max-width: 28ch;
}
.inline-cta p {
  margin: 0; color: var(--ink-2);
  font-size: 15px; line-height: 1.55; max-width: 56ch;
}
.inline-cta .signup__row {
  background: var(--bg-deep);
  border-color: var(--rule-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(37, 99, 235, 0.18);
}
.inline-cta .signup__btn {
  background: var(--accent); color: var(--bg-deep);
  border-left-color: var(--rule-strong);
}
.inline-cta .signup__btn:hover { background: #ffb84d; color: var(--bg-deep); }
.inline-cta .signup__hint { color: var(--ink-soft); }

.related {
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.related h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 24px; color: var(--ink);
}
.related__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.related__card a {
  display: block;
  background: var(--bg-elev); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.related__card a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.related__category {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-block; margin-bottom: 10px;
}
.related__card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 8px; color: var(--ink);
}
.related__card p {
  margin: 0 0 12px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.related__cta { font-size: 13px; font-weight: 500; color: var(--accent-deep); }

/* ==========================================================================
   Admin extras (queue, posts, settings)
   ========================================================================== */

.admin__nav-links {
  display: inline-flex; gap: 4px; flex-wrap: wrap;
}
.admin__nav-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background 120ms ease, color 120ms ease;
}
.admin__nav-link:hover { background: var(--rule); color: var(--ink); }
.admin__nav-link.is-active { background: var(--ink); color: var(--bg); }

.admin__flash {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid;
}
.admin__flash--notice { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.admin__flash--alert  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.admin__toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 16px 0 20px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.admin__toolbar-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.admin__toolbar-meta strong.is-on  { color: var(--ok); }
.admin__toolbar-meta strong.is-off { color: var(--ink-soft); }

.admin__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-elev);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  font-family: inherit;
}
.admin__btn:hover { background: var(--ink); color: var(--bg); }
.admin__btn--primary { background: var(--ink); color: var(--bg); }
.admin__btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.admin__btn--danger { color: var(--danger); border-color: var(--danger); background: var(--bg-elev); }
.admin__btn--danger:hover { background: var(--danger); color: var(--bg-elev); }
.admin__btn--small { padding: 5px 10px; font-size: 12px; }

.admin__btn-form { display: inline-block; margin: 0; }
.admin__btn-form--inline { display: inline-flex; align-items: center; gap: 4px; }

.admin__pos-input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.admin__actions {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.admin__muted {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
.admin__muted a { color: var(--accent-deep); }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #f3eee4;
  color: var(--ink-soft);
}
.status-pill--queued     { background: #fef3c7; color: #92400e; }
.status-pill--generating { background: #dbeafe; color: #1e40af; }
.status-pill--published  { background: #d1fae5; color: #065f46; }
.status-pill--draft      { background: #f3eee4; color: var(--ink-soft); }
.status-pill--failed     { background: #fee2e2; color: var(--danger); }
.status-pill--skipped    { background: #f3f4f6; color: #6b7280; }
.status-pill--archived   { background: #f3f4f6; color: #6b7280; }

.kt-row--published td { opacity: 0.78; }
.kt-row--skipped td { opacity: 0.55; }
.kt-row--failed { background: rgba(185, 28, 28, 0.04); }

.admin__form {
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 720px;
}
.admin__fieldset { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 18px; }
.admin__check {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: start;
}
.admin__check input[type="checkbox"] { margin-top: 4px; transform: scale(1.2); }
.admin__check span strong { display: block; font-size: 15px; }
.admin__check span small { color: var(--ink-soft); font-size: 13px; display: block; margin-top: 2px; }

.admin__field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
}
.admin__field span { font-weight: 500; }
.admin__field small { color: var(--ink-soft); font-size: 12px; }
.admin__input {
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  max-width: 420px;
}

.admin__file {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px;
}
.admin__file-label { font-weight: 500; font-size: 14px; }
.admin__file-input { font-family: inherit; }

.admin__form-actions {
  display: flex; gap: 10px;
  margin-top: 12px;
}

.admin__hint {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
}
.admin__hint h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 8px;
  font-size: 16px;
}
.admin__hint code {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}
.admin__hint pre {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  overflow-x: auto;
  margin: 8px 0;
}
.admin__hint pre code { background: transparent; border: 0; padding: 0; }

.admin__h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--ink);
}
.admin__post-preview { margin-top: 28px; }
.admin__meta-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0;
  font-size: 14px;
}
.admin__meta-list dt { font-weight: 500; color: var(--ink-soft); }
.admin__meta-list dd { margin: 0; color: var(--ink); }

/* Post body table styling (used in generated posts) */
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-table thead {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule);
}
.post-table th, .post-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.post-table tr:last-child td { border-bottom: 0; }
.post-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Inline post callouts */
.post__body aside.callout {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.55;
}
.post__body aside.callout strong { color: var(--accent-deep); }

/* Inline post charts */
.post-chart {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  text-align: center;
}
.post-chart svg {
  max-width: 100%;
  height: auto;
}
.post-chart figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Free tools (calculators / estimators)
   ========================================================================== */

.tool { padding-bottom: 80px; }
.tool__head {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.tool__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 6px 0 18px;
  max-width: 22ch;
  color: var(--ink);
}
.tool__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.tool__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}
@media (max-width: 980px) {
  .tool__layout { grid-template-columns: 1fr; gap: 32px; }
}

/* Wide-layout variant for tools that need full content width
   (rate card builder, future canvas-style tools) */
.container--wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.tool__layout--wide {
  grid-template-columns: 1fr;
  gap: 0;
}
.tool--wide .tool__head .container--wide,
.tool--wide .tool__layout--wide {
  /* Keep hero copy from sprawling across the whole 1440px width */
}
.tool--wide .tool__title,
.tool--wide .tool__lede {
  max-width: 60ch;
}
.tool--wide .tool__main { width: 100%; }
/* The explainer/FAQ/inline-CTAs underneath the wide tool should still read
   like a blog post — constrain them to a comfortable measure. */
.tool--wide .tool__explainer,
.tool--wide .tool__faq,
.tool--wide .tool__main > .inline-cta,
.tool--wide .tool__main > .related {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.tool__main { min-width: 0; }

/* Calculator block */
.calc {
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 64px -20px rgba(15, 23, 42, 0.10);
}
.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
}
@media (max-width: 760px) {
  .calc__grid { grid-template-columns: 1fr; gap: 28px; }
  .calc { padding: 22px; box-shadow: var(--shadow); }
}

.calc__inputs {
  display: flex; flex-direction: column; gap: 22px;
}
.calc__field {
  display: flex; flex-direction: column; gap: 8px;
}
.calc__field label {
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer;
}
.calc__field-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.calc__field-hint {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Checkbox-style field (used in cost calculator for VAS toggle) */
.calc__field--check label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.calc__field--check input[type="checkbox"] {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
  cursor: pointer;
}
.calc__field--check .calc__field-label,
.calc__field--check .calc__field-hint {
  grid-column: 2;
}

.calc__input-prefixed {
  display: flex; align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow 120ms ease;
}
.calc__input-prefixed:focus-within {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.calc__prefix {
  display: grid; place-items: center;
  padding: 0 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.calc__input-prefixed input {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  outline: none;
  min-width: 0;
}

.calc__field input[type="number"] {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 120ms ease;
}
.calc__field input[type="number"]:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

.calc__range-group {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 14px;
  align-items: center;
}
.calc__range-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--rule);
  border-radius: 999px;
  outline: none;
}
.calc__range-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 120ms ease;
}
.calc__range-group input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc__range-group input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--ink); cursor: pointer;
}
.calc__range-output {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 6px 8px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
}

.calc__disclaimer {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* Result panel */
.calc__result {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(37, 99, 235, 0.10), transparent 70%),
    var(--bg-deep);
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px -20px var(--accent-glow);
}
.calc__result-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.calc__result-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fafaf7;
  margin: -4px 0 4px;
}
.calc__result-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c8c5bd;
  letter-spacing: 0.02em;
}

.calc__breakdown {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 18px;
}
.calc__breakdown-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 14px;
  color: #fafaf7;
}
.calc__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.calc__bar { display: flex; flex-direction: column; gap: 4px; }
.calc__bar-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
  color: #e7e5df;
}
.calc__bar-label {
  cursor: help;
  border-bottom: 1px dotted rgba(231, 229, 223, 0.4);
}
.calc__bar-amount {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
}
.calc__bar-track {
  height: 8px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.calc__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.calc__bar-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.calc__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.calc__note strong { color: var(--ink); font-weight: 500; }

/* Result CTA card (high-intent moment) */
.calc__cta-card {
  margin-top: 4px;
  padding: 22px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(37, 99, 235, 0.10), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px -20px var(--accent-glow);
}
.calc__cta-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.calc__cta-body {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.calc__cta-card .signup__row {
  flex-direction: column;
  background: var(--bg-deep);
  border-color: var(--rule-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.calc__cta-card .signup__input {
  font-size: 15px;
  padding: 14px 16px;
  width: 100%;
}
.calc__cta-card .signup__btn {
  background: var(--accent);
  color: var(--bg-deep);
  border-left: 0;
  border-top: 1px solid var(--rule-strong);
  padding: 12px 22px;
  justify-content: center;
  width: 100%;
}
.calc__cta-card .signup__btn:hover { background: #ffb84d; color: var(--bg-deep); }
.calc__cta-card .signup__hint { color: var(--ink-soft); }

/* Explainer / long-form content below the calculator */
.tool__explainer {
  margin-top: 56px;
  padding-top: 8px;
}

/* Tool-specific FAQ section */
.tool__faq {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.tool__faq h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}

/* Inline-CTA tweak when used inside a tool page */
.inline-cta--tool { margin: 56px 0; }

/* ==========================================================================
   Rate Card Builder
   ========================================================================== */

.rcb {
  background: var(--bg-elev);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}
.rcb__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
}
@media (max-width: 1080px) {
  .rcb__layout { grid-template-columns: 1fr; }
}
.rcb__form {
  padding: 28px;
  border-right: 1px solid var(--rule);
}
.rcb__preview {
  background: var(--bg-elev);
  padding: 28px;
}
@media (max-width: 1080px) {
  .rcb__form { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* Cover area */
.rcb__cover { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.rcb__cover-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .rcb__cover-row { grid-template-columns: 1fr; gap: 14px; }
}
.rcb__cover .calc__field input[type="text"],
.rcb__cover .calc__field input[type="date"] {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 120ms ease;
}
.rcb__cover .calc__field input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.rcb__optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 12px;
  margin-left: 4px;
}

/* Section accordion */
.rcb__section {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 16px;
  overflow: hidden;
}
.rcb__section[open] { border-color: var(--ink); }
.rcb__section summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  background: transparent;
  list-style: none;
  user-select: none;
}
.rcb__section summary::-webkit-details-marker { display: none; }
.rcb__section summary > div { flex: 1; min-width: 0; }
.rcb__section h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.rcb__section summary p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.rcb__chevron {
  font-size: 14px;
  color: var(--ink-soft);
  transition: transform 200ms ease;
  margin-left: 12px;
}
.rcb__section[open] .rcb__chevron { transform: rotate(180deg); }

.rcb__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.rcb__table thead th {
  text-align: left;
  padding: 10px 18px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.rcb__table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 18px;
  vertical-align: middle;
  width: 45%;
}
.rcb__table tbody td {
  padding: 8px 18px;
  vertical-align: middle;
  border-top: 1px solid var(--rule);
}
.rcb__table tbody tr:first-child td,
.rcb__table tbody tr:first-child th { border-top: 0; }
.rcb__unit {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.rcb__input {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  width: 130px;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.rcb__input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.rcb__input input {
  flex: 1;
  border: 0;
  padding: 7px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  outline: none;
  min-width: 0;
  text-align: right;
}
.rcb__prefix, .rcb__suffix {
  display: grid; place-items: center;
  padding: 0 8px;
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.rcb__prefix { border-right: 1px solid var(--rule-strong); }
.rcb__suffix { border-left: 1px solid var(--rule-strong); }

.rcb__form-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}

/* Preview column */
.rcb__preview-sticky {
  position: sticky;
  top: 96px;
  display: flex; flex-direction: column; gap: 18px;
}
@media (max-width: 1080px) {
  .rcb__preview-sticky { position: static; }
}
.rcb__preview-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  max-height: 720px;
  overflow: auto;
}
.rcb__preview-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.rcb__preview-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.rcb__preview-header h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
  word-break: break-word;
}
.rcb__preview-header p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.02em;
}

.rcb__pv-section + .rcb__pv-section { margin-top: 18px; }
.rcb__pv-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
}
.rcb__pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rcb__pv-table tr { border-bottom: 1px solid var(--rule); }
.rcb__pv-table tr:nth-child(even) { background: rgba(217, 119, 6, 0.04); }
.rcb__pv-table th {
  text-align: left;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 8px 6px 0;
}
.rcb__pv-rate {
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
  padding: 6px 0;
  white-space: nowrap;
  color: var(--accent-deep);
}
.rcb__pv-unit {
  color: var(--ink-soft);
  font-size: 11px;
  font-family: var(--font-mono);
  text-align: right;
  padding: 6px 0 6px 12px;
  white-space: nowrap;
}
.rcb__pv-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
}
.rcb__pv-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
}

.rcb__downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rcb__downloads .admin__btn { justify-content: center; padding: 11px 14px; font-size: 14px; }

.rcb__capture-card {
  padding: 22px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(37, 99, 235, 0.10), transparent 70%),
    var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px -20px var(--accent-glow);
}
.rcb__capture-card[hidden] { display: none; }
.rcb__capture-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.rcb__capture-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.rcb__capture-body {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.rcb__capture-card .signup__row {
  flex-direction: column;
  background: var(--bg-deep);
  border-color: var(--rule-strong);
}
.rcb__capture-card .signup__input {
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
}
.rcb__capture-card .signup__btn {
  border-left: 0;
  border-top: 1px solid var(--rule-strong);
  padding: 11px 22px;
  justify-content: center;
  width: 100%;
  font-size: 14px;
}
.rcb__capture-card .signup__hint { font-size: 12px; }

/* Result CTA card inside preview column */
.rcb__cta-card {
  padding: 22px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
    var(--bg-elev);
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px -20px var(--accent-glow);
}
.rcb__cta-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.rcb__cta-body {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.rcb__cta-card .signup__row {
  flex-direction: column;
  background: var(--bg-deep);
  border-color: var(--rule-strong);
}
.rcb__cta-card .signup__input {
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
}
.rcb__cta-card .signup__btn {
  background: var(--accent);
  color: var(--bg-deep);
  border-left: 0;
  border-top: 1px solid var(--rule-strong);
  padding: 11px 22px;
  justify-content: center;
  width: 100%;
  font-size: 14px;
}
.rcb__cta-card .signup__btn:hover { background: #ffb84d; color: var(--bg-deep); }
.rcb__cta-card .signup__hint { color: var(--ink-soft); font-size: 12px; }

/* ==========================================================================
   Mobile polish — applied across the site
   ========================================================================== */

/* Container padding tightens on small screens so content gets max width */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .container--wide { padding: 0 16px; }
}

/* Tool head: less vertical padding on mobile, smaller title */
@media (max-width: 720px) {
  .tool__head { padding: 24px 0 18px; }
  .tool__title { margin: 4px 0 12px; }
  .tool__lede { font-size: 17px; }
  .tool__layout { padding-top: 24px; gap: 24px; }
}

/* Inline CTAs — reduce padding on mobile so copy doesn't wrap awkwardly */
@media (max-width: 600px) {
  .inline-cta { padding: 22px; margin: 32px 0; }
  .inline-cta h3 { font-size: 20px; }
}

/* Calculator: tighten result/input padding on mobile */
@media (max-width: 600px) {
  .calc { padding: 18px; box-shadow: 3px 3px 0 0 var(--ink); }
  .calc__result { padding: 20px; }
  .calc__result-value { font-size: 38px; }
  .calc__cta-card { padding: 16px; }
}

/* Rate card builder: stack the rate-row table on small screens.
   On a 320–500px screen the 3-column (service / rate / unit) table
   gets cramped — service text wraps and the input squeezes. We hide
   the table headers and stack each row vertically. */
@media (max-width: 720px) {
  .rcb { box-shadow: var(--shadow); }
  .rcb__form, .rcb__preview { padding: 18px; }

  .rcb__table thead { display: none; }
  .rcb__table tr {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid var(--rule);
  }
  .rcb__table tbody tr:first-child { border-top: 0; }
  .rcb__table tbody th,
  .rcb__table tbody td {
    display: block;
    padding: 0;
    border: 0;
    width: auto;
  }
  .rcb__table tbody th {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 15px;
  }
  .rcb__table tbody td:nth-of-type(1) { /* the rate cell */
    margin-bottom: 4px;
  }
  .rcb__unit {
    color: var(--ink-soft);
    font-size: 12px;
  }
  .rcb__input { width: 100%; max-width: 220px; }

  .rcb__section summary { padding: 14px 16px; }
  .rcb__section summary p { font-size: 12px; }

  /* Cover area — ensure all four meta inputs stack and fit */
  .rcb__cover-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Hero on home — tighten on small screens */
@media (max-width: 600px) {
  .hero { padding: 28px 0 40px; }
  .hero__sub { font-size: 16px; }
  .hero__viz { margin: 0 -4px; }   /* let the viz card use full content width */
}

/* Final CTA card — tighten on mobile so it doesn't tower */
@media (max-width: 600px) {
  .cta { padding: 40px 0; }
  .cta__card { padding: 24px; box-shadow: var(--shadow); }
  .cta__copy h2 { font-size: 24px; }
}

/* Blog post body: smaller margins and headings on mobile */
@media (max-width: 600px) {
  .post__head { padding: 28px 0 20px; }
  .post__title { font-size: 30px; margin: 4px 0 12px; }
  .post__lede { font-size: 17px; }
  .post__layout { padding-top: 24px; gap: 24px; }
  .post__body h2 { margin: 36px 0 12px; }
  .post__body h3 { margin: 24px 0 8px; }
}

/* Blog index — tighten head spacing */
@media (max-width: 600px) {
  .blog-index { padding: 32px 0 56px; }
  .blog-index__head { margin-bottom: 28px; padding-bottom: 20px; }
  .blog-index__head h1 { font-size: 32px; }
  .blog-index__item a { padding: 24px 0; }
  .blog-index__item h2 { font-size: 22px; }
}

/* Footer keeps it tight */
@media (max-width: 600px) {
  .foot { padding: 24px 0 32px; font-size: 13px; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Admin tables already scroll horizontally; bump font down for fit */
@media (max-width: 600px) {
  .admin__main { padding: 24px 16px 56px; }
  .admin__h1 { font-size: 26px; }
  .admin__table { font-size: 13px; }
}

/* ==========================================================================
   Margin calculator — P&L table, status pill, per-order grid
   ========================================================================== */

.margin-pnl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 14px;
  color: #e7e5df;
}
.margin-pnl__row th {
  text-align: left;
  font-weight: 400;
  padding: 6px 0;
  color: #c8c5bd;
}
.margin-pnl__amount {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: #fafaf7;
  padding: 6px 0;
}
.margin-pnl__row--rev th { color: #fafaf7; font-weight: 500; }
.margin-pnl__row--rev .margin-pnl__amount { color: #fafaf7; }
.margin-pnl__row--cost th { color: #c8c5bd; padding-left: 12px; }
.margin-pnl__row--cost .margin-pnl__amount { color: #c8c5bd; }
.margin-pnl__row--subtotal th,
.margin-pnl__row--subtotal .margin-pnl__amount {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  padding-top: 10px;
  font-weight: 500;
  color: #fafaf7;
}
.margin-pnl__row--total th {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fafaf7;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.margin-pnl__row--total .margin-pnl__amount {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  padding-top: 10px;
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

.margin-perorder {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.margin-perorder__cell {
  text-align: center;
}
.margin-perorder__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a958b;
  margin-bottom: 4px;
}
.margin-perorder__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: #fafaf7;
  letter-spacing: -0.01em;
}

/* Status pill in result panel meta */
.margin-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.06);
  color: #fafaf7;
  font-weight: 500;
}
.margin-status[data-status="healthy"]   { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.margin-status[data-status="solid"]     { background: rgba(217, 119, 6, 0.20); color: var(--accent); }
.margin-status[data-status="marginal"]  { background: rgba(217, 119, 6, 0.30); color: #fcd34d; }
.margin-status[data-status="breakeven"] { background: rgba(15, 23, 42, 0.08); color: #d1d5db; }
.margin-status[data-status="losing"]    { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }

/* Big number color hints by status */
.calc__result-value[data-status="healthy"]  { color: #86efac; }
.calc__result-value[data-status="losing"]   { color: #fca5a5; }
/* solid / marginal / breakeven keep the default white */

@media (max-width: 600px) {
  .margin-perorder { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .margin-perorder__cell {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .margin-perorder__value { font-size: 16px; }
}

/* =====================================================
   Landing page (minimal hero) — .lp namespace
   ===================================================== */

.lp__page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lp__nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; width: 100%;
  margin: 0 auto;
  padding: 22px 24px;
}
.lp__nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px;
}
.lp__nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 120ms ease;
}
.lp__nav-links a:hover { color: var(--ink); }

.lp {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  width: 100%;
}
.lp__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
@media (min-width: 920px) {
  .lp {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    padding: 32px 24px 40px;
  }
}
@media (max-width: 919px) {
  .lp__copy {
    align-items: center;
    text-align: center;
  }
}

.lp__h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.lp__h1 em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-display);
  position: relative;
  padding: 0 0.04em;
  text-shadow: 0 0 32px var(--accent-glow);
}
.lp__h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.18em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
}

.lp__h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 44ch;
  letter-spacing: -0.003em;
}

/* --- Scanner graphic --- */

.lp__scan {
  margin: 0;
  width: 100%;
  max-width: 540px;
  position: relative;
  justify-self: end;
}
@media (max-width: 919px) {
  .lp__scan { justify-self: center; margin: 4px auto 8px; }
}
.lp__scan::before {
  content: "";
  position: absolute;
  inset: -32px;
  background: radial-gradient(60% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
  border-radius: 16px;
}

.lp__scan-frame {
  position: relative;
  background:
    linear-gradient(180deg, #0d1320 0%, #161b2a 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 24px 64px -16px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(15, 23, 42, 0.025),
    inset 0 1px 0 rgba(15, 23, 42, 0.06);
  z-index: 1;
}

.lp__scan-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp__scan-tag { color: rgba(15, 23, 42, 0.62); }
.lp__scan-sep { color: var(--accent); margin: 0 4px; }
.lp__scan-status {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.lp__scan-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: lp-pulse 1.6s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.lp__scan-body {
  position: relative;
  padding: 22px 22px 18px;
  overflow: hidden;
}

.lp__scan-beam {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 82px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.18) 45%,
    rgba(255, 224, 168, 0.5) 50%,
    rgba(37, 99, 235, 0.18) 55%,
    rgba(37, 99, 235, 0) 100%
  );
  filter: blur(2px);
  animation: lp-scan 5.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  pointer-events: none;
  z-index: 1;
}
.lp__scan-beam::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 168, 0.9), transparent);
  box-shadow: 0 0 18px 1px var(--accent-glow);
}
@keyframes lp-scan {
  0%   { transform: translateY(-90px); }
  100% { transform: translateY(360px); }
}

.lp__scan-readout {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.06);
}
.lp__scan-readout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 6px;
}
.lp__scan-readout-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.03em;
  color: #fafaf7;
  line-height: 1;
  text-shadow: 0 0 32px var(--accent-glow);
  font-feature-settings: "tnum" 1;
}
.lp__scan-readout-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.50);
}

.lp__scan-rows {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.lp__scan-rows li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: lp-row-flash 5.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.62s);
}
.lp__scan-rows .lp__scan-amt {
  color: rgba(255, 224, 168, 0.85);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum" 1;
}
@keyframes lp-row-flash {
  0%, 60%, 100% {
    background: rgba(15, 23, 42, 0.025);
    border-color: rgba(255, 255, 255, 0.04);
    color: rgba(15, 23, 42, 0.55);
    box-shadow: none;
  }
  62%, 70% {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.32);
    color: rgba(15, 23, 42, 0.85);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 0 24px -4px var(--accent-glow);
  }
}

.lp__scan-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(15, 23, 42, 0.04);
}
.lp__scan-foot-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .lp__scan-beam,
  .lp__scan-rows li,
  .lp__scan-pulse {
    animation: none;
  }
  .lp__scan-rows li {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: rgba(15, 23, 42, 0.78);
  }
}

/* --- Calendly book-a-call CTA --- */

.lp__cal {
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (max-width: 919px) {
  .lp__cal { align-items: center; text-align: center; }
}
.lp__cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--bg-deep);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 32px -8px var(--accent-glow);
}
.lp__cal-btn:hover {
  background: #ffb84d;
  border-color: #ffb84d;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 36px -8px var(--accent-glow);
}
.lp__cal-btn:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 3px var(--accent-soft),
    0 12px 36px -8px var(--accent-glow);
}
.lp__cal-btn span { font-weight: 500; transition: transform 120ms ease; }
.lp__cal-btn:hover span { transform: translateX(2px); }
.lp__cal-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* --- Footer --- */

.lp__foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--ink-soft);
}
.lp__foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.lp__foot a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.lp__foot-dot { color: var(--rule-strong); }

@media (max-width: 640px) {
  .lp { padding: 20px 20px 40px; gap: 28px; }
  .lp__nav { padding: 14px 20px; }
  .lp__nav-links { gap: 18px; }
  .lp__h1 { margin-bottom: 14px; }
  .lp__h2 { margin-bottom: 22px; }
  .lp__scan-body { padding: 18px 16px 16px; }
}

/* ==========================================================================
   Client Profitability Analyzer
   ========================================================================== */
.cpa {
  background: var(--bg-elev);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}
.cpa__layout {
  display: flex;
  flex-direction: column;
}
.cpa__step {
  padding: 32px 32px 28px;
  border-bottom: 1px solid var(--rule);
}
.cpa__step:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .cpa__step { padding: 24px 20px; }
}

.cpa__step-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}
.cpa__step-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  border-radius: 50%;
  margin-top: 2px;
}
.cpa__step-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}
.cpa__step-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---- Upload tiles ---- */
.cpa__uploads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1080px) {
  .cpa__uploads { grid-template-columns: 1fr; }
}
.cpa__upload {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 120ms ease;
}
.cpa__upload.is-filled { border-color: var(--accent-deep); }
.cpa__upload.is-error  { border-color: var(--danger); }
.cpa__upload-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.cpa__upload-kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.cpa__upload-optional {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  padding: 2px 6px;
  border-radius: 4px;
}
.cpa__upload-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.cpa__upload-blurb {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cpa__upload-cols code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 8px;
  word-break: break-word;
}
.cpa__upload-zone {
  display: block;
  position: relative;
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  background: var(--bg-deep);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.cpa__upload-zone:hover { border-color: var(--ink); }
.cpa__upload-zone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.cpa__upload.is-filled .cpa__upload-zone { border-color: var(--accent-deep); background: rgba(217, 119, 6, 0.06); }
.cpa__upload.is-error  .cpa__upload-zone { border-color: var(--danger); background: rgba(252, 165, 165, 0.08); }

.cpa__upload-empty,
.cpa__upload-filled,
.cpa__upload-error {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cpa__upload-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}
.cpa__upload-cta {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.cpa__upload-sub {
  font-size: 11px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.cpa__upload-check {
  font-size: 18px;
  color: var(--accent);
}
.cpa__upload-filename {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-all;
}
.cpa__upload-rows {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-deep);
}
.cpa__upload-error-text {
  font-size: 12px;
  color: var(--danger);
  line-height: 1.4;
}
.cpa__upload-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.cpa__link {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--accent-deep);
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.cpa__link:hover { color: var(--accent); }
.cpa__link--quiet { color: var(--ink-soft); }
.cpa__link--quiet:hover { color: var(--danger); }

/* ---- Overhead inputs ---- */
.cpa__overhead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cpa__overhead-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .cpa__overhead { grid-template-columns: 1fr; gap: 14px; }
  .cpa__overhead-meta { grid-template-columns: 1fr; gap: 14px; }
}
.cpa__overhead-meta input[type="text"],
.cpa__overhead-meta input[type="month"] {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.cpa__overhead-meta input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- Run row ---- */
.cpa__run-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.cpa__run-btn { padding: 11px 22px; font-size: 15px; }
.cpa__pdf-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.cpa__run-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---- Results ---- */
.cpa__results[hidden] { display: none; }

.cpa__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 880px) {
  .cpa__summary { grid-template-columns: repeat(2, 1fr); }
}
.cpa__score {
  background: var(--bg-deep);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.cpa__score--warn { border-color: rgba(252, 165, 165, 0.4); background: rgba(252, 165, 165, 0.05); }
.cpa__score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cpa__score-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cpa__score-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.cpa__score--warn .cpa__score-value { color: var(--danger); }

.cpa__h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}

.cpa__table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
}
.cpa__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.cpa__table thead th {
  text-align: left;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.cpa__table tbody th {
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  font-family: var(--font-mono);
  width: 36px;
}
.cpa__table tbody td {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.cpa__table tbody tr:hover td,
.cpa__table tbody tr:hover th { background: rgba(37, 99, 235, 0.04); }
.cpa__table tbody tr.is-loss td:nth-child(6) { color: var(--danger); font-weight: 600; }
.cpa__table tbody tr.is-critical td { color: var(--danger); }
.cpa__num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Per-client cards ---- */
.cpa__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.cpa__card {
  background: var(--bg-deep);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.cpa__card[data-tone="ok"]       { border-color: rgba(134, 239, 172, 0.30); }
.cpa__card[data-tone="warn"]     { border-color: rgba(37, 99, 235, 0.45); }
.cpa__card[data-tone="critical"] { border-color: rgba(252, 165, 165, 0.55); background: rgba(252, 165, 165, 0.04); }

.cpa__card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cpa__card-head h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}
.cpa__chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.cpa__chip--ok       { color: var(--ok); }
.cpa__chip--warn     { color: var(--accent); }
.cpa__chip--critical { color: var(--danger); }

.cpa__pnl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cpa__pnl th[scope="row"] {
  text-align: left;
  font-weight: 400;
  color: var(--ink-2);
  padding: 5px 0;
  vertical-align: middle;
}
.cpa__pnl td {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: 5px 0;
  white-space: nowrap;
}
.cpa__pnl tr.cpa__pnl-sub th,
.cpa__pnl tr.cpa__pnl-sub td {
  border-top: 1px solid var(--rule-strong);
  padding-top: 8px;
  font-weight: 500;
  color: var(--ink);
}
.cpa__pnl tr.cpa__pnl-total th,
.cpa__pnl tr.cpa__pnl-total td {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  padding-bottom: 8px;
  font-weight: 600;
  color: var(--accent);
}
.cpa__muted { color: var(--ink-soft); font-style: italic; }

.cpa__card-flags-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.cpa__flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.cpa__flag {
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 4px;
  border-left: 3px solid;
  background: var(--bg);
}
.cpa__flag--high { border-color: var(--danger); color: var(--danger); }
.cpa__flag--mid  { border-color: var(--accent); color: var(--ink-2); }
.cpa__no-flags {
  margin: 0;
  font-size: 12px;
  color: var(--ok);
  font-style: italic;
}

/* ---- Methodology + CTA ---- */
.cpa__methodology {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.cpa__methodology h4 { margin-top: 0; }
.cpa__methodology ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.cpa__methodology strong { color: var(--ink); font-weight: 500; }

.cpa__cta-card {
  margin-top: 28px;
  padding: 22px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(37, 99, 235, 0.10), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 60px -20px var(--accent-glow);
}
.cpa__cta-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.cpa__cta-body {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.cpa__cta-card .signup__row {
  flex-direction: column;
  background: var(--bg-deep);
  border-color: var(--rule-strong);
}
.cpa__cta-card .signup__input {
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
}
.cpa__cta-card .signup__btn {
  background: var(--accent);
  color: var(--bg-deep);
  border-left: 0;
  border-top: 1px solid var(--rule-strong);
  padding: 11px 22px;
  justify-content: center;
  width: 100%;
}
.cpa__cta-card .signup__btn:hover { background: #ffb84d; }

/* ==========================================================================
   Contribution Margin Tracker
   ========================================================================== */
.cmt {
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}
.cmt__layout { display: flex; flex-direction: column; }

/* Attribution callout — prominently credits Casey Winans / Full Stride */
.cmt__inspired {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 28px 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.02));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
}
@media (max-width: 720px) { .cmt__inspired { margin: 20px 18px 0; padding: 14px 16px; } }
.cmt__inspired-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.45);
}
.cmt__inspired-body { min-width: 0; flex: 1; }
.cmt__inspired-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.cmt__inspired-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.cmt__inspired-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.30);
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms ease, color 140ms ease;
}
.cmt__inspired-link:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}
.cmt__inspired-link--strong { color: var(--ink); font-weight: 600; }
.cmt__inspired-link--strong:hover { color: var(--accent); }

.cmt__step {
  padding: 36px 32px 32px;
  border-bottom: 1px solid var(--rule);
}
.cmt__step:last-child { border-bottom: 0; }
.cmt__step:first-of-type { padding-top: 32px; }
@media (max-width: 720px) {
  .cmt__step { padding: 28px 18px; }
}

.cmt__step-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.cmt__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.cmt__step-num::before { content: "STEP"; }
.cmt__step-head > div { width: 100%; }
.cmt__step-head h3 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.25;
}
.cmt__step-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.cmt__step-head p strong { color: var(--ink-2); font-weight: 600; }

/* ---- Reporting window inputs ---- */
.cmt__window {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 320px);
  gap: 20px;
}
@media (max-width: 720px) {
  .cmt__window { grid-template-columns: 1fr; gap: 16px; }
}
.cmt__window .calc__field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.cmt__window .calc__field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.cmt__window .calc__field input:hover { border-color: #94a3b8; }
.cmt__window .calc__field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cmt__window .calc__field input::placeholder { color: var(--ink-soft); }

/* Month picker — prev/next around a prominent label, with quick shortcuts */
.cmt__month-picker {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.cmt__month-picker:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cmt__month-step {
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  padding: 0;
}
.cmt__month-step:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.cmt__month-step:focus-visible {
  outline: 0;
  background: var(--accent-soft);
  color: var(--accent);
}
.cmt__month-step[disabled],
.cmt__month-step[aria-disabled="true"] {
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.35;
}
.cmt__month-step[disabled]:hover,
.cmt__month-step[aria-disabled="true"]:hover {
  background: var(--bg);
  color: var(--ink-soft);
}
.cmt__month-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  text-align: center;
  min-height: 64px;
  background: var(--bg);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.cmt__month-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.cmt__month-relative {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.cmt__month-shortcuts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cmt__month-shortcut {
  padding: 5px 11px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.cmt__month-shortcut:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cmt__month-shortcut:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---- Onboarding banner (shown when table is empty) ---- */
.cmt__onboarding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.cmt__onboarding::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.cmt__onboarding-body { flex: 1; min-width: 240px; }
.cmt__onboarding-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.cmt__onboarding-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.cmt__onboarding-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 58ch;
}
.cmt__onboarding-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cmt__onboarding-arrow {
  display: inline-block;
  transition: transform 180ms ease;
  font-weight: 500;
}
.cmt__onboarding .cmt__btn--add:hover .cmt__onboarding-arrow { transform: translateX(3px); }
@media (max-width: 720px) {
  .cmt__onboarding { padding: 18px 20px; }
  .cmt__onboarding-actions { width: 100%; }
  .cmt__onboarding-actions .cmt__btn { flex: 1; justify-content: center; }
}

/* ---- Editable table ---- */
.cmt__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.cmt__table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}
.cmt__table thead th {
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.cmt__table thead th.cmt__num { text-align: right; }
.cmt__table thead .cmt__col-group {
  border-left: 1px solid var(--rule-strong);
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 10px;
  padding-bottom: 10px;
}
.cmt__table thead .cmt__col-group--rev  {
  background: rgba(16, 185, 129, 0.04);
  color: #047857;
}
.cmt__table thead .cmt__col-group--cost {
  background: rgba(239, 68, 68, 0.04);
  color: #b91c1c;
}
.cmt__table thead .cmt__col-result {
  border-left: 1px solid var(--rule-strong);
  background: var(--accent-soft);
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.06em;
}
.cmt__table thead .cmt__subhead th {
  font-size: 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 500;
  color: var(--ink-soft);
  padding-top: 8px;
  padding-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.cmt__table thead .cmt__subhead th.cmt__num { font-family: var(--font-sans); font-size: 11px; }

/* Hoverable header cells with tooltip on info-glyph hover */
.cmt__th-tip {
  position: relative;
  cursor: help;
}
.cmt__th-label,
.cmt__th-info {
  display: inline-block;
  vertical-align: middle;
}
.cmt__th-info {
  margin-left: 4px;
  font-size: 10px;
  color: var(--ink-faint, #94a3b8);
  transition: color 140ms ease;
  cursor: help;
}
.cmt__th-tip:hover .cmt__th-info,
.cmt__th-tip:focus-within .cmt__th-info { color: var(--accent); }
.cmt__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 8px;
  z-index: 20;
  width: max-content;
  max-width: 260px;
  padding: 9px 12px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  text-align: left;
  border-radius: 6px;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.30);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  pointer-events: none;
  white-space: normal;
}
.cmt__tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 14px;
  width: 10px; height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 1px;
}
.cmt__th-tip:hover .cmt__tooltip,
.cmt__th-tip:focus-within .cmt__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cmt__row td {
  padding: 4px 4px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
  transition: background 140ms ease;
}
.cmt__row:hover td { background: rgba(37, 99, 235, 0.02); }
.cmt__row:last-child td { border-bottom: 0; }
.cmt__row td.cmt__col-client { padding-left: 10px; min-width: 160px; }
.cmt__row td.cmt__num--rev   { background: rgba(16, 185, 129, 0.022); }
.cmt__row td.cmt__num--cost  { background: rgba(239, 68, 68, 0.022); }
.cmt__row:hover td.cmt__num--rev  { background: rgba(16, 185, 129, 0.05); }
.cmt__row:hover td.cmt__num--cost { background: rgba(239, 68, 68, 0.05); }

/* ===== Mobile cards (under 980px) ===========================================
   The horizontal-scroll table doesn't work on phones. Below 980px we transform
   each <tr> into a stacked card with one labeled row per <td> using the
   data-label attribute populated by renderRow(). Header / totals hide (the
   summary scorecards already show portfolio totals).
   ========================================================================== */
@media (max-width: 980px) {
  .cmt__table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .cmt__table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    display: block;
  }
  .cmt__table thead,
  .cmt__table tfoot { display: none; }
  .cmt__table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Each row becomes a stand-alone card */
  .cmt__row {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--rule-strong);
    border-radius: 12px;
    padding: 16px 16px 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
  }
  .cmt__row:hover { box-shadow: var(--shadow); }
  .cmt__row:hover td,
  .cmt__row:hover td.cmt__num--rev,
  .cmt__row:hover td.cmt__num--cost { background: transparent; }

  /* Each cell becomes a labeled row */
  .cmt__row td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border: 0;
    background: transparent;
  }
  .cmt__row td.cmt__num--rev,
  .cmt__row td.cmt__num--cost { background: transparent; }
  .cmt__row td::before {
    content: attr(data-label);
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    flex: 1;
    min-width: 0;
  }

  /* Section dividers between groups */
  .cmt__row td[data-group-start="true"] {
    border-top: 1px solid var(--rule);
    padding-top: 14px;
    margin-top: 8px;
  }

  /* Client name — top of card, larger, no inline label */
  .cmt__row td.cmt__col-client {
    padding: 0 0 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .cmt__row td.cmt__col-client::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex: none;
  }
  .cmt__row td.cmt__col-client input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--rule-strong);
    border-radius: 6px;
    background: var(--bg);
    font-size: 15px;
    font-weight: 600;
  }

  /* Number inputs — fixed width, right-aligned */
  .cmt__row input[type="number"] {
    width: 110px;
    text-align: right;
    padding: 8px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--bg-deep);
    font-size: 14px;
  }
  .cmt__row input[type="number"]:hover { border-color: var(--rule-strong); background: var(--bg); }
  .cmt__row input[type="number"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg);
  }

  /* CM $ / CM % result cells — emphasized */
  .cmt__row td.cmt__num--result {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
    padding: 10px 0;
  }
  .cmt__row td[data-cell="cmDollar"] {
    border-top: 1px solid var(--rule);
    padding-top: 14px;
    margin-top: 8px;
  }
  .cmt__row td[data-cell="cmDollar"]::before {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* Status pill row */
  .cmt__row td.cmt__col-status {
    width: auto;
    padding: 6px 0;
  }
  .cmt__row td.cmt__col-status::before {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* Remove button — top-right corner of card */
  .cmt__row td.cmt__col-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
    width: auto;
    background: transparent;
  }
  .cmt__row td.cmt__col-actions::before { content: none; }
}
.cmt__row td.cmt__num--result {
  text-align: right;
  padding-right: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--rule);
}
.cmt__row td.cmt__num--result[data-status="red"]    { color: #b91c1c; }
.cmt__row td.cmt__num--result[data-status="yellow"] { color: #b45309; }
.cmt__row td.cmt__num--result[data-status="green"]  { color: #047857; }

.cmt__row input[type="text"],
.cmt__row input[type="number"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.cmt__row input[type="number"] {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.cmt__row input[type="number"]::-webkit-outer-spin-button,
.cmt__row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.cmt__row input::placeholder { color: var(--ink-faint, #94a3b8); }
.cmt__row input:hover {
  background: var(--bg);
  border-color: var(--rule);
}
.cmt__row input:focus {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cmt__col-status { width: 124px; padding-right: 12px; text-align: right; }
.cmt__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  background: var(--bg-deep);
  white-space: nowrap;
  font-weight: 600;
}
.cmt__pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.cmt__pill[data-status="green"] {
  color: #047857;
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.30);
}
.cmt__pill[data-status="green"]::before { background: var(--ok); opacity: 1; }
.cmt__pill[data-status="yellow"] {
  color: #b45309;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.32);
}
.cmt__pill[data-status="yellow"]::before { background: #f59e0b; opacity: 1; }
.cmt__pill[data-status="red"] {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.32);
}
.cmt__pill[data-status="red"]::before { background: var(--danger); opacity: 1; }

.cmt__col-actions { width: 40px; text-align: center; }
.cmt__row-remove {
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.cmt__row-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(252, 165, 165, 0.08);
}

.cmt__totals { background: var(--bg-deep); }
.cmt__totals th,
.cmt__totals td {
  padding: 13px 10px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cmt__totals th {
  text-align: left;
  padding-left: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
}
.cmt__totals .cmt__num--strong { color: var(--ink); font-weight: 700; font-size: 13px; }
.cmt__num { text-align: right; }

/* ---- Table action buttons ---- */
.cmt__table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.cmt__action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cmt__action-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  margin: 0 4px;
}
@media (max-width: 720px) { .cmt__action-divider { display: none; } }
.cmt__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 80ms ease;
}
.cmt__btn:hover {
  background: var(--bg-deep);
  color: var(--ink);
  border-color: #94a3b8;
}
.cmt__btn:active { transform: translateY(1px); }
.cmt__btn:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cmt__btn--add {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 1px 2px rgba(37, 99, 235, 0.18);
}
.cmt__btn--add:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 4px 12px -2px rgba(37, 99, 235, 0.38);
}
.cmt__btn--export {
  margin-left: auto;
  background: var(--bg);
  border-color: var(--rule-strong);
  color: var(--ink);
  font-weight: 600;
}
.cmt__btn--export:hover {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.32);
  color: var(--accent);
}
@media (max-width: 720px) {
  .cmt__btn--export { margin-left: 0; }
}
.cmt__btn--quiet { color: var(--ink-soft); border-color: var(--rule); }
.cmt__btn--quiet:hover { color: var(--ink); border-color: var(--rule-strong); }

/* CSV import status banner — surfaces parse errors / success inline. */
.cmt__import-status {
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid var(--rule-strong);
  background: var(--bg-deep);
  color: var(--ink-2);
}
.cmt__import-status[data-kind="success"] {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
  color: #047857;
}
.cmt__import-status[data-kind="error"] {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  color: #b91c1c;
}

/* ---- Results: rank + chart ---- */
.cmt__results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 22px;
}
@media (max-width: 980px) {
  .cmt__results-grid { grid-template-columns: 1fr; }
}

.cmt__chart-wrap {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
}
.cmt__chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cmt__h4 {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.cmt__chart-legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.cmt__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.cmt__legend::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.cmt__legend--green::before  { background: var(--ok); }
.cmt__legend--yellow::before { background: #f59e0b; }
.cmt__legend--red::before    { background: var(--danger); }

.cmt__chart-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.cmt__chart-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.cmt__chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.cmt__quadrant-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cmt__quadrant {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  overflow: hidden;
}
.cmt__quadrant::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rule-strong);
}
.cmt__quadrant-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.cmt__quadrant-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.cmt__quadrant-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.cmt__quadrant--tr {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent 60%);
  border-color: rgba(16, 185, 129, 0.30);
}
.cmt__quadrant--tr::before { background: var(--ok); }
.cmt__quadrant--tl {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 60%);
  border-color: rgba(37, 99, 235, 0.22);
}
.cmt__quadrant--tl::before { background: var(--accent); }
.cmt__quadrant--br {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent 60%);
  border-color: rgba(239, 68, 68, 0.30);
}
.cmt__quadrant--br::before { background: var(--danger); }
.cmt__quadrant--bl::before { background: var(--ink-soft); }

/* ---- Rank list ---- */
.cmt__rank-wrap {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.cmt__rank {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cmt__rank-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 11px 14px 11px 11px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  border-left-width: 3px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.cmt__rank-item:hover {
  transform: translateX(2px);
  background: var(--bg-deep);
}
.cmt__rank-item[data-status="green"]  { border-left-color: var(--ok); }
.cmt__rank-item[data-status="yellow"] { border-left-color: #f59e0b; }
.cmt__rank-item[data-status="red"]    { border-left-color: var(--danger); }
.cmt__rank-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  grid-row: 1 / 3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cmt__rank-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cmt__rank-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cmt__rank-pct {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  grid-row: 1 / 3;
  grid-column: 3;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cmt__rank-pct[data-status="green"]  { color: #047857; }
.cmt__rank-pct[data-status="yellow"] { color: #b45309; }
.cmt__rank-pct[data-status="red"]    { color: #b91c1c; }
.cmt__rank-empty {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 16px 0 0;
  padding: 24px 16px;
  text-align: center;
  background: var(--bg-deep);
  border-radius: 8px;
  border: 1px dashed var(--rule-strong);
  line-height: 1.5;
}

/* ---- Summary scorecards ---- */
.cmt__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 980px) {
  .cmt__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cmt__summary { grid-template-columns: 1fr; }
}
.cmt__score {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.cmt__score:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}
.cmt__score--accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.01));
  border-color: rgba(37, 99, 235, 0.22);
}
.cmt__score--accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cmt__score--warn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.01));
  border-color: rgba(239, 68, 68, 0.30);
}
.cmt__score--warn::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--danger);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cmt__score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.cmt__score--warn .cmt__score-label { color: #b91c1c; }
.cmt__score--accent .cmt__score-label { color: var(--accent); }
.cmt__score-value {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cmt__score-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---- CTA card ---- */
.cmt__cta-card {
  margin-top: 24px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 50%, transparent 100%), var(--bg);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cmt__cta-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}
.cmt__cta-headline {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.cmt__cta-body {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
}
.cmt__cta-card .signup__row {
  flex-direction: row;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) {
  .cmt__cta-card .signup__row { flex-direction: column; }
}
.cmt__cta-card .signup__input {
  font-size: 15px;
  padding: 13px 16px;
  width: 100%;
  border: 0;
  background: transparent;
}
.cmt__cta-card .signup__input:focus { outline: 0; box-shadow: none; }
.cmt__cta-card .signup__btn {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-left: 1px solid var(--accent);
  padding: 13px 24px;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .cmt__cta-card .signup__btn {
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
    width: 100%;
  }
}
.cmt__cta-card .signup__btn:hover { background: var(--accent-deep); }

/* ==========================================================================
   Landing page — light theme variant
   Applied via .lp__page--light. Mirrors the original single-screen layout
   exactly; just swaps colors to white/slate + blue accent, and the H1/H2
   from Fraunces serif to Inter sans.
   ========================================================================== */

body:has(.lp__page--light) {
  background: #ffffff;
}

.lp__page--light {
  background: #ffffff;
}

.lp__page--light ::selection,
.lp__page--light::selection {
  background: rgba(37, 99, 235, 0.22);
  color: #0f172a;
  text-shadow: none;
}
.lp__page--light .brand__name { color: #0f172a; font-weight: 700; }
.lp__page--light .lp__nav-links a { color: #475569; }
.lp__page--light .lp__nav-links a:hover { color: #0f172a; }

.lp__page--light .lp__h1 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.028em;
}
.lp__page--light .lp__h1 em {
  color: #2563eb;
  font-family: inherit;
  text-shadow: none;
}
.lp__page--light .lp__h1 em::after {
  background: rgba(37, 99, 235, 0.12);
}
.lp__page--light .lp__h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: #475569;
}

.lp__page--light .lp__cal-btn {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px -8px rgba(37, 99, 235, 0.45);
}
.lp__page--light .lp__cal-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 32px -8px rgba(37, 99, 235, 0.55);
}
.lp__page--light .lp__cal-btn:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(37, 99, 235, 0.22),
    0 12px 32px -8px rgba(37, 99, 235, 0.55);
}

/* Scan visualization — light theme */
.lp__page--light .lp__scan::before {
  background: radial-gradient(60% 50% at 50% 50%, rgba(37, 99, 235, 0.18), transparent 70%);
}
.lp__page--light .lp__scan-frame {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow:
    0 24px 64px -16px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.lp__page--light .lp__scan-head {
  border-bottom-color: #e2e8f0;
  background: rgba(248, 250, 252, 0.6);
}
.lp__page--light .lp__scan-tag { color: #64748b; }
.lp__page--light .lp__scan-sep { color: #2563eb; }
.lp__page--light .lp__scan-status { color: #2563eb; }
.lp__page--light .lp__scan-pulse {
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.40);
  animation: lp-pulse-light 1.6s ease-in-out infinite;
}
@keyframes lp-pulse-light {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.40); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.lp__page--light .lp__scan-beam {
  background: linear-gradient(180deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.10) 45%,
    rgba(96, 165, 250, 0.30) 50%,
    rgba(37, 99, 235, 0.10) 55%,
    rgba(37, 99, 235, 0) 100%);
}
.lp__page--light .lp__scan-beam::after {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.65), transparent);
  box-shadow: 0 0 18px 1px rgba(37, 99, 235, 0.35);
}
.lp__page--light .lp__scan-readout {
  border-bottom: 1px dashed rgba(15, 23, 42, 0.10);
}
.lp__page--light .lp__scan-readout-label {
  color: #64748b;
}
.lp__page--light .lp__scan-readout-value {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: #0f172a;
  text-shadow: 0 0 28px rgba(37, 99, 235, 0.18);
}
.lp__page--light .lp__scan-readout-meta {
  color: #94a3b8;
}
.lp__page--light .lp__scan-rows li {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
  color: #64748b;
  animation: lp-row-flash-light 5.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.62s);
}
.lp__page--light .lp__scan-rows .lp__scan-amt {
  color: #2563eb;
  font-weight: 500;
}
@keyframes lp-row-flash-light {
  0%, 60%, 100% {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.06);
    color: #64748b;
    box-shadow: none;
  }
  62%, 70% {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.32);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.20), 0 0 22px -4px rgba(37, 99, 235, 0.28);
  }
}
.lp__page--light .lp__scan-foot {
  background: #f8fafc;
  border-top-color: #e2e8f0;
  color: #64748b;
}
.lp__page--light .lp__scan-foot-dot { background: #2563eb; }

/* Footer */
.lp__page--light .lp__foot { color: #64748b; }
.lp__page--light .lp__foot a {
  color: #475569;
  border-bottom-color: #e2e8f0;
}
.lp__page--light .lp__foot a:hover {
  color: #2563eb;
  border-color: #2563eb;
}
.lp__page--light .lp__foot-dot { color: #cbd5e1; }

