/* ============================================================
   Simply Statements — marketing site + signup shared styles
   One file, served on both simplyledger.co.za and /signup.
   Tokens below are the only thing to touch when rebranding.
   ============================================================ */

:root {
  /* Brand */
  --brand: #134d87;          /* primary brand / headings accent */
  --brand-2: #185FA5;        /* interactive: links, buttons hover */
  --green: #0F6E56;          /* positive / checks / AR accent */

  /* Neutrals */
  --text: #1a2230;
  --muted: #64748b;
  --faint: #94a3b8;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --navy: #0e1d31;           /* dark panels */
  --navy-2: #16293f;
  --navy-text: #c7d4e4;

  /* Shape + depth */
  --r: 8px;
  --r-lg: 14px;
  --btn-r: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 6px rgba(15,23,42,.05), 0 10px 28px rgba(15,23,42,.08);

  /* Type */
  --font-head: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --head-w: 700;
  --head-spacing: -0.022em;

  /* Rhythm */
  --section-pad: clamp(64px, 9vw, 108px);
  --container: 1120px;
}

/* ---- Direction tweaks (design exploration; default = "workspace") ---- */
html[data-dir="editorial"] {
  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --head-w: 550;
  --head-spacing: -0.012em;
  --r: 4px; --r-lg: 6px; --btn-r: 4px;
}
html[data-dir="soft"] {
  --head-w: 800;
  --r: 14px; --r-lg: 20px; --btn-r: 999px;
  --bg: #f6f6f3;
  --border: #e5e7e3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-w);
  letter-spacing: var(--head-spacing);
  line-height: 1.12;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

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

.mono { font-family: var(--font-mono); }

/* Eyebrow label above section headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-2);
  margin-bottom: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--btn-r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--faint); background: var(--surface); }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.btn-block { width: 100%; }

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.pill-soon {
  border-style: dashed;
  background: transparent;
  color: var(--faint);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Offset anchor targets so they don't slide behind the sticky header. */
html { scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: 90px; }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.header-logo img { height: 32px; width: auto; }
.header-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.header-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
}
.header-nav a:hover { color: var(--text); background: var(--bg); text-decoration: none; }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 760px) {
  .header-nav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-2);
}
html[data-dir="editorial"] .hero h1 em { font-style: italic; }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-fineprint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}
.hero-fineprint b { color: var(--muted); font-weight: 500; }

/* Dark hero variant */
html[data-hero="dark"] .hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
    var(--navy);
  border-bottom-color: var(--navy-2);
}
html[data-hero="dark"] .hero h1 { color: #f2f6fb; }
html[data-hero="dark"] .hero h1 em { color: #7db4e8; }
html[data-hero="dark"] .hero-sub { color: var(--navy-text); }
html[data-hero="dark"] .hero-fineprint { color: #5d7390; }
html[data-hero="dark"] .hero-fineprint b { color: #93a9c2; }
html[data-hero="dark"] .hero .btn-ghost { color: #e8eef6; border-color: #314863; }
html[data-hero="dark"] .hero .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #46607f; }
html[data-hero="dark"] .hero .btn-primary { background: var(--brand-2); }
html[data-hero="dark"] .hero .btn-primary:hover { background: #2d77c2; }

/* ---- Dashboard mock (pure CSS, crisp at any size) ---- */
.mock {
  display: grid;
  grid-template-columns: 148px 1fr;
  background: #1e293b;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), 0 30px 70px rgba(15,33,56,.18);
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 11px;
  min-width: 0;
}
html[data-hero="dark"] .mock { border-color: #2c4159; }
.mock-side { padding: 14px 0; color: #cbd5e1; }
.mock-side .mock-brand {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px 12px;
  border-bottom: 1px solid #334155;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px; color: #e2e8f0;
}
.mock-brand img { height: 18px; }
.mock-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; color: #94a3b8;
  font-family: var(--font-body); font-size: 10.5px;
}
.mock-nav-item::before {
  content: ""; width: 9px; height: 9px; border-radius: 2.5px;
  background: currentColor; opacity: .55; flex: none;
}
.mock-nav-item.active {
  color: #fff; background: #334155;
  box-shadow: inset 3px 0 0 var(--brand-2);
}
.mock-nav-sec {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; color: #64748b; padding: 10px 14px 3px;
}
.mock-main { background: #f8fafc; padding: 14px; min-width: 0; }
.mock-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.mock-topbar .t { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--text); }
.mock-topbar .d { font-family: var(--font-mono); font-size: 9px; color: var(--faint); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mock-kpi {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 9px 10px;
}
.mock-kpi .k { font-size: 9px; color: var(--muted); margin-bottom: 3px; }
.mock-kpi .v { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.mock-kpi .v.pos { color: var(--green); }
.mock-kpi .v.warn { color: #d97706; }
.mock-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 10px; margin-bottom: 10px;
}
.mock-panel .ph {
  display: flex; justify-content: space-between;
  font-size: 9.5px; color: var(--muted); margin-bottom: 8px;
}
.mock-chart { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.mock-chart i {
  flex: 1; border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--brand-2) 28%, #e6eef7);
}
.mock-chart i.hi { background: var(--brand-2); }
.mock-rows { display: grid; gap: 0; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 2px; border-top: 1px solid #f1f5f9;
  font-size: 9.5px; color: var(--muted);
}
.mock-row .a { font-family: var(--font-mono); color: var(--text); }
.mock-row .a.pos { color: var(--green); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---- Audiences ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audience-card .glyph {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  color: #fff;
}
.audience-card h3 { font-size: 20px; }
.audience-card p { color: var(--muted); font-size: 15px; flex: 1; }
.audience-card .mods {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 4px;
}

/* ---- Core strip ---- */
.core-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}
.core-item {
  padding: 22px 20px;
  border-left: 1px solid var(--border);
}
.core-item:first-child { border-left: 0; }
.core-item .ci-name {
  font-family: var(--font-head);
  font-weight: var(--head-w);
  font-size: 15.5px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 7px;
}
.core-item .ci-name::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--green); flex: none;
}
.core-item p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.core-tag {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.core-tag .pill { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); color: var(--green); }

/* ---- Module grid ---- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 4px 14px;
  align-items: start;
  transition: border-color .15s, box-shadow .15s;
}
.module-card:hover { border-color: var(--faint); box-shadow: var(--shadow); }
.module-card .glyph {
  grid-row: span 2;
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: #fff; background: var(--brand);
}
.module-card h4 { font-size: 16px; }
.module-card .module-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-2);
  white-space: nowrap;
  padding-top: 2px;
}
.module-card p { grid-column: 2 / -1; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.soon-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 24px;
  font-size: 13.5px; color: var(--muted);
}

/* ============================================================
   Pricing
   ============================================================ */
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
  gap: 2px;
  margin-bottom: 36px;
}
.billing-toggle button {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0; border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.billing-toggle .save {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  margin-left: 6px;
}
.billing-toggle button[aria-pressed="true"] .save { color: #a7e3c9; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
  position: relative;
}
.plan-card .plan-flag {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--brand); color: #fff;
  border-radius: 999px; padding: 3px 11px;
}
.plan-card h3 { font-size: 19px; }
.plan-card .plan-desc { font-size: 13.5px; color: var(--muted); min-height: 42px; }
.plan-price {
  font-family: var(--font-mono);
  margin: 10px 0 2px;
}
.plan-price .amt { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.plan-price .per { font-size: 13px; color: var(--faint); }
.plan-price .contact { font-size: 21px; font-weight: 500; color: var(--text); }
.plan-meta {
  list-style: none;
  display: grid; gap: 7px;
  padding: 14px 0 18px;
  font-size: 14px; color: var(--muted);
  flex: 1;
}
.plan-meta li { display: flex; gap: 9px; align-items: baseline; }
.plan-meta li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.pricing-callout {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--muted);
  margin-top: 22px;
}
.pricing-callout b { color: var(--text); font-weight: 600; }

/* ============================================================
   ZA essentials (dark strip)
   ============================================================ */
.za-strip {
  background:
    radial-gradient(900px 420px at 12% 0%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    var(--navy);
  color: var(--navy-text);
  padding: var(--section-pad) 0;
}
.za-strip .section-head h2 { color: #f2f6fb; }
.za-strip .section-head p { color: var(--navy-text); }
.za-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.za-item {
  border: 1px solid #29405c;
  border-radius: var(--r);
  padding: 22px;
  background: rgba(255,255,255,.025);
}
.za-item .zi-label {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: #7db4e8;
  margin-bottom: 9px;
}
.za-item h4 { color: #f2f6fb; font-size: 16.5px; margin-bottom: 6px; }
.za-item p { font-size: 13.5px; color: #93a9c2; line-height: 1.55; }

/* ============================================================
   Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-2);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--muted); }
.steps-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--faint);
  transition: transform .15s;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--muted);
  max-width: 64ch;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand { margin-right: auto; }
.footer-brand img { height: 30px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--faint); max-width: 30ch; }
.footer-col { display: grid; gap: 8px; min-width: 130px; }
.footer-col .fc-head {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: var(--faint);
}
.footer-legal a { color: var(--faint); }

/* ============================================================
   Signup page
   ============================================================ */
.signup-body { background: var(--bg); min-height: 100vh; }
.signup-layout {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
  min-height: 100vh;
}

/* Left brand/summary panel */
.signup-aside {
  background:
    radial-gradient(800px 500px at 0% 0%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent 70%),
    var(--navy);
  color: var(--navy-text);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.signup-aside .aside-logo img { height: 34px; }
.signup-aside h1 {
  color: #f2f6fb;
  font-size: clamp(24px, 2.4vw, 32px);
}
.signup-aside .aside-sub { color: #93a9c2; font-size: 15px; max-width: 38ch; }

.summary-card {
  background: rgba(255,255,255,.04);
  border: 1px solid #29405c;
  border-radius: var(--r-lg);
  padding: 22px;
  display: grid;
  gap: 0;
}
.summary-card .sc-head {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #7db4e8;
  margin-bottom: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid #223952;
  font-size: 14px;
}
.summary-row:first-of-type { border-top: 0; }
.summary-row .sr-label { color: #93a9c2; }
.summary-row .sr-value { color: #f2f6fb; font-weight: 500; text-align: right; }
.summary-row .sr-value.mono { font-family: var(--font-mono); font-weight: 400; }
.summary-row.total { border-top: 1px solid #35506e; margin-top: 6px; padding-top: 13px; }
.summary-row.total .sr-label { color: #c7d4e4; font-weight: 600; }
.summary-row.total .sr-value {
  font-family: var(--font-mono);
  font-size: 21px; font-weight: 600; color: #fff;
}
.summary-empty { color: #5d7390; font-style: italic; }

.aside-trust {
  margin-top: auto;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: #93a9c2;
}
.aside-trust li { list-style: none; display: flex; gap: 10px; align-items: baseline; }
.aside-trust li::before { content: "✓"; color: #4cae8d; font-weight: 700; font-size: 12px; }

/* Right form panel */
.signup-main {
  padding: clamp(28px, 4.5vw, 64px);
  max-width: 760px;
}
.signup-main .form-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 14.5px;
  margin-bottom: 24px;
}
.fgroup {
  border: 0;
  margin-bottom: 36px;
}
.fgroup-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.fgroup-head .fg-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-2);
}
.fgroup-head h2 { font-size: 20px; text-wrap: nowrap; }
.fgroup-head .fg-hint { font-size: 13px; color: var(--faint); margin-left: auto; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.field .hint { font-size: 12.5px; color: var(--faint); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent);
}

/* Billing segment */
.billing-seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 3px;
  margin-bottom: 18px;
}
.billing-seg label { position: relative; }
.billing-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.billing-seg .seg-face {
  display: inline-block;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.billing-seg input:checked + .seg-face { background: var(--brand); color: #fff; }
.billing-seg input:focus-visible + .seg-face { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.billing-seg .seg-save { font-family: var(--font-mono); font-size: 10.5px; opacity: .8; margin-left: 5px; }

/* Selectable cards (plans + modules) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice .choice-face {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 16px 14px;
  display: grid;
  gap: 3px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  height: 100%;
}
.choice:hover .choice-face { border-color: var(--faint); }
.choice input:checked + .choice-face {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}
.choice input:focus-visible + .choice-face {
  box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent);
}
.choice .ch-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.choice .ch-name { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.choice .ch-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-2);
  white-space: nowrap;
}
.choice .ch-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.choice .ch-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 5px; }
/* check indicator */
.choice .choice-face::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all .15s;
}
.choice.with-check .ch-top { padding-right: 24px; }
.choice input:checked + .choice-face::after {
  border-color: var(--green);
  background: var(--green);
  content: "✓";
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

/* Mobile sticky total + submit */
.signup-submit {
  margin-top: 8px;
  display: grid;
  gap: 14px;
}
.signup-submit .submit-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  color: var(--muted);
}
.signup-submit .submit-total .amt {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip span::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ============================================================
   Header modules dropdown
   ============================================================ */
.nav-dd { position: relative; }
.nav-dd-btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dd-btn::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s;
}
.nav-dd:hover .nav-dd-btn, .nav-dd:focus-within .nav-dd-btn { color: var(--text); background: var(--bg); }
.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 12px;
  display: none;
  z-index: 60;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.dd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 280px 240px;
  gap: 18px;
}
.dd-col { display: grid; gap: 2px; align-content: start; }
.dd-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 10px 6px;
}
.dd-card a {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.45;
}
.dd-card a:hover { background: var(--bg); text-decoration: none; }
.dd-card a b {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.dd-card a b .dd-price { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--brand-2); }
.dd-card a b .dd-soon { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--faint); }
.dd-card a span { font-size: 12px; color: var(--muted); }
.dd-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding: 12px 10px 2px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Module cards on the landing page are links */
a.module-card { color: inherit; }
a.module-card:hover { text-decoration: none; }
a.pill:hover { text-decoration: none; border-color: var(--faint); color: var(--text); }

/* ============================================================
   Module detail pages
   ============================================================ */
.module-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.module-hero .container {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  max-width: 860px;
}
.module-hero .m-crumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
}
.module-hero .m-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.m-glyph {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  flex: none;
}
.module-hero h1 { font-size: clamp(30px, 4vw, 42px); }
.module-hero .m-price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand-2);
  margin-top: 6px;
}
.module-hero .m-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 26px;
}
.module-hero .hero-cta { margin-bottom: 0; }

.module-page-body .section .container { max-width: 860px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
}
.feature h3 { font-size: 15.5px; margin-bottom: 3px; display: flex; align-items: baseline; gap: 8px; }
.feature h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--green);
  flex: none;
  align-self: center;
}
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.feature.planned { border-style: dashed; background: transparent; }
.feature.planned h3::before { background: var(--faint); }
.related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.module-cta {
  background: var(--navy);
  color: var(--navy-text);
  padding: clamp(44px, 6vw, 72px) 0;
}
.module-cta .container {
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.module-cta h2 { color: #f2f6fb; font-size: clamp(22px, 2.6vw, 30px); }
.module-cta p { color: #93a9c2; font-size: 15px; }
.module-cta .btn-primary { background: var(--brand-2); }
.module-cta .btn-primary:hover { background: #2d77c2; }
.footer-slim {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-slim .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
}
.footer-slim img { height: 24px; }
.footer-slim a { color: var(--muted); font-size: 13px; }
.footer-slim .spacer { flex: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .audience-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .za-grid { grid-template-columns: 1fr 1fr; }
  .core-strip { grid-template-columns: 1fr 1fr; }
  .core-item { border-top: 1px solid var(--border); }
  .core-item:nth-child(odd) { border-left: 0; }
  .core-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { max-width: 56ch; }
  .signup-layout { grid-template-columns: 1fr; }
  .signup-aside {
    position: static;
    height: auto;
    padding-bottom: 32px;
  }
  .signup-aside .aside-trust { display: none; }
  .signup-main { max-width: none; }
}
@media (max-width: 640px) {
  .module-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .za-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .core-strip { grid-template-columns: 1fr; }
  .core-item { border-left: 0; }
  .core-item:nth-child(2) { border-top: 1px solid var(--border); }
  .field-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

/* ── Password show/hide toggle (see /assets/js/password-toggle.js) ── */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] { width: 100%; padding-right: 42px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none; background: transparent; padding: 0;
  color: #94a3b8; cursor: pointer; border-radius: 6px;
  transition: color .15s, background .15s;
}
.pw-toggle:hover { color: #475569; background: rgba(15,23,42,.05); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent-statements, #185FA5); outline-offset: 2px; }
.pw-toggle[aria-pressed="true"] { color: var(--accent-statements, #185FA5); }
