/* ─────────────────────────────────────────────────────────────────────────────
   Marketing pages (the home page).

   Ported from the consulting site's site.css so the two properties share one
   design language — same hero treatment, same card and pricing grids, same
   button shapes. Kept in its own file rather than merged into the app CSS: the
   simulator is a tool and this is a brochure, and mixing them means every future
   change to one risks the other.

   Everything resolves through the theme tokens in rapid_response_sim.css, so
   these sections follow light/dark like the rest of the app. The consulting site
   is light-only; the few places it hardcodes white are mapped to tokens here.
   ───────────────────────────────────────────────────────────────────────────── */

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}

.mk h1, .mk h2, .mk h3, .mk h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mk h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.mk h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
.mk h3 { font-size: 1.2rem; }

.mk .eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: block;
  margin: 0 0 10px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ── Hero ─────────────────────────────────────────────────────────────────
   The deep-green wash the consulting hero uses. Identical in both themes: it
   is the brand moment, and it is already dark, so it needs no dark variant. */
.mk-hero {
  background:
    radial-gradient(circle at 15% 0%, #15564f 0%, transparent 45%),
    linear-gradient(180deg, var(--dark-900) 0%, var(--dark-950) 100%);
  color: #ffffff;
  padding: 88px 0 96px;
}
.mk-hero h1 { color: #ffffff; }
.mk-hero .lede { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.mk-hero .eyebrow { color: #4dd8d0; }
.mk-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.mk-hero-note { color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; margin: 18px 0 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* On the dark hero the theme tokens are the wrong ones — it is dark in both
   themes, so these are fixed rather than tokenised. */
.btn--on-dark { background: #4dd8d0; color: #052e2b; }
.btn--on-dark:hover { background: #7ce5df; }
.btn--outline-on-dark { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn--outline-on-dark:hover { border-color: #4dd8d0; color: #4dd8d0; }

.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: .85rem; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
/* Three-card grids (the plans). The base rule forces four columns, which
   leaves an empty cell on a page that has three. */
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 2px 4px var(--accent-soft), 0 12px 28px var(--accent-soft);
}
.pricing-card__ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.pricing-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.pricing-card__price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.pricing-card__price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
/* Secondary line under a price -- the annual alternative, or how a band is
   measured. Sits between the price and the description. */
.pricing-card__note { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.pricing-card__desc { color: var(--muted); font-size: 0.9rem; margin: 8px 0 20px; line-height: 1.5; }

/* ── Marketing table (program bands) ───────────────────────────────────────
   Tokenized rather than hardcoded so it follows the light/dark switch, and
   scrolls inside its own wrapper so the page body never scrolls sideways. */
.mk-table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 14px;
}
.mk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.mk-table th,
.mk-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mk-table th {
  background: var(--bg);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.mk-table tr:last-child td { border-bottom: none; }
.pricing-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.pricing-card li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Sample transcript ─────────────────────────────────────────────────── */
.mk-demo {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mk-demo > header {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mk-demo .body { padding: 20px 18px; display: grid; gap: 16px; }
.mk-turn { display: grid; gap: 5px; }
.mk-turn .who {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.mk-turn p { margin: 0; line-height: 1.6; }
.mk-turn.learner p { color: var(--accent); font-weight: 500; }
.mk-monitor {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); font-variant-numeric: tabular-nums; font-size: .9rem;
}
.mk-monitor b { color: var(--text); }
.mk-monitor span { color: var(--muted); }

/* ── Weak-area meters ──────────────────────────────────────────────────── */
.mk-rows { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mk-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 13px 18px; background: var(--panel); font-size: .93rem;
}
.mk-row b { font-variant-numeric: tabular-nums; }
.mk-meter {
  height: 7px; border-radius: 99px; background: var(--panel-2);
  width: 130px; overflow: hidden; flex: 0 0 auto;
}
.mk-meter i { display: block; height: 100%; border-radius: 99px; }

.mk-note {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .93rem;
}
.mk-note strong { color: var(--text); }

.mk-split { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: start; }

.mk-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: .86rem;
}
.mk-footer .container { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.mk-footer a { color: var(--muted); }
.mk-disclaimer { max-width: 64ch; line-height: 1.6; margin: 0; }

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .mk-hero { padding: 60px 0 66px; }
}
