/* ==========================================================================
   First Page Fox — Local SEO Agency
   Design system + components. No build step, no framework.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --ink:            #0a0d18;
  --ink-2:          #121729;
  --brand:          #4f46e5;
  --brand-600:      #4338ca;
  --brand-300:      #a5b4fc;
  --brand-soft:     #eef2ff;
  --accent:         #06b6d4;
  --accent-soft:    #ecfeff;
  --success:        #10b981;
  --warning:        #f59e0b;

  /* Neutrals */
  --text:           #16192b;
  --text-2:         #4a5068;
  --text-3:         #767d95;
  --line:           #e5e7f0;
  --line-2:         #eef0f6;
  --surface:        #ffffff;
  --surface-2:      #f7f8fc;
  --surface-3:      #f0f2f9;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);

  /* Space + shape */
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px rgba(16, 20, 45, .05), 0 1px 3px rgba(16, 20, 45, .06);
  --shadow:     0 4px 6px -2px rgba(16, 20, 45, .05), 0 12px 24px -6px rgba(16, 20, 45, .10);
  --shadow-lg:  0 24px 48px -12px rgba(16, 20, 45, .18);

  --container: 1180px;
  --gutter: 24px;
  --nav-h: 72px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); letter-spacing: -.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

p { color: var(--text-2); }
strong { color: var(--text); font-weight: 650; }

.lede {
  font-size: clamp(1.05rem, .98rem + .38vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.6;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 8vw, 108px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--alt { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #dfe3f0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #a6adc8; }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* --- Eyebrow / pill ----------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow { color: var(--brand-300); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-weight: 650;
  font-size: .97rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
              border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .45);
}
.btn--primary:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(79, 70, 229, .5);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { color: var(--text); border-color: var(--brand-300); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); transform: translateY(-2px); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.btn--outline-light:hover { color: #fff; background: rgba(255, 255, 255, .09); }

.btn--lg { padding: 16px 32px; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(16, 20, 45, .05);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -.03em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 4px 10px -2px rgba(79, 70, 229, .5);
}
.logo__dot { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  font-size: .95rem;
  font-weight: 550;
  color: var(--text-2);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-3); }
.nav__links a[aria-current="page"] { color: var(--brand); font-weight: 650; }

.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* The nav ships two CTA blocks: one inside .nav__links for the mobile drawer,
   one outside it for the desktop bar. Exactly one is ever visible — the drawer
   copy is hidden here and re-enabled in the ≤880px query below. */
.nav__links .nav__cta { display: none; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .22s ease, background .1s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, top .22s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 460px at 78% -12%, rgba(6, 182, 212, .16), transparent 62%),
    radial-gradient(760px 420px at 8% 0%, rgba(79, 70, 229, .16), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 400px at 50% 20%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 400px at 50% 20%, #000, transparent 78%);
  opacity: .55;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-bottom: 28px; max-width: 56ch; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .89rem;
  color: var(--text-3);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.hero__trust svg { flex-shrink: 0; color: var(--success); }

/* Hero visual — fake local pack */
.serp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.serp__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.serp__bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.serp__query {
  flex: 1;
  margin-left: 8px;
  padding: 6px 12px;
  font-size: .82rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.serp__body { padding: 18px; }
.serp__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.serp__item {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.serp__item + .serp__item { margin-top: 4px; }
.serp__item--you {
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border-color: var(--brand-300);
}
.serp__rank {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  font-size: .8rem; font-weight: 700;
  color: var(--text-3);
}
.serp__item--you .serp__rank { background: var(--brand); color: #fff; }
.serp__name { font-size: .93rem; font-weight: 650; color: var(--ink); }
.serp__meta { font-size: .8rem; color: var(--text-3); }
.serp__stars { color: var(--warning); letter-spacing: -1px; }

.serp__badge {
  margin: 14px 18px 18px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, .09);
  border: 1px solid rgba(16, 185, 129, .28);
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 600;
  color: #047857;
}

/* --- Logo strip --------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 26px;
}
.marquee__label {
  text-align: center;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.marquee__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 44px;
}
.marquee__row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--text-3);
  opacity: .8;
}

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-300);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--accent { background: var(--accent-soft); color: #0891b2; }
.card__icon--success { background: rgba(16, 185, 129, .1); color: #059669; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .92rem;
  font-weight: 650;
}
.card__link::after { content: "→"; transition: transform .16s ease; }
.card--hover:hover .card__link::after { transform: translateX(3px); }

/* --- Feature list ------------------------------------------------------- */
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: .97rem;
  color: var(--text-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--ink .checks li { color: #b9c0d8; }
.section--ink .checks li::before {
  background-color: rgba(165, 180, 252, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  background: linear-gradient(100deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--text-3);
  line-height: 1.45;
}
.section--ink .stats { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.12); }
.section--ink .stat { background: var(--ink-2); }
.section--ink .stat__label { color: #8d95b3; }

/* --- Process steps ------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  position: relative;
  padding: 26px 26px 26px 78px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 26px; top: 26px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* --- Pricing ------------------------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.plan__tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 15px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(100deg, var(--brand), var(--accent));
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 750; color: var(--ink); }
.plan__for { font-size: .9rem; color: var(--text-3); margin-top: 4px; }
.plan__price {
  margin: 22px 0 6px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
  line-height: 1;
}
.plan__price small { font-size: .95rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.plan__note { font-size: .84rem; color: var(--text-3); margin-bottom: 24px; }
.plan .checks { margin: 24px 0; flex: 1; }
.plan .checks li { font-size: .93rem; margin-bottom: 11px; }
.plan .btn { margin-top: auto; }

/* --- Table -------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .94rem; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-2); }
thead th {
  background: var(--surface-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* --- Testimonials ------------------------------------------------------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.quote__stars { color: var(--warning); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { font-size: 1rem; color: var(--text-2); line-height: 1.62; flex: 1; }
.quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.quote__avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.quote__name { font-size: .93rem; font-weight: 650; color: var(--ink); line-height: 1.35; }
.quote__role { font-size: .84rem; color: var(--text-3); }

/* --- Case study --------------------------------------------------------- */
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case__head {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.case__cat {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.case__head h3 { margin-bottom: 6px; }
.case__loc { font-size: .88rem; color: var(--text-3); }
.case__body { padding: 26px 28px; }
.case__body p { font-size: .95rem; }
.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.case__metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--success);
  line-height: 1.1;
}
.case__metric span { font-size: .8rem; color: var(--text-3); line-height: 1.4; display: block; margin-top: 4px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 24px; }
.faq details p { font-size: .97rem; }
.faq details p + p { margin-top: 12px; }

/* --- Forms -------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .89rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 7px;
}
.field label .req { color: #dc2626; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .96rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #dc2626; }
.field .hint { font-size: .82rem; color: var(--text-3); margin-top: 6px; }
.field .err { font-size: .82rem; color: #dc2626; margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #dc2626; }

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

.form-note {
  font-size: .84rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 14px;
}
.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-status.is-ok  { display: block; background: rgba(16,185,129,.1); color: #047857; }
.form-status.is-bad { display: block; background: rgba(220,38,38,.08);  color: #b91c1c; }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(79, 70, 229, .5), transparent 60%),
    radial-gradient(600px 340px at 85% 100%, rgba(6, 182, 212, .38), transparent 60%),
    var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #b6bed8; max-width: 56ch; margin-inline: auto; margin-bottom: 28px; }

/* --- Location grid ------------------------------------------------------ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.city-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.city-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.city-card svg { flex-shrink: 0; color: var(--brand); }
.city-card b { display: block; font-size: .97rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.city-card span { font-size: .82rem; color: var(--text-3); }

/* --- Breadcrumb --------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-3);
  margin-bottom: 22px;
}
.crumbs a { color: var(--text-3); font-weight: 550; }
.crumbs a:hover { color: var(--brand); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }

/* --- Page header -------------------------------------------------------- */
.page-head {
  padding-block: clamp(44px, 5.5vw, 76px) clamp(36px, 4.5vw, 56px);
  background:
    radial-gradient(700px 340px at 80% -20%, rgba(6, 182, 212, .14), transparent 62%),
    radial-gradient(620px 320px at 5% 0%, rgba(79, 70, 229, .13), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 16px; max-width: 20ch; }
.page-head .lede { max-width: 62ch; }

/* --- Prose -------------------------------------------------------------- */
.prose h2 { margin: 44px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose p + p { margin-top: 16px; }
.prose > p { margin-bottom: 16px; }
.prose ul { margin: 16px 0; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-300);
}
.prose > *:first-child { margin-top: 0; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #98a0bd;
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo:hover { color: #fff; }
.footer__about { color: #8d95b3; font-size: .92rem; max-width: 34ch; }
.footer__col h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: #98a0bd; font-size: .93rem; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer__contact svg { flex-shrink: 0; margin-top: 3px; color: var(--brand-300); }
.footer__contact a { color: #cfd4e6; }
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .87rem;
  color: #767e9c;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a { color: #767e9c; }
.footer__bottom a:hover { color: #fff; }

/* --- Reveal on scroll --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Skip link ---------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.skip:focus {
  left: 16px; top: 12px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured { order: -1; }
}

@media (max-width: 880px) {
  :root { --gutter: 20px; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-left: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 13px 14px; font-size: 1rem; }
  .nav__links .btn { margin-top: 12px; }

  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__links .nav__cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .case__metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .case__metric strong { font-size: 1.3rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .step { padding: 22px 20px 22px 20px; }
  .step::before { position: static; margin-bottom: 14px; }
  .card { padding: 24px 22px; }
}

/* ==========================================================================
   Typography + alignment pass
   --------------------------------------------------------------------------
   Appended after the component rules so these win without touching them.
   ========================================================================== */

/* Stop headings breaking with a single orphan word on the last line, and let
   paragraphs even out their rag. Ignored by browsers that don't support it. */
h1, h2, h3, h4, .lede, .quote__name, .plan__name, .stat__num {
  text-wrap: balance;
}
p, .card p, .reco p, li {
  text-wrap: pretty;
}

/* Tabular figures so numbers in stats, prices and metrics line up in columns
   instead of jittering on their own varying glyph widths. */
.stat__num, .plan__price, .case__metric strong, .grid-stat strong, td, th {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Cards in a grid stretch to equal height, so anything that should sit on the
   bottom edge needs pushing there — otherwise the "Learn more" links land at
   whatever height the copy happens to end. */
.card {
  display: flex;
  flex-direction: column;
}
.card > h3 + p,
.card > p { margin-bottom: 0; }
.card__link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}

/* Icon, heading and body kept on one vertical rhythm across every card. */
.card__icon { margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; }
.card h3 + p { margin-top: 0; }

/* The eyebrow rule was optically heavy next to small caps. */
.eyebrow { letter-spacing: .12em; }
.eyebrow::before { width: 18px; }

/* Section heads: consistent measure so lines break at similar points whether
   centred or left-aligned. */
.section-head { max-width: 68ch; }
.section-head--center .lede { margin-inline: auto; }
.section-head .lede { max-width: 62ch; }

/* Lists inside cards were tight against the heading above them. */
.card .checks { margin-top: 20px; }
.card .checks li:last-child { margin-bottom: 0; }

/* Metrics rows in case studies: centre the number over its label. */
.case__metric { text-align: center; }
.case__metric strong { letter-spacing: -.02em; }

/* Quote blocks: even out the gap above the author when quotes differ in length. */
.quote blockquote { margin-bottom: 0; }

/* Footer columns aligned to a common baseline. */
.footer__col h4 { line-height: 1.3; }
.footer__col li { line-height: 1.5; }
.footer__contact li { align-items: flex-start; }

/* Buttons: identical optical height whether they contain an icon or not. */
.btn { line-height: 1.25; }
.btn svg { flex-shrink: 0; }

/* Tables: numeric columns right-aligned, text left. */
.comp-table td:nth-child(n+3),
.comp-table th:nth-child(n+3) { text-align: right; }

/* Prose measure — long paragraphs were running past comfortable reading width. */
.prose p, .prose ul { max-width: 68ch; }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { font-size: 12pt; }
}
