/* ============================================================
   M365Assessments — site styles
   Palette: deep purple primary, gold accent, teal secondary.
   No external fonts; works under CSP style-src 'self' (no inline styles).
   ============================================================ */

:root {
  /* Purples */
  --purple-950: #1E0B3B;
  --purple-900: #2E1065;
  --purple-800: #3B1580;
  --purple-700: #4C1D95;
  --purple-600: #5B21B6;
  --purple-500: #7C3AED;
  --purple-400: #A78BFA;
  --purple-300: #C4B5FD;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;

  /* Accents */
  --gold: #F5B841;
  --gold-dark: #D99B27;
  --teal: #14B8A6;
  --teal-dark: #0F8F82;

  /* Status */
  --high: #DC2626;
  --high-bg: #FEE2E2;
  --med: #B45309;
  --med-bg: #FEF3C7;
  --low: #0F766E;
  --low-bg: #CCFBF1;
  --pass: #15803D;
  --pass-bg: #DCFCE7;

  /* Neutrals (semantic — swapped in dark mode) */
  --ink: #1C1726;
  --body: #3F3A4A;
  --muted: #6B6577;
  --line: #E7E3EF;
  --line-strong: #D6D0E3;
  --bg: #FBFAFD;
  --bg-alt: #F4F1FA;
  --surface: #FFFFFF;
  --surface-2: #F8F6FC;
  --tint: var(--purple-50);
  --tint-2: var(--purple-100);
  --accent-text: var(--purple-600);
  --accent-strong: var(--purple-700);
  --header-bg: rgba(251, 250, 253, .86);

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 11, 59, .06), 0 2px 8px rgba(30, 11, 59, .05);
  --shadow-md: 0 8px 24px rgba(46, 16, 101, .12);
  --shadow-lg: 0 20px 48px rgba(46, 16, 101, .18);
  --shadow-xl: 0 30px 80px rgba(30, 11, 59, .35);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --transition: .2s ease;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F4F1FB;
    --body: #CEC7DD;
    --muted: #A098B3;
    --line: #2E2544;
    --line-strong: #3D3259;
    --bg: #110A20;
    --bg-alt: #170E2B;
    --surface: #1B1231;
    --surface-2: #21173B;
    --tint: rgba(124, 58, 237, .14);
    --tint-2: rgba(124, 58, 237, .24);
    --accent-text: #C4B5FD;
    --accent-strong: #DDD3FE;
    --header-bg: rgba(17, 10, 32, .82);
    --high: #F87171;
    --high-bg: rgba(220, 38, 38, .18);
    --med: #FBBF24;
    --med-bg: rgba(245, 184, 65, .16);
    --low: #5EEAD4;
    --low-bg: rgba(20, 184, 166, .16);
    --pass: #4ADE80;
    --pass-bg: rgba(34, 197, 94, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-strong); }
img, svg { max-width: 100%; }
img { display: block; }
code, .mono { font-family: var(--mono); font-size: .88em; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--purple-950);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--purple-950); }

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

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .75rem;
}
.eyebrow--gold { color: var(--gold); }
.lead { font-size: 1.18rem; color: var(--muted); }

.section { padding: 92px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--purple {
  background: linear-gradient(135deg, var(--purple-950), var(--purple-800) 60%, var(--purple-700));
  color: #E6DDF8;
  overflow: hidden;
  overflow: clip;
}
.section--purple h2, .section--purple h3, .section--purple h4, .section--purple strong { color: #fff; }
.section--purple .lead { color: #D6C9F2; }
.section--purple .muted { color: #BFAFE3; }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-head--left { margin-left: 0; text-align: left; }

.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .93rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--gold);
  color: var(--purple-950);
  box-shadow: 0 8px 20px rgba(245, 184, 65, .32);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--purple-950); box-shadow: 0 10px 26px rgba(245, 184, 65, .45); }
.btn-solid { background: var(--purple-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--purple-800); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-strong); border-color: var(--purple-300); }
.btn-outline:hover { background: var(--tint); color: var(--accent-strong); }
@media (prefers-color-scheme: dark) {
  .btn-solid { background: var(--purple-500); }
  .btn-solid:hover { background: var(--purple-600); }
  .btn-outline { border-color: rgba(196, 181, 253, .45); }
}

/* Text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow svg { width: 17px; height: 17px; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--purple .link-arrow { color: var(--gold); }

/* Microsoft sign-in button (follows Microsoft's branding guidance:
   white fill, #8C8C8C border, #5E5E5E Segoe UI semibold text, 21px logo) */
.btn-ms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  background: #FFFFFF;
  color: #5E5E5E;
  border: 1px solid #8C8C8C;
  border-radius: 4px;
  font-family: "Segoe UI Semibold", "Segoe UI", var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn-ms:hover { background: #F3F3F3; color: #3B3B3B; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.btn-ms svg { width: 21px; height: 21px; flex: 0 0 21px; }
.btn-ms--block { display: flex; width: 100%; }
@media (prefers-color-scheme: dark) {
  .btn-ms { background: #2F2F2F; color: #FFFFFF; border-color: #2F2F2F; }
  .btn-ms:hover { background: #3A3A3A; color: #FFFFFF; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(30, 11, 59, .06); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand .logo { width: 38px; height: 38px; flex: 0 0 38px; }
.wordmark { display: block; font-weight: 800; font-size: 1.14rem; letter-spacing: -0.025em; line-height: 1.1; }
.wordmark b { font-weight: 800; color: var(--accent-text); }
.wordmark small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-panel { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  color: var(--body);
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--tint); color: var(--accent-strong); }
.nav-links a[aria-current="page"] { color: var(--accent-strong); background: var(--tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-signin {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
}
.nav-signin:hover { color: var(--accent-strong); border-color: var(--purple-300); background: var(--tint); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  color: var(--ink);
  border-radius: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 8, 36, .5);
  z-index: 70;
}
.drawer-head { display: none; }

@media (max-width: 1100px) {
  .js .nav-toggle { display: block; }
  .js .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(88vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 28px;
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    display: none;
  }
  .js.nav-open .nav-panel { display: flex; animation: drawer-in .3s cubic-bezier(.2,.8,.2,1); }
  .js .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .js .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .js .nav-actions { flex-direction: column; align-items: stretch; margin: 20px 0 0; gap: 10px; }
  .js .nav-actions a { text-align: center; justify-content: center; padding: 14px; }
  /* No-JS fallback: let the nav wrap under the logo */
  html:not(.js) .nav { flex-wrap: wrap; height: auto; padding: 14px 24px; }
  html:not(.js) .nav-panel { flex-wrap: wrap; }
  html:not(.js) .nav-links { flex-wrap: wrap; }
}
.nav-close {
  background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); border-radius: 8px;
}
.nav-close svg { width: 24px; height: 24px; display: block; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--purple-950) 0%, var(--purple-900) 38%, var(--purple-800) 70%, var(--purple-600) 100%);
  color: #E6DDF8;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.hero h1 { color: #fff; }
.hero .lead { color: #D6C9F2; }
.glow, .bg-grid { position: absolute; pointer-events: none; z-index: -1; }
.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 78%);
}
.glow--gold { right: -140px; top: -160px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(245,184,65,.26), transparent 62%); }
.glow--teal { left: -120px; bottom: -200px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(20,184,166,.22), transparent 60%); }
.glow--violet { left: 30%; top: 20%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 60%); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}
.hero-copy { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #EDE7FB;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge span {
  background: var(--gold);
  color: var(--purple-950);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.hero h1 .hl {
  background: linear-gradient(90deg, #FDE7B0, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 34px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #D3C6EE;
  font-size: .93rem;
  font-weight: 600;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 19px; height: 19px; color: var(--gold); flex: 0 0 19px; }
.hero-visual { position: relative; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 72px; }
  .hero-copy { max-width: none; }
}

/* Interior page hero */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--purple-950), var(--purple-900) 45%, var(--purple-700));
  color: #E6DDF8;
  padding: 84px 0 76px;
  text-align: center;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.page-hero h1 { color: #fff; max-width: 900px; margin-left: auto; margin-right: auto; }
.page-hero p { color: #D6C9F2; max-width: 720px; margin: 0 auto; font-size: 1.16rem; }
.page-hero .hero-actions { justify-content: center; }
.page-hero--left { text-align: left; }
.page-hero--left h1, .page-hero--left p { margin-left: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-strip li { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: var(--muted); line-height: 1.35; }
.trust-strip li strong { display: block; color: var(--ink); font-size: .98rem; }
.trust-strip .ti {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent-strong);
}
.trust-strip .ti svg { width: 21px; height: 21px; }
@media (max-width: 900px) { .trust-strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-strip ul { grid-template-columns: 1fr; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-300); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card > :last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--tint); border-color: transparent; box-shadow: none; }
.section--purple .card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.section--purple .card p { color: #CDBFEB; }

.icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--tint);
  color: var(--accent-strong);
}
.icon svg { width: 26px; height: 26px; }
.icon--grad { background: linear-gradient(135deg, var(--purple-700), var(--purple-500)); color: #fff; box-shadow: 0 8px 18px rgba(91, 33, 182, .28); }
.icon--gold { background: rgba(245,184,65,.16); color: var(--gold-dark); }
.icon--teal { background: rgba(20,184,166,.14); color: var(--teal-dark); }
.section--purple .icon { background: rgba(255,255,255,.1); color: var(--gold); }
@media (prefers-color-scheme: dark) {
  .icon--gold { color: var(--gold); }
  .icon--teal { color: #5EEAD4; }
}

/* Checklists */
.checklist { list-style: none; margin: 0 0 1rem; padding: 0; }
.checklist li { position: relative; padding: 7px 0 7px 34px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B21B6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--purple .checklist li::before,
.checklist--gold li::before {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E0B3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checklist li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDD3FE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}
.checklist--compact li { padding-top: 4px; padding-bottom: 4px; font-size: .96rem; }
.checklist--compact li::before { top: 7px; }
.dotlist { margin: 0; padding-left: 1.1rem; }
.dotlist li { margin-bottom: .35rem; }
.dotlist li::marker { color: var(--purple-400); }

/* Pills & tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint-2);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .01em;
  line-height: 1.2;
}
.pill--live { background: var(--pass-bg); color: var(--pass); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--soon { background: var(--med-bg); color: var(--med); }
.pill--gold { background: var(--gold); color: var(--purple-950); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.chip svg { width: 17px; height: 17px; color: var(--muted); }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--wide-visual { grid-template-columns: .9fr 1.1fr; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 940px) {
  .split, .split--wide-visual { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Problem cards ---------- */
.problem-card { position: relative; overflow: hidden; }
.problem-card .stat { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.problem-card .stat small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }

.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.versus > div { padding: 28px; }
.versus > div + div { border-left: 1px solid var(--line); background: var(--tint); }
.versus h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.versus ul { list-style: none; padding: 0; margin: 0; }
.versus li { padding: 8px 0 8px 28px; position: relative; font-size: .97rem; border-top: 1px solid var(--line); }
.versus li:first-child { border-top: 0; }
.versus .bad li::before, .versus .good li::before {
  position: absolute; left: 0; top: 8px; font-weight: 800;
}
.versus .bad li::before { content: "\2715"; color: var(--high); }
.versus .good li::before { content: "\2713"; color: var(--pass); }
@media (max-width: 720px) {
  .versus { grid-template-columns: 1fr; }
  .versus > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-300), var(--gold), var(--teal));
  opacity: .6;
}
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 22px rgba(91, 33, 182, .3);
}
.section--alt .steps li::before { box-shadow: 0 0 0 6px var(--bg-alt), 0 10px 22px rgba(91, 33, 182, .3); }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.steps .step-meta { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--accent-text); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { text-align: left; padding-left: 76px; min-height: 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Vertical timeline */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 30px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  counter-increment: tl;
  content: counter(tl);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple-700); color: #fff; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.timeline li::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--line-strong);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.1rem; margin-bottom: .3rem; padding-top: 8px; }
.timeline p { color: var(--muted); margin: 0; }
.section--purple .timeline li::before { background: var(--gold); color: var(--purple-950); }
.section--purple .timeline li::after { background: rgba(255,255,255,.18); }
.section--purple .timeline p { color: #CDBFEB; }

/* ---------- Assessment areas ---------- */
.area-card { display: flex; flex-direction: column; }
.area-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.area-card header .icon { margin: 0; }
.area-card h3 { margin-bottom: .3rem; }
.area-card .checklist { margin-top: 14px; margin-bottom: 0; }
.area-card--core { background: linear-gradient(160deg, var(--surface), var(--tint)); }
.roadmap-row {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.roadmap-row h3 { font-size: 1rem; margin: 0 8px 0 0; display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Mock UI (app / report / customers) ---------- */
.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.hero .mock, .section--purple .mock, .page-hero .mock {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.08);
  border-color: transparent;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-dots i:nth-child(1) { background: #F87171; }
.mock-dots i:nth-child(2) { background: #FBBF24; }
.mock-dots i:nth-child(3) { background: #34D399; }
.mock-url {
  flex: 1;
  display: flex; align-items: center; gap: 6px;
  max-width: 320px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}
.mock-url svg { width: 12px; height: 12px; color: var(--pass); flex: 0 0 12px; }
.mock-app { display: grid; grid-template-columns: 148px 1fr; min-height: 360px; }
.mock-side {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
}
.mock-side .mock-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 12.5px; padding: 0 6px 12px; }
.mock-side .mock-brand svg { width: 22px; height: 22px; }
.mock-nav { list-style: none; margin: 0; padding: 0; }
.mock-nav li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 7px;
  color: var(--muted); font-weight: 600; font-size: 12px;
}
.mock-nav li svg { width: 14px; height: 14px; flex: 0 0 14px; }
.mock-nav li.on { background: var(--tint-2); color: var(--accent-strong); }
.mock-main { padding: 16px 18px; min-width: 0; }
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mock-head h4 { font-size: 14.5px; margin: 0; letter-spacing: -0.01em; }
.mock-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.mock-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--purple-700); color: #fff;
  font-weight: 700; font-size: 11px; white-space: nowrap;
}
.mock-btn svg { width: 11px; height: 11px; }
.mock-btn--ghost { background: transparent; color: var(--accent-strong); border: 1px solid var(--line-strong); }
.mock-kpis { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--surface);
}
.kpi span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { display: block; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 10.5px; font-weight: 700; }
.kpi--high strong { color: var(--high); }
.kpi--med strong { color: var(--med); }
.kpi--pass strong { color: var(--pass); }
.kpi--score { display: flex; align-items: center; gap: 10px; }
.kpi--score svg { width: 46px; height: 46px; flex: 0 0 46px; }
.ring-track { stroke: var(--line); }
.ring-val { stroke: var(--purple-500); }
.ring-text { fill: var(--ink); font-weight: 800; font-size: 11px; font-family: var(--font); }

.mock-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mock-list-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
}
.finding {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}
.finding:first-of-type { border-top: 0; }
.mock-list-head + .finding { border-top: 0; }
.finding b { display: block; color: var(--ink); font-weight: 650; font-size: 12.5px; }
.finding small { display: block; color: var(--muted); font-size: 11px; }
.finding .area { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.sev {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sev-high { background: var(--high-bg); color: var(--high); }
.sev-med { background: var(--med-bg); color: var(--med); }
.sev-low { background: var(--low-bg); color: var(--low); }
.sev-pass { background: var(--pass-bg); color: var(--pass); }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.float-chip .fc-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 30px; }
.float-chip .fc-ico svg { width: 17px; height: 17px; }
.fc-ico--pass { background: var(--pass-bg); color: var(--pass); }
.fc-ico--gold { background: rgba(245,184,65,.2); color: var(--gold-dark); }
.fc-ico--purple { background: var(--tint-2); color: var(--accent-strong); }
.float-chip--tl { left: -28px; top: 64px; }
.float-chip--br { right: -22px; bottom: 34px; }
.float-chip--tr { right: -18px; top: -18px; }
@media (max-width: 1240px) { .float-chip--tl { left: -12px; } .float-chip--br { right: -8px; } .float-chip--tr { right: -6px; } }
@media (max-width: 640px) {
  .float-chip { display: none; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .finding .area { display: none; }
}

/* Customers table mock */
.mock-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mock-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.mock-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.mock-table tr:first-child td { border-top: 0; }
.mock-table td b { display: block; color: var(--ink); font-weight: 650; }
.mock-table td small { color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--pass); }
.status--wait { color: var(--med); }
.status--run { color: var(--accent-text); }
.counts { display: inline-flex; gap: 4px; }
.counts i { font-style: normal; font-weight: 800; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; }
.counts .c-h { background: var(--high-bg); color: var(--high); }
.counts .c-m { background: var(--med-bg); color: var(--med); }
.counts .c-l { background: var(--low-bg); color: var(--low); }
.mock-quota { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; color: var(--muted); }
.meter { flex: 1; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--purple-500), var(--gold)); }
.meter .w-38 { width: 38%; }
.meter .w-62 { width: 62%; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* Report mock */
.report {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.report-cover {
  position: relative;
  padding: 26px 28px 22px;
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
  color: #E6DDF8;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.report-cover::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; z-index: -1;
  background: radial-gradient(circle, rgba(245,184,65,.3), transparent 65%);
}
.report-cover .rc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #C9BCE8; }
.report-cover h4 { color: #fff; font-size: 20px; margin: 0 0 4px; letter-spacing: -0.02em; }
.report-cover p { margin: 0; color: #CDBFEB; font-size: 12.5px; }
.rc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.rc-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 9px 10px; }
.rc-stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #C9BCE8; font-weight: 700; }
.rc-stats strong { display: block; color: #fff; font-size: 18px; line-height: 1.2; }
.rc-stats .t-high { color: #FCA5A5; }
.rc-stats .t-med { color: #FDE68A; }
.rc-stats .t-pass { color: #86EFAC; }
.report-body { padding: 18px 22px 22px; }
.report-body h5 { margin: 0 0 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rfinding { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.rfinding:last-child { margin-bottom: 0; }
.rfinding-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rfinding-top b { color: var(--ink); font-size: 13.5px; font-weight: 700; flex: 1; min-width: 180px; }
.rfinding-top .area { font-size: 11px; font-weight: 600; color: var(--muted); }
.rfinding p { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.rfinding .fix { display: flex; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--body); }
.rfinding .fix svg { width: 15px; height: 15px; color: var(--teal); flex: 0 0 15px; margin-top: 2px; }
@media (max-width: 560px) { .rc-stats { grid-template-columns: 1fr 1fr; } }

.caption { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }
.section--purple .caption, .hero .caption { color: #BFAFE3; }

/* Run history / trend mock */
.trend-svg { display: block; width: 100%; height: auto; }
.trend-grid line { stroke: var(--line); }
.trend-area { fill: url(#trendFill); }
.trend-line { stroke: var(--purple-500); stroke-width: 3; fill: none; }
.trend-dot { fill: var(--surface); stroke: var(--purple-500); stroke-width: 3; }
.trend-label { fill: var(--muted); font-size: 11px; font-family: var(--font); font-weight: 600; }
.trend-val { fill: var(--ink); font-size: 12px; font-family: var(--font); font-weight: 800; }
.stop-a { stop-color: var(--purple-500); stop-opacity: .28; }
.stop-b { stop-color: var(--purple-500); stop-opacity: 0; }

/* Consent mock */
.consent {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  font-size: 13.5px;
}
.consent .c-app { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.consent .c-app svg { width: 40px; height: 40px; flex: 0 0 40px; }
.consent .c-app b { display: block; color: var(--ink); font-size: 15px; }
.consent .c-app small { color: var(--muted); }
.consent h4 { font-size: 16px; margin: 0 0 4px; }
.consent ul { list-style: none; padding: 0; margin: 12px 0 16px; }
.consent li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--body); }
.consent li:first-child { border-top: 0; }
.consent li svg { width: 16px; height: 16px; color: var(--pass); flex: 0 0 16px; margin-top: 2px; }
.consent .c-actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent .c-actions span { padding: 7px 18px; border-radius: 4px; font-weight: 700; font-size: 13px; border: 1px solid var(--line-strong); color: var(--ink); }
.consent .c-actions span.accept { background: #0067B8; border-color: #0067B8; color: #fff; }

/* ---------- Feature list / rows ---------- */
.feature-rows { display: grid; gap: 18px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row .icon { margin: 0; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; }
.feature-row .icon svg { width: 23px; height: 23px; }
.feature-row h3 { font-size: 1.06rem; margin-bottom: .2rem; }
.feature-row p { margin: 0; color: var(--muted); font-size: .97rem; }
.section--purple .feature-row p { color: #CDBFEB; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-tile { text-align: center; padding: 10px; }
.stat-tile strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.stat-tile span { color: var(--muted); font-size: .95rem; }
.section--purple .stat-tile strong { color: var(--gold); }
.section--purple .stat-tile span { color: #CDBFEB; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Security highlights ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.sec-item svg { width: 24px; height: 24px; color: var(--gold); flex: 0 0 24px; margin-top: 2px; }
.sec-item h3 { font-size: 1.02rem; margin: 0 0 .25rem; }
.sec-item p { margin: 0; font-size: .93rem; color: #CDBFEB; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.table thead th {
  border-top: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.table tbody th { color: var(--ink); font-weight: 650; }
.table code {
  background: var(--tint);
  color: var(--accent-strong);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: .82rem;
}
.table .num { color: var(--muted); font-variant-numeric: tabular-nums; width: 44px; }
.table .group td, .table .group th {
  background: var(--tint);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Comparison table */
.compare { min-width: 820px; }
.compare th, .compare td { text-align: center; vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.compare thead th small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.compare .col-pop { background: var(--tint); }
.compare thead .col-pop { background: var(--tint-2); }
.yes, .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.yes { background: var(--pass-bg); color: var(--pass); }
.no { color: var(--muted); }
.yes svg, .no svg { width: 14px; height: 14px; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  gap: 4px;
  margin-top: 26px;
}
.billing-toggle button {
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: #E6DDF8;
  transition: background var(--transition), color var(--transition);
}
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--purple-900); box-shadow: var(--shadow-sm); }
.billing-toggle .save { font-size: .74rem; font-weight: 800; background: var(--gold); color: var(--purple-950); padding: 3px 8px; border-radius: 999px; margin-left: 6px; }
.early-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245,184,65,.16);
  border: 1px solid rgba(245,184,65,.45);
  color: #FDE7B0;
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: 18px;
}
.early-badge svg { width: 16px; height: 16px; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: -64px;
  position: relative;
  z-index: 2;
}
.plans--teaser { margin-top: 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans, .plans--teaser { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-md);
}
.plan--pop {
  border: 2px solid var(--purple-500);
  box-shadow: 0 24px 60px rgba(91, 33, 182, .28);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--purple-950);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(245,184,65,.4);
}
.plan h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.plan .plan-for { color: var(--muted); font-size: .92rem; min-height: 2.9em; margin-bottom: 16px; }
.price { display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.price .cur { font-size: 1.3rem; font-weight: 800; align-self: flex-start; margin-top: 6px; }
.price .amt { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-weight: 600; font-size: .95rem; }
.price-note { font-size: .84rem; color: var(--muted); min-height: 1.4em; margin: 8px 0 18px; }
.plan-limits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 18px;
}
.plan-limits div { background: var(--tint); border-radius: 10px; padding: 10px 12px; }
.plan-limits strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.plan-limits span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.plan .checklist { margin-bottom: 22px; flex: 1; }
.plan .btn { width: 100%; }
.per-tenant { display: block; font-size: .8rem; font-weight: 700; color: var(--accent-text); margin-top: 4px; }

.enterprise {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-950), var(--purple-800));
  color: #E6DDF8;
  box-shadow: var(--shadow-lg);
}
.enterprise h3 { color: #fff; margin-bottom: .3rem; }
.enterprise p { margin: 0; color: #CDBFEB; }
.enterprise .checklist { margin: 0; }
.enterprise .checklist li { color: #E6DDF8; font-size: .95rem; padding-top: 4px; padding-bottom: 4px; }
.enterprise .checklist li::before { top: 6px; }
@media (max-width: 900px) { .enterprise { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--purple-300); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 17px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: var(--muted); }
.faq details > div p:last-child, .faq details > div ul:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 44px; }
.faq-group > h2 { font-size: 1.35rem; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.faq-group > h2 .icon { width: 38px; height: 38px; margin: 0; border-radius: 10px; }
.faq-group > h2 .icon svg { width: 20px; height: 20px; }
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.faq-toc { position: sticky; top: 100px; }
.faq-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.faq-toc ul { list-style: none; margin: 0 0 22px; padding: 0; }
.faq-toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--body); font-weight: 600; font-size: .95rem; }
.faq-toc a:hover { background: var(--tint); color: var(--accent-strong); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } .faq-toc { position: static; } }

/* ---------- Sub navigation (features page) ---------- */
.subnav {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
}
.subnav a:hover { color: var(--accent-strong); background: var(--tint); }
.subnav a.active { color: var(--accent-strong); background: var(--tint-2); }
[id] { scroll-margin-top: 140px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-600));
  color: #fff;
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.cta-band h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-band p { color: #E2D8F6; max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .glow--gold { right: -180px; top: -220px; }
.cta-band .bg-grid { -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); }
.cta-fine { margin-top: 18px !important; font-size: .88rem !important; color: #C9BCE8 !important; }
@media (max-width: 600px) { .cta-band { padding: 44px 24px; } }

/* ---------- Callouts ---------- */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--tint);
  border: 1px solid var(--line);
}
.callout svg { width: 24px; height: 24px; color: var(--accent-strong); flex: 0 0 24px; margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .5rem; }
.callout strong { color: var(--ink); }
.callout--gold { background: rgba(245,184,65,.12); border-color: rgba(245,184,65,.4); }
.callout--gold svg { color: var(--gold-dark); }
@media (prefers-color-scheme: dark) { .callout--gold svg { color: var(--gold); } }

.quote {
  margin: 0;
  padding: 26px 28px;
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.12rem; color: var(--ink); font-weight: 600; margin: 0; }

/* Finding → project mapping */
.map-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.map-row > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}
.map-row > div b { display: block; color: var(--ink); font-size: .98rem; margin-top: 6px; }
.map-row > div small { color: var(--muted); }
.map-row .arrow { display: grid; place-items: center; color: var(--purple-500); background: none; border: 0; box-shadow: none; padding: 0; }
.map-row .arrow svg { width: 24px; height: 24px; }
.map-row .proj { background: var(--tint); border-color: transparent; }
@media (max-width: 640px) {
  .map-row { grid-template-columns: 1fr; }
  .map-row .arrow { transform: rotate(90deg); height: 24px; }
}

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.role .pill { margin-bottom: 12px; }
.role h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.role p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* Live vs roadmap */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .status-grid { grid-template-columns: 1fr; } }
.status-card h3 { display: flex; align-items: center; gap: 10px; }
.status-card ul { list-style: none; padding: 0; margin: 0; }
.status-card li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.status-card li:first-child { border-top: 0; }
.status-card li span { color: var(--muted); font-size: .86rem; text-align: right; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-item .icon { margin-bottom: 0; flex: 0 0 48px; width: 48px; height: 48px; }
.info-item h3 { margin: 0 0 2px; font-size: 1.02rem; }
.info-item p { margin: 0; color: var(--muted); font-size: .96rem; }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form h2 { font-size: 1.4rem; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--purple-500); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--tint-2);
  background: var(--surface);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form { padding: 24px 20px; } }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--pass); }
.form-status.err { color: var(--high); }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn {
  font-family: inherit; font-weight: 700; font-size: .82rem;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent-strong);
}
.copy-btn:hover { background: var(--tint); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--muted); font-size: .92rem; }
.template-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: var(--med-bg);
  border: 1px solid rgba(180, 83, 9, .35);
  color: var(--ink);
}
.template-banner svg { width: 24px; height: 24px; color: var(--med); flex: 0 0 24px; margin-top: 1px; }
.template-banner p { margin: 0; }
.placeholder { background: var(--med-bg); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.login-shell { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-brand {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(160deg, var(--purple-950) 0%, var(--purple-900) 45%, var(--purple-700) 100%);
  color: #E6DDF8;
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
}
.login-brand .brand { color: #fff; }
.login-brand .wordmark b { color: var(--gold); }
.login-brand .wordmark small { color: #BFAFE3; }
.login-brand-inner { margin: auto 0; max-width: 520px; padding: 48px 0; }
.login-brand h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.login-brand p { color: #D6C9F2; font-size: 1.06rem; }
.login-brand .checklist li { color: #EDE7FB; }
.login-brand .mini-report { margin-top: 30px; max-width: 440px; }
.login-foot { font-size: .85rem; color: #BFAFE3; display: flex; gap: 18px; flex-wrap: wrap; }
.login-foot a { color: #D6C9F2; }
.login-foot a:hover { color: var(--gold); }
.login-main { display: flex; flex-direction: column; padding: 32px 40px; }
.login-top { display: flex; justify-content: flex-end; }
.login-top a { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.login-top a svg { width: 16px; height: 16px; }
.login-card { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.login-card h1 { font-size: clamp(1.9rem, 3vw, 2.3rem); margin-bottom: .35em; }
.login-card > p { color: var(--muted); }
.login-card .btn-ms { margin: 26px 0 12px; }
.req-note { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 0; }
.req-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--accent-text); }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 30px 0 22px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-info { display: grid; gap: 14px; }
.login-info .card { padding: 18px 20px; box-shadow: none; }
.login-info h2 { font-size: 1rem; margin: 0 0 .3rem; display: flex; align-items: center; gap: 8px; }
.login-info h2 svg { width: 18px; height: 18px; color: var(--accent-text); }
.login-info p { font-size: .92rem; margin: 0; }
.login-info ol { margin: 8px 0 0; padding-left: 1.2rem; font-size: .92rem; color: var(--muted); }
.login-info ol li { margin-bottom: 3px; }
.login-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.login-links a { font-weight: 600; }
@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 24px; order: 2; }
  .login-brand-inner { padding: 24px 0 32px; }
  .login-main { padding: 20px 24px 8px; }
  .login-card { padding: 28px 0 40px; }
  .login-mobile-brand { display: flex !important; }
  .login-top { justify-content: space-between; align-items: center; }
}
.login-mobile-brand { display: none !important; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 0 120px; }
.notfound .code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-400) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.notfound .hero-actions { justify-content: center; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-950);
  color: #B9AAD9;
  padding: 68px 0 30px;
}
@media (prefers-color-scheme: dark) { .site-footer { background: #0B0616; border-top: 1px solid var(--line); } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 44px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.site-footer h2 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { color: #B9AAD9; display: inline-block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .wordmark b { color: var(--gold); }
.site-footer .wordmark small { color: #9D8CC6; }
.footer-about { color: #A797CC; font-size: .95rem; max-width: 340px; }
.footer-cta { display: inline-flex; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: .84rem;
  color: #8C7BB3;
}
.footer-bottom p { margin: 0; max-width: 720px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }
.reveal-d3 { transition-delay: .24s !important; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.float-chip--tl { animation: floaty 6s ease-in-out infinite; }
.float-chip--br { animation: floaty 7s ease-in-out infinite .8s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,184,166,.5); } 70% { box-shadow: 0 0 0 8px rgba(20,184,166,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); } }
.status--run::before { animation: pulse 2s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card--hover:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-overlay, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Small additions ---------- */
h2 svg, h3 svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.card { position: relative; }
.card-flag { position: absolute; top: 22px; right: 22px; }
.stats--2 { grid-template-columns: repeat(2, 1fr); }
.stats--2 .stat-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 22px 14px;
}
.page-hero a:not(.btn), .hero a:not(.btn) { color: var(--gold); font-weight: 700; }
.page-hero a:not(.btn):hover, .hero a:not(.btn):hover { color: #FDE7B0; }
.page-hero--pricing { padding-bottom: 140px; }

@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.nav-open .nav-overlay { animation: fade-in .25s ease; }

/* Hero mock: drop the sidebar when the column gets narrow */
@media (max-width: 1180px) and (min-width: 981px) {
  .hero .mock-app { grid-template-columns: 1fr; }
  .hero .mock-side { display: none; }
}
.float-chip--tr { top: -46px; right: 28px; }
@media (max-width: 1240px) { .float-chip--tr { right: 12px; } }
.hero-badge span { white-space: nowrap; }
.hero-badge { line-height: 1.35; }
.float-chip--br { bottom: -30px; right: -14px; }
.kpi--score em { display: none; }
@media (min-width: 1200px) { .kpi--score em { display: block; } }
/* backdrop-filter creates a containing block for fixed children: drop it while the drawer is open */
.nav-open .site-header { z-index: 90; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
/* Grid children may shrink below their content's intrinsic width */
.split > *, .grid > *, .hero-grid > *, .contact-grid > *, .faq-layout > *, .status-grid > * { min-width: 0; }
.mock-list { overflow-x: auto; }
@media (max-width: 560px) { .mock-table td b + small { display: none; } .mock-table th, .mock-table td { padding: 9px 8px; } }
@media (max-width: 960px) { .login-mobile-brand { display: flex !important; } }

/* =====================================================================
   Phone-first pass (≤ 640px): show content immediately, shorten pages.
   Desktop layout is untouched; everything below is scoped to narrow screens.
   ===================================================================== */
@media (max-width: 900px) {
  /* No scroll-reveal waits on touch-size screens: content is visible at once. */
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p, .section-head .lead { font-size: 1rem; }

  /* Hero: headline + actions on the first screen */
  .hero-grid { padding: 32px 0 40px; gap: 28px; }
  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.3rem); line-height: 1.1; }
  .hero .lead { font-size: 1rem; line-height: 1.55; margin-top: 14px; }
  .hero-badge { font-size: .8rem; padding: 6px 12px 6px 6px; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-trust { margin-top: 18px; gap: 8px 16px; font-size: .88rem; }

  /* Illustrations: keep a taste, not a full screen */
  .hero-visual, .split .mock, .split .report, .page-hero .mock {
    max-height: 320px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
            mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .split, .split--wide-visual { gap: 24px; }

  /* Card grids → swipeable rows with the next card peeking in */
  .grid-3, .grid-4, .plans--teaser, .roles, .sec-grid, .steps {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 14px;
    margin-left: -20px; margin-right: -20px;
    scroll-padding-left: 20px;
    scrollbar-width: none;
  }
  .grid-3::-webkit-scrollbar, .grid-4::-webkit-scrollbar, .plans--teaser::-webkit-scrollbar,
  .roles::-webkit-scrollbar, .sec-grid::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .grid-3 > *, .grid-4 > *, .plans--teaser > *, .roles > *, .sec-grid > *, .steps > * { scroll-snap-align: start; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
  .swipe-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
  .swipe-hint i.on { background: var(--accent, #7C3AED); width: 16px; border-radius: 99px; }

  /* Full pricing page: plans stay stacked (people compare them), but tighter */
  .plans:not(.plans--teaser) { gap: 16px; }

  /* Sticky call-to-action once the hero has scrolled away */
  .m-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 80;
    display: flex; gap: 10px; padding: 10px; border-radius: 16px;
    background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--line); box-shadow: 0 12px 30px -12px rgba(30, 11, 59, .45);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .m-cta.show { transform: none; }
  .m-cta .btn { flex: 1; justify-content: center; }
  body.has-m-cta .site-footer { padding-bottom: 96px; }
  .nav-open .m-cta { display: none; }
}
@media (min-width: 641px) { .m-cta, .swipe-hint { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .m-cta { transition: none; } }
@media (max-width: 640px) {
  /* Feature splits: the copy carries the message; the illustration is decorative on phones */
  .split > :not(:has(h2, h3, p, ul, ol)) { display: none; }
  .split .mock, .split .report { display: none; }
  /* Manual vs M365Assessments comparison → two swipeable panels */
  .versus { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; background: none; box-shadow: none; gap: 12px; scrollbar-width: none; }
  .versus::-webkit-scrollbar { display: none; }
  .versus > div { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .versus > div + div { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  /* Long checklists collapse to 4 items */
  .m-collapsed > li:nth-child(n+5) { display: none; }
  .m-more { margin-top: 8px; background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; color: var(--accent-text, #6D28D9); cursor: pointer; }
}
@media (max-width: 640px) {
  .trust-strip ul { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .trust-strip li { font-size: .88rem; }
}
@media (max-width: 640px) {
  .m-collapsed-table tbody tr:nth-child(n+6) { display: none; }
}

/* Primary nav with 7 links (Help added): stay on one line between the drawer breakpoint and full width */
.nav-links a, .nav-signin { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1240px) {
  .nav-links a { padding: 9px 8px; font-size: .92rem; }
  .nav-actions { margin-left: 4px; }
}
