/* ==========================================================================
   LEADIVEX — Global stylesheet
   Single file, no build step. Organised in numbered sections:

   01  DESIGN TOKENS
   02  RESET & BASE
   03  TYPOGRAPHY
   04  LAYOUT & UTILITIES
   05  BUTTONS
   06  CARDS
   07  HEADER / NAVIGATION
   08  MOBILE MENU
   09  HERO
   10  LOGO STRIP (commented out — see note)
   11  SECTION HEADINGS
   12  PROBLEM BLOCK
   13  SERVICE CARDS
   14  STEPS / PROCESS
   15  CASE STUDY
   16  TESTIMONIALS
   17  CTA BAND
   18  FOOTER
   19  FORMS
   20  PRICING
   21  FAQ / ACCORDION
   22  ARTICLE & BLOG
   23  TABLES & LISTS
   24  COOKIE BAR
   25  404
   26  MOTION
   27  REDUCED MOTION
   ========================================================================== */


/* ==========================================================================
   01  DESIGN TOKENS
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #08080B;
  --surface:       #121218;
  --surface-2:     #1B1B23;
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text
     Contrast check vs --bg: #FFFFFF = 19.4:1, #9A9AA8 = 7.2:1.
     Both clear the 4.5:1 AA threshold for body text. */
  --text:          #FFFFFF;
  --text-muted:    #9A9AA8;

  /* Brand gradient — used in exactly three places:
     primary buttons, part of the H1, thin accent details. */
  --grad-a:        #3B5BFF;
  --grad-b:        #A855F7;
  --gradient:      linear-gradient(100deg, var(--grad-a), var(--grad-b));

  /* Status */
  --success:       #4ADE80;
  --danger:        #F87171;

  /* Focus ring — lightened for legibility on the dark background */
  --focus:         #8AA0FF;

  /* Radii */
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   999px;

  /* Layout */
  --max-width:     1200px;
  --gutter:        clamp(20px, 5vw, 40px);
  --section-pad:   clamp(72px, 9vw, 112px);

  /* Type scale */
  --fs-h1:         clamp(40px, 7vw, 76px);
  --fs-h2:         clamp(30px, 4.4vw, 46px);
  --fs-h3:         clamp(20px, 2.2vw, 25px);
  --fs-h4:         clamp(17px, 1.7vw, 19px);
  --fs-lead:       clamp(16px, 1.55vw, 19px);
  --fs-body:       16px;
  --fs-sm:         14.5px;
  --fs-xs:         13px;
  --fs-mono:       11.5px;

  /* Fonts */
  --font-display:  'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono:     'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.7, 0.24, 1);
  --dur:           0.55s;

  /* Elevation */
  --shadow-card:   0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lift:   0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --shadow-glow:   0 12px 34px -10px rgba(59, 91, 255, 0.45);
}


/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Safety net against horizontal scroll. `clip` rather than `hidden` on
     purpose: `hidden` turns body into a scroll container, which silently
     breaks the sticky header. `hidden` is left first as a fallback for
     browsers without `clip` (Safari < 16). */
  overflow-x: hidden;
  overflow-x: clip;
}

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

input,
select,
textarea { font: inherit; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Visible focus for keyboard users everywhere. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #08080B;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Screen-reader-only, still focusable */
.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;
}

::selection {
  background: rgba(59, 91, 255, 0.4);
  color: #fff;
}


/* ==========================================================================
   03  TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Gradient text — reserved for part of the H1 only. */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Mono eyebrow label — used for section labels and stat captions. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.eyebrow-accent { color: var(--grad-a); }

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.6;
}

.muted  { color: var(--text-muted); }
.small  { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

/* Inline text link inside prose */
.link {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover { border-color: var(--grad-a); }


/* ==========================================================================
   04  LAYOUT & UTILITIES
   ========================================================================== */

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

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

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-top-0 { padding-top: 0; }
.section-bottom-0 { padding-bottom: 0; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* Grids */
.grid { display: grid; gap: 20px; }
.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     { display: flex; flex-direction: column; gap: 16px; }
.row       { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.row-tight { gap: 10px; }

.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* A soft radial glow used behind hero art and CTA bands. */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Editorial note styling for placeholder blocks I still need to fill. */
.placeholder-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.placeholder-note svg { flex: none; margin-top: 2px; }


/* ==========================================================================
   05  BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn svg { flex: none; }

/* Primary — gradient pill with a soft glow on hover. */
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(59, 91, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — transparent, outlined, fills on hover. */
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* Ghost — text plus arrow, for in-card links. */
.btn-ghost {
  padding: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.btn-ghost svg { transition: transform 0.2s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-sm { padding: 10px 18px; font-size: var(--fs-xs); }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-block { display: flex; width: 100%; }

/* Small supporting line placed next to a CTA. */
.btn-support {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 220px;
}


/* ==========================================================================
   06  CARDS
   ========================================================================== */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}

/* Hover: 2px lift plus a faint gradient edge. Kept deliberately subtle. */
.card-hover::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.card-hover:hover::after { opacity: 0.5; }

.card-raised { background: var(--surface-2); }

.card-title { margin: 0 0 10px; }
.card-body  { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* Numbered index used on problem and step cards. */
.card-index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: block;
}

/* Icon chip that sits at the top of a service card. */
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 20px;
}

/* A short pill used for tags and status chips. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.chip-success { color: var(--success); border-color: rgba(74, 222, 128, 0.28); }
.chip-soon    { color: var(--text-muted); border-style: dashed; }


/* ==========================================================================
   07  HEADER / NAVIGATION
   Floating white pill on the dark page, sticky, shrinks slightly after 40px.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px var(--gutter) 0;
  transition: padding 0.3s var(--ease);
}

.site-header.is-scrolled { padding-top: 12px; }

.nav-shell {
  max-width: var(--max-width);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
  padding: 0 12px 0 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  color: #0B0B10;
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled .nav {
  height: 58px;
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.85);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: #0B0B10;
}
.nav-logo .logo-mark { flex: none; }
.nav-logo .logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.035em;
}

/* Centre links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #3D3D47;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link:hover { color: #0B0B10; background: rgba(11, 11, 16, 0.055); }

/* Active page — applied by main.js so the shared markup stays identical. */
.nav-link.is-active { color: #0B0B10; font-weight: 600; }

.nav-link:focus-visible { outline-color: #3B5BFF; }

/* Services dropdown */
.nav-item { position: relative; }

.nav-caret { transition: transform 0.2s var(--ease); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 320px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Invisible bridge so the pointer can travel from the pill to the panel. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown-link {
  display: block;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background-color 0.18s var(--ease);
}
.nav-dropdown-link:hover { background: var(--surface-2); }
.nav-dropdown-link strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 2px;
}
.nav-dropdown-link span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.45;
}

/* Right-hand cluster: WhatsApp + primary CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.nav-cta { flex: none; }

/* WhatsApp link in the white nav pill. Secondary to the CTA on purpose —
   it reads as an option, not a competing button. */
.nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  color: #1E7A45;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-wa:hover { background: rgba(30, 122, 69, 0.09); color: #14602F; }
.nav-wa:focus-visible { outline-color: #1E7A45; }
.nav-wa svg { flex: none; }

/* Hamburger — hidden until the mobile breakpoint. */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  place-items: center;
  color: #0B0B10;
}
.nav-burger:hover { background: rgba(11, 11, 16, 0.06); }
.nav-burger:focus-visible { outline-color: #3B5BFF; }

.burger-box { position: relative; width: 18px; height: 12px; }
.burger-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 5px; }
.burger-box span:nth-child(3) { top: 10px; }

[aria-expanded='true'] .burger-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[aria-expanded='true'] .burger-box span:nth-child(2) { opacity: 0; }
[aria-expanded='true'] .burger-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }


/* ==========================================================================
   08  MOBILE MENU — full-screen dark overlay with a Services accordion
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 104px var(--gutter) 40px;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.menu-open { overflow: hidden; }

.mobile-nav-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--border);
}
.mobile-nav-list > li { border-bottom: 1px solid var(--border); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
  color: var(--text);
}
.mobile-nav-link .nav-caret { color: var(--text-muted); }
.mobile-nav-link[aria-expanded='true'] .nav-caret { transform: rotate(180deg); }

.mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.mobile-sub > div { overflow: hidden; }
.mobile-nav-link[aria-expanded='true'] + .mobile-sub { grid-template-rows: 1fr; }

.mobile-sub ul {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
}
.mobile-sub a {
  display: block;
  padding: 11px 0 11px 16px;
  border-left: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.mobile-sub a:hover { color: var(--text); border-color: var(--grad-a); }

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu-footer .mono { color: var(--text-muted); }


/* ==========================================================================
   09  HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 92px) clamp(48px, 6vw, 72px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy { max-width: 620px; }

.hero h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Hero art — the 2-card stack. Pure CSS + inline SVG, no stock photography. */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}

.hero-art-glow {
  position: absolute;
  inset: -18% -12% -8% -12%;
  background: radial-gradient(
    58% 52% at 62% 34%,
    rgba(59, 91, 255, 0.42) 0%,
    rgba(168, 85, 247, 0.26) 42%,
    transparent 72%
  );
  filter: blur(58px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

/* Card 1 — cost-per-click panel */
.cpc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.cpc-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 6px 0 2px;
}
.cpc-figure .cpc-unit {
  font-size: 0.5em;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  margin-left: 4px;
}

.cpc-caption {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0 0 16px;
}

.trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.24);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cpc-chart { width: 100%; height: auto; display: block; }

.cpc-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Card 2 — tracking stack */
.stack-card { padding: 20px 22px; }

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
}
.stack-pill svg { color: var(--success); flex: none; }

/* Line under the hero */
.hero-footnote {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 720px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}


/* ==========================================================================
   10  LOGO STRIP
   --------------------------------------------------------------------------
   DO NOT UNCOMMENT until real clients have given written permission to use
   their marks. A fabricated logo bar is the fastest way to lose a prospect
   who recognises a brand you have never worked with.

   .logo-strip {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: clamp(28px, 5vw, 64px);
     flex-wrap: wrap;
     padding-block: 36px;
   }
   .logo-strip img {
     height: 26px;
     width: auto;
     opacity: 0.55;
     filter: grayscale(1);
     transition: opacity 0.25s var(--ease);
   }
   .logo-strip img:hover { opacity: 0.9; }
   --------------------------------------------------------------------------
   ========================================================================== */


/* ==========================================================================
   11  SECTION HEADINGS
   ========================================================================== */

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p  { color: var(--text-muted); font-size: var(--fs-lead); margin: 0; }

/* Heading with an action link on the right */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section-head-row .section-head { margin-bottom: 0; }


/* ==========================================================================
   12  PROBLEM BLOCK
   ========================================================================== */

.problem-card { padding: 30px 28px; }
.problem-card h3 { font-size: var(--fs-h4); margin-bottom: 10px; }

.problem-close {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.1vw, 24px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}


/* ==========================================================================
   13  SERVICE CARDS
   ========================================================================== */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card .card-body { flex: 1 1 auto; margin-bottom: 22px; }

.service-card .btn-ghost { align-self: flex-start; }

/* "What you get" bullet lists on the service detail pages */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list svg { flex: none; margin-top: 3px; color: var(--success); }

/* The honest "not offered" list */
.cross-list li svg { color: var(--text-muted); }


/* ==========================================================================
   14  STEPS / PROCESS
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.step h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
.step p  { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* Thin gradient connector between steps — one of the three sanctioned uses. */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 43px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}


/* ==========================================================================
   15  CASE STUDY
   ========================================================================== */

.case-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.case-feature h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }

/* Metric grid used on the featured card and the case study page */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.metric {
  padding: 20px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.45;
}

/* One live case study — don't stretch a lone card across three columns. */
.case-grid-single { grid-template-columns: minmax(0, 440px); }

/* Case study index cards */
.case-card { display: flex; flex-direction: column; padding: 28px; }
.case-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.case-card h3 { margin-bottom: 12px; }

.case-card-soon {
  border-style: dashed;
  background: transparent;
  min-height: 260px;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.case-card-soon h3 { color: var(--text-muted); }

/* Case study detail page — sticky results rail on desktop */
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.case-rail {
  position: sticky;
  top: 120px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.case-rail .metrics { grid-template-columns: 1fr; }

.case-block { margin-bottom: clamp(40px, 5vw, 56px); }
.case-block:last-child { margin-bottom: 0; }
.case-block h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.case-block p  { color: var(--text-muted); }


/* ==========================================================================
   16  TESTIMONIALS
   ========================================================================== */

.quote-card {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-mark { color: var(--border-strong); }

.quote-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0;
}
.quote-text.is-dummy { color: var(--text-muted); }

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-muted);
  flex: none;
}
.quote-author-name { font-size: var(--fs-sm); font-weight: 600; }
.quote-author-role { font-size: var(--fs-xs); color: var(--text-muted); }


/* ==========================================================================
   17  CTA BAND
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band .glow {
  width: 620px;
  height: 320px;
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(59, 91, 255, 0.34),
    rgba(168, 85, 247, 0.2) 48%,
    transparent 74%
  );
  filter: blur(70px);
}

.cta-band-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p  { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 30px; }

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

.cta-fineprint {
  margin-top: 20px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ==========================================================================
   18  FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  margin-top: clamp(56px, 7vw, 96px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: var(--text); margin-bottom: 16px; }
.footer-tagline {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 30em;
  margin-bottom: 10px;
}

.footer-person {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 20px;
}

/* ---- About page portrait ------------------------------------------------ */

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.bio-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.bio-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

@media (max-width: 720px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-photo { max-width: 240px; }
}

/* Footer column headings are <h2> so the document heading order never skips a
   level (h2 -> h4 fails WCAG 1.3.1). They're styled down to mono caps. */
.footer-col h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ==========================================================================
   19  FORMS
   ========================================================================== */

.form-card {
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-grid { display: grid; gap: 20px; }
.form-row  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
}
.field .req { color: var(--grad-b); }

.field-hint { font-size: var(--fs-xs); color: var(--text-muted); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: #6C6C7A; }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--border-strong); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%239A9AA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
.select option { background: var(--surface-2); color: var(--text); }

/* Checkbox / radio group */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.choice:hover { border-color: var(--border-strong); }
.choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--grad-a);
  cursor: pointer;
  margin: 0;
}
.choice:has(input:checked) {
  border-color: rgba(59, 91, 255, 0.6);
  background: rgba(59, 91, 255, 0.1);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Inline validation */
.field-error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--danger);
  line-height: 1.4;
}
.field.has-error .field-error { display: block; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--danger); }
.field.has-error .choice-group { outline: 1px solid var(--danger); outline-offset: 6px; border-radius: 6px; }

/* Honeypot — hidden from humans, catches bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-footnote {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Calendly / embed placeholder */
.embed-slot {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 300px;
  padding: 32px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-muted);
}
.embed-slot code {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text);
  background: var(--surface-2);
  padding: 3px 8px;
  border-radius: 6px;
}


/* ==========================================================================
   20  PRICING
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
}

.price-card.is-featured {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.14);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-name { font-size: var(--fs-h4); margin-bottom: 8px; }
.price-desc { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 24px; min-height: 3em; }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.price-from {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-period { font-size: var(--fs-sm); color: var(--text-muted); }

.price-note { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 26px; }

.price-card .check-list { margin-bottom: 28px; flex: 1 1 auto; }
.price-card .btn { margin-top: auto; }

.price-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}


/* ==========================================================================
   21  FAQ / ACCORDION
   ========================================================================== */

.faq { max-width: 820px; }
.faq.is-center { margin-inline: auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 2px;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.faq-icon {
  flex: none;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.faq-q[aria-expanded='true'] .faq-icon { transform: rotate(45deg); color: var(--text); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded='true'] + .faq-a { grid-template-rows: 1fr; }

.faq-a p {
  padding: 0 40px 24px 2px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 68ch;
}
.faq-a p + p { padding-top: 0; }


/* ==========================================================================
   22  ARTICLE & BLOG
   ========================================================================== */

.page-header {
  padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 48px);
}
.page-header h1 { margin-bottom: 20px; max-width: 16ch; }
.page-header .lead { max-width: 62ch; }
.page-header.is-center { text-align: center; }
.page-header.is-center h1,
.page-header.is-center .lead { margin-inline: auto; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card { display: flex; flex-direction: column; padding: 26px; min-height: 260px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.post-card h3 { font-size: var(--fs-h4); margin-bottom: 10px; }
.post-card p  { font-size: var(--fs-sm); color: var(--text-muted); flex: 1 1 auto; margin-bottom: 20px; }

/* Article body — 68ch measure */
.article { max-width: 68ch; margin-inline: auto; }
.article > * + * { margin-top: 1.2em; }
.article h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.8em; margin-bottom: 0.5em; }
.article h3 { font-size: var(--fs-h4); margin-top: 1.6em; margin-bottom: 0.4em; }
.article p  { color: #C9C9D4; line-height: 1.75; }
.article ul,
.article ol { color: #C9C9D4; line-height: 1.75; padding-left: 1.3em; }
.article li + li { margin-top: 0.5em; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.article a:hover { border-color: var(--grad-a); }

.article blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid transparent;
  border-image: var(--gradient) 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--text);
}

.article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
}
.article pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  font-size: var(--fs-xs);
  line-height: 1.65;
}
.article pre code { background: none; border: 0; padding: 0; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  margin-top: 3em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.author-avatar {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.author-box h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.author-box p  { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }


/* ==========================================================================
   23  TABLES & LISTS
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
th, td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
td { color: var(--text-muted); }
td strong { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Definition-style list used for deliverables and timelines */
.deliverables { display: grid; gap: 0; }
.deliverable {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.deliverable:first-child { border-top: 1px solid var(--border); }
.deliverable dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 3px;
}
.deliverable dd { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.deliverable dd strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }


/* ==========================================================================
   23b  WHATSAPP
   ========================================================================== */

/* WhatsApp brand green, darkened enough to hold 4.5:1 on --surface. */
:root { --wa: #25D366; --wa-ink: #128C7E; }

/* Fixed floating button — mobile only, hidden from 768px up.
   z-index 110 sits below the cookie bar (120) so the bar always wins;
   the .has-cookie-bar shift keeps them from ever overlapping. */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #04231A;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s var(--ease), bottom 0.35s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* When the cookie bar is showing, lift the button clear of it. */
body.has-cookie-bar .wa-fab { bottom: 104px; }

@media (min-width: 768px) {
  .wa-fab { display: none; }
}

/* Full WhatsApp option block, used on the contact page. */
.wa-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: var(--radius-md);
}
.wa-panel .wa-number {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.btn-wa {
  background: var(--wa);
  color: #04231A;
  font-weight: 600;
}
.btn-wa:hover {
  background: #1FBE5B;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(37, 211, 102, 0.7);
}

/* Ordered contact options with a response-time badge */
.reach-list { display: grid; gap: 16px; counter-reset: reach; }

.reach-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.reach-rank {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.reach-item h3 { font-size: var(--fs-h4); margin: 0 0 4px; }
.reach-item p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.reach-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 620px) {
  .reach-item { grid-template-columns: 32px minmax(0, 1fr); }
  .reach-time { grid-column: 2; text-align: left; }
}


/* ==========================================================================
   24  COOKIE BAR
   ========================================================================== */

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 120;
  transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  transition: transform 0.4s var(--ease);
}
.cookie-bar.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-bar p {
  flex: 1 1 300px;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-bar .btn { flex: none; }


/* ==========================================================================
   25  404
   ========================================================================== */

.page-404 {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.page-404 .code-404 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 14vw, 150px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}


/* ==========================================================================
   26  MOTION
   Hero: one orchestrated staggered rise on load.
   Everything else: IntersectionObserver reveals. No parallax, no carousels.
   ========================================================================== */

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

.anim-rise {
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   27  RESPONSIVE
   Tested at 375 / 768 / 1024 / 1440.
   ========================================================================== */

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .case-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy  { max-width: 100%; }
  .hero-art   { max-width: 520px; margin-inline: auto; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2n)::after { display: none; }

  .case-feature { grid-template-columns: 1fr; }
  .case-layout  { grid-template-columns: 1fr; }
  .case-rail    { position: static; }

  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Nav collapses to the hamburger below 900px, per spec.
   .nav-actions must go too — leaving the WhatsApp link in the pill pushes the
   hamburger off-screen and drags the whole page wider than the viewport.
   WhatsApp is still reachable on mobile via the overlay menu and the FAB. */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta,
  .nav-actions { display: none; }
  .nav-burger { display: grid; }
  .nav { padding-right: 10px; }

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

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 720px) {
  :root { --section-pad: 72px; }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .post-grid,
  .form-row { grid-template-columns: 1fr; }

  .step::after { display: none; }

  .deliverable { grid-template-columns: 1fr; gap: 8px; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-support { max-width: 100%; text-align: center; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .card,
  .service-card,
  .problem-card,
  .price-card,
  .post-card,
  .quote-card { padding: 24px 20px; }

  .nav { padding-left: 16px; }
  .nav-logo .logo-word { font-size: 17.5px; }

  .footer-top { grid-template-columns: 1fr; }

  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar .btn { width: 100%; }
}


/* ==========================================================================
   28  REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .anim-rise { opacity: 1; animation: none; }
  .reveal    { opacity: 1; transform: none; }

  .btn-primary:hover,
  .btn-secondary:hover,
  .card-hover:hover { transform: none; }
}
