/* ============================================================
   AcadFlows v2 — Enterprise redesign
   Design system: ink-scale neutrals + single brand + single accent
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Ink scale */
  --ink-950: #0B0D10;
  --ink-800: #1A1E24;
  --ink-700: #2A2F36;
  --ink-600: #424A54;
  --ink-500: #5B6470;
  --ink-400: #818996;
  --ink-300: #B8BEC7;
  --ink-200: #D5D9DE;
  --ink-100: #E6E8EC;
  --ink-050: #F2F3F5;

  /* Surfaces */
  --canvas: #FAFAF7;
  --paper: #FFFFFF;
  --stripe: #F3F3EE;

  /* Brand: deep indigo */
  --brand-900: #14296B;
  --brand-700: #1E3A8A;
  --brand-500: #2E4FBF;
  --brand-300: #6B86D8;
  --brand-100: #C9D3EE;
  --brand-050: #EEF2FB;

  /* Accent: warm umber, used sparingly */
  --accent-700: #92400E;
  --accent-500: #B45309;
  --accent-100: #FCE7C4;

  /* Functional */
  --success: #15803D;
  --danger:  #B91C1C;

  /* Type */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Sizes (px-as-rem; 1rem = 16px) */
  --fs-display-xl: 3.5rem;   /* 56 */
  --fs-display-l:  2.125rem; /* 34 */
  --fs-display-m:  1.75rem;  /* 28 */
  --fs-heading:    1.25rem;  /* 20 */
  --fs-body-l:     1.125rem; /* 18 */
  --fs-body:       1rem;     /* 16 */
  --fs-body-s:     0.875rem; /* 14 */
  --fs-caption:    0.75rem;  /* 12 */

  /* Space scale (8-pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --r-2: 4px;
  --r-3: 6px;
  --r-4: 8px;
  --r-6: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 280ms;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --container-prose: 720px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-700);
  overflow-x: clip;
  background-color: var(--canvas);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11,13,16,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  background-attachment: fixed;
  font-feature-settings: "ss01", "cv11", "cv02";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand-100); color: var(--ink-950); }

/* Reduced motion: keep micro-transitions, only disable looping/long-running anims */
@media (prefers-reduced-motion: reduce) {
  .hero .dash-chart-bars .bar .fill { animation-duration: 1ms !important; animation-delay: 0ms !important; }
  #cf-btn-spinner { animation: none !important; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }
.prose { max-width: var(--container-prose); }
section { padding-block: var(--space-12); scroll-margin-top: 72px; }
@media (max-width: 760px) { section { padding-block: var(--space-8); scroll-margin-top: 64px; } }

.stripe { background: var(--stripe); position: relative; }
.stripe::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,13,16,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}
.stripe > * { position: relative; z-index: 1; }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink-950);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(1.875rem, 5vw, var(--fs-display-xl)); line-height: 1.07; letter-spacing: -0.026em; font-weight: 600; }
.display-l  { font-size: clamp(1.5rem,  3.2vw, var(--fs-display-l));  line-height: 1.2;  letter-spacing: -0.012em; font-weight: 500; }
.display-m  { font-size: clamp(1.375rem, 2.4vw, var(--fs-display-m)); line-height: 1.25; letter-spacing: -0.008em; font-weight: 500; }
.heading    { font-size: var(--fs-heading); line-height: 1.3; letter-spacing: -0.005em; font-weight: 500; }
.body-l     { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-600); }
.body-s     { font-size: var(--fs-body-s); line-height: 1.5; color: var(--ink-500); }
.caption    { font-size: var(--fs-caption); line-height: 1.4; color: var(--ink-500); }
.mono       { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--brand-500); margin-right: 10px; }

p { color: var(--ink-600); }
strong { color: var(--ink-800); font-weight: 600; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-4);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform var(--dur-base) var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary    { background: var(--ink-950); color: #fff; }
.btn-primary:hover    { background: var(--brand-700); box-shadow: 0 6px 18px -8px rgba(30,58,138,0.45); }
.btn-secondary  { background: transparent; color: var(--ink-800); border-color: var(--ink-200); }
.btn-secondary:hover  { border-color: var(--ink-400); background: var(--paper); box-shadow: 0 1px 2px rgba(11,13,16,0.04); }

.play-glyph {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  background: var(--ink-950);
  color: #fff;
  border-radius: 50%;
  margin-right: 2px;
  transition: background var(--dur-base) var(--ease);
}
.play-glyph svg { margin-left: 1px; }
.btn:hover .play-glyph { background: var(--brand-700); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-700); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}
.btn-link:hover { border-color: var(--brand-500); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  border-bottom-color: var(--ink-100);
  box-shadow: 0 1px 0 rgba(11,13,16,0.02), 0 8px 24px -16px rgba(11,13,16,0.10);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink-950);
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  background: var(--ink-950);
  display: inline-grid; place-items: center;
  border-radius: 4px;
}
.nav-logo-mark::after { content: ""; width: 8px; height: 8px; background: var(--canvas); border-radius: 1px; }

.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-link {
  padding: 8px 12px;
  font-size: 0.9375rem;
  color: var(--ink-600);
  border-radius: var(--r-3);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.nav-link:hover { color: var(--ink-950); background: var(--ink-050); }
.nav-link.is-active { color: var(--ink-950); background: var(--ink-050); font-weight: 500; }

.nav-spacer { flex: 1; }
.nav-cta-row { display: flex; gap: 8px; align-items: center; }
.nav-cta-row .btn { padding: 9px 16px; font-size: 0.875rem; }

.nav-hamburger { display: none; padding: 8px; border-radius: var(--r-3); transition: background var(--dur-base) var(--ease); }
.nav-hamburger:hover { background: var(--ink-050); }
.nav-hamburger .icon-close { display: none; }
.nav.is-mobile-open .nav-hamburger .icon-open  { display: none; }
.nav.is-mobile-open .nav-hamburger .icon-close { display: inline-block; }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--canvas);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  padding: 8px var(--gutter) 18px;
  max-height: calc(100dvh - 52px);
  overflow-y: auto;
  z-index: 49;
  box-shadow: 0 12px 24px -16px rgba(11,13,16,0.18);
}
.nav.is-mobile-open .nav-mobile { display: block; }
/* Plain text rows + accordion triggers — but NOT the CTA buttons. */
.nav-mobile a:not(.btn), .nav-mobile button:not(.btn) {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-100);
}
.nav-mobile .mobile-cta-row { display: flex; gap: 8px; margin-top: 18px; }
.nav-mobile .mobile-cta-row .btn { flex: 1; justify-content: center; padding-block: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-cta-row .btn-secondary { display: none; }
}

/* ---------- NAV MEGA-MENU ---------- */
.nav-item { position: relative; display: inline-flex; }
.nav-item > .nav-link { cursor: pointer; background: none; border: 0; font-family: inherit; }
.nav-item .chev { transition: transform var(--dur-base) var(--ease); }
.nav-item.is-open > .nav-link { color: var(--ink-950); background: var(--ink-050); }
.nav-item.is-open .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-4);
  box-shadow: 0 1px 0 rgba(11,13,16,0.02), 0 24px 48px -24px rgba(11,13,16,0.28);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility 0s linear var(--dur-base);
}
.mega.mega-right { left: auto; right: 0; }
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility 0s;
}
/* Invisible hover bridge so the menu doesn't close in the gap */
.mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }

.mega-inner { display: flex; gap: 24px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 232px; }
.mega-col-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-400); padding: 0 10px 8px;
}
.mega-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 10px; border-radius: var(--r-3);
  transition: background var(--dur-base) var(--ease);
}
.mega-link:hover { background: var(--ink-050); }
.mega-ic {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-4); background: var(--ink-050); color: var(--ink-700);
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.mega-link:hover .mega-ic { background: var(--brand-050); color: var(--brand-700); }
.mega-link:hover .mega-txt strong { color: var(--brand-700); }
.mega-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.mega-txt strong { font-size: 0.9375rem; font-weight: 600; color: var(--ink-950); }
.mega-txt em { font-style: normal; font-size: 0.8125rem; color: var(--ink-500); }

.mega-feature {
  display: flex; flex-direction: column; gap: 4px;
  width: 256px; padding-left: 20px; margin-left: 4px;
  border-left: 1px solid var(--ink-100);
}
.mega-feature-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-4); padding: 18px; margin-bottom: 6px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.mega-feature-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 12px 24px -18px rgba(20,41,107,0.35);
}
.mega-feature-card .label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-700);
}
.mega-feature-card strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--ink-950); }
.mega-feature-card .desc { font-size: 0.8125rem; color: var(--ink-600); line-height: 1.5; }
.mega-feature-card .btn-link { color: var(--brand-700); border-bottom-color: var(--brand-300); align-self: flex-start; margin-top: 4px; }
.mega-feature-card:hover .btn-link { border-bottom-color: var(--brand-700); }
.mega-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-3);
  font-size: 0.875rem; font-weight: 500; color: var(--ink-700);
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.mega-mini:hover { background: var(--ink-050); color: var(--brand-700); }
.mega-mini svg { color: var(--ink-400); transition: color var(--dur-base) var(--ease); }
.mega-mini:hover svg { color: var(--brand-700); }

/* ---------- MOBILE ACCORDION ---------- */
.m-acc { border-bottom: 1px solid var(--ink-100); }
.m-acc-trigger {
  display: flex !important; align-items: center; justify-content: space-between;
  background: none; border: 0 !important; cursor: pointer;
}
.m-acc-trigger .chev { transition: transform var(--dur-base) var(--ease); color: var(--ink-400); }
.m-acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.m-acc-body { padding: 0 0 10px 12px; display: flex; flex-direction: column; }
.m-acc-body[hidden] { display: none; }
.m-acc-body a {
  border-bottom: 0 !important; padding: 8px 0 !important;
  font-size: 0.9375rem !important; color: var(--ink-600) !important;
}

/* ---------- SOLUTIONS SECTION ---------- */
.sol-by-type .module { display: flex; flex-direction: column; }
.sol-by-type .module .btn-link { margin-top: 14px; align-self: flex-start; }
.sol-roles { margin-top: var(--space-8); }
.sol-roles-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 16px;
}
.sol-role-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ink-100); border: 1px solid var(--ink-100); border-radius: var(--r-4); overflow: hidden;
}
.sol-role { background: var(--paper); padding: 20px; }
.sol-role h4 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-950); margin-bottom: 6px; }
.sol-role p { font-size: 0.875rem; color: var(--ink-500); line-height: 1.5; }

@media (max-width: 1080px) {
  .mega-feature { display: none; }
}
@media (max-width: 760px) {
  .sol-role-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- HERO ---------- */
.hero { padding-block: var(--space-16) var(--space-12); }
@media (max-width: 760px) { .hero { padding-block: var(--space-12) var(--space-8); } }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .hero-ctas,
.hero .hero-meta,
.hero .annotation {
  opacity: 0;
  animation: heroReveal 0.8s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: 0ms; }
.hero h1 { animation-delay: 100ms; }
.hero .lede { animation-delay: 200ms; }
.hero .hero-ctas { animation-delay: 300ms; }
.hero .hero-meta { animation-delay: 400ms; }
.hero .annotation { animation-delay: 500ms; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.hero .dash-chart-bars .bar .fill {
  transform-origin: bottom;
  transform: scaleY(0);
  animation: barGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}
.hero-grid > div:nth-child(2) {
  max-width: 460px;
  margin-left: auto;
  width: 100%;
  opacity: 0;
  animation: heroReveal 1s var(--ease) 0.2s forwards;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-grid > div:nth-child(2) { max-width: 100%; margin-left: 0; }
}

.hero h1 { color: var(--ink-950); margin-bottom: var(--space-4); font-weight: 600; }
.hero .lede { max-width: 56ch; margin-bottom: var(--space-6); font-size: 1.0625rem; line-height: 1.55; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: var(--space-6); }
.hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--ink-500);
  padding-top: var(--space-4); border-top: 1px solid var(--ink-100);
}
@media (max-width: 540px) {
  .hero-meta { gap: 12px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}
.hero-meta strong { color: var(--ink-800); }
.hero-meta a { color: var(--brand-700); border-bottom: 1px solid var(--brand-100); }

/* Product screenshot frame */
.hero-grid > div:nth-child(2) { perspective: 1600px; perspective-origin: 50% 30%; }
.screenshot {
  --rx: 6deg;
  --ry: -8deg;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  box-shadow:
    0 1px 2px rgba(11,13,16,0.04),
    0 12px 28px -8px rgba(11,13,16,0.12),
    0 40px 80px -20px rgba(11,13,16,0.28),
    -16px 24px 48px -24px rgba(46,79,191,0.18);
  transition: transform 0.1s ease-out;
  will-change: transform;
}
@media (max-width: 900px) {
  .hero-grid > div:nth-child(2) { perspective: none; }
  .screenshot { transform: none; }
}

.screenshot-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--ink-050);
  border-bottom: 1px solid var(--ink-100);
}
.screenshot-dots { display: flex; gap: 6px; margin-right: 8px; }
.screenshot-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200); }
.screenshot-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: 4px;
  padding: 4px 10px;
  text-align: center;
}

/* Dashboard mock (inside screenshot) */
.dash {
  display: grid;
  grid-template-columns: 132px 1fr;
  font-size: 11px;
}
.dash-side {
  background: #FBFBF9;
  border-right: 1px solid var(--ink-100);
  padding: 12px 8px;
}
.dash-side-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 0 8px;
  margin: 10px 0 6px;
}
.dash-side-item {
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--ink-600);
  font-size: 11px;
  display: flex; align-items: center; gap: 8px;
}
.dash-side-item.active { background: var(--ink-050); color: var(--ink-950); font-weight: 500; }
.dash-side-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-200); }
.dash-side-item.active .dot { background: var(--brand-500); }

.dash-main { padding: 12px 14px; min-width: 0; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink-100); margin-bottom: 14px;
}
.dash-title { font-size: 13px; font-weight: 600; color: var(--ink-950); }
.dash-sub { font-size: 10px; color: var(--ink-500); margin-top: 2px; }
.dash-filter { display: flex; gap: 6px; }
.dash-chip { font-size: 10px; padding: 3px 8px; border: 1px solid var(--ink-200); border-radius: 4px; color: var(--ink-600); }
.dash-chip.active { background: var(--ink-950); color: #fff; border-color: var(--ink-950); }

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.dash-kpi {
  border: 1px solid var(--ink-100); border-radius: 6px; padding: 8px;
  background: var(--paper);
  min-width: 0;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.dash-kpi:hover { border-color: var(--ink-300); box-shadow: 0 1px 2px rgba(11,13,16,0.06); }
.dash-kpi-lbl { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }
.dash-kpi-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-950); margin-top: 3px; letter-spacing: -0.02em; }
.dash-kpi-delta { font-size: 9px; color: var(--success); margin-top: 2px; font-family: var(--font-mono); }
.dash-kpi-delta.down { color: var(--danger); }

.dash-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
@media (max-width: 540px) {
  .dash { grid-template-columns: 1fr; font-size: 10px; }
  .dash-side { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
}
.dash-card {
  border: 1px solid var(--ink-100); border-radius: 6px; padding: 10px;
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}
.dash-card h4 { font-size: 11px; font-weight: 600; color: var(--ink-950); margin-bottom: 8px; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 10px; table-layout: fixed; }
.dash-table th { text-align: left; font-weight: 500; color: var(--ink-500); padding: 3px 4px 5px; font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--ink-100); }
.dash-table th:first-child { width: 38%; }
.dash-table th:nth-child(2) { width: 22%; }
.dash-table th:last-child   { width: 40%; }
.dash-table td { padding: 4px; border-bottom: 1px solid var(--ink-050); color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .num { font-family: var(--font-mono); text-align: right; color: var(--ink-950); white-space: nowrap; }

.dash-chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; padding-top: 6px; }
.dash-chart-bars .bar {
  flex: 1; background: var(--ink-100); border-radius: 2px 2px 0 0;
  position: relative;
}
.dash-chart-bars .bar .fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--brand-500); border-radius: 2px 2px 0 0;
}
.dash-chart-x { display: flex; justify-content: space-between; font-size: 8px; color: var(--ink-400); margin-top: 4px; font-family: var(--font-mono); }

/* Annotation pin */
.annotation {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--ink-600);
  margin-top: var(--space-4);
}
.annotation::before {
  content: ""; width: 6px; height: 6px; background: var(--brand-500); border-radius: 50%;
}

/* ---------- LOGO WALL ---------- */
.logos { padding-block: var(--space-8); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.logos-label {
  text-align: center; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500);
  margin-bottom: var(--space-6);
}
.logo-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
@media (max-width: 540px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-item {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.01em;
  height: 36px;
  opacity: 0.85;
  transition: color var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.logo-item:hover { color: var(--ink-950); opacity: 1; }

/* ---------- WHY SECTION (problem-led rows) ---------- */
.why-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-8);
}
@media (max-width: 760px) { .why-row { gap: var(--space-6); padding-block: var(--space-6); } }
.why-row + .why-row { border-top: 1px solid var(--ink-100); }
.why-row.flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .why-row, .why-row.flip > :first-child { grid-template-columns: 1fr; order: unset; }
}
.why-kpi {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: var(--space-6);
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-4);
}
.why-kpi-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--ink-950); letter-spacing: -0.02em; }
.why-kpi-lbl { font-size: 0.8125rem; color: var(--ink-500); }

/* Mini product panels for "why" rows */
.why-row { perspective: 1500px; perspective-origin: 50% 40%; transform-style: preserve-3d; }
.why-row > div { transform-style: preserve-3d; }
.panel {
  --rx: 4deg;
  --ry: -6deg;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  padding: 20px;
  box-shadow:
    0 1px 2px rgba(11,13,16,0.03),
    0 18px 40px -20px rgba(11,13,16,0.12);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  will-change: transform;
}
.panel:hover {
  border-color: var(--ink-300);
  box-shadow:
    0 1px 2px rgba(11,13,16,0.04),
    0 28px 56px -20px rgba(11,13,16,0.20),
    -10px 20px 40px -24px rgba(46,79,191,0.14);
}
.why-row.flip .panel { --ry: 6deg; }
@media (max-width: 1024px) {
  .why-row { perspective: none; }
  .panel { transform: none !important; }
}

.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-100); }
.panel-title { font-size: 0.8125rem; font-weight: 600; color: var(--ink-950); }
.panel-sub { font-size: 0.75rem; color: var(--ink-500); }

.fee-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--ink-050); font-size: 0.8125rem;
}
.fee-row:last-child { border-bottom: 0; }
.fee-row .who { flex: 1; color: var(--ink-800); }
.fee-row .class { color: var(--ink-500); width: 50px; }
.fee-row .amt { font-family: var(--font-mono); color: var(--ink-950); width: 70px; text-align: right; }
.fee-row .st { font-size: 0.6875rem; padding: 2px 8px; border-radius: 3px; font-weight: 500; width: 64px; text-align: center; }
.fee-row .st.paid { background: #DCFCE7; color: #166534; }
.fee-row .st.due { background: #FEF3C7; color: #92400E; }
.fee-row .st.snt { background: var(--brand-050); color: var(--brand-700); }

/* Attendance grid */
.att-grid {
  display: grid; grid-template-columns: 80px repeat(7, 1fr); gap: 4px;
  font-size: 0.6875rem;
}
.att-cell { aspect-ratio: 1; border-radius: 3px; background: var(--ink-050); display: grid; place-items: center; color: var(--ink-400); }
.att-cell.p { background: #DCFCE7; color: #166534; }
.att-cell.a { background: #FEE2E2; color: #B91C1C; }
.att-cell.h { background: var(--ink-050); color: var(--ink-300); }
.att-name { font-size: 0.75rem; color: var(--ink-700); display: flex; align-items: center; padding: 4px 0; }
.att-head { font-size: 0.625rem; color: var(--ink-400); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding-bottom: 2px; }

/* Report card */
.rc { font-size: 0.8125rem; }
.rc-line { display: grid; grid-template-columns: 1fr 60px 60px 40px; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ink-050); align-items: center; }
.rc-line head { font-size: 0.6875rem; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }
.rc-line head > * { font-weight: 500; }
.rc-line .sub { color: var(--ink-800); }
.rc-line .num { font-family: var(--font-mono); text-align: right; color: var(--ink-900); }
.rc-line .grade { text-align: right; font-family: var(--font-mono); color: var(--ink-950); font-weight: 600; }

/* ---------- MODULE INDEX ---------- */
.modules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink-100);
  border-left: 1px solid var(--ink-100);
}
@media (max-width: 1024px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .modules { grid-template-columns: 1fr; } }
.module {
  padding: 20px;
  border-right: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: var(--paper);
  position: relative;
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
@media (max-width: 540px) { .module { padding: 16px; } }
.module:hover {
  background: var(--ink-050);
  box-shadow: inset 0 0 0 1px var(--ink-200);
  z-index: 1;
}
.module:hover .module-icon { background: var(--brand-050); color: var(--brand-700); }
.module::after {
  content: "→";
  position: absolute;
  top: 22px; right: 22px;
  font-size: 16px;
  color: var(--ink-300);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  font-family: var(--font-mono);
}
.module:hover::after { opacity: 1; transform: translateX(0); color: var(--brand-700); }
.module-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink-050);
  border-radius: var(--r-4);
  color: var(--ink-700);
  margin-bottom: 16px;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.module h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-950); margin-bottom: 6px; letter-spacing: -0.005em; }
.module p { font-size: 0.8125rem; color: var(--ink-500); line-height: 1.5; }

/* ---------- AI SECTION ---------- */
.ai-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); } }
.ai-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-6);
  padding: 24px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.ai-card:hover {
  border-color: var(--ink-300);
  box-shadow: 0 1px 2px rgba(11,13,16,0.04), 0 8px 24px -12px rgba(11,13,16,0.12);
}
.ai-card .label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-3);
}
.ai-card h3 { font-size: 1.0625rem; color: var(--ink-950); margin-bottom: 10px; font-weight: 600; }
.ai-card p { font-size: 0.875rem; color: var(--ink-600); margin-bottom: 14px; line-height: 1.5; }
.ai-handoff {
  font-size: 0.75rem;
  color: var(--ink-500);
  padding-top: 12px;
  border-top: 1px dashed var(--ink-200);
  font-family: var(--font-mono);
}
.ai-handoff strong { color: var(--ink-800); font-weight: 500; }

.transcript { background: var(--ink-050); border-radius: 6px; padding: 12px; font-size: 0.75rem; margin-bottom: 14px; }
.transcript-line { padding: 4px 0; display: flex; gap: 10px; }
.transcript-line .who { font-family: var(--font-mono); color: var(--ink-500); width: 70px; flex-shrink: 0; font-size: 0.6875rem; }
.transcript-line .what { color: var(--ink-800); }

/* ---------- TRUST / SECURITY ---------- */
.trust-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); align-items: start;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.spec {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  overflow: hidden;
}
.spec-row {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.875rem;
  align-items: start;
}
@media (max-width: 540px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
  .spec-row .k { font-size: 0.75rem; }
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--ink-500); font-size: 0.8125rem; }
.spec-row .v { color: var(--ink-800); font-family: var(--font-mono); font-size: 0.8125rem; }

.compliance-wordmarks {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--space-6);
}
.compliance-wordmarks span {
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-3);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--paper);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
  transition: all var(--dur-base) var(--ease);
}
.compliance-wordmarks span:hover { border-color: var(--ink-400); color: var(--ink-950); background: var(--ink-050); }

.trust-links { margin-top: var(--space-6); display: flex; gap: 16px; flex-wrap: wrap; }
.trust-links a {
  font-size: 0.875rem;
  color: var(--brand-700);
  border-bottom: 1px solid var(--brand-100);
  padding-bottom: 1px;
  transition: border-color var(--dur-base) var(--ease);
}
.trust-links a:hover { border-color: var(--brand-500); }

/* ---------- CASE STUDY ---------- */
.case-feature {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  margin-bottom: var(--space-8);
}
@media (max-width: 900px) { .case-feature { grid-template-columns: 1fr; } }
.case-quote { padding: 32px; }
@media (max-width: 760px) { .case-quote { padding: 22px; } .case-quote blockquote { font-size: 1.125rem; } }
.case-quote .school {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500);
  margin-bottom: var(--space-4);
}
.case-quote blockquote {
  font-size: 1.1875rem; line-height: 1.5;
  color: var(--ink-950); font-weight: 500; letter-spacing: -0.008em;
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.case-quote .cite {
  font-size: 0.875rem; color: var(--ink-600);
}
.case-quote .cite strong { color: var(--ink-900); font-weight: 600; }
.case-stats {
  background: var(--ink-950); color: #fff;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--space-6);
}
@media (max-width: 760px) { .case-stats { padding: 22px; } .case-stats .stat-num { font-size: 1.75rem; } }
.case-stats .stat-num {
  font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; color: #fff;
}
.case-stats .stat-lbl { font-size: 0.8125rem; color: var(--ink-300); margin-top: 4px; }
.case-stats hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); }

.case-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
@media (max-width: 900px) { .case-tiles { grid-template-columns: 1fr; } }
.case-tile {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-4);
  padding: 20px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.case-tile:hover {
  border-color: var(--ink-300);
  box-shadow: 0 1px 2px rgba(11,13,16,0.04), 0 8px 20px -12px rgba(11,13,16,0.14);
  transform: translateY(-2px);
}
.case-tile:hover h4 { color: var(--brand-700); }
.case-tile .school { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.case-tile h4 { font-size: 1rem; color: var(--ink-950); font-weight: 600; margin-bottom: 12px; line-height: 1.3; transition: color var(--dur-base) var(--ease); }
.case-tile .meta { font-size: 0.8125rem; color: var(--ink-500); padding-top: 12px; border-top: 1px solid var(--ink-100); }

/* ---------- PRICING ---------- */
.pricing-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  margin: var(--space-8) auto 0;
  padding: 4px;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  isolation: isolate;
}
.pricing-toggle::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px;
  left: 4px;
  width: var(--pill-w, 0px);
  transform: translateX(var(--pill-x, 0px));
  background: var(--brand-500);
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(46,79,191,0.4);
  transition: transform var(--dur-base) var(--ease), width var(--dur-base) var(--ease);
}
.pricing-toggle button {
  position: relative; z-index: 1;
  padding: 8px 24px; font-size: 0.875rem; color: var(--ink-600);
  font-weight: 600;
  border-radius: 999px;
  transition: color var(--dur-base) var(--ease);
}
.pricing-toggle button.active { color: #fff; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: stretch;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  padding: 32px;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.pricing-card:hover {
  border-color: var(--ink-300);
  box-shadow: 0 1px 2px rgba(11,13,16,0.04), 0 24px 48px -24px rgba(11,13,16,0.12);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 1px var(--brand-300), 0 12px 24px -16px rgba(46,79,191,0.15);
}
.pricing-card.popular:hover {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 1px var(--brand-500), 0 28px 56px -20px rgba(11,13,16,0.20);
}

.pricing-card.featured {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: var(--ink-300);
}
.pricing-card.featured .name, .pricing-card.featured .price { color: #fff; }
.pricing-card.featured .btn-secondary { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }
.pricing-card.featured .btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }

.pricing-card-head { margin-bottom: 24px; }
.pricing-card-head .name { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-700); font-weight: 600; margin-bottom: 12px; }
.pricing-card.featured .name { color: var(--brand-300); }

.pricing-card-head .price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.pricing-card-head .price { font-family: var(--font-mono); font-size: 2rem; color: var(--ink-950); font-weight: 600; letter-spacing: -0.02em; }
.pricing-card-head .unit { font-size: 0.8125rem; color: var(--ink-500); }
.pricing-card-head .desc { font-size: 0.875rem; color: var(--ink-600); line-height: 1.5; }
.pricing-card.featured .desc { color: var(--ink-400); }

.pricing-card-body { flex: 1; margin-bottom: 32px; }
.pricing-card .features { display: flex; flex-direction: column; gap: 12px; }
.pricing-card .features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--ink-700); }
.pricing-card.featured .features li { color: var(--ink-200); }
.pricing-card .features li.off { color: var(--ink-400); }
.pricing-card .features .check { color: var(--brand-500); font-weight: 600; flex-shrink: 0; }
.pricing-card.featured .features .check { color: var(--brand-300); }
.pricing-card .features .dash { color: var(--ink-300); flex-shrink: 0; }

.pricing-card-foot .btn { width: 100%; justify-content: center; }

.tier-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand-700);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(30,58,138,0.4);
}

.pricing-disclaimers { margin-top: var(--space-8); font-size: 0.8125rem; color: var(--ink-500); display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--space-8);
  margin-top: var(--space-6);
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-4); } }

.faq-cats {
  display: flex; flex-direction: column;
  gap: 2px;
  position: sticky; top: 96px; height: fit-content;
}
@media (max-width: 900px) { .faq-cats { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } }

.faq-cat {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--ink-500);
  border-radius: var(--r-3);
  border-left: 2px solid transparent;
  transition: all var(--dur-base) var(--ease);
}
@media (min-width: 901px) { .faq-cat { padding-left: 14px; } }
.faq-cat.active { color: var(--ink-950); background: var(--paper); border-left-color: var(--ink-950); font-weight: 500; }

.faq-items > * + * { border-top: 1px solid var(--ink-100); }
.faq-item { padding: 6px 0; }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-950);
  letter-spacing: -0.005em;
  transition: color var(--dur-base) var(--ease);
}
.faq-q:hover { color: var(--brand-700); }
.faq-icon { width: 16px; height: 16px; position: relative; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px;
  background: var(--ink-700); transition: transform var(--dur-base) var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 0 16px; max-width: 60ch; font-size: 0.9375rem; color: var(--ink-600); }

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

.contact-copy h2 { color: var(--ink-950); }
.contact-trust {
  margin-top: var(--space-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.contact-trust li {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-4);
  padding: 14px 16px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.contact-trust li:hover { border-color: var(--ink-300); box-shadow: 0 1px 2px rgba(11,13,16,0.04); }
.contact-trust .k {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}
.contact-trust .v { font-size: 0.75rem; color: var(--ink-500); margin-top: 4px; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(11,13,16,0.04), 0 24px 48px -24px rgba(11,13,16,0.12);
}
@media (max-width: 540px) {
  .contact-card { padding: 18px; }
  .contact-trust { grid-template-columns: 1fr; }
}
.contact-card-head { padding-bottom: 18px; border-bottom: 1px solid var(--ink-100); margin-bottom: 18px; }
.contact-card-title { font-size: 1rem; font-weight: 600; color: var(--ink-950); }
.contact-card-sub { font-size: 0.8125rem; color: var(--ink-500); margin-top: 2px; font-family: var(--font-mono); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; display: block; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); }
.form-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-4);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.form-input::placeholder { color: var(--ink-400); }
.form-input:hover { border-color: var(--ink-300); }
.form-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-050);
}
.form-textarea { min-height: 96px; resize: vertical; font-family: inherit; }
.form-select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6470' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 12px 18px;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
#cf-btn-spinner { display: none; animation: spin 0.8s linear infinite; margin-left: 8px; vertical-align: middle; }

.form-msg {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-4);
  font-size: 0.875rem;
}
.form-msg.form-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.form-msg.form-success svg { color: #16A34A; flex-shrink: 0; margin-top: 1px; }
.form-msg.form-success strong { color: #14532D; font-weight: 600; }
.form-msg.form-success .sub { font-size: 0.8125rem; color: #166534; margin-top: 2px; }
.form-msg.form-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.form-msg.form-error a { color: #991B1B; text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-6);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: var(--space-6); } }
@media (max-width: 540px) { .cta-actions .btn { width: 100%; justify-content: center; } }
.cta h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--ink-950); margin-bottom: 8px; font-weight: 500; letter-spacing: -0.01em; }
.cta p { color: var(--ink-600); max-width: 50ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-actions .phone { font-size: 0.8125rem; color: var(--ink-500); }
.cta-actions .phone strong { font-family: var(--font-mono); color: var(--ink-900); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink-950);
  color: var(--ink-300);
  padding-block: var(--space-12) var(--space-8);
  margin-top: var(--space-12);
}
footer .container { color: inherit; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (max-width: 1024px) { .foot-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .nav-logo-mark { background: #fff; }
.foot-brand .nav-logo-mark::after { background: var(--ink-950); }
.foot-brand p { color: var(--ink-400); margin-top: 12px; max-width: 28ch; font-size: 0.875rem; }
.foot-col h5 { color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; text-transform: uppercase; }
.foot-col li { padding: 4px 0; }
.foot-col a { color: var(--ink-300); font-size: 0.875rem; transition: color var(--dur-base) var(--ease); }
.foot-col a:hover { color: #fff; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--ink-400);
}
.foot-bottom .meta { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); }
.foot-compliance {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.foot-compliance span,
.foot-compliance a {
  font-family: var(--font-mono); font-size: 0.6875rem;
  padding: 4px 8px; border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; color: var(--ink-300);
  transition: color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.foot-compliance a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-in > *:nth-child(1)  { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2)  { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(3)  { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(4)  { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(5)  { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(6)  { transition-delay: 400ms; }
.reveal-stagger.is-in > *:nth-child(7)  { transition-delay: 480ms; }
.reveal-stagger.is-in > *:nth-child(8)  { transition-delay: 560ms; }
.reveal-stagger.is-in > *:nth-child(9)  { transition-delay: 640ms; }
.reveal-stagger.is-in > *:nth-child(10) { transition-delay: 720ms; }
.reveal-stagger.is-in > *:nth-child(11) { transition-delay: 800ms; }
.reveal-stagger.is-in > *:nth-child(12) { transition-delay: 880ms; }

/* ---------- Helpers ---------- */
.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.section-head.center { text-align: center; margin-inline: auto; }
@media (max-width: 760px) { .section-head { margin-bottom: var(--space-6); } }
.section-head .body-l { margin-top: var(--space-3); }
.row-flex { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.divider { height: 1px; background: var(--ink-100); }

/* ============================================================
   POLISH PASS — additive refinements only (no structural change)
   ============================================================ */

/* Brand logo mark — clean transparent render (replaces the old CSS-drawn box
   that put the transparent PNG on a dark square). */
.nav-logo-img { height: 24px; width: auto; display: block; }
footer .nav-logo .nav-logo-img { height: 22px; }

/* Premium text selection. */
::selection { background: var(--brand-100); color: var(--brand-900); }

/* Thin, modern scrollbar. */
* { scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 8px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* Subtle inset top-highlight on the primary button (premium sheen) — kept on hover. */
.btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 18px -8px rgba(30,58,138,0.45); }

/* Tabular figures so stats line up crisply (keeps the existing stylistic sets). */
.hero-meta strong, .dash-kpi-val { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "ss01", "cv11", "cv02"; }

/* Avoid typographic orphans in running text. */
p { text-wrap: pretty; }

/* ============================================================
   MOBILE HARDENING
   ============================================================ */

/* `background-attachment: fixed` janks badly on iOS Safari — pin it to
   scroll on touch/small screens so the dotted backdrop stays smooth. */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}

@media (max-width: 600px) {
  /* Tighter nav so the logo, CTA and hamburger never crowd on a phone. */
  .nav-inner { gap: 12px; padding: 12px var(--gutter); }
  /* The mobile menu already carries the CTAs — drop the inline demo button
     to give the logo room on narrow devices. */
  .nav-cta-row { display: none; }

  /* Full-width, comfortably tappable hero CTAs (min 44px target). */
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; flex: none; justify-content: center; padding-block: 12px; }

  /* Give headings and lede a touch more breathing room. */
  .hero .lede { font-size: 1rem; }
  .body-l { font-size: 1rem; }

  /* Don't let the pricing toggle or chips overflow. */
  .pricing-toggle { width: 100%; }
  .pricing-toggle button { flex: 1; }
}

/* Guarantee tap targets across the nav + interactive chips on touch. */
@media (hover: none) and (pointer: coarse) {
  .nav-mobile a, .nav-mobile .m-acc-trigger { min-height: 44px; }
  .faq-q { min-height: 44px; }
}

/* ============================================================
   LEGAL PAGES (privacy, terms, refund, cookie, dpa, etc.)
   ============================================================ */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: var(--space-12) var(--gutter) var(--space-16); }

/* Intro block — sits on the dotted canvas, exactly like a landing section head */
.legal-eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: var(--space-3);
}
.legal-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--brand-500); margin-right: 10px; }
.legal-wrap h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.022em;
  color: var(--ink-950); font-weight: 600; margin-bottom: 10px;
}
.legal-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-500); margin-bottom: var(--space-6); }

.legal-notice {
  background: var(--accent-100); border: 1px solid #E8C99A; color: var(--accent-700);
  border-radius: var(--r-4); padding: 14px 16px; font-size: 0.875rem; line-height: 1.55;
  margin-bottom: var(--space-8);
}
.legal-notice strong { color: var(--accent-700); }

/* TOC — same paper card surface as landing cards (.ai-card / .spec) */
.legal-toc {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-6);
  padding: 22px 26px; margin-bottom: var(--space-6);
  box-shadow: 0 1px 2px rgba(11,13,16,0.03), 0 18px 40px -28px rgba(11,13,16,0.12);
}
.legal-toc h2 { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); margin-bottom: 14px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 8px; break-inside: avoid; color: var(--ink-400); }
.legal-toc a { color: var(--brand-700); font-size: 0.9375rem; }
.legal-toc a:hover { text-decoration: underline; }

/* Body — framed on a paper card, content divided by hairlines like the landing */
.legal-body {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-6);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(11,13,16,0.03), 0 18px 40px -28px rgba(11,13,16,0.12);
}
.legal-body h2 {
  font-size: 1.1875rem; color: var(--ink-950); font-weight: 600; letter-spacing: -0.01em;
  margin: 34px 0 12px; padding-top: 24px; border-top: 1px solid var(--ink-100); scroll-margin-top: 88px;
}
.legal-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.0625rem; color: var(--ink-950); font-weight: 600; margin: 22px 0 8px; }
.legal-body p { color: var(--ink-600); margin-bottom: 14px; line-height: 1.7; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 16px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { color: var(--ink-600); margin-bottom: 7px; line-height: 1.65; }
.legal-body a { color: var(--brand-700); text-decoration: none; border-bottom: 1px solid var(--brand-100); transition: border-color var(--dur-base) var(--ease); }
.legal-body a:hover { border-bottom-color: var(--brand-500); }
.legal-body strong { color: var(--ink-900); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.875rem; }
.legal-body th, .legal-body td { border: 1px solid var(--ink-100); padding: 11px 13px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--ink-050); color: var(--ink-800); font-weight: 600; }
.legal-body tbody tr:nth-child(even) td { background: #FCFCFB; }

.legal-ph { background: var(--brand-050); color: var(--brand-700); padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.85em; }

/* Status page */
.status-banner {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink-950);
  padding: 14px 16px; margin-bottom: 24px;
  background: #ECFDF3; border: 1px solid #ABEFC6; border-radius: var(--r-4);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-300); flex: none; }
.status-dot.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(21,128,61,0.18); }
.status-pill { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; }
.status-pill.ok { color: var(--success); }

@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
