/* Meriix — Landing Page
   Design tokens are BRD §3.2, sampled from the logo. Exact — do not approximate. */

:root {
  --indigo-primary: #5B6CF5;
  --indigo-deep:    #34409F;
  --amber-accent:   #F79F0E;
  --ink:            #444444;
  --surface:        #FFFFFF;

  --indigo-300: #99A3F9;
  --indigo-200: #ADB5FA;
  --indigo-50:  #F4F5FE;
  --border:     #E8E8E8;
  --ink-muted:  #727272;

  /* Amber is legible only behind dark text (BRD §9). */
  --on-amber: #2B2B2B;

  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --band: clamp(64px, 8vw, 112px);
  --ease: 150ms ease-out;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--indigo-primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--indigo-deep); }
::selection { background: var(--indigo-200); color: var(--indigo-deep); }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; }
/* Flex/grid display values otherwise beat the [hidden] UA rule. */
[hidden] { display: none !important; }

/* BRD §7.5 — every interactive element ships a visible focus ring. */
:focus-visible {
  outline: 2px solid var(--indigo-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.wash { background: var(--indigo-50); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--indigo-primary); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Type scale (BRD §3.4) ---------- */
.h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 56px); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--indigo-deep); margin: 0 0 20px;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15;
  font-weight: 700; letter-spacing: -0.015em;
  color: var(--indigo-deep); margin: 0 0 14px;
}
.h3 {
  font-family: var(--display);
  font-size: 20px; line-height: 1.3; font-weight: 600;
  color: var(--indigo-deep); margin: 0 0 10px;
}
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 clamp(36px, 4vw, 56px); }
.lede--tight { margin-bottom: 32px; }
.label {
  font-size: 13px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pretty { text-wrap: pretty; }
.measure { max-width: 22ch; }
.measure-wide { max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease);
}
.btn--primary { background: var(--indigo-primary); color: #fff; font-size: 16px; padding: 14px 26px; }
.btn--primary:hover { background: var(--indigo-deep); color: #fff; }
.btn--primary[disabled] { background: var(--indigo-300); cursor: default; }

/* Amber is permitted here (BRD §3.3): primary CTA buttons only. */
.btn--amber { background: var(--amber-accent); color: var(--on-amber); font-weight: 700; }
.btn--amber:hover { transform: translateY(-2px); color: var(--on-amber); }

.btn--outline {
  background: var(--surface); border: 1.5px solid var(--indigo-primary);
  color: var(--indigo-primary); font-size: 16px; padding: 13px 20px;
}
.btn--outline:hover { background: var(--indigo-50); color: var(--indigo-deep); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Navbar (BRD §6.1) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(52, 64, 159, 0.07);
}
.nav__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo img { height: 44px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; justify-content: center; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.nav__link:hover { color: var(--indigo-primary); border-bottom-color: var(--indigo-primary); }
.nav__link.is-active { color: var(--indigo-primary); border-bottom-color: var(--indigo-primary); }
.nav__cta { flex: 0 0 auto; font-size: 15px; padding: 11px 20px; }

.nav__burger {
  display: none; flex: 0 0 auto; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; cursor: pointer;
}
.nav__burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--indigo-deep);
}
.nav__burger span + span { margin-top: 5px; }

/* Mobile drawer — slides from the right, CTA pinned at the bottom (BRD §6.1). */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(52, 64, 159, 0.32);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease-out;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(320px, 86vw);
  background: var(--surface);
  padding: 20px var(--gutter) 24px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%);
  transition: transform 240ms ease-out;
  box-shadow: -24px 0 60px rgba(52, 64, 159, 0.18);
}
.drawer.is-open { transform: translateX(0); }
.drawer__close {
  align-self: flex-end; background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink-muted); padding: 6px;
}
.drawer__link {
  font-family: var(--display); font-size: 18px; font-weight: 600;
  color: var(--indigo-deep); padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.drawer__cta { margin-top: auto; }

/* ---------- Hero (BRD §4.1 — split hero, simulator live on the right) ---------- */
.hero {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 104px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: clamp(40px, 5vw, 72px); align-items: start;
}
.hero__copy { max-width: 600px; }
.hero__subhead {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 21px); line-height: 1.45; font-weight: 500;
  color: var(--ink); margin: 0 0 20px;
}
.hero__body { font-size: 17px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 28px; max-width: 52ch; }
.pullquote {
  margin: 0 0 32px;
  background: var(--indigo-50);
  border-left: 4px solid var(--amber-accent);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
}
.pullquote p {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 20px); line-height: 1.4; font-weight: 600;
  color: var(--indigo-deep); margin: 0;
}
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__cta .btn--amber {
  font-size: 17px; padding: 16px 28px;
  box-shadow: 0 10px 30px rgba(247, 159, 14, 0.22);
}
.hero__cta .btn--amber:hover { box-shadow: 0 14px 34px rgba(247, 159, 14, 0.3); }
.micro { font-size: 15px; color: var(--ink-muted); }

/* ---------- Blueprint simulator (BRD §6.3, §7.1) ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-accent); display: inline-block; }
.eyebrow .label { color: var(--indigo-primary); }
.sim__h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 700;
  letter-spacing: -0.015em; color: var(--indigo-deep); margin: 0 0 12px;
}
.sim__sub { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 20px; max-width: 56ch; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--indigo-primary);
  border: 1.5px solid var(--indigo-200);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.chip:hover { background: var(--indigo-50); }
.chip[aria-pressed="true"] {
  background: var(--indigo-primary); color: #fff; border-color: var(--indigo-primary);
}
.sim {
  background: var(--indigo-deep);
  border-radius: 16px;
  padding: 22px clamp(18px, 2vw, 26px);
  /* Fixed to the tallest of the three outputs so the page never reflows (§7.1). */
  min-height: 470px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(52, 64, 159, 0.24);
  overflow-x: auto;
}
.sim__status {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; color: var(--indigo-200);
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(173, 181, 250, 0.25);
}
.sim__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; display: inline-block;
  background: var(--amber-accent);
}
.sim.is-building .sim__dot { background: var(--indigo-200); }
.sim__cursor { color: var(--amber-accent); display: none; }
.sim.is-building .sim__cursor { display: inline; animation: mxblink 900ms step-end infinite; }
.sim__blocks { display: flex; flex-direction: column; gap: 16px; }
.sim__block {
  opacity: 1; transform: translateY(0);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}
.sim__block.is-pending { opacity: 0; transform: translateY(8px); }
.sim__head { font-family: var(--mono); font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.sim__text {
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  color: var(--indigo-200); white-space: pre-wrap; min-height: 22px;
}
@keyframes mxblink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes mxspin { to { transform: rotate(360deg) } }

/* ---------- Value propositions (BRD §6.4) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(52, 64, 159, 0.09); }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.card__num {
  width: 38px; height: 38px; border-radius: 11px; background: var(--indigo-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; color: var(--indigo-primary); font-size: 16px;
}
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card__top .card__num { margin-bottom: 0; }
.tag {
  color: var(--indigo-primary); background: var(--indigo-50);
  padding: 5px 10px; border-radius: 6px;
}

/* ---------- Four steps (BRD §6.5) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.step { padding: 28px 24px; border-radius: 16px; border: 1px solid var(--border); }
.step__num {
  font-family: var(--display); font-size: 34px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--indigo-200); margin-bottom: 14px;
}
.step h3 { font-size: 19px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
/* Step 02 is the differentiator — it carries the emphasis (§6.5 design note). */
.step--key {
  background: var(--indigo-50);
  border: 1.5px solid var(--indigo-primary);
  box-shadow: 0 18px 44px rgba(91, 108, 245, 0.14);
}
.step--key .step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step--key .step__num { color: var(--indigo-primary); margin-bottom: 0; }
.step--key .label { color: var(--indigo-deep); }
.step--key h3 { font-size: 21px; font-weight: 700; }
.step--key p { color: var(--ink); }

/* ---------- Role tabs (BRD §6.6, §7.2) ---------- */
.tabs__hint { font-size: 15px; line-height: 1.5; color: var(--indigo-primary); margin: 0 0 28px; }
.tablist {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 2px; margin-bottom: 28px;
  /* Edge fade indicators on narrow widths — never a dropdown (§7.2). */
  scrollbar-width: thin;
}
.tab {
  flex: 0 0 auto; background: none; border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  padding: 11px 16px; cursor: pointer; white-space: nowrap;
  color: var(--ink-muted);
  transition: color var(--ease), border-color var(--ease);
}
.tab:hover { color: var(--indigo-primary); }
/* Amber is permitted here (§3.3): the active-state underline on role tabs. */
.tab[aria-selected="true"] { color: var(--indigo-primary); border-bottom-color: var(--amber-accent); }
.tabpanel { transition: opacity 200ms ease-out; }
.tabpanel.is-fading { opacity: 0; }
.rolecard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: clamp(24px, 3vw, 40px);
}
.rolecard__title {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  color: var(--indigo-deep); margin: 0 0 24px;
}
.rolecard__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.rolefield .label { color: var(--ink-muted); margin-bottom: 10px; display: block; }
.rolefield p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0; }
.rolefield--produces { background: var(--indigo-50); border-radius: 12px; padding: 20px; }
.rolefield--produces .label { color: var(--indigo-primary); }
.rolefield--produces p {
  font-family: var(--display); font-size: 16px; line-height: 1.55;
  font-weight: 500; color: var(--indigo-deep);
}

/* ---------- Comparison table (BRD §6.7) ---------- */
.scroller { overflow-x: auto; padding: 6px; }
/* Each row is one wrapper: transparent in the desktop grid, a paired card on mobile. */
.compare__pair { display: contents; }
.compare { min-width: 760px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) minmax(220px, 1.4fr); }
.compare__cell { padding: 16px 22px; font-size: 16px; line-height: 1.5; border-top: 1px solid var(--border); }
.compare__rowlabel { font-family: var(--display); font-weight: 600; color: var(--indigo-deep); }
.compare__generic { color: var(--ink-muted); text-wrap: pretty; }
.compare__meriix {
  color: var(--ink); background: var(--indigo-50);
  border-left: 1.5px solid var(--indigo-primary);
  border-right: 1.5px solid var(--indigo-primary);
  border-top: 1px solid var(--indigo-200);
  display: flex; gap: 10px; text-wrap: pretty;
  transition: background var(--ease);
}
.compare:hover .compare__meriix { background: #EEF0FE; }
/* Amber is permitted here (§3.3): checkmarks in the Meriix column. */
.compare__check { color: var(--amber-accent); font-size: 17px; font-weight: 700; flex: 0 0 auto; line-height: 1.5; }
.compare__head--generic { padding: 18px 22px; color: var(--ink-muted); }
.compare__head--meriix {
  background: var(--indigo-50);
  border: 1.5px solid var(--indigo-primary); border-bottom: none;
  border-radius: 16px 16px 0 0; padding: 18px 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.compare__brand { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--indigo-deep); }
/* Amber is permitted here (§3.3): the Recommended badge. */
.badge-rec { background: var(--amber-accent); color: var(--on-amber); padding: 4px 9px; border-radius: 6px; }

/* The Recommended badge must be visible without scrolling on mobile (§7.4). */
.compare__badge-mobile { display: none; align-items: center; gap: 12px; margin-bottom: 16px; }

/* ---------- Pricing (BRD §6.8, §7.3) ---------- */
.pricing__controls { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 44px); }
.pillgroup {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; display: flex; gap: 2px; align-items: center;
}
.pill {
  position: relative; font-family: var(--display); font-size: 15px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink-muted);
  transition: background var(--ease), color var(--ease);
}
.pill:hover { color: var(--indigo-deep); }
.pill[aria-pressed="true"] { background: var(--indigo-primary); color: #fff; }
.pill__save {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
  background: var(--indigo-50); color: var(--indigo-primary);
}
.pill[aria-pressed="true"] .pill__save { background: rgba(255, 255, 255, 0.22); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; }
.plan--featured { border: 1.5px solid var(--indigo-primary); box-shadow: 0 24px 56px rgba(91, 108, 245, 0.16); }
.plan__name { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--indigo-deep); margin-bottom: 4px; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.plan__head .plan__name { margin-bottom: 0; }
.plan__for { font-size: 15px; color: var(--ink-muted); margin-bottom: 22px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.plan__figure {
  font-family: var(--display); font-size: 40px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--indigo-deep);
  transition: opacity var(--ease);
}
.plan__figure.is-swapping { opacity: 0; }
.plan__period { font-size: 15px; color: var(--ink-muted); }
.plan__blurb { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 26px; min-height: 76px; text-wrap: pretty; }
.plan .btn--amber { font-size: 16px; padding: 14px 20px; }
.rate-note { font-size: 15px; color: var(--ink-muted); margin-top: 16px; }

.matrix-wrap { position: relative; margin-top: clamp(44px, 5vw, 72px); }
.matrix-group { margin-bottom: 40px; }
.matrix-group > .label { color: var(--indigo-primary); display: block; margin-bottom: 14px; }
.matrix { min-width: 660px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.matrix__row { display: grid; grid-template-columns: minmax(220px, 1.6fr) 1fr 1fr 1fr; }
.matrix__row--head { background: var(--indigo-deep); }
.matrix__row--head div { padding: 14px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.matrix__row--head .matrix__rowhead { color: var(--indigo-200); }
.matrix__cell { padding: 16px 22px; font-size: 16px; line-height: 1.5; border-top: 1px solid var(--border); color: var(--ink); }
.matrix__label { font-weight: 600; color: var(--indigo-deep); }
/* "Creator seats" does not differentiate — lower visual weight (§6.8). */
.matrix__label--quiet { font-weight: 400; color: var(--ink-muted); }
.matrix__cell--limited { color: var(--ink-muted); cursor: help; }
.matrix__cell--check { color: var(--indigo-primary); font-weight: 700; }
.tooltip {
  position: sticky; top: 80px; z-index: 5;
  margin: 0 auto 18px; max-width: 520px;
  background: var(--indigo-deep); color: #fff;
  font-size: 15px; line-height: 1.5; padding: 14px 18px; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(52, 64, 159, 0.28);
  transition: opacity var(--ease);
  opacity: 1;
}
.tooltip.is-hidden {
  opacity: 0; pointer-events: none;
  height: 0; padding: 0; overflow: hidden; margin-bottom: 0;
}

/* ---------- Final CTA (BRD §6.9) ---------- */
.finalcta { background: var(--indigo-deep); }
.finalcta .shell { text-align: center; padding-block: clamp(64px, 8vw, 104px); }
.finalcta .h2 { color: #fff; margin: 0 auto 16px; max-width: 24ch; }
.finalcta p { font-size: 17px; line-height: 1.6; color: var(--indigo-200); margin: 0 auto 32px; max-width: 56ch; }
.finalcta .btn--amber { font-size: 19px; padding: 18px 34px; }
.finalcta .micro { color: var(--indigo-200); display: block; margin-top: 16px; }

/* ---------- Contact form (BRD §6.10) ---------- */
.contact {
  max-width: var(--shell); margin: 0 auto;
  padding: var(--band) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.contact__intro p { font-size: 17px; line-height: 1.6; color: var(--ink-muted); margin: 0; max-width: 44ch; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--surface);
  padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--border);
  transition: border-color var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo-primary); }
.field textarea { resize: vertical; min-height: 110px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--amber-accent); }
.field__err { font-size: 15px; color: var(--ink); margin-top: 7px; }
.field__err:empty { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--indigo-primary); border-radius: 4px; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: mxspin 700ms linear infinite;
}
.toast {
  font-size: 15px; font-weight: 600; color: var(--indigo-deep);
  background: var(--indigo-50); padding: 9px 14px; border-radius: 8px;
}
.form__failure {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #FDF3E6; border: 1px solid var(--amber-accent);
  border-radius: 10px; padding: 14px 16px;
}
.form__failure span { font-size: 15px; color: var(--ink); }
.linkbtn {
  background: none; border: none; padding: 0;
  font-size: 15px; font-weight: 600; color: var(--indigo-deep);
  text-decoration: underline; cursor: pointer;
}
.sent-panel {
  background: var(--indigo-50); border: 1px solid var(--indigo-200);
  border-radius: 16px; padding: 36px 32px;
}
.sent-panel__title { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--indigo-deep); margin-bottom: 10px; }
.sent-panel p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0; }

/* ---------- Footer (BRD §6.11) ---------- */
.footer { background: var(--ink); }
.footer__top {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.footer__brand { max-width: 300px; }
/* The wordmark-on-deep-blue lockup, reconstructed as a plate for contrast on --ink. */
.footer__plate { background: var(--indigo-deep); border-radius: 12px; padding: 14px 18px; display: inline-block; margin-bottom: 16px; }
.footer__plate img { height: 26px; width: auto; display: block; }
.footer__brand p { font-size: 16px; line-height: 1.6; color: var(--border); margin: 0; }
.footer__col .label { color: var(--indigo-200); display: block; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 16px; color: #fff; }
.footer__links a:hover { color: var(--indigo-200); }
.footer__bottom {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #fff;
  transition: background var(--ease);
}
.footer__social a:hover { background: var(--indigo-primary); color: #fff; }
.footer__legal { font-size: 15px; color: var(--indigo-200); }

/* ---------- Subpages (About, Contact, Careers, legal) ---------- */
.pagehead { background: var(--indigo-50); }
.pagehead .shell { padding-block: clamp(48px, 6vw, 88px); }
.pagehead .h1 { max-width: 20ch; }
.pagehead p { font-size: 17px; line-height: 1.6; color: var(--ink-muted); margin: 0; max-width: 56ch; }
.crumb { display: block; font-size: 15px; font-weight: 600; color: var(--indigo-primary); margin-bottom: 16px; }

.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--display); font-size: 24px; line-height: 1.3; font-weight: 600;
  color: var(--indigo-deep); margin: 40px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--display); font-size: 18px; line-height: 1.4; font-weight: 600;
  color: var(--indigo-deep); margin: 28px 0 8px;
}
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .muted { color: var(--ink-muted); }

/* Placeholder for copy the client still owes. Delete the block once the real
   content lands — it is deliberately conspicuous so it cannot ship unnoticed. */
.pending {
  border: 1.5px dashed var(--indigo-200);
  background: var(--indigo-50);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 0 0 32px;
}
.pending > .label { color: var(--indigo-primary); display: block; margin-bottom: 10px; }
.pending p { margin: 0 0 12px; }
.pending ul { margin: 0; }
.pending li { color: var(--ink); }

.contact-details { display: grid; gap: 24px; margin-bottom: 32px; }
.contact-details dt { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.contact-details dd { margin: 0; font-size: 17px; color: var(--ink); }

/* ---------- Sticky mobile CTA (BRD §8) ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 200ms ease-out;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; font-size: 16px; padding: 14px 20px; }

/* ---------- Responsive (BRD §8) ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 767px) {
  .mobile-cta { display: block; }
  .hero { grid-template-columns: 1fr; }
  /* Never shrink the mono type below 13px — the panel scrolls instead (§8). */
  .sim { min-height: 0; }
  .plans { display: flex; flex-direction: column; }
  .plan--featured { order: -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Comparison table becomes paired cards, Meriix always second (§6.7). */
  .scroller--compare { overflow-x: visible; padding: 0; }
  .compare { min-width: 0; display: block; }
  .compare__head--generic, .compare__head--meriix { display: none; }
  .compare__pair {
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; margin-bottom: 16px;
  }
  .compare__pair .compare__cell { border-top: none; }
  .compare__pair .compare__rowlabel { background: var(--surface); padding-bottom: 4px; }
  .compare__pair .compare__generic::before,
  .compare__pair .compare__meriix::before {
    content: attr(data-col);
    display: block; width: 100%;
    font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 6px;
  }
  .compare__pair .compare__meriix {
    display: block; border: none; border-top: 1px solid var(--indigo-200);
  }
  .compare__pair .compare__meriix::before { color: var(--indigo-primary); }
  .compare__badge-mobile { display: flex; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
