/* ============================================================
   Tim's SEO Lab — Design System
   Single stylesheet for the entire site.
   Tokens → Base → Utilities → Components → Sections → Pages
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink (dark) */
  --ink-950: #060b16;
  --ink-900: #0a1220;
  --ink-800: #101b30;
  --ink-700: #182642;
  --ink-600: #223456;

  /* Text on dark */
  --text-hi: #f4f7fc;
  --text-mid: #c3cddd;
  --text-low: #8b9ab8;

  /* Paper (light) */
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --paper-3: #eef2f8;
  --line: #e5eaf2;
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Body text on light */
  --body-c: #3d4a5f;
  --muted: #66758c;

  /* Brand */
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;

  /* Support */
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --teal-500: #14b8a6;
  --green-500: #10b981;
  --green-600: #059669;
  --amber-500: #f59e0b;
  --red-500: #ef4444;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 18, 32, 0.06), 0 1px 6px rgba(10, 18, 32, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 18, 32, 0.08), 0 2px 6px rgba(10, 18, 32, 0.05);
  --shadow-lg: 0 18px 44px rgba(10, 18, 32, 0.14), 0 4px 12px rgba(10, 18, 32, 0.06);
  --shadow-xl: 0 32px 80px rgba(10, 18, 32, 0.22), 0 8px 24px rgba(10, 18, 32, 0.1);
  --ring: 0 0 0 4px rgba(99, 102, 241, 0.28);

  /* Type */
  --font-head: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;

  --fs-h1: clamp(2.35rem, 1.55rem + 3.3vw, 4.1rem);
  --fs-h1-page: clamp(2.1rem, 1.45rem + 2.7vw, 3.45rem);
  --fs-h2: clamp(1.8rem, 1.28rem + 2.1vw, 2.85rem);
  --fs-h3: clamp(1.18rem, 1.06rem + 0.55vw, 1.42rem);
  --fs-lead: clamp(1.04rem, 0.99rem + 0.4vw, 1.24rem);

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover { color: var(--brand-700); }

ul { padding: 0; margin: 0; list-style: none; }

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

::selection {
  background: var(--brand-500);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Layout utilities ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: 860px; }

.section {
  padding-block: clamp(72px, 9vw, 118px);
}

.section--alt { background: var(--paper-2); }

.section--dark {
  background:
    radial-gradient(1000px 460px at 85% -10%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--ink-900);
  color: var(--text-mid);
}

.section--dark h2,
.section--dark h3 { color: var(--text-hi); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 72px);
  text-align: center;
}

.section-head--left { margin-inline: 0; text-align: left; }

.section-head p {
  font-size: var(--fs-lead);
  color: var(--muted);
  margin-bottom: 0;
}

.section--dark .section-head p { color: var(--text-low); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}

.section--dark .eyebrow,
.hero .eyebrow { color: var(--brand-300); }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 17px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 22px rgba(79, 70, 229, 0.32);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 30px rgba(79, 70, 229, 0.42);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hi);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--outline {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  border-color: #cdd7e5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
}

.btn--sm { padding: 12px 20px; font-size: 0.92rem; }
.btn--lg { padding: 20px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-600);
  font-weight: 600;
  border-radius: 0;
}

.btn--link:hover { color: var(--brand-700); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(10, 18, 32, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

.brand:hover { color: #fff; }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.4));
}

.brand-word span {
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header.is-solid .brand { color: var(--ink-900); }

.main-nav { margin-left: auto; }

.main-nav > ul {
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.main-nav a[aria-current="page"] {
  color: var(--brand-300);
  font-weight: 600;
}

/* Services hover dropdown */
.main-nav .has-dropdown { position: relative; }

.main-nav .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav .has-dropdown > a .dd-caret {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.main-nav .has-dropdown:hover > a .dd-caret,
.main-nav .has-dropdown:focus-within > a .dd-caret {
  transform: rotate(180deg);
}

.dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 120;
}

.dropdown::before {
  /* invisible bridge so the 10px gap doesn't close the menu while moving the mouse */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink-900);
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.35;
}

.dropdown a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-400);
  flex: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.dropdown a:hover {
  background: var(--brand-100);
  color: var(--brand-700);
}

.dropdown a:hover::before {
  background: var(--brand-600);
  transform: scale(1.25);
}

.dropdown li + li { margin-top: 2px; }

.site-header.is-solid .main-nav a { color: var(--muted); }
.site-header.is-solid .main-nav a:hover {
  color: var(--ink-900);
  background: var(--paper-3);
}
.site-header.is-solid .main-nav a[aria-current="page"] {
  color: var(--brand-600);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header.is-solid .btn--ghost {
  color: var(--ink-900);
  border-color: #d4dce8;
  background: var(--paper);
}
.site-header.is-solid .btn--ghost:hover { border-color: #b9c6d9; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.site-header.is-solid .nav-toggle {
  background: var(--paper-3);
  border-color: var(--line);
}
.site-header.is-solid .nav-toggle span { background: var(--ink-900); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(6, 11, 22, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 28px 24px 48px;
  overflow-y: auto;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu ul li + li { border-top: 1px solid var(--line-dark); }

.mobile-menu a.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-hi);
}

.mobile-menu a.mnav-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-low);
}

.mobile-menu a.mnav-link[aria-current="page"] { color: var(--brand-400); }

.mobile-menu .mobile-cta {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

body.menu-open { overflow: hidden; }

/* ---------- 6. Hero (shared dark top band) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(99, 102, 241, 0.2), transparent 62%),
    radial-gradient(900px 560px at -8% 108%, rgba(59, 130, 246, 0.16), transparent 62%),
    var(--ink-950);
  color: var(--text-mid);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 620px at 60% 8%, #000 30%, transparent 75%);
  mask-image: radial-gradient(900px 620px at 60% 8%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 96px));
  padding-bottom: clamp(72px, 10vw, 120px);
}

.hero h1 {
  color: var(--text-hi);
  max-width: 15ch;
}

.hero h1 .grad {
  background: linear-gradient(92deg, var(--brand-300) 5%, var(--brand-500) 60%, var(--brand-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-sub {
  font-size: var(--fs-lead);
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-low);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--green-500);
  flex: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero two-column (home) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

/* Page hero (subpages) */
.hero--page { text-align: left; }

.hero--page .hero-inner {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero--page h1 { max-width: 20ch; }
.hero--page .hero-sub { max-width: 62ch; }

.hero-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-low);
  margin-bottom: 22px;
}

.hero-crumb a { color: var(--text-low); }
.hero-crumb a:hover { color: var(--brand-300); }
.hero-crumb .sep { opacity: 0.5; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 6vw, 76px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-stats .stat {
  background: rgba(10, 18, 32, 0.55);
  padding: 26px 22px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-num em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-low);
  line-height: 1.45;
}

/* ---------- 7. Dashboard mock (hero visual) ---------- */
.dash-wrap {
  position: relative;
}

.dash {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--body-c);
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dots i:nth-child(1) { background: #fc5f57; }
.dash-dots i:nth-child(2) { background: #febc2e; }
.dash-dots i:nth-child(3) { background: #28c840; }

.dash-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.dash-url svg { width: 12px; height: 12px; color: var(--green-600); }

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-600);
}

.dash-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

.dash-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.dash-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.ahr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.ahr-ring { position: relative; width: 92px; height: 92px; flex: none; }

.ahr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.ahr-ring .track { stroke: var(--paper-3); }
.ahr-ring .meter {
  stroke: url(#ahrGrad);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 6;
}

.ahr-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-head);
}

.ahr-val b {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-600);
  line-height: 1;
}

.ahr-val small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ahr-label { font-weight: 600; color: var(--ink-900); }
.ahr-label small { display: block; color: var(--muted); font-weight: 400; }

.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-ok,
.chip-warn,
.chip-info,
.chip-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

.chip-ok { background: #e7f8f1; color: var(--green-600); }
.chip-warn { background: #fef3e2; color: #b45309; }
.chip-info { background: #e9f1fe; color: #1d4ed8; }
.chip-open { background: var(--paper-3); color: var(--muted); }

.chip-ok i,
.chip-warn i,
.chip-info i,
.chip-open i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dash-chart {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 8px;
}

.dash-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dash-chart-head b { color: var(--ink-900); font-size: 0.86rem; }

.delta-up,
.delta-down {
  font-weight: 700;
  font-size: 0.75rem;
}

.delta-up { color: var(--green-600); }
.delta-down { color: var(--red-500); }

.dash-chart svg { width: 100%; height: auto; }

.dash-cases {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dash-cases .case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.dash-cases .case-row + .case-row { border-top: 1px solid var(--line); }

.case-row b { color: var(--ink-900); font-weight: 600; display: block; }
.case-row small { color: var(--muted); font-size: 0.72rem; }

/* Floating chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 11px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-900);
  animation: floaty 6s ease-in-out infinite alternate;
}

.float-chip .fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  flex: none;
}

.float-chip .fc-icon svg { width: 17px; height: 17px; }
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }

.fc-1 {
  top: -22px;
  right: -14px;
}

.fc-1 .fc-icon { background: #e7f8f1; color: var(--green-600); }

.fc-2 {
  bottom: -20px;
  left: -18px;
  animation-delay: -3s;
}

.fc-2 .fc-icon { background: var(--brand-100); color: var(--brand-600); }

@keyframes floaty {
  from { transform: translateY(-4px); }
  to { transform: translateY(6px); }
}

/* ---------- 8. Logo strip ---------- */
.logo-strip {
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.logo-strip p {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 52px;
  align-items: center;
}

.logo-row span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: #9aa8bf;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.logo-row span:hover { color: var(--ink-700); }
.logo-row .lg-serif { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.98rem; }
.logo-row .lg-wide { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.92rem; }

/* ---------- 9. Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d8e0ec;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.94rem;
}

.card-link svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.card-link:hover svg { transform: translateX(4px); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--brand-100), #eef0fe);
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
}

.icon-badge svg { width: 25px; height: 25px; }

.icon-badge--blue { background: #e9f1fe; color: #2563eb; border-color: #d3e2fd; }
.icon-badge--green { background: #e7f8f1; color: var(--green-600); border-color: #c8efe0; }
.icon-badge--teal { background: #e2f7f4; color: #0d9488; border-color: #c0ece4; }
.icon-badge--violet { background: #f0ecfe; color: #7c3aed; border-color: #e0d8fc; }
.icon-badge--rose { background: #feecf1; color: #db2777; border-color: #fbd5e2; }

/* Pain cards */
.pain-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}

.pain-card .pc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pain-card h3 { font-size: 1.08rem; margin: 0; }

.pain-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.pain-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-600);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-content: center;
  flex: none;
}

.pain-out {
  text-align: center;
  margin-top: 40px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* ---------- 10. Check lists ---------- */
.check-list {
  display: grid;
  gap: 11px;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--green-600);
}

.check-list--onDark li { color: var(--text-mid); }
.check-list--onDark svg { color: var(--green-500); }

/* ---------- 11. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.section--dark .step {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-dark);
}

.section--dark .step h3 { color: var(--text-hi); }
.section--dark .step p { color: var(--text-low); }
.section--dark .step-num { background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.3); color: var(--brand-300); }

/* ---------- 12. Comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--paper-2);
  border-bottom: 2px solid var(--line);
}

.compare tbody th {
  font-weight: 600;
  color: var(--ink-900);
  width: 22%;
}

.compare td { color: var(--muted); }

.compare .col-us {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.03));
  border-left: 1px solid var(--brand-200);
  border-right: 1px solid var(--brand-200);
  color: var(--ink-800);
  font-weight: 500;
}

.compare thead .col-us {
  color: var(--brand-600);
  box-shadow: inset 0 3px 0 var(--brand-500);
}

.compare tbody tr:last-child td,
.compare tbody tr:last-child th { border-bottom: 0; }

.td-yes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-weight: 600;
}

.td-yes svg { width: 17px; height: 17px; flex: none; }

.td-no { color: #a4b0c2; }

/* ---------- 13. Case cards ---------- */
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  padding: 5px 12px;
  border-radius: 999px;
}

.case-metric {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.05;
}

.case-metric em {
  font-style: normal;
  color: var(--brand-600);
}

.case-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }

.case-card .card-link { margin-top: auto; }

/* Mini bar chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 64px;
  margin-top: 6px;
}

.mini-chart i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  opacity: 0.28;
}

.mini-chart i.on { opacity: 1; }

/* ---------- 14. Testimonials ---------- */
.testi-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.testi-nav { display: flex; gap: 10px; }

.testi-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hi);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.testi-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

.testi-btn svg { width: 19px; height: 19px; }

.testi-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px;
}

.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 min(430px, 86%);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--amber-500);
}

.stars svg { width: 17px; height: 17px; }

.testi-card blockquote {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text-hi);
  flex: 1;
}

.testi-who {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
}

.avatar--blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.avatar--teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.avatar--violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.testi-who b { color: var(--text-hi); display: block; font-size: 0.95rem; }
.testi-who small { color: var(--text-low); font-size: 0.82rem; }

/* ---------- 15. Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 52px;
}

.billing-toggle button {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.billing-toggle .save-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-600);
  margin-left: 6px;
}

.toggle-center { text-align: center; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.price-card--featured {
  background: linear-gradient(180deg, #101b30, #0a1220);
  border-color: var(--ink-700);
  color: var(--text-mid);
  box-shadow: var(--shadow-xl);
}

.price-card--featured:hover { transform: translateY(-6px); }

.pop-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-900);
}

.price-card--featured .price-name { color: var(--text-hi); }

.price-for {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
  min-height: 2.6em;
}

.price-card--featured .price-for { color: var(--text-low); }

.price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 4px;
}

.price-amount {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 2rem + 1.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1;
  transition: opacity 0.15s ease;
}

.price-amount.swap { opacity: 0; }

.price-card--featured .price-amount { color: var(--text-hi); }

.price-per { color: var(--muted); font-weight: 500; }
.price-card--featured .price-per { color: var(--text-low); }

.price-note {
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.4em;
  margin-bottom: 20px;
}

.price-card--featured .price-note { color: var(--text-low); }

.price-card .btn { margin-bottom: 24px; }

.price-feats {
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.price-card--featured .price-feats { border-top-color: var(--line-dark); }

.price-feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.93rem;
}

.price-feats svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--green-600);
}

.price-card--featured .price-feats svg { color: var(--green-500); }
.price-card--featured .price-feats li { color: var(--text-mid); }

/* Add-ons */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.addon {
  border: 1px dashed #cfd9e6;
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--paper-2);
}

.addon h3 { font-size: 1.08rem; }

.addon-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-600);
  margin-bottom: 8px;
}

.addon p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* Guarantee band */
.guarantee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid #d5ecdf;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
}

.guarantee .g-item { display: flex; gap: 15px; align-items: flex-start; }

.guarantee .g-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: #e7f8f1;
  color: var(--green-600);
  display: grid;
  place-content: center;
}

.guarantee .g-icon svg { width: 23px; height: 23px; }

.guarantee h3 { font-size: 1.05rem; margin-bottom: 4px; }
.guarantee p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- 16. FAQ accordion ---------- */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.open {
  border-color: #d8e0ec;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-900);
  background: none;
  border: 0;
  padding: 21px 24px;
  cursor: pointer;
}

.faq-q .faq-ico {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-3);
  display: grid;
  place-content: center;
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-q .faq-ico svg { width: 15px; height: 15px; }

.faq-item.open .faq-ico {
  transform: rotate(45deg);
  background: var(--brand-500);
  color: #fff;
}

.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-a > div {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

.faq-a p:last-child { margin-bottom: 0; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(720px 300px at 88% -20%, rgba(165, 180, 252, 0.35), transparent 60%),
    radial-gradient(560px 320px at 0% 120%, rgba(59, 130, 246, 0.28), transparent 60%),
    linear-gradient(135deg, #16233c, #0a1220);
  color: var(--text-mid);
  padding: clamp(48px, 7vw, 84px);
  text-align: center;
}

.cta-band h2 {
  color: var(--text-hi);
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 54ch;
  margin: 0 auto 34px;
  font-size: var(--fs-lead);
  color: var(--text-mid);
}

.cta-band .hero-proof { justify-content: center; margin-top: 26px; }

.cta-band .hero-cta { justify-content: center; }

/* ---------- 18. Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: grid; gap: 7px; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
}

.field label .opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid #d4dce8;
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red-500); }

.field .err {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--red-500);
}

.field.has-error .err { display: block; }

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d4dce8;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-c);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.check-pill:hover { border-color: #b9c6d9; }

.check-pill input { accent-color: var(--brand-600); width: 16px; height: 16px; flex: none; }

.check-pill:has(input:checked) {
  border-color: var(--brand-500);
  background: var(--brand-100);
  color: var(--brand-700);
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.form-foot small { color: var(--muted); }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }

.form-success .fs-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e7f8f1;
  color: var(--green-600);
  display: grid;
  place-content: center;
}

.form-success .fs-icon svg { width: 30px; height: 30px; }

/* Contact info cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--paper);
}

.info-card h3 { font-size: 1.05rem; }

.info-line {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 10px 0;
}

.info-line + .info-line { border-top: 1px solid var(--line); }

.info-line .il-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--paper-3);
  color: var(--ink-800);
  display: grid;
  place-content: center;
}

.info-line .il-icon svg { width: 18px; height: 18px; }

.info-line b { display: block; color: var(--ink-900); font-size: 0.94rem; }
.info-line small { color: var(--muted); font-size: 0.86rem; }
.info-line a { font-weight: 600; }

.next-steps li {
  counter-increment: nstep;
  display: flex;
  gap: 14px;
  padding: 13px 0;
  align-items: flex-start;
}

.next-steps li + li { border-top: 1px solid var(--line); }

.next-steps li::before {
  content: counter(nstep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-600);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  flex: none;
}

.next-steps b { display: block; color: var(--ink-900); font-size: 0.95rem; }
.next-steps p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--text-low);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(56px, 7vw, 84px);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 52px;
}

.footer-brand .brand { margin-bottom: 18px; }

.footer-brand p { max-width: 34ch; font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--font-head);
  color: var(--text-hi);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-low);
  font-size: 0.93rem;
}

.footer-col a:hover { color: var(--brand-300); }

.footer-contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--brand-400);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-content: center;
  color: var(--text-mid);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.footer-social a:hover {
  border-color: var(--brand-500);
  color: var(--brand-300);
  background: rgba(99, 102, 241, 0.08);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 26px 0 34px;
  display: grid;
  gap: 12px;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

.footer-bottom-row a { color: var(--text-low); }
.footer-bottom-row a:hover { color: var(--brand-300); }

.footer-disclaimer {
  font-size: 0.8rem;
  color: #5e6c86;
  max-width: 100ch;
  margin: 0;
}

/* ---------- 20. Misc page pieces ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* About */
.prose {
  max-width: 72ch;
}

.prose p { font-size: 1.04rem; }

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--line));
}

.tl-item {
  position: relative;
  padding: 0 0 34px 26px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.tl-year {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--brand-600);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.tl-item h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 0.96rem; margin: 0; max-width: 62ch; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-card .avatar {
  width: 76px;
  height: 76px;
  font-size: 1.35rem;
  margin: 0 auto 16px;
}

.team-card b { display: block; color: var(--ink-900); font-family: var(--font-head); font-size: 1.02rem; }
.team-card small { color: var(--muted); font-size: 0.86rem; display: block; margin-top: 3px; }
.team-card p { font-size: 0.87rem; color: var(--muted); margin: 12px 0 0; }

/* Coverage bar */
.tz-bar {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}

.tz-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.tz-row + .tz-row { border-top: 1px solid var(--line-dark); }

.tz-row b { color: var(--text-hi); font-size: 0.92rem; }
.tz-row small { display: block; color: var(--text-low); font-weight: 400; font-size: 0.78rem; }

.tz-track {
  position: relative;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.tz-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 8px;
}

.tz-fill--us { left: 30%; width: 40%; background: rgba(59, 130, 246, 0.55); }
.tz-fill--ops { left: 0; width: 100%; background: rgba(16, 185, 129, 0.45); }
.tz-fill--overlap { left: 30%; width: 40%; background: rgba(99, 102, 241, 0.65); }

.tz-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-low);
  margin-top: 10px;
  padding-left: 146px;
}

/* Results page */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-band .stat {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: 28px 24px;
}

.case-study {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.case-study + .case-study { margin-top: 26px; }

.case-study .case-metric { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); }

.case-facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.case-facts li {
  display: flex;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--body-c);
}

.case-facts svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--green-600); }

.case-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.case-panel .case-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.case-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.case-kpi b {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--green-600);
  display: block;
  letter-spacing: -0.02em;
}

.case-kpi small { color: var(--muted); font-size: 0.74rem; line-height: 1.35; display: block; margin-top: 3px; }

.case-quote {
  border-left: 3px solid var(--brand-400);
  padding: 4px 0 4px 16px;
  font-size: 0.95rem;
  color: var(--body-c);
  font-style: italic;
}

.case-quote footer {
  font-style: normal;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Services page blocks */
.svc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.svc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--body-c);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.svc-nav a:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-100);
}

.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(44px, 6vw, 72px);
}

.svc-block + .svc-block { border-top: 1px solid var(--line); }

.svc-block .icon-badge { margin-bottom: 18px; }

.svc-block h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }

.svc-block .svc-desc { color: var(--muted); font-size: 1.02rem; }

.svc-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  border-radius: 14px;
  padding: 14px 18px;
}

.svc-stat b { font-family: var(--font-head); font-size: 1.3rem; color: var(--brand-700); display: block; line-height: 1.1; }
.svc-stat small { color: #3730a3; font-size: 0.82rem; font-weight: 500; }

.svc-included {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.svc-included h3 {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.svc-included .check-list li { font-size: 0.95rem; }

/* 404 */
.nf-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  background: linear-gradient(92deg, var(--brand-300), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 18px;
}

/* ---------- 20.5 Blog ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.post-meta > * + *::before {
  content: "·";
  margin: 0 10px;
  color: #b6c2d4;
}

.post-meta time { font-weight: 500; }

.post-card h3 { font-size: 1.14rem; margin-bottom: 8px; }

.post-card .post-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.post-card .card-link { margin-top: 0; }

/* Blog listing */
.blog-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 26px;
}

.blog-hero-note svg { width: 16px; height: 16px; color: var(--brand-300); }

/* Single post */
.article-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--text-low);
}

.article-head-meta > * + *::before {
  content: "·";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
}

.article-body {
  max-width: 72ch;
  margin-inline: auto;
}

.article-body h2 {
  font-size: clamp(1.45rem, 1.25rem + 1vw, 1.9rem);
  margin: 1.9em 0 0.55em;
}

.article-body h3 { margin: 1.6em 0 0.5em; }

.article-body p,
.article-body li { font-size: 1.04rem; }

.article-body ul.prose-list {
  list-style: disc;
  padding-left: 1.35em;
  display: grid;
  gap: 9px;
  margin: 0 0 1.3em;
}

.article-body ol.prose-list {
  list-style: decimal;
  padding-left: 1.35em;
  display: grid;
  gap: 9px;
  margin: 0 0 1.3em;
}

.article-body a { font-weight: 500; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--paper-2);
  color: var(--ink-900);
  font-weight: 600;
}

.article-body tbody tr:nth-child(even) td { background: var(--paper-2); }

.article-body img {
  border-radius: var(--radius);
  margin: 0.5em 0;
}

.article-body blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--brand-400);
  font-size: 1.08rem;
  color: var(--ink-800);
  font-style: italic;
}

.callout {
  border: 1px solid var(--brand-200);
  border-left: 4px solid var(--brand-500);
  background: var(--brand-100);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 1.8em 0;
  font-size: 0.98rem;
  color: #3730a3;
}

.callout b { color: var(--brand-700); }

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 3em;
  padding-top: 24px;
}

.byline .avatar { width: 52px; height: 52px; font-size: 0.95rem; }

.byline b { display: block; color: var(--ink-900); font-size: 0.98rem; }
.byline small { color: var(--muted); font-size: 0.86rem; }

/* Two-column pricing (base + commission model) */
.price-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin-inline: auto;
}

.price-per--long { font-size: 0.95rem; font-weight: 600; }

/* Clickable blog card titles */
.post-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

.post-card h3 a:hover,
.post-card h3 a:focus-visible { color: var(--brand-600); }

/* Article tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.2em;
}

.tag-row span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Prev / next article navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.post-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.post-nav a:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.post-nav .pn-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 6px;
}

.post-nav .pn-title {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.97rem;
  line-height: 1.45;
}

.post-nav .next { text-align: right; }

@media (max-width: 640px) {
  .price-grid--two { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}


/* ---------- 21. Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 0.65s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 22. Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-900);
  display: grid;
  place-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--brand-600); border-color: var(--brand-300); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1150px) {
  .main-nav { display: none; }
  .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { margin-left: 0; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .dash-wrap { max-width: 640px; }
  .fc-1 { right: 4px; }
  .fc-2 { left: 4px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .price-card--featured { order: -1; }
  .addon-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .case-study { grid-template-columns: 1fr; }
  .svc-block { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .guarantee { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 40px, var(--container)); }
  .grid-2,
  .grid-3,
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .header-cta .btn--primary { display: none; }
  .float-chip { display: none; }
  .ahr { border-right: 0; padding-right: 0; }
  .dash-top { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .testi-card { flex-basis: 88%; }
  .tz-row { grid-template-columns: 96px 1fr; }
  .tz-axis { padding-left: 112px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .float-chip { animation: none; }
}
