/* ==========================================================================
   Axontrix / BuildCore — Design System
   Single shared stylesheet. CSS variables drive the whole system.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #081428;
  --navy-800: #0d1e3a;   /* primary */
  --navy-700: #14294d;
  --navy-600: #1d3763;
  --navy-500: #2b4a7e;
  /* --gold-600 is the "gold on a light surface" text token: eyebrows, card tags,
     active nav, link hover, mega-menu headings, required-field markers.
     It MUST clear WCAG AA (4.5:1) against white, --paper and --gold-100.
     Measured: 5.47:1 on #fff · 5.19:1 on --paper · 4.86:1 on --gold-100.
     (The previous #d98a10 measured 2.77:1 on white and failed AA everywhere.)
     Dark theme overrides this token — see :root[data-theme="dark"]. */
  --gold-600: #9A5A00;
  --gold-500: #F5A623;   /* accent — used on navy, where it already passes */
  --gold-400: #f8bb52;
  --gold-100: #fdf0d9;

  /* Neutrals */
  --white: #ffffff;
  --paper: #f7f9fc;
  --mist: #eef2f8;
  --line: #dde4ee;
  --slate-600: #52607a;
  --slate-700: #3a4763;
  --ink-900: #0f1728;
  --ink-700: #263049;

  /* Semantic */
  /* Measured on white: previous #1f9d6b = 3.45:1 and #d84c3e = 4.18:1, both below AA.
     These clear it (5.33:1 and 5.44:1). Dark theme overrides them below. */
  --success: #147A52;
  --danger: #C0392B;

  /* Typography */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --fs-hero: clamp(2.4rem, 5.2vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 30, 58, 0.06), 0 2px 8px rgba(13, 30, 58, 0.05);
  --shadow-md: 0 6px 20px rgba(13, 30, 58, 0.09), 0 2px 6px rgba(13, 30, 58, 0.05);
  --shadow-lg: 0 24px 60px rgba(8, 20, 40, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
/* `hidden` must win over component display rules (.tour-panel is display:grid, .tour-tabs flex). */
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
  font-weight: 700;
}
p { margin: 0 0 var(--sp-4); }
a { color: var(--navy-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-600); }
ul { margin: 0; padding: 0; }
li { list-style: none; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  color: var(--navy-900) !important;  /* sits on gold; the theme's generic link colour made it gold-on-gold */
  background: var(--gold-500);
  color: var(--navy-900);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--navy { background: var(--navy-800); color: #d8e0ef; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }
.grid { display: grid; gap: var(--sp-5); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}
.section--navy .eyebrow { color: var(--gold-400); }
.lead { font-size: var(--fs-lead); color: var(--slate-600); }
.section--navy .lead { color: #b9c5db; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px rgba(245,166,35,0.32); }
.btn-primary:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-secondary { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy-600); color: var(--navy-800); }
/* Secondary buttons default to navy text, which disappears on any dark surface.
   .section--navy was already covered; .hero, .cta-band and .roi-out were not —
   "Explore modules" (CTA band) and "Discuss your numbers" (ROI panel) both
   rendered navy-on-navy and were invisible. All dark surfaces are listed here.
   .page-hero added 2026-09-12: the first page to put a secondary button in the
   dark page header (/fidic-contract-administration) showed an empty outline. */
.section--navy .btn-secondary,
.hero .btn-secondary,
.page-hero .btn-secondary,
.cta-band .btn-secondary,
.roi-out .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.35); }
.section--navy .btn-secondary:hover,
.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.cta-band .btn-secondary:hover,
.roi-out .btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--gold-600); padding-inline: 0; }
.btn-lg { padding: 1rem 1.8rem; font-size: var(--fs-body); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-800); }
.brand:hover { color: var(--navy-800); }
.brand .mark { width: 34px; height: 34px; }
.brand .tm { color: var(--gold-600); }
.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; }
/* Colour is scoped away from .btn: ".nav-links a" (0,1,1) outranks ".btn-primary" (0,1,0),
   so the gold "Book a demo" button was inheriting nav text colour in BOTH themes
   (measured 1.41:1 in dark). Typography above still applies to every nav item. */
.nav-links a:not(.btn) { color: var(--ink-700); }
.nav-links a.active:not(.btn) { color: var(--gold-600); }  /* :not(.btn) — otherwise the gold "Book a demo" button gets gold text on gold */
.nav-links a:not(.btn):hover { color: var(--gold-600); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--navy-800);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245,166,35,0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #dce4f1;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; padding-block: var(--sp-9); }
.hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: var(--sp-5); }
.hero h1 .accent { color: var(--gold-500); }
.hero-sub { font-size: var(--fs-lead); color: #b9c5db; max-width: 34ch; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-sm); color: #9fb0cc; }
.hero-tags span { display: inline-flex; align-items: center; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.3);
  color: var(--gold-400); font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: 0.06em; padding: 6px 14px; border-radius: 100px;
  margin-bottom: var(--sp-5); text-transform: uppercase;
}

/* Hero visual card */
.hero-visual { position: relative; }
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.mini-dash { display: grid; gap: var(--sp-4); }
.mini-dash-row { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); }
.stat-tile {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: var(--sp-4);
}
.stat-tile .k { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.stat-tile .l { font-size: var(--fs-xs); color: #93a4c2; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-tile .k.gold { color: var(--gold-500); }

/* ---------- Cards & grids ---------- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c5d0e2; }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.card p { color: var(--slate-600); margin-bottom: 0; }
.card .card-tag { font-size: var(--fs-xs); color: var(--gold-600); font-weight: 700; font-family: var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }

/* Icon chip */
.icon-chip {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  color: var(--gold-500);
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.2);
}
.icon-chip svg { width: 26px; height: 26px; }
.card--navy { background: var(--navy-800); border-color: var(--navy-600); color: #cdd8ea; }
.card--navy h3 { color: #fff; }
.card--navy p { color: #adbbd4; }

/* Feature list with checks */
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: var(--sp-3); color: var(--slate-600);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98a10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.section--navy .check-list li { color: #c1cde1; }
.section--navy .check-list li::before { background-color: rgba(245,166,35,0.18); }

/* ---------- Section heading block ---------- */
.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: var(--fs-h2); }

/* ---------- Pillars strip ---------- */
.pillars { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.pillar { text-align: left; }
.pillar .icon-chip { width: 44px; height: 44px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.pillar p { font-size: var(--fs-sm); color: var(--slate-600); margin: 0; }

/* ---------- Module detail rows ---------- */
.module-block { padding-block: var(--sp-8); border-top: 1px solid var(--line); }
.module-block:first-of-type { border-top: 0; }
.module-block .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
/* Standalone .split (about / security / why) — these three pages previously carried
   display+grid-template-columns as INLINE styles, which no media query can override,
   so they stayed two-up at 375px and pushed the page 34px wide. Declaring the columns
   here lets the 960px rule below collapse them. .module-block .split is more specific
   and keeps product.html unchanged. */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-wide { display: grid; grid-template-columns: 1.2fr 0.8fr; }
.module-block .split.reverse .split-visual { order: -1; }
.module-num { font-family: var(--font-head); font-weight: 700; color: var(--gold-600); font-size: var(--fs-sm); letter-spacing: 0.1em; }
.feature-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-6);
}
.feature-panel h4 { font-size: 0.95rem; color: var(--navy-700); margin-bottom: var(--sp-3); font-family: var(--font-head); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  border-radius: 100px; padding: 5px 12px; font-size: var(--fs-sm); color: var(--slate-700);
}
.pill.accent { background: var(--gold-100); border-color: #f2d59a; color: var(--gold-600); font-weight: 600; }

/* ---------- Lifecycle diagram ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); }
.life-step {
  position: relative; text-align: center; padding: var(--sp-4) var(--sp-3);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
}
.life-step .n { display:grid; place-items:center; width: 38px; height: 38px; margin: 0 auto var(--sp-3);
  border-radius: 50%; background: var(--gold-500); color: var(--navy-900); font-family: var(--font-head); font-weight: 700; }
.life-step h3, .life-step h4 { color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.life-step p { font-size: var(--fs-xs); color: #9fb0cc; margin: 0; }

/* ---------- Split feature (why) ---------- */
.why-row { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 80% 120%, rgba(245,166,35,0.22), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #c3cfe4; position: relative; max-width: 560px; margin-inline: auto; }
.cta-band .hero-actions { position: relative; justify-content: center; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.price-grid { grid-template-columns: repeat(3,1fr); gap: var(--sp-5); align-items: stretch; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-6); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-900); font-family: var(--font-head);
  font-weight: 700; font-size: var(--fs-xs); padding: 4px 14px; border-radius: 100px; letter-spacing: 0.05em;
}
.price-card h3 { margin-bottom: var(--sp-2); }
.price-amt { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy-800); margin-bottom: 2px; }
.price-amt small { font-size: 0.9rem; color: var(--slate-600); font-weight: 400; }
.price-card .desc { color: var(--slate-600); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.indicative-note {
  background: var(--gold-100); border: 1px solid #f2d59a; border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--gold-600); display: inline-flex; gap: 8px; align-items: center;
}

/* Module license table */
.mod-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.mod-table th, .mod-table td { text-align: left; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); vertical-align: top; }
.mod-table th { background: var(--navy-800); color: #fff; font-family: var(--font-head); font-size: var(--fs-sm); }
.mod-table tr:last-child td { border-bottom: 0; }
.mod-table td strong { color: var(--navy-800); font-family: var(--font-head); }
.mod-table .mod-scope { color: var(--slate-600); font-size: var(--fs-sm); }

/* ---------- Solutions ---------- */
.solution-block { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); padding-block: var(--sp-7); border-top: 1px solid var(--line); }
.solution-block:first-of-type { border-top: 0; }
.solution-aside .icon-chip { margin-bottom: var(--sp-4); }
.solution-aside h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.solution-aside p { font-size: var(--fs-sm); color: var(--slate-600); }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-7); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--navy-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink-700); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: var(--fs-xs); color: var(--slate-600); }
.contact-list li { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.contact-list .icon-chip { flex: none; width: 44px; height: 44px; margin: 0; }
.contact-list .c-label { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); }  /* theme-aware; was hard-coded navy and invisible in dark */
.contact-list .c-val { color: var(--slate-600); font-size: var(--fs-sm); }
.todo { color: var(--danger); font-weight: 600; }

/* ---------- Callout / note ---------- */
.note {
  border-left: 3px solid var(--gold-500); background: var(--paper);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate-700); font-size: var(--fs-sm);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0cc; padding-block: var(--sp-8) var(--sp-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-7); }
.footer-brand .brand { color: #fff; margin-bottom: var(--sp-3); }
.footer-brand p { color: #8496b4; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-4); }
.footer-col a { display: block; color: #9fb0cc; margin-bottom: var(--sp-2); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); color: #7488a8; }
.footer-bottom .tm { color: var(--gold-400); }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero {
  background:
    radial-gradient(800px 320px at 90% -30%, rgba(245,166,35,0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #dce4f1; padding-block: var(--sp-8);
}
.page-hero h1 { color: #fff; font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.page-hero p { color: #b9c5db; font-size: var(--fs-lead); max-width: 60ch; margin: 0; }
.page-hero .badge { margin-bottom: var(--sp-4); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { max-width: 520px; }
  .cards-4, .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .module-block .split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split, .split-wide { grid-template-columns: 1fr; gap: var(--sp-5); }
  .module-block .split.reverse .split-visual { order: 0; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    box-shadow: var(--shadow-md);
    /* visibility:hidden takes the closed panel out of the tab order and the a11y
       tree. Without it the panel is merely translated off-screen, so all 31 nav
       and mega-menu links stayed keyboard-focusable while invisible (WCAG 2.4.3).
       Transitioning visibility keeps the slide animation intact: it flips to
       visible immediately on open, and back to hidden only after the slide out. */
    transform: translateY(-140%); visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: var(--sp-3) 0; border-bottom: 1px solid var(--mist); }
  .nav-links .btn { margin-top: var(--sp-3); justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .cards-3, .cards-2, .cards-4, .pillars, .why-row, .price-grid { grid-template-columns: 1fr; }
  .solution-block { grid-template-columns: 1fr; gap: var(--sp-4); }
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--sp-6); }
  .mini-dash-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .lifecycle { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ENRICHMENT LAYER  — added features, kept token-driven & theme-aware
   ========================================================================== */

:root {
  --mk-line: #c9d4e6;                 /* mockup dashed baseline */
  --header-bg: rgba(255,255,255,0.9);
  --header-bg-solid: rgba(255,255,255,0.97);
  --dropdown-bg: #ffffff;
  --elev: var(--white);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --white: #0f1c33;        /* page + card surface */
  --paper: #13223d;
  --mist: #182a49;
  --line: #27385480;
  --ink-900: #f2f6fd;
  --ink-700: #cdd8ec;
  --slate-700: #b4c2db;
  --slate-600: #94a6c4;
  --gold-100: #2b2412;     /* soft gold wash -> dark */
  /* On dark surfaces the light-theme --gold-600 (#9A5A00) would measure only
     3.1:1. Lift it to the light gold, which measures 8.9:1 on the dark card
     surface and 9.9:1 on the page ground. */
  --gold-600: #f8bb52;
  /* Same reason: the AA-on-white success/danger values are too dark on a dark
     ground (3.2:1). These measure 8.5:1 and 6.7:1 on the dark card surface. */
  --success: #3FCE96;
  --danger: #FF7A6B;
  --mk-line: #34486a;
  --header-bg: rgba(9,18,36,0.82);
  --header-bg-solid: rgba(9,18,36,0.96);
  --dropdown-bg: #101f39;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 2px 10px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 26px rgba(0,0,0,0.45);
  --shadow-lg: 0 26px 64px rgba(0,0,0,0.55);
}
:root[data-theme="dark"] body { background: var(--white); color: var(--ink-700); }
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: var(--ink-900); }
:root[data-theme="dark"] .brand { color: var(--ink-900); }
:root[data-theme="dark"] a:not(.btn) { color: var(--gold-400); }  /* :not(.btn) — this rule outranks .btn-primary and was repainting the gold CTA gold-on-gold */
:root[data-theme="dark"] a:hover { color: var(--gold-500); }
:root[data-theme="dark"] .nav-links a:not(.btn) { color: var(--ink-700); }  /* :not(.btn) keeps the gold CTA readable */
:root[data-theme="dark"] .btn-secondary { color: var(--ink-900); border-color: var(--line); }
:root[data-theme="dark"] .btn-secondary:hover { border-color: var(--gold-500); color: var(--ink-900); }
:root[data-theme="dark"] .price-amt { color: var(--ink-900); }
:root[data-theme="dark"] .price-amt small { color: var(--slate-600); }
:root[data-theme="dark"] .indicative-note { color: var(--gold-400); border-color: #5a4a1e; }
:root[data-theme="dark"] .pill { background: var(--mist); color: var(--slate-700); border-color: var(--line); }
:root[data-theme="dark"] .pill.accent { background: rgba(245,166,35,0.14); border-color: rgba(245,166,35,0.4); color: var(--gold-400); }
:root[data-theme="dark"] .card { background: #12213c; }
:root[data-theme="dark"] .card:hover { border-color: var(--navy-500); }
:root[data-theme="dark"] .mod-table td strong { color: var(--ink-900); }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea { background: #0c1830; color: var(--ink-700); }
:root[data-theme="dark"] .field label { color: var(--slate-700); }
:root[data-theme="dark"] .note { background: var(--paper); color: var(--slate-700); }
/* navy blocks already dark — keep them as-is in both themes */

/* Smooth theme transition (respects reduced motion below) */
@media (prefers-reduced-motion: no-preference) {
  body, .card, .site-header, .dropdown, .price-card, .feature-panel, .mk-window { transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
}

/* Anchor offset under sticky header */
[id] { scroll-margin-top: 84px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width 0.1s linear; }

/* ---------- Header states + theme toggle ---------- */
.site-header { background: var(--header-bg); }
.site-header.scrolled { background: var(--header-bg-solid); box-shadow: 0 4px 20px rgba(8,20,40,0.10); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--line); color: var(--ink-700); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold-500); color: var(--gold-600); transform: translateY(-2px); }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle { color: var(--ink-700); }

/* ---------- Dropdowns + mega-menu ---------- */
.nav-item { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--ink-700);
  background: none; border: 0; cursor: pointer;
  padding: 4px 0; min-height: 24px;  /* WCAG 2.2 AA SC 2.5.8 — was 19px tall */
}
.nav-drop-btn .chev { transition: transform 0.2s var(--ease); }
.nav-item.open .nav-drop-btn .chev { transform: rotate(180deg); }
.nav-drop-btn:hover, .nav-drop-btn.active { color: var(--gold-600); }
:root[data-theme="dark"] .nav-drop-btn { color: var(--ink-700); }
:root[data-theme="dark"] .nav-drop-btn:hover, :root[data-theme="dark"] .nav-drop-btn.active { color: var(--gold-400); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 120;
  background: var(--dropdown-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--sp-3); min-width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-700); font-family: var(--font-head); font-size: 0.9rem; font-weight: 500; }
.dropdown a:hover { background: var(--paper); color: var(--gold-600); }
.dropdown.mega { width: max-content; max-width: min(760px, 92vw); right: auto; left: 50%; transform: translate(-50%, 8px); padding: var(--sp-5); }
.nav-item.open .dropdown.mega { transform: translate(-50%, 0); }
/* Balanced columns: groups are bin-packed into 3 stacks (js) so none is half-empty. */
.mega-grid { display: flex; gap: var(--sp-5); align-items: flex-start; }
.mega-colwrap { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--sp-4); min-width: 190px; }
.mega-col { margin: 0; }
.mega-col-h { font-family: var(--font-head); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-600); margin: 0 0 var(--sp-2); padding: 0 8px; }
.mega-col ul { display: grid; gap: 2px; }
/* min-height meets WCAG 2.2 AA SC 2.5.8 (Target Size Minimum, 24x24 CSS px). */
.mega-col a { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 8px; border-radius: var(--radius-sm, 8px); min-width: 190px; min-height: 24px; }
.mega-col a span { font-weight: 600; }
.mega-col a small { color: var(--slate-600); font-size: 0.72rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.mega-foot { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.mega-foot a { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--gold-600); display: inline-flex; align-items: center; padding: 4px 0; min-height: 24px; }
.mega-foot a:hover { background: none; text-decoration: underline; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800); color: var(--gold-500);
  border: 1px solid rgba(245,166,35,0.35); box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-700); transform: translateY(-3px); }

/* ---------- Capability counters ---------- */
.counter-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.counter { text-align: center; padding: var(--sp-5) var(--sp-3); }
.counter .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--gold-600); line-height: 1; letter-spacing: -0.02em; }
.section--navy .counter .num { color: var(--gold-500); }  /* bright gold is legible on navy, and passes there */
.counter .lbl { display: block; margin-top: var(--sp-2); color: var(--slate-600); font-size: var(--fs-sm); }
.section--navy .counter .lbl { color: #a9b8d4; }

/* ---------- Module Explorer ---------- */
#module-explorer { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-6); align-items: start; }
.me-tabs { display: grid; gap: var(--sp-4); max-height: 560px; overflow-y: auto; padding-right: 4px; }
.me-group-h { font-family: var(--font-head); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-600); margin: 0 0 var(--sp-2); }
.me-tab {
  display: block; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; margin-bottom: 6px; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--ink-700);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.me-tab:hover { border-color: #c5d0e2; }
.me-tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .me-tab[aria-selected="true"] { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.me-panel-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--sp-6); align-items: center; }
.me-info .card-tag { font-size: var(--fs-xs); color: var(--gold-600); font-weight: 700; font-family: var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.me-info h3 { font-size: var(--fs-h3); margin: var(--sp-2) 0 var(--sp-3); }
.me-info .tag-row { margin-bottom: var(--sp-4); }
.me-panel:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 6px; border-radius: var(--radius); }

/* ---------- Illustrative mockup window ---------- */
.mk-window { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mk-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mk-bar span:nth-child(1) { background: #ff6b5e; } .mk-bar span:nth-child(2) { background: var(--gold-500); } .mk-bar span:nth-child(3) { background: #35c07f; }
.mk-bar em { margin-left: auto; font-style: normal; font-size: 0.7rem; color: #9fb0cc; font-family: var(--font-head); letter-spacing: 0.04em; }
.mk-body { padding: var(--sp-5); display: grid; gap: var(--sp-4); min-height: 230px; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.mk-kpi { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 12px; }
.mk-kpi b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.mk-kpi i { font-style: normal; font-size: 0.68rem; color: #93a4c2; text-transform: uppercase; letter-spacing: 0.06em; }
.mk-kpi.gold b { color: var(--gold-500); }
.mk-chart { width: 100%; height: 96px; }
.mk-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.mk-bars span { flex: 1; background: rgba(255,255,255,0.28); border-radius: 4px 4px 0 0; }
.mk-bars span.gold { background: var(--gold-500); }
.mk-table { display: grid; gap: 6px; }
.mk-tr { display: grid; grid-template-columns: 48px 1fr 76px; gap: 10px; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.05); border-radius: 6px; font-size: 0.75rem; color: #c3cfe4; }
.mk-tr.mk-th { background: transparent; color: #93a4c2; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; padding-bottom: 2px; }
.mk-tr span:nth-child(2) { height: 8px; background: rgba(255,255,255,0.16); border-radius: 4px; }
.mk-tr.mk-th span:nth-child(2) { height: auto; background: none; }
.mk-pill { justify-self: start; padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,0.14); color: #dbe4f2; font-size: 0.66rem; }
.mk-pill.gold { background: rgba(245,166,35,0.24); color: var(--gold-400); }
.mk-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-lane { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 10px; display: grid; gap: 7px; align-content: start; }
.mk-lane b { font-size: 0.66rem; color: #93a4c2; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head); }
.mk-lane span { height: 26px; background: rgba(255,255,255,0.12); border-radius: 5px; }
.mk-lane span.gold { background: rgba(245,166,35,0.35); }
.mk-form { display: grid; gap: 12px; }
.mk-field { display: grid; gap: 5px; }
.mk-field b { height: 7px; width: 40%; background: rgba(255,255,255,0.2); border-radius: 4px; }
.mk-field i { height: 30px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; }
.mk-check { display: flex; align-items: center; gap: 9px; color: #c3cfe4; font-size: 0.78rem; }
.mk-check span { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.3); }
.mk-check span.on { background: var(--gold-500); border-color: var(--gold-500); }
.mk-btn { justify-self: start; background: var(--gold-500); color: var(--navy-900); font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; padding: 8px 18px; border-radius: var(--radius-sm); }

/* ---------- Build-your-plan configurator ---------- */
.pb-grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: var(--sp-6); align-items: start; }
.pb-actions { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: var(--fs-sm); }
.pb-group { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5) var(--sp-5); margin: 0 0 var(--sp-4); }
.pb-group legend { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--gold-600); padding: 0 8px; }
.pb-items { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); }
.pb-item { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; font-size: 0.92rem; color: var(--ink-700); }
.pb-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.pb-check { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.pb-check::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--navy-900); border-bottom: 2px solid var(--navy-900); transform: rotate(-45deg) scale(0); transition: transform 0.15s var(--ease); margin-top: -2px; }
.pb-item input:checked + .pb-check { background: var(--gold-500); border-color: var(--gold-500); }
.pb-item input:checked + .pb-check::after { transform: rotate(-45deg) scale(1); }
.pb-item input:focus-visible + .pb-check { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.pb-summary { position: sticky; top: 88px; }
.pb-summary-inner { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-6); }
.pb-count { display: flex; align-items: baseline; gap: 8px; margin: var(--sp-2) 0 var(--sp-4); }
.pb-count span { font-family: var(--font-head); font-weight: 700; font-size: 3rem; color: var(--gold-600); line-height: 1; }
.pb-count small { color: var(--slate-600); font-size: var(--fs-sm); }
.pb-base { font-size: var(--fs-sm); color: var(--slate-600); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); }
.pb-list { display: grid; gap: 4px; margin: var(--sp-4) 0; }
.pb-list li { position: relative; padding-left: 20px; font-size: var(--fs-sm); color: var(--ink-700); }
.pb-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-600); font-weight: 700; }
.pb-list li.pb-empty { color: var(--slate-600); padding-left: 0; }
.pb-list li.pb-empty::before { content: ""; }

/* ---------- ROI estimator ---------- */
.roi-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-6); align-items: start; }
.roi-form { display: grid; gap: var(--sp-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-6); }
.roi-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px var(--sp-4); }
.roi-field label { grid-column: 1 / -1; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--navy-700); }
:root[data-theme="dark"] .roi-field label { color: var(--slate-700); }
.roi-field input[type="range"] { width: 100%; accent-color: var(--gold-500); }
.roi-field output { font-family: var(--font-head); font-weight: 700; color: var(--gold-600); min-width: 42px; text-align: right; }
.roi-out { background: var(--navy-800); border-radius: var(--radius); padding: var(--sp-6); color: #cdd8ea; }
.roi-out .eyebrow { color: var(--gold-400); }
.roi-stat { padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.roi-stat span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #fff; line-height: 1.1; }
.roi-stat.gold span { color: var(--gold-500); }
.roi-stat small { color: #9fb0cc; font-size: var(--fs-sm); }
.roi-out .indicative-note { background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.3); color: var(--gold-400); margin: var(--sp-4) 0; }

/* ---------- Interactive lifecycle ---------- */
.lifecycle.interactive .life-step { cursor: pointer; transition: transform 0.15s var(--ease), border-color 0.15s, background 0.15s; }
.lifecycle.interactive .life-step:hover { transform: translateY(-3px); border-color: rgba(245,166,35,0.5); }
.lifecycle.interactive .life-step.active { background: rgba(245,166,35,0.12); border-color: var(--gold-500); }
.life-detail { margin-top: var(--sp-6); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: var(--sp-6); }
.life-detail h3 { color: #fff; }
.life-detail p { color: #b9c5db; }
.life-detail .tag-row { margin-top: var(--sp-4); }
.life-detail .pill.accent { background: rgba(245,166,35,0.16); border-color: rgba(245,166,35,0.4); color: var(--gold-400); }
.life-detail .pill.accent:hover { background: rgba(245,166,35,0.28); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); background: none; border: 0; cursor: pointer; padding: var(--sp-5); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy-800); }
:root[data-theme="dark"] .faq-q { color: var(--ink-900); }
.faq-q .faq-ic { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .faq-ic::before, .faq-q .faq-ic::after { content: ""; position: absolute; background: var(--gold-500); border-radius: 2px; }
.faq-q .faq-ic::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-q .faq-ic::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform 0.2s var(--ease); }
.faq-item.open .faq-q .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 var(--sp-5) var(--sp-5); color: var(--slate-600); margin: 0; }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: var(--sp-4) var(--sp-5); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-family: var(--font-head); font-size: var(--fs-sm); }
.compare-table thead th:nth-child(2) { background: var(--navy-800); color: #fff; }
.compare-table thead th:nth-child(3) { color: var(--slate-600); }
.compare-table td:first-child { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); }
:root[data-theme="dark"] .compare-table td:first-child { color: var(--ink-900); }
.compare-table td.yes, .compare-table td.no { text-align: left; }
.compare-table .ic-yes { color: var(--success); font-weight: 700; }
.compare-table .ic-no { color: var(--danger); font-weight: 700; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .col-bc { background: rgba(245,166,35,0.06); }

/* ---------- Testimonials (marked placeholders) ---------- */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.testi-card { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--sp-6); position: relative; }
.testi-card .ph-badge { display: inline-block; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); border-radius: 100px; padding: 3px 10px; margin-bottom: var(--sp-4); }
.testi-card blockquote { margin: 0 0 var(--sp-5); color: var(--slate-600); font-style: italic; }
.testi-card .testi-who { display: flex; align-items: center; gap: var(--sp-3); }
.testi-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mist); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--slate-600); font-size: var(--fs-xs); }
.testi-card .testi-name { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: var(--fs-sm); }
:root[data-theme="dark"] .testi-card .testi-name { color: var(--ink-900); }
.testi-card .testi-role { color: var(--slate-600); font-size: var(--fs-xs); }

/* ---------- Roadmap (integrations) ---------- */
.roadmap { display: grid; gap: var(--sp-4); }
.roadmap-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-4); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.roadmap-item .rm-ic { width: 44px; height: 44px; }
.status-tag { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 100px; white-space: nowrap; }
.status-tag.live { background: rgba(31,157,107,0.14); color: var(--success); }
.status-tag.planned { background: var(--mist); color: var(--slate-600); border: 1px dashed var(--line); }

/* ---------- Security page bits ---------- */
.sec-grid { grid-template-columns: repeat(3, 1fr); }
.sec-card .icon-chip { margin-bottom: var(--sp-4); }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--sp-7); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--slate-700); }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: var(--sp-2); }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.legal .template-flag { border-left: 3px solid var(--gold-500); background: var(--gold-100); color: var(--gold-600); padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm); margin-bottom: var(--sp-6); }

/* ---------- Richer footer ---------- */
.footer-top { display: grid; grid-template-columns: 1.4fr 3fr; gap: var(--sp-7); margin-bottom: var(--sp-7); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
.footer-brand .newsletter { margin: var(--sp-5) 0; }
.newsletter label { display: block; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: #fff; margin-bottom: var(--sp-2); }
.newsletter-row { display: flex; gap: var(--sp-2); }
.newsletter-row input { flex: 1; width: 0; min-width: 0; /* width:0 keeps the input from setting the column's minimum width on phones */ padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; font-family: var(--font-body); font-size: var(--fs-sm); }
.newsletter-row input::placeholder { color: #7488a8; }
.newsletter-row .btn { padding: 0.6rem 1rem; }
.newsletter .form-note { color: #7488a8; margin: var(--sp-2) 0 0; }
.social { display: flex; gap: var(--sp-3); }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: #9fb0cc; border: 1px solid rgba(255,255,255,0.1); }
.social a:hover { color: var(--gold-400); border-color: rgba(245,166,35,0.4); }
.footer-cols .footer-col h4 { font-size: 0.78rem; }
.footer-cols .footer-col a { font-size: 0.82rem; }
.site-footer .c-val.muted { display: block; color: #7488a8; margin-bottom: 4px; }

/* ---------- Section spy active ---------- */
[data-spy-nav] a.spy-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
:root[data-theme="dark"] [data-spy-nav] a.spy-active { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

/* ==========================================================================
   Responsive — enrichment
   ========================================================================== */
@media (max-width: 960px) {
  #module-explorer { grid-template-columns: 1fr; }
  .me-tabs { grid-auto-flow: row; max-height: none; overflow: visible; }
  .me-panel-grid { grid-template-columns: 1fr; }
  .pb-grid, .roi-grid { grid-template-columns: 1fr; }
  .pb-summary { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .counter-strip { grid-template-columns: 1fr 1fr; }
  .compare-table { font-size: var(--fs-sm); }
  .mega-grid { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  /* Nav becomes a stacked panel; dropdowns become inline accordions */
  .nav-links { align-items: stretch; }
  .theme-toggle { align-self: flex-start; margin-top: var(--sp-3); }
  .nav-item.has-dropdown { display: block; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: var(--sp-3) 0; border-bottom: 1px solid var(--mist); }
  .dropdown, .dropdown.mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 var(--sp-3) var(--sp-4); min-width: 0; max-height: 0; overflow: hidden; }
  .nav-item.open .dropdown, .nav-item.open .dropdown.mega { max-height: 1400px; transform: none; }
  .dropdown.mega { left: auto; transform: none; }
  .nav-item.open .dropdown.mega { transform: none; }
  .mega-grid { flex-direction: column; gap: var(--sp-3); }
  .mega-colwrap { min-width: 0; gap: var(--sp-3); }
  .pb-items { grid-template-columns: 1fr; }
  .testi-grid, .sec-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .counter-strip { grid-template-columns: 1fr 1fr; }
  .roadmap-item { grid-template-columns: auto 1fr; }
  .roadmap-item .status-tag { grid-column: 2; justify-self: start; }
}
@media (max-width: 460px) {
  .counter-strip { grid-template-columns: 1fr; }
}

/* ---------- Animated hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .glass-card { animation: floatCard 7s var(--ease) infinite; }
  @keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .hero-bar { transform-origin: bottom; animation: growBar 0.9s var(--ease) both; }
  .hero-bar:nth-child(1) { animation-delay: 0.05s; } .hero-bar:nth-child(2) { animation-delay: 0.12s; }
  .hero-bar:nth-child(3) { animation-delay: 0.19s; } .hero-bar:nth-child(4) { animation-delay: 0.26s; }
  .hero-bar:nth-child(5) { animation-delay: 0.33s; } .hero-bar:nth-child(6) { animation-delay: 0.40s; }
  .hero-bar:nth-child(7) { animation-delay: 0.47s; }
  @keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress span, .faq-a, .dropdown, .back-to-top { transition: none; }
  .hero-visual .glass-card, .hero-bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   AXONTRIX brand lockup (company logo) — header + footer
   ========================================================================== */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo .mark { width: 34px; height: 34px; }
.brand-img { display: none; height: 34px; width: auto; }
/* .brand-img-on is applied by js/main.js only when BRAND_LOGO_SRC is configured.
   The old .loaded class was set by an inline onload handler on an image that 404d;
   it never fired, and the handler is one of the things forcing script-src unsafe-inline. */
.brand-img-on { display: inline-block; }
.brand-img-on + .brand-svg { display: none; }
.brand-word { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1; letter-spacing: 0.06em; }
.brand-desc { font-family: var(--font-head); font-weight: 600; font-size: 0.5rem; letter-spacing: 0.16em; color: var(--gold-600); margin-top: 4px; text-transform: uppercase; white-space: nowrap; }
.footer-brand .brand-desc { color: var(--gold-400); }
:root[data-theme="dark"] .brand-desc { color: var(--gold-400); }
@media (max-width: 900px) { .brand-desc { display: none; } }

/* Hero brand tagline — "Engineering Power. Delivered with Precision." */
.brand-tagline { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.45rem); color: var(--navy-700); margin: 0.35rem 0 1rem; letter-spacing: 0.01em; }
.brand-tagline .gold { color: var(--gold-600); }
/* The hero is navy in both themes, so the light-surface gold (--gold-600) is too
   dark there: 2.64:1. Regression from the Pass 1 token change, caught when the
   contrast sweep started checking text on gradients. --gold-400 = 6.9:1 on the
   hero's lightest stop. */
.hero .brand-tagline .gold { color: var(--gold-400); }
/* The words between the gold ones were --navy-700 on the navy hero: invisible in light theme.
   The sweep missed it because it only checked leaf elements; it now checks any element with its own text. */
.hero .brand-tagline { color: #eaf0fb; }
:root[data-theme="dark"] .brand-tagline { color: #eaf0fb; }
:root[data-theme="dark"] .brand-tagline .gold { color: var(--gold-400); }

/* ==========================================================================
   Lead-capture form — layout, validation, status
   ========================================================================== */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field .req { color: var(--gold-600); }
.field-error { color: #c0392b; font-size: var(--fs-xs); font-weight: 500; margin: 5px 0 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-status { margin-top: 1rem; }
.form-status.ok { color: #12794a; font-weight: 500; border-left: 3px solid #12794a; padding-left: 0.75rem; }
.form-status.err { color: #c0392b; font-weight: 500; border-left: 3px solid #c0392b; padding-left: 0.75rem; }
:root[data-theme="dark"] .field-error, :root[data-theme="dark"] .form-status.err { color: #ff8a7a; }
:root[data-theme="dark"] .form-status.err { border-left-color: #ff8a7a; }
:root[data-theme="dark"] .form-status.ok { color: #5ad495; border-left-color: #5ad495; }

/* ==========================================================================
   CONSENT BANNER + PASS-2 COMPONENTS
   Injected by js/analytics.js. Colours come from existing tokens, so it
   follows the theme and inherits the AA-compliant palette from Pass 1.
   ========================================================================== */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(8, 20, 40, 0.14);
  padding: var(--sp-4) var(--sp-5);
}
.consent-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
}
.consent-text { margin: 0; flex: 1 1 320px; font-size: var(--fs-sm); color: var(--ink-700); }
.consent-actions { display: flex; gap: var(--sp-3); flex-shrink: 0; }
/* Buttons here are smaller than the page default but stay above the 24px
   target minimum from Pass 1. */
.consent-actions .btn { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); min-height: 40px; }
@media (max-width: 520px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* Ordered "what happens next" list — thank-you page. */
.numbered-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.numbered-list li {
  counter-increment: step; position: relative; padding-left: 3rem;
  color: var(--ink-700); line-height: 1.7;
}
.numbered-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm);
}
.numbered-list li strong { color: var(--ink-900); }

/* Links inside the dark page header. .page-hero never set a link colour, so
   links there inherited the default navy — 1.41:1 on the navy gradient, i.e.
   invisible. Affected: "Learning & Assessment" and "Retail & Commerce" on
   product.html (pre-existing) and the phone number on thank-you.html.
   --gold-400 measures 9.7:1 on --navy-800. Found by testing the live draft. */
.page-hero a:not(.btn) { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.page-hero a:not(.btn):hover { color: #fff; }

/* Footer office address — same NAP (name, address, phone) on every page. */
.footer-address { font-style: normal; color: #9fb0cc; font-size: var(--fs-sm); line-height: 1.6; margin-top: var(--sp-2); }

/* ==========================================================================
   PRODUCT SCREENSHOTS — real BuildCore screens rendered with sample data
   (build/screens/). Every figure carries a visible "sample data" caption.
   ========================================================================== */
.screen {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: var(--shadow-lg);
}
.screen-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  background: var(--mist); border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--slate-600); font-family: var(--font-head);
}
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.screen-bar span { margin-left: 8px; }
.screen img { display: block; width: 100%; height: auto; background: #eef2f8; }
.screen figcaption {
  padding: 0.65rem 1rem; font-size: var(--fs-sm); color: var(--slate-600);
  border-top: 1px solid var(--line); background: var(--white);
}
.screen figcaption .sample { font-weight: 600; color: var(--ink-700); }
.screens-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 900px) { .screens-2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   HOMEPAGE (A3) — hero with a real screenshot, audience bar, product tour
   ========================================================================== */
.hero--shot .container { padding-block: var(--sp-8); }
.hero-copy { max-width: 820px; margin-bottom: var(--sp-7); }
.hero-copy .hero-sub { max-width: 60ch; }
.hero-copy .hero-actions { margin-bottom: var(--sp-5); }
.hero-screen { border-color: rgba(255,255,255,0.14); }
.hero-screen figcaption { font-size: var(--fs-xs); }

.audience-bar { padding-block: var(--sp-6); }
.audience-label { text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--slate-700); margin-bottom: var(--sp-4); }
.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-3); padding: 0; margin: 0; list-style: none; }
.audience li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); font-size: var(--fs-sm); color: var(--ink-700); }

.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.tour-tab {
  min-height: 44px; padding: 0.55rem 1.15rem; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-700);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
}
.tour-tab:hover { border-color: var(--navy-500); }
.tour-tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
:root[data-theme="dark"] .tour-tab[aria-selected="true"] { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.tour-panel { display: grid; grid-template-columns: minmax(250px, 1fr) 2.3fr; gap: var(--sp-6); align-items: start; }
.tour:not(.is-tabbed) .tour-panel + .tour-panel { margin-top: var(--sp-8); }   /* no-JS: panels stacked */
.tour-copy h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.tour-copy .check-list { margin-bottom: var(--sp-5); }
@media (max-width: 900px) { .tour-panel { grid-template-columns: 1fr; } }

a.card-link { display: block; color: inherit; text-decoration: none; }
a.card-link h3 { color: var(--ink-900); }
a.card-link:hover h3 { color: var(--gold-600); }
:root[data-theme="dark"] a.card-link { color: inherit; }

.home-split { gap: var(--sp-7); align-items: start; }
.home-split h2 { font-size: var(--fs-h2); }
.int-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.int-list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-4); align-items: baseline;
  padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--slate-600); font-size: var(--fs-sm);
}
.int-list li strong { display: block; color: var(--ink-900); font-family: var(--font-head); font-size: var(--fs-body); }
.int-list .status-tag { grid-row: span 2; }

.market-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.market-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.2rem;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-700); text-decoration: none;
}
.market-links a:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ==========================================================================
   MODULE PAGES (B1) — /product/<slug>, generated by build/pages/module-pages.mjs
   ========================================================================== */
.cap-grid .card h3 { font-size: 1.15rem; }
.cap-grid .check-list { margin: 0; }
.cap-grid .check-list li { font-size: var(--fs-sm); }
.scope-note {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm); padding: var(--sp-5);
}
.scope-note h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.scope-note p { margin: 0; color: var(--slate-700); font-size: var(--fs-sm); }
.card .card-more { margin: var(--sp-4) 0 0; font-weight: 600; font-family: var(--font-head); font-size: var(--fs-sm); }
.card .card-more:empty { display: none; }
.screens-stack { display: grid; gap: var(--sp-7); }

/* ==========================================================================
   CONTACT FORM — enquiry type (B2)
   ========================================================================== */
.enquiry-type { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.enquiry-type legend { font-weight: 600; color: var(--ink-700); margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.5rem 0.95rem;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white); cursor: pointer;
  font-size: var(--fs-sm); color: var(--ink-700);
}
.choice input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy-700); }
.choice:has(input:checked) { border-color: var(--navy-700); background: var(--mist); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }
:root[data-theme="dark"] .choice input { accent-color: var(--gold-500); }
:root[data-theme="dark"] .choice:has(input:checked) { border-color: var(--gold-500); }
.estimate-fields { border-left: 3px solid var(--gold-500); padding-left: var(--sp-4); margin-bottom: var(--sp-4); }
