/* ==========================================================================
   Fero AI — site styles
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280.
   Every brand value lives in :root, so re-theming happens in one place.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #0A2A4D;          /* primary brand */
  --navy-deep: #071F3A;
  --blue: #1E5CB3;          /* interactive: buttons, links */
  --blue-hover: #184C96;
  --blue-light: #EAF1FB;    /* tinted sections, dividers */
  --blue-wash: #F5F9FE;
  --white: #FFFFFF;
  --gold: #C9A227;          /* accents only: icons, borders, badges. Never small text on white (fails contrast). */
  --gold-dark: #AD8A1F;     /* gold hover; also the only gold allowed as large text on white (3.3:1) */
  --text: #2E3A46;          /* body copy */
  --text-muted: #5A6878;    /* secondary copy, 5.8:1 on white */
  --text-on-dark: #D3DFEE;  /* body copy on navy */
  --border: #D8E0E8;
  --toggle-off: #8494A7;    /* switch track when off, 3:1 against white */

  /* Typography */
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.45rem + 2.6vw, 3.25rem);

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

  /* Shape & depth */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 77, 0.06), 0 2px 8px rgba(10, 42, 77, 0.05);
  --shadow: 0 6px 20px rgba(10, 42, 77, 0.10);
  --shadow-lg: 0 18px 44px rgba(10, 42, 77, 0.16);

  /* Layout */
  --container: 1180px;
  --gutter: 1.25rem;
  --header-h: 72px;
  --ease: 180ms ease;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3 {
  margin: 0 0 var(--space-4);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; color: var(--navy); }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-hover); }

ul { margin: 0; padding: 0; }

/* Visible focus everywhere. Blue on light surfaces, gold on navy. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-8); }
.section--tint { background: var(--blue-light); }
.section.section--flush-top { padding-top: 0; }

.section-head {
  max-width: 44rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head p { font-size: var(--fs-md); color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
}
.on-dark .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease),
    background-color var(--ease), color var(--ease);
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 92, 179, 0.32);
}

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover {
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.btn-outline-light:hover {
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-block { width: 100%; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .btn-group { flex-direction: row; flex-wrap: wrap; }
}

.text-link {
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.site-header.is-scrolled,
.nav-open .site-header {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo-mark { width: 36px; height: 36px; }
/* Logotype colors are exempt from text-contrast rules; gold "AI" is a brand mark, not body text. */
.logo-ai { margin-left: 0.1em; color: var(--gold); }
.on-dark .logo { color: var(--white); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 24px;
  height: 18px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease), top var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7.75px; }
.nav-toggle-bars span:nth-child(3) { top: 15.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }

/* Mobile: slide-down panel under the header */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  padding: var(--space-4) var(--gutter) var(--space-7);
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--border);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}
.nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.nav-list { list-style: none; }
.nav-list a {
  display: block;
  padding: var(--space-4) var(--space-1);
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: var(--space-4);
}
.nav-cta { width: 100%; margin-top: var(--space-6); }

/* Without JS the hamburger can't open, so show the links inline instead. */
.no-js .nav-toggle { display: none; }
.no-js .header-inner { height: auto; flex-wrap: wrap; padding-block: var(--space-3); }
.no-js .site-nav {
  position: static;
  height: auto;
  width: 100%;
  padding: 0;
  border: 0;
  visibility: visible;
  opacity: 1;
  transform: none;
}
.no-js .nav-list { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.no-js .nav-list a { border: 0; padding: var(--space-2) 0; font-size: var(--fs-sm); box-shadow: none; }
.no-js .nav-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav,
  .no-js .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .no-js .header-inner { height: var(--header-h); flex-wrap: nowrap; padding-block: 0; }
  .nav-list, .no-js .nav-list { display: flex; gap: var(--space-1); }
  .nav-list a,
  .no-js .nav-list a {
    position: relative;
    padding: var(--space-2) var(--space-3);
    border: 0;
    font-size: var(--fs-sm);
  }
  .nav-list a[aria-current="page"] { box-shadow: none; padding-left: var(--space-3); }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta, .no-js .nav-cta { display: inline-flex; width: auto; margin: 0; min-height: 44px; padding-block: 0.55rem; }
}

/* ---------- Navy surfaces (hero, page hero) ---------- */

.hero,
.page-hero,
.svc-head {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 94% 6%, rgba(201, 162, 39, 0.22), transparent 34%),
    radial-gradient(ellipse at 75% 0%, #164A86 0%, transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* Lighthouse-beam pattern: concentric rings and two light beams from the top-right. */
.hero::before,
.page-hero::before,
.svc-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' preserveAspectRatio='xMaxYMin slice'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Ccircle cx='1130' cy='60' r='140'/%3E%3Ccircle cx='1130' cy='60' r='260'/%3E%3Ccircle cx='1130' cy='60' r='380'/%3E%3Ccircle cx='1130' cy='60' r='500'/%3E%3Ccircle cx='1130' cy='60' r='620'/%3E%3Ccircle cx='1130' cy='60' r='740'/%3E%3Ccircle cx='1130' cy='60' r='860'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cpath d='M1130 60 0 330v170z' opacity='.45'/%3E%3Cpath d='M1130 60 300 700h230z' opacity='.3'/%3E%3C/g%3E%3C/svg%3E") right top / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero h1,
.page-hero h1 { color: var(--white); }

/* ---------- Home hero ---------- */

.hero { padding-block: var(--space-8) 4.5rem; }

.hero-inner {
  position: relative;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  max-width: 17em;
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.15rem);
  line-height: 1.14;
}

.hero-lead {
  max-width: 36rem;
  margin-bottom: var(--space-6);
  font-size: var(--fs-md);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  list-style: none;
  font-size: var(--fs-sm);
}
.hero-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* Illustration: a lead moving through the system */
.lead-flow {
  display: none;
  position: relative;
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}
.flow-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 88%;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  color: var(--text);
}
.flow-card + .flow-card { margin-top: var(--space-4); }
.flow-card:nth-child(2) { margin-left: auto; }
.flow-card:nth-child(3) { margin-left: 6%; border-left: 4px solid var(--gold); }
.flow-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
}
.flow-icon svg { width: 20px; height: 20px; }
.flow-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.flow-title {
  margin: 0.1rem 0 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.flow-tag {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 500;
}
.flow-tag--gold { background: var(--gold); color: var(--navy); }

@media (min-width: 1024px) {
  .hero { padding-block: var(--space-9); }
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-8); }
  .lead-flow { display: block; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: var(--space-8);
  text-align: center;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  max-width: 20em;
  margin-inline: auto;
  font-size: clamp(1.875rem, 1.4rem + 2.1vw, 2.875rem);
}
.page-hero p {
  max-width: 40rem;
  margin-inline: auto;
  font-size: var(--fs-md);
}
.page-hero--overlap { padding-bottom: 7rem; }

/* ---------- Cards (shared) ---------- */

.card {
  position: relative;
  padding: var(--space-6) var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 480px) {
  .card { padding: var(--space-6); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge--flagship {
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(10, 42, 77, 0.25);
}
.badge--floating {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
}
.icon-tile svg { width: 26px; height: 26px; }

/* Checkmark lists */
.check-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231E5CB3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Home: who we help ---------- */

.who {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.who p { font-size: var(--fs-md); }
.trade-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}
.trade-list li {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
}
@media (min-width: 1024px) {
  .who { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); }
}

/* ---------- Home: tier teaser ---------- */

.tier-grid {
  display: grid;
  gap: var(--space-6);
  max-width: 34rem;
  margin-inline: auto;
}
.tier-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier-card h3 { margin-bottom: var(--space-2); font-size: var(--fs-xl); }
.tier-card p { color: var(--text-muted); }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
/* Whole card is clickable via the heading link */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.tier-price {
  margin: auto 0 0;
  padding-top: var(--space-5);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.tier-price small {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
}
.tier-more {
  margin-top: var(--space-4);
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.tier-card--featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
}
.tier-card--featured .badge--floating + .icon-tile { margin-top: var(--space-2); }

@media (min-width: 768px) {
  .tier-grid {
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: center;
    max-width: none;
    gap: var(--space-5);
  }
  .tier-card--featured { padding-block: 3rem; }
}

/* ---------- Home: how it works ---------- */

.steps {
  position: relative;
  display: grid;
  gap: var(--space-7);
  list-style: none;
  counter-reset: step;
}
.step { position: relative; text-align: center; }
.step p { max-width: 22rem; margin-inline: auto; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--blue-light), 0 0 0 9px rgba(201, 162, 39, 0.45);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 17%;
    right: 17%;
    border-top: 2px dashed rgba(10, 42, 77, 0.22);
  }
}

/* ---------- Feature / value-prop grid ---------- */

.feature-grid {
  display: grid;
  gap: var(--space-5);
}
.feature h3 { font-size: var(--fs-lg); }
.feature p { color: var(--text-muted); }
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  gap: var(--space-5);
}
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.testimonial::before {
  content: "\201C";
  height: 2.25rem;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
}
.testimonial blockquote { margin: 0 0 var(--space-5); font-size: var(--fs-md); color: var(--navy); }
.testimonial figcaption {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.testimonial figcaption strong { display: block; font-family: var(--font-heading); font-weight: 600; }
.sample-tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--blue-light);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- CTA band ---------- */

.cta-box {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) var(--space-5);
  background: var(--blue-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-box h2 { margin-bottom: var(--space-3); }
.cta-box p { max-width: 36rem; margin: 0 auto var(--space-6); font-size: var(--fs-md); }
.cta-box .btn-group { justify-content: center; }
@media (min-width: 768px) {
  .cta-box { padding: var(--space-8) var(--space-7); }
}

/* ---------- Pricing page ---------- */

.section.pricing-section { padding-top: 0; }

.pricing-grid {
  position: relative;
  display: grid;
  gap: var(--space-7);
  max-width: 40rem;
  margin: -4rem auto 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.price-card h2 { margin-bottom: var(--space-2); font-size: var(--fs-xl); }
.price-card h3 {
  margin: var(--space-6) 0 var(--space-4);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card .check-list { margin-bottom: var(--space-6); font-size: var(--fs-sm); }
/* Buttons sit at the bottom so all three cards line up */
.price-card > .btn { margin-top: auto; }
.price-card > .price-note--bottom { margin: auto 0 var(--space-4); }
.price-card > .price-note--bottom + .btn { margin-top: 0; }

.price-desc { color: var(--text-muted); font-size: var(--fs-sm); }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: var(--space-4) 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
}
/* Dark gold at large/bold size passes AA large-text contrast (3.3:1). */
.price-currency { align-self: flex-start; margin-top: 0.35rem; color: var(--gold-dark); font-size: 1.5rem; line-height: 1; }
.price-amount { font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.price-period { margin-left: 0.2rem; color: var(--text-muted); font-family: var(--font-body); font-size: var(--fs-base); font-weight: 400; }

.price-note {
  margin: 0 0 var(--space-2);
  padding: var(--space-4);
  background: var(--blue-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
}

.price-card--featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding-top: var(--space-7);
}
.price-card--flagship {
  border-top: 5px solid var(--navy);
  padding-top: var(--space-7);
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: stretch;
    gap: var(--space-5);
    max-width: none;
    margin-top: -4.5rem;
  }
  /* Starter Pack sits higher than its neighbors */
  .price-card--featured { margin-top: -1.5rem; }
  /* Builder comes right after the Starter card in the HTML (so it follows it on phones),
     but spans the full row under all three cards on desktop. */
  .builder { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1280px) {
  .pricing-grid { gap: var(--space-6); }
}

/* ---------- Starter Pack builder (calculator) ---------- */

.builder {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.builder-head { max-width: 42rem; margin-bottom: var(--space-5); }
.builder-head h2 { margin-bottom: var(--space-2); font-size: var(--fs-2xl); }
.builder-head p:last-child { color: var(--text-muted); }

.addon-list {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  list-style: none;
}
@media (min-width: 768px) {
  .addon-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .builder { padding: var(--space-7); }
  .builder-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-6);
    align-items: start;
  }
}
.addon {
  position: relative;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--ease), background-color var(--ease);
}
.addon:hover { border-color: #AFC2D8; }
.addon:has(.toggle-input:checked) { border-color: var(--blue); background: var(--blue-wash); }

/* Real checkbox, visually replaced by the switch but still focusable and announced. */
.toggle-input {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 26px;
  margin: 0;
  opacity: 0;
}
.addon-label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
}
.toggle-track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--toggle-off);
  transition: background-color var(--ease);
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform var(--ease);
}
.toggle-input:checked + .addon-label .toggle-track { background: var(--blue); }
.toggle-input:checked + .addon-label .toggle-thumb { transform: translateX(18px); }
.toggle-input:focus-visible + .addon-label .toggle-track {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.addon-name {
  flex: 1;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.addon-price {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.addon-desc {
  margin: 0.375rem 0 0 calc(44px + 0.875rem);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* Total + CTA: sticks to the bottom of the screen while you scroll the add-ons */
.calc-summary {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: var(--space-5) calc(var(--space-5) * -1) calc(var(--space-6) * -1);
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -10px 24px rgba(10, 42, 77, 0.08);
}
@media (min-width: 480px) {
  .calc-summary {
    margin-inline: calc(var(--space-6) * -1);
    padding-inline: var(--space-6);
  }
}
.calc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0;
}
.calc-total-label {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.calc-total-value {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  transform-origin: right center;
  transition: transform 200ms ease, color 200ms ease;
}
.calc-total-value .price-currency { margin-top: 0.2rem; font-size: 1.25rem; }
.calc-total-value .price-period { font-size: var(--fs-sm); }
.calc-total-value.is-bumping { transform: scale(1.08); color: var(--blue); }
.calc-count { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: var(--fs-xs); text-align: right; }
.calc-breakdown { display: none; }
.calc-fine { display: none; margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--fs-xs); text-align: center; }
@media (min-width: 1024px) { .calc-fine { display: block; } }

/* Desktop: the summary becomes a panel beside the add-ons and stays in view while you scroll */
@media (min-width: 1024px) {
  .calc-summary {
    top: calc(var(--header-h) + 1.5rem);
    bottom: auto;
    margin: 0;
    padding: var(--space-5);
    background: var(--blue-wash);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none;
  }
  .calc-total { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .calc-total-value { transform-origin: left center; }
  .calc-count { text-align: left; }
  .calc-breakdown {
    display: grid;
    gap: var(--space-1);
    margin: 0 0 var(--space-4);
    padding: var(--space-3) 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    font-size: var(--fs-xs);
  }
  .calc-breakdown li { display: flex; justify-content: space-between; gap: var(--space-3); }
  .calc-breakdown li span:last-child { color: var(--navy); font-weight: 500; white-space: nowrap; }
}
.calc-noscript {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--blue-light);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

/* ---------- FAQ accordion ---------- */

.faq { max-width: 50rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.no-js .faq-icon { display: none; }
.faq-answer { padding-bottom: var(--space-5); max-width: 42rem; }

/* ---------- About ---------- */

.founder {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  aspect-ratio: 4 / 3;
  max-width: 22rem;
  width: 100%;
  margin-inline: auto;
  padding: var(--space-5);
  background: linear-gradient(160deg, var(--blue-light), #D7E4F5);
  border: 2px dashed #9FB4CE;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}
.photo-placeholder svg { width: 64px; height: 64px; color: #7F98B8; }
.prose { max-width: 40rem; }
.prose p { font-size: 1.0625rem; margin-bottom: var(--space-5); }
.signature {
  margin-top: var(--space-6);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
}
.signature span { display: block; color: var(--text-muted); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; }
@media (min-width: 1024px) {
  .founder { grid-template-columns: 20rem 1fr; gap: var(--space-8); }
  .photo-placeholder { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: var(--space-5);
  max-width: 62rem;
  margin: -4rem auto 0;
  position: relative;
}
.contact-card { display: flex; flex-direction: column; }
.contact-card h2 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.contact-card > p { color: var(--text-muted); }
.contact-card .btn,
.contact-card .email-link { margin-top: auto; }
.contact-card--primary { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.contact-card .check-list { margin: var(--space-2) 0 var(--space-6); font-size: var(--fs-sm); }
.email-link {
  display: inline-block;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.375rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.response-note { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-sm); }
.service-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
}
.service-area svg { width: 22px; height: 22px; color: var(--gold-dark); flex: none; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: var(--space-9);
  text-align: center;
}
.not-found-code {
  margin-bottom: var(--space-2);
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  font-weight: 700;
  line-height: 1;
}
.not-found p { max-width: 30rem; margin-inline: auto; margin-bottom: var(--space-6); }
.not-found .btn-group { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--navy);
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
}
.footer-tagline { max-width: 22rem; margin-top: var(--space-4); }
.footer-heading {
  margin-bottom: var(--space-4);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: var(--space-2); list-style: none; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-bottom p { margin: 0; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-7); }
}

/* ---------- Services page ---------- */

.goal-intro {
  position: relative;
  margin-top: -4rem;
  padding: var(--space-6) var(--space-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.goal-intro-title { text-align: center; font-size: var(--fs-xl); margin-bottom: var(--space-5); }
.goal-grid { display: grid; gap: var(--space-4); list-style: none; }
.goal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  background: var(--blue-wash);
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.goal-card:hover { color: var(--text); border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.goal-card-title { color: var(--navy); font-family: var(--font-heading); font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.goal-card-text { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 768px) {
  .goal-intro { padding: var(--space-6); }
  .goal-grid { grid-template-columns: repeat(3, 1fr); }
}

.goal-card-count {
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Service explorer: list of services on the left, one detailed service on the right */
.explorer-section { padding-top: var(--space-7); }
.explorer { display: grid; gap: var(--space-5); align-items: start; }
.svc-panels { display: grid; gap: var(--space-6); min-width: 0; }

/* Phone/tablet: the list collapses into a sticky "Browsing: …" bar */
.svc-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-2) var(--gutter);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}
.svc-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 54px;
  padding: 0.55rem 1rem;
  background: var(--blue-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.svc-nav-toggle small {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc-nav-toggle-hint { display: inline-flex; align-items: center; gap: var(--space-1); flex: none; color: var(--blue); font-size: var(--fs-xs); }
.svc-nav-toggle-hint svg { width: 18px; height: 18px; transition: transform var(--ease); }
.svc-nav-toggle[aria-expanded="true"] .svc-nav-toggle-hint svg { transform: rotate(180deg); }
.svc-nav-list {
  display: none;
  position: absolute;
  top: calc(100% - 0.25rem);
  left: var(--gutter);
  right: var(--gutter);
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.svc-nav.is-open .svc-nav-list { display: block; }

.no-js .svc-nav { position: static; margin: 0; padding: 0; background: none; border: 0; }
.no-js .svc-nav-toggle { display: none; }
.no-js .svc-nav-list { display: block; position: static; max-height: none; box-shadow: var(--shadow-sm); }

@media (min-width: 1024px) {
  .explorer { grid-template-columns: 290px minmax(0, 1fr); gap: var(--space-6); }
  .svc-nav,
  .no-js .svc-nav {
    top: calc(var(--header-h) + 1.5rem);
    position: sticky;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
  }
  .svc-nav-toggle { display: none; }
  .svc-nav-list,
  .no-js .svc-nav-list {
    display: block;
    position: static;
    max-height: calc(100vh - var(--header-h) - 3rem);
    box-shadow: var(--shadow-sm);
  }
}

.svc-nav-title { margin: 0 0 var(--space-3); padding: 0 var(--space-2); font-size: var(--fs-md); }
.svc-nav-group { scroll-margin-top: calc(var(--header-h) + 2rem); }
.svc-nav-group + .svc-nav-group { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.svc-nav-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  padding: 0 var(--space-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc-nav-heading svg { width: 16px; height: 16px; color: var(--gold-dark); }
.svc-nav ul { display: grid; gap: 2px; list-style: none; }
.svc-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
.svc-link svg { flex: none; width: 18px; height: 18px; color: var(--blue); }
.svc-link-name { flex: 1; }
.svc-link-meta { flex: none; color: var(--text-muted); font-size: 0.6875rem; white-space: nowrap; }
.svc-link:hover { background: var(--blue-wash); color: var(--navy); }
.svc-link[aria-current="true"] {
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--gold);
}

/* One service, in depth */
.svc {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 5.5rem);
}
.svc:focus { outline: none; }
@media (min-width: 1024px) {
  .svc { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
}

.svc-head { padding: var(--space-6) var(--space-5); }
.svc-head > * { position: relative; }
.svc-head-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.svc-head .icon-tile {
  width: 56px;
  height: 56px;
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.55);
}
.svc-head .eyebrow { margin: 0; }
.svc-head h2 { margin-bottom: var(--space-3); color: var(--white); font-size: var(--fs-2xl); }
.svc-lead { max-width: 40rem; margin-bottom: var(--space-5); font-size: var(--fs-md); }
.svc-plans { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.svc-plans li {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.svc-plans li.is-addon { border-color: var(--gold); }

.svc-body { container-type: inline-size; padding: var(--space-6) var(--space-5); }
.svc-body > * + * { margin-top: var(--space-7); }
@media (min-width: 768px) {
  .svc-head { padding: var(--space-7) var(--space-6); }
  .svc-body { padding: var(--space-7) var(--space-6); }
}

.svc-section h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--fs-lg);
}
.svc-section h3::before { content: ""; flex: none; width: 1.25rem; height: 2px; background: var(--gold); }
.svc-section p { max-width: 65ch; }
.svc-label {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-intro { display: grid; gap: var(--space-6); align-items: start; }
@container (min-width: 620px) {
  .svc-intro.has-preview { grid-template-columns: minmax(0, 1fr) 270px; }
}

/* Numbered steps joined by a line */
.svc-steps { display: grid; list-style: none; }
.svc-steps li {
  position: relative;
  min-height: 2.75rem;
  padding: 0.3rem 0 var(--space-5) 3.25rem;
  counter-increment: svc-step;
}
.svc-steps li::before {
  content: counter(svc-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
}
.svc-steps li::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 0.25rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  background: var(--border);
}
.svc-steps li:last-child { padding-bottom: 0; }
.svc-steps li:last-child::after { display: none; }
.svc-steps { counter-reset: svc-step; }

.svc-benefits { display: grid; gap: var(--space-3); list-style: none; }
.svc-benefits li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-content: start;
  column-gap: var(--space-3);
  padding: var(--space-4);
  background: var(--blue-wash);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.svc-benefits svg {
  grid-row: span 2;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  stroke-width: 2.6;
}
.svc-benefits strong { color: var(--navy); font-family: var(--font-heading); font-weight: 600; line-height: 1.35; }
.svc-benefits span { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
@container (min-width: 600px) {
  .svc-benefits { grid-template-columns: repeat(3, 1fr); }
  .svc-benefits li { grid-template-columns: 1fr; }
  .svc-benefits svg { grid-row: auto; margin-bottom: var(--space-3); }
}

.svc-example {
  padding: var(--space-5);
  background: var(--blue-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}
.svc-example p:last-child { color: var(--navy); font-size: var(--fs-md); line-height: 1.6; }

.svc-facts { display: grid; gap: var(--space-4); }
@container (min-width: 600px) {
  .svc-facts { grid-template-columns: repeat(3, 1fr); }
}
.svc-fact {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.svc-fact > p { font-size: var(--fs-sm); }
.svc-fact-title { margin-bottom: var(--space-1); color: var(--navy); font-family: var(--font-heading); font-weight: 600; }
.svc-fact .text-link { margin-top: auto; padding-top: var(--space-3); font-size: var(--fs-sm); }

/* Effort meter: fewer filled bars = less work for you */
.effort { display: flex; gap: 4px; margin-bottom: var(--space-3); }
.effort span { width: 28px; height: 6px; border-radius: 3px; background: var(--border); }
.effort--1 span:nth-child(-n + 1),
.effort--2 span:nth-child(-n + 2),
.effort--3 span { background: var(--blue); }

.svc-get { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); list-style: none; font-size: var(--fs-sm); }
.svc-get li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--border);
}
.svc-get li:last-child { border-bottom: 0; }
.svc-get li > span:last-child { flex: none; font-weight: 500; text-align: right; white-space: nowrap; }
.svc-get .is-yes > span:last-child { color: var(--blue); }
.svc-get .is-addon > span:last-child { color: var(--navy); }
.svc-get .is-no { color: var(--text-muted); }

.svc-related { display: grid; gap: var(--space-2); list-style: none; }
.svc-related a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 0.65rem;
  background: var(--blue-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color var(--ease), background-color var(--ease);
}
.svc-related a:hover { border-color: var(--gold); background: var(--white); }
.svc-related svg { flex: none; width: 16px; height: 16px; color: var(--blue); }

.svc-faq { display: grid; gap: var(--space-3); margin: 0; }
.svc-faq div { padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: 12px; }
.svc-faq dt { color: var(--navy); font-family: var(--font-heading); font-weight: 600; }
.svc-faq dd { margin: var(--space-1) 0 0; font-size: var(--fs-sm); }

.svc-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--blue-light);
  border: 2px solid var(--gold);
  border-radius: 12px;
}
.svc-cta p { margin: 0; }
@container (min-width: 600px) {
  .svc-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .svc-cta .btn { flex: none; }
}

.svc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--blue-wash);
  border-top: 1px solid var(--border);
}
.svc-pager-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.svc-pager-link small {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc-pager-link svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
.svc-pager-link:hover { background: var(--white); color: var(--navy); }
.svc-pager-link--next { justify-content: flex-end; text-align: right; }

/* Example previews (what the customer sees) */
.svc-preview { margin: 0; }
.svc-preview-note { margin-top: var(--space-2); color: var(--text-muted); font-size: 0.75rem; text-align: center; }
.mock {
  padding: var(--space-4);
  background: #F4F7FB;
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.mock strong { color: var(--navy); font-weight: 500; }
.mock-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
}
.mock-avatar svg { width: 16px; height: 16px; }
.mock-bar,
.mock-ad-top,
.mock-review-head,
.mock-contact-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.3;
}
.mock-bar strong,
.mock-ad-top strong,
.mock-review-head strong,
.mock-contact-head strong { display: block; font-size: 0.8125rem; }
.mock-bar { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.bubble {
  max-width: 85%;
  margin: var(--space-2) 0 0;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
}
.bubble--in { margin-right: auto; background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.bubble--out { margin-left: auto; background: var(--blue); border-bottom-right-radius: 4px; color: var(--white); }

.mock-ad { background: var(--white); }
.mock-ad-text { margin-bottom: var(--space-3); }
.mock-ad-image {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-1);
  aspect-ratio: 16 / 10;
  margin-inline: calc(var(--space-4) * -1);
  background: linear-gradient(150deg, var(--navy), var(--blue));
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}
.mock-ad-image svg { width: 32px; height: 32px; }
.mock-ad-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: var(--space-3) 0 0; }
.mock-ad-btn { flex: none; padding: 0.35rem 0.75rem; background: var(--blue-light); border-radius: var(--radius-sm); color: var(--navy); font-weight: 500; }

.mock-review { background: var(--white); }
.mock-stars { display: block; color: var(--gold-dark); font-size: 0.875rem; letter-spacing: 1px; }
.mock-review-reply { margin-top: var(--space-3); padding: var(--space-3); background: #F4F7FB; border-radius: 10px; }
.mock-review-reply p { margin: var(--space-1) 0 0; }

.mock-inbox { display: grid; gap: var(--space-2); list-style: none; }
.mock-inbox li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--white); border-radius: 10px; }
.mock-inbox li strong { display: block; }
.mock-channel {
  flex: none;
  width: 4.75rem;
  padding: 0.15rem 0;
  background: var(--blue-light);
  border-radius: var(--radius-pill);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
}

.mock-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.mock-col { display: grid; align-content: start; gap: var(--space-2); }
.mock-col strong { font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mock-col span {
  padding: var(--space-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  font-size: 0.75rem;
}
.mock-col:last-child span { border-left-color: var(--gold); }

.mock-contact { background: var(--white); }
.mock-tag { display: inline-block; margin-top: 2px; padding: 0.05rem 0.5rem; background: var(--blue-light); border-radius: var(--radius-pill); color: var(--navy); }
.mock-contact dl { display: grid; gap: var(--space-2); margin: 0; }
.mock-contact dl div { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.mock-contact dt { color: var(--text-muted); }
.mock-contact dd { margin: 0; color: var(--navy); text-align: right; }

/* ---------- Plan comparison table ---------- */

.compare-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.compare-hint { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-xs); text-align: center; }
@media (min-width: 768px) { .compare-hint { display: none; } }
.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.compare th,
.compare td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 150px;
  padding-inline: 0.75rem;
  background: var(--white);
  box-shadow: 1px 0 0 var(--border);
  color: var(--text);
  font-weight: 400;
  text-align: left;
}
.compare tbody th small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.compare thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
}
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; text-align: left; }
.compare thead th span { display: block; color: var(--text-on-dark); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 400; }
.compare thead .compare-featured { box-shadow: inset 0 -4px 0 var(--gold); }
.compare td.compare-featured { background: var(--blue-wash); }
.compare .compare-group th {
  position: static;
  box-shadow: none;
  background: var(--blue-light);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Label stays in view while the rest of the row scrolls sideways */
.compare .compare-group th span { position: sticky; left: 0.75rem; }
.compare tr:last-child > * { border-bottom: 0; }
@media (min-width: 768px) {
  .compare tbody th { width: 40%; padding-inline: 1rem; box-shadow: none; }
}
.yes, .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.yes { background: var(--blue); }
.yes::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.no::before { content: ""; width: 12px; height: 2px; background: var(--toggle-off); border-radius: 1px; }
.addon-cell { color: var(--navy); font-weight: 500; white-space: nowrap; }
.cell-note { display: block; color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- Larger screens ---------- */

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-9); }
}
@media (min-width: 1280px) {
  :root { --gutter: 2.5rem; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover,
  .tier-card:hover,
  .calc-total-value.is-bumping { transform: none; }
}

/* Outcome cards on the home page: links line up at the bottom */
.feature:has(.feature-list) { display: flex; flex-direction: column; }
.feature-list { margin: var(--space-2) 0 var(--space-5); font-size: var(--fs-sm); }
.feature .text-link { margin-top: auto; }
.pillar-note { max-width: 40rem; margin: var(--space-6) auto 0; color: var(--text-muted); text-align: center; }
