/* ============================================================
   ASO Agency — asoagency.io
   Design system: App Store–style light theme
   White surfaces, soft gray sections, Apple-blue accents
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-dim: #5f5f64;
  --blue: #0071e3;
  --blue-dark: #0060c2;
  --indigo: #5e5ce6;
  --grad: linear-gradient(100deg, #0090f7 0%, #5e5ce6 100%);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --font-display: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); font-weight: 800; letter-spacing: -0.028em; }
h2 { font-size: clamp(2.05rem, 4vw, 3.1rem); letter-spacing: -0.026em; }
h3 { font-size: 1.18rem; font-weight: 600; }

h1, h2, h3 { text-wrap: balance; }
.hero__sub, .section__sub, .faq p, .cta p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 0; }

/* A bold, dual-tone focus ring readable on every surface: a 3px App Store
   blue outline plus a white separator halo, so it stands clear over white,
   fog, gray cards, and saturated blue alike. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9);
}
.btn--primary:focus-visible { outline-offset: 3px; }
/* On the drenched blue CTA the outline flips to white; reverse the halo to a
   dark separator and give the white primary button a blue ring so it never
   washes out against its own surface. */
.cta--drench :focus-visible { box-shadow: 0 0 0 5px rgba(0, 21, 64, 0.45); }
.cta--drench .btn--primary:focus-visible {
  outline-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.container--narrow { width: min(800px, calc(100% - 48px)); }

.grad,
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* Centered, bordered chip used in the hero (no caps, full sentence) */
.eyebrow--pill {
  display: inline-block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 8px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons (Apple-style pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 980px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--full { width: 100%; }

.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.32);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.4);
}
/* A single light sheen sweeps the one action color on hover — draws the
   eye to the conversion button without breaking the calm. Pointer-safe;
   the text reads through the low-opacity highlight as it passes. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.22) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn--primary:hover::after { animation: btnSheen 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes btnSheen { to { transform: translateX(130%); } }

.btn--ghost {
  background: var(--bg-alt);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text);
}
.btn--ghost:hover {
  background: #ebebef;
  transform: translateY(-2px);
}

/* Press: every button gives under the cursor — quick, tactile, no bounce */
.btn:active {
  transform: translateY(0) scale(0.975);
  transition-duration: 0.06s;
}
.btn--primary:active { box-shadow: 0 3px 12px rgba(0, 113, 227, 0.3); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Flex prevents the pill's top margin collapsing through the sticky bar,
     which would pin the compacted pill flush against the viewport edge */
  display: flex;
  flex-direction: column;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease;
}
/* Scrolled: the full-width bar dissolves and the inner row compacts into
   a floating frosted pill, detached from the edges */
.nav.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
  border: 1px solid transparent;
  border-radius: 980px;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-scrolled .nav__inner {
  width: min(880px, calc(100% - 32px));
  height: 54px;
  margin-top: 16px;
  padding: 0 10px 0 24px;
  /* Near-opaque so the pill stays a light, legible surface even when it
     floats over the dark Results section (a translucent pill turned muddy
     gray there and sank the dark link text). Blur still reads as frosted. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(200%) blur(26px);
  -webkit-backdrop-filter: saturate(200%) blur(26px);
  border-color: var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 32px rgba(0, 0, 0, 0.1);
}
.nav__cta {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.35s ease;
}
.nav.is-scrolled .nav__cta {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav__logo em { font-style: normal; color: #3d3d42; font-weight: 600; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--blue); }

/* "Book a call" entry only appears inside the mobile dropdown */
.nav__links-book { display: none; }

/* ── Resources dropdown (Blog + Glossary) ───────────────────────────── */
.nav__dd { position: relative; display: flex; align-items: center; }
.nav__dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.nav__dd-btn:hover,
.nav__dd-btn[aria-expanded="true"] { color: var(--blue); }
.nav__dd-caret { transition: transform 0.2s ease; }
.nav__dd-btn[aria-expanded="true"] .nav__dd-caret,
.nav__dd:hover .nav__dd-caret { transform: rotate(180deg); }

.nav__dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  min-width: 172px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
/* invisible bridge so the cursor can travel from button to menu */
.nav__dd-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__dd:hover .nav__dd-menu,
.nav__dd:focus-within .nav__dd-menu,
.nav__dd.is-open .nav__dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dd-menu a {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav__dd-menu a:hover { background: var(--bg-alt); color: var(--blue); }
.nav__dd-menu a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* Mobile: dropdown becomes an inline accordion inside the slide-down menu */
@media (max-width: 720px) {
  .nav__dd { display: block; }
  .nav__dd-btn { width: 100%; justify-content: space-between; padding: 13px 0; font-size: 1rem; }
  .nav__dd-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 6px 14px;
    min-width: 0;
    display: none;
  }
  .nav__dd-menu::before { display: none; }
  .nav__dd.is-open .nav__dd-menu { display: flex; }
  .nav__dd-menu a { padding: 11px 0; font-size: 0.98rem; }
}

.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  /* 44×44 minimum tap target */
  width: 44px;
  height: 44px;
  padding: 8px;
  margin-left: auto;
  margin-right: -8px;
  cursor: pointer;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Fill the first viewport (minus the 68px sticky nav) so the icon dock,
     anchored to the hero foot, is in view the moment the page loads. */
  min-height: calc(100svh - 68px);
  padding: clamp(48px, 7vh, 84px) 0 0;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -300px;
  left: 62%;
  transform: translateX(-50%);
  width: 1100px;
  height: 720px;
  background:
    radial-gradient(ellipse at 36% 40%, rgba(0, 144, 247, 0.13), transparent 60%),
    radial-gradient(ellipse at 72% 32%, rgba(94, 92, 230, 0.11), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  align-content: center;
  gap: clamp(40px, 6vw, 84px);
}
.hero__copy { max-width: 600px; min-width: 0; }
.hero h1 { max-width: 15ch; }
.hero__sub {
  color: var(--text-dim);
  font-size: 1.2rem;
  margin: 22px 0 32px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Hero entrance ----------
   The one orchestrated first-load moment the brand permits. The copy
   rises line by line, the proof card floats up beside it, and the trust
   strip settles last — a confident arrival, not scattered motion. Pure
   transform/opacity, runs once (forwards), gated on html.js so a no-JS
   page is fully visible, and fully suppressed under reduced motion. */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroProof {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
html.js .hero__copy > * {
  opacity: 0;
  animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.js .hero .eyebrow--pill { animation-delay: 0.05s; }
html.js .hero h1            { animation-delay: 0.15s; }
html.js .hero__sub         { animation-delay: 0.30s; }
html.js .hero__actions     { animation-delay: 0.42s; }
html.js .hero__note        { animation-delay: 0.52s; }
html.js .hero__proof {
  opacity: 0;
  animation: heroProof 1s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.js .hero__apps {
  opacity: 0;
  animation: heroRise 0.8s 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero proof column — the signature rank-card, finally where it belongs */
.hero__proof {
  position: relative;
  justify-self: end;
  width: 100%;
  min-width: 0;
  max-width: 430px;
}
.pill--live { display: inline-flex; align-items: center; gap: 6px; }
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #157a40;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.rank-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
}
.rank-float small { font-weight: 500; font-size: 0.78rem; color: var(--text-dim); }
.rank-float svg { width: 16px; height: 16px; }
.rank-float--a {
  top: -24px;
  left: -28px;
  color: #157a40;
  animation: floatA 5s ease-in-out infinite;
}
.rank-float--b {
  bottom: -22px;
  right: -22px;
  animation: floatB 6s ease-in-out infinite;
}
.rank-float__star { color: #f59e0b; font-size: 1.05rem; line-height: 1; }
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Proof card — reused by the case studies section */
.rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.rank-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.rank-card__title { font-family: var(--font-display); font-weight: 600; }

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.pill--live {
  color: #157a40;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.rank-row {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.rank-row__kw { font-size: 0.92rem; font-weight: 500; }
.rank-row__vol {
  height: 6px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 99px;
  overflow: hidden;
}
.rank-row__vol i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  transform-origin: left;
  animation: growBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes growBar { from { transform: scaleX(0); } }

.rank-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 74px;
  text-align: right;
}
.rank-chip small {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.7rem;
  font-weight: 600;
}
.rank-chip--up small { color: #157a40; }

.rank-card__chart { width: 100%; height: 80px; margin-top: 16px; }
.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1.8s 0.4s ease-out forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.rank-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.rank-card__delta { font-family: var(--font-display); font-weight: 700; color: var(--blue); }

/* ---------- Hero app-icon dock ---------- */
.hero__apps {
  position: relative;
  margin-top: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(18px, 3.5vh, 36px);
}
.hero__apps-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.hero__apps-stars { color: #ff9f0a; letter-spacing: 1.5px; font-size: 0.86rem; }

.apps-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.apps-marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
}
/* Loop runs only once JS has cloned the set wide enough to fill the track
   (.apps-marquee--on); otherwise a single set would leave a trailing gap. */
.apps-marquee--on .apps-marquee__track {
  animation: marqueeX 42s linear infinite;
}
@keyframes marqueeX {
  to { transform: translateX(calc(-50% - 9px)); }
}
.tile {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Stats band ---------- */
.apps-band {
  background: var(--bg-alt);
  padding: 56px 0;
  overflow: hidden;
}
.stats__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 36px;
}
.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 3px;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}
.stat__num,
.stat__suffix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__num + .stat__suffix { margin-left: -6px; }
.stat p {
  flex-basis: 100%;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 18ch;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }

/* Trim the band's vertical padding on shorter screens via a vh-aware clamp so
   the heading, map, and proof cards stay close to one viewport. */
#results { padding-block: clamp(52px, 7vh, 96px); }

/* Results: a single centred column — heading, the system map, the proof cards,
   then the honesty line + CTA. Reads top-to-bottom as "here's the method, and
   here's the method run on a real app." */
.section__head--center { max-width: 720px; margin-inline: auto; text-align: center; }

/* ---------- System map: every lever resolves to one store page ----------
   A single responsive SVG. The viewBox keeps every node aligned at any width;
   the figure scales fluidly and never needs per-breakpoint repositioning. */
.sysmap {
  max-width: 980px;
  margin: clamp(32px, 4.5vh, 56px) auto 0;
}
.sysmap__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
}
/* Light theme: a fog panel holds white cards, so the App Store blue hub is the
   one saturated focal point. Inputs sit recessed (fog), levers stand elevated
   (white + soft shadow), the outcome carries a quiet green. */
.sm-bg {
  fill: var(--bg-alt);
  stroke: var(--border);
  stroke-width: 1.5;
}

/* Node shells. Levers, hub, outcome, and the data chip lift off the panel with
   the site's ambient-softness shadow; inputs stay flat to read as secondary. */
.sm-input { fill: #ececf0; stroke: rgba(0, 0, 0, 0.06); stroke-width: 1; }
.sm-pillar { fill: #ffffff; stroke: var(--border); stroke-width: 1; filter: url(#smShadow); }
.sm-chip { fill: #ffffff; stroke: var(--border); stroke-width: 1; filter: url(#smShadow); }
.sm-hub {
  fill: var(--blue);
  stroke: var(--blue-dark);
  stroke-width: 1;
  filter: url(#smShadow);
}
.sm-out { fill: #ffffff; stroke: rgba(31, 145, 92, 0.45); stroke-width: 1.5; filter: url(#smShadow); }

/* Node labels */
.sm-t {
  fill: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sm-t--muted { fill: #6b6b70; font-weight: 500; }
.sm-t--hub { fill: #ffffff; font-size: 23px; }
.sm-t--hubsub { fill: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.sm-t--out { fill: #157a47; font-size: 18px; }
.sm-t--label { fill: #5f5f64; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }

/* Connectors. Dotted lines that flow — the dashes march along each path's drawn
   direction: inward toward the store page on the left/top, outward to installs
   on the right, and clockwise around the green monthly loop. */
.sm-link {
  stroke: rgba(0, 113, 227, 0.5);
  stroke-width: 2.5;
  stroke-dasharray: 2 11;
  stroke-linecap: round;
}
.sm-link--loop { stroke: rgba(31, 145, 92, 0.6); }

.sysmap__cap {
  max-width: 720px;
  margin: clamp(18px, 2.4vh, 28px) auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Assemble-in-sequence: each node fades up once the figure enters view, the
   --i index staggering them centre-out (hub first, loop last). Connectors fade
   in with their nearer endpoint, then settle into a continuous slow flow toward
   the hub / installs. Reduced motion shows it whole and still. */
html.js .sysmap .sm-node,
html.js .sysmap .sm-link {
  opacity: 0;
}
html.js .sysmap.is-visible .sm-node {
  animation: sm-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
html.js .sysmap.is-visible .sm-link {
  animation:
    sm-fade 0.5s ease forwards,
    sm-flow 1.15s linear infinite;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
@keyframes sm-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes sm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* One dash period (2 + 11) of travel, looped — the marching-ants flow */
@keyframes sm-flow {
  to { stroke-dashoffset: -13; }
}

/* ---------- Proof row: representative outcomes under the mechanism ---------- */
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  max-width: 880px;
  margin: clamp(28px, 4vh, 46px) auto 0;
}

/* ---------- Honesty line + CTA ---------- */
.results-foot {
  max-width: 880px;
  margin: clamp(26px, 3.4vh, 40px) auto 0;
  padding-top: clamp(22px, 3vh, 32px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.results-foot__nda {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 460px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.results-foot__lock {
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
  margin-top: 2px;
  color: var(--text-dim);
}
.results-foot .btn { flex: 0 0 auto; }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.14);
  margin-bottom: 20px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease, border-color 0.2s ease;
}
.card:hover .card__icon {
  transform: translateY(-2px) scale(1.06);
  background: rgba(0, 113, 227, 0.13);
  border-color: rgba(0, 113, 227, 0.24);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Featured card: the audit is the entry product; it sits proud of the shelf
   with the same blue halo as the featured pricing plan */
.section:not(.section--alt) .card--featured,
.card--featured {
  background: var(--surface);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 12px 36px rgba(0, 113, 227, 0.1);
}
.section:not(.section--alt) .card--featured:hover,
.card--featured:hover {
  background: var(--surface);
  border-color: rgba(0, 113, 227, 0.5);
  box-shadow: 0 16px 44px rgba(0, 113, 227, 0.14);
}
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card__flag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.14);
  padding: 4px 11px;
  border-radius: 99px;
  white-space: nowrap;
}

/* On white sections, gray-tinted cards (App Store shelf) with a whisper of float */
.section:not(.section--alt) .card {
  background: var(--bg-alt);
  border-color: transparent;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.section:not(.section--alt) .card:hover {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- Process spine timeline ----------
   The page's one true sequence gets the one timeline. Two columns on
   desktop: the head stays sticky while the spine scrolls past it. */
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.process-layout .section__head {
  margin-bottom: 0;
  position: sticky;
  top: 116px;
}

/* Trust cues. A flat, on-brand stat block that fills the head's left column
   in place of decoration — a concrete anchor for the process beside it. */
.process-cues {
  list-style: none;
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  max-width: 340px;
}
.process-cues__item {
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 113, 227, 0.4);
}
.process-cues__k {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--blue-dark);
}
.process-cues__v {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.timeline {
  --node: 44px;
  position: relative;
  max-width: 600px;
}

/* Track + fill. A full-length track runs top to bottom (JS sizes it to end
   exactly at the last node's center) so the line is ALWAYS continuous; the
   brighter blue fill on top follows the reader's scroll via transform: scaleY
   only, so the line never repaints — one transform write per frame. */
.tl-spine {
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2); /* JS replaces this with an exact height */
  width: 2px;
  border-radius: 2px;
  background: rgba(0, 113, 227, 0.16);
}
.tl-spine__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blue);
  transform-origin: top;
}
html.js .tl-spine__fill { transform: scaleY(0); will-change: transform; }

.tl-steps { display: grid; gap: 52px; }
.tl-step { position: relative; padding-left: calc(var(--node) + 30px); }

/* Every node carries the same treatment — one consistent blue stop, no
   per-state styling, so the track never looks like some steps failed to
   render. */
.tl-node {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--node);
  height: var(--node);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(0, 113, 227, 0.45);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.tl-node svg { width: 19px; height: 19px; }

/* Label rides the node's vertical center so each stop reads at a glance */
.tl-label {
  display: flex;
  align-items: center;
  min-height: var(--node);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.tl-body h3 { margin: 8px 0 8px; }
.tl-body p { color: var(--text-dim); font-size: 0.95rem; max-width: 52ch; }

/* Step copy rises in with a gentle stagger when the section enters view —
   a single one-way reveal, decoupled from scroll position. Gated on html.js
   so the section is fully readable without JS. */
html.js .tl-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .timeline.is-drawn .tl-step { opacity: 1; transform: none; }
html.js .timeline.is-drawn .tl-step:nth-child(2) { transition-delay: 0.1s; }
html.js .timeline.is-drawn .tl-step:nth-child(3) { transition-delay: 0.2s; }
html.js .timeline.is-drawn .tl-step:nth-child(4) { transition-delay: 0.3s; }

/* Closing CTA — aligned with the step copy, sits just past the last node */
.tl-cta {
  margin-top: 40px;
  padding-left: calc(var(--node) + 30px);
}
.tl-cta__line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 16px;
}

/* ---------- Case studies ---------- */
/* Case studies echo the hero rank-card: proof objects with live area charts */
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.case__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.case__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}
/* Lever pill: names which lever from the map above produced this result, in the
   App Store blue accent so proof reads back to method. */
.case__badge {
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
}
.case__metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.05rem);
  letter-spacing: -0.03em;
  margin-top: 4px;
  line-height: 1;
  color: var(--blue);
}
.case__label { font-weight: 600; font-size: 0.9rem; margin-top: 2px; }
.case__note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dim);
}
.case__arrow { color: #0a84ff; font-weight: 700; margin-right: 2px; }

/* ---------- Testimonials ---------- */
/* Aggregate rating line under the heading — quiet social proof */
.quotes__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.quotes__trust-stars { color: #f59e0b; letter-spacing: 2px; }
.quotes__trust strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Auto-scrolling wall of love. The track holds the card set plus JS-made
   clones; translating by -50% lands exactly on an identical frame, so the
   loop is seamless. Margins (not gap) keep that -50% math exact. */
.quotes-marquee {
  --marquee-gap: 22px;
  margin-top: 8px;
  padding-block: 8px; /* room for the hover lift's shadow */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.quotes-marquee__track {
  display: flex;
  align-items: stretch;
  width: max-content;
}
.quotes-marquee .quote {
  flex: 0 0 360px;
  margin-right: var(--marquee-gap);
}
.quotes-marquee .quote--featured { flex-basis: 480px; }
.quotes-marquee--on .quotes-marquee__track {
  animation: quotes-scroll 55s linear infinite;
  will-change: transform;
}
@keyframes quotes-scroll {
  to { transform: translateX(-50%); }
}
/* Calm, readable wall: stop while the visitor reads or tabs through */
.quotes-marquee:hover .quotes-marquee__track,
.quotes-marquee:focus-within .quotes-marquee__track,
.quotes-marquee.is-paused .quotes-marquee__track {
  animation-play-state: paused;
}
/* Touch devices: allow manual swipe; JS pauses the scroll while touching */
@media (hover: none) {
  .quotes-marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quotes-marquee::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .quotes-marquee .quote { flex-basis: 300px; }
  .quotes-marquee .quote--featured { flex-basis: 330px; }
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}
/* The number that moved — echoes the section's promise.
   Blue numeral matches the rank-card delta convention. */
.quote__result {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.79rem;
}
.quote__result strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.quote__stars { color: #f59e0b; letter-spacing: 3px; font-size: 0.9rem; }
.quote p { font-size: 0.98rem; }
.quote footer {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: auto;
}
.quote footer strong { color: var(--text); }
.quote__avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}
.quote__avatar--indigo { background: #5e5ce6; }
.quote__avatar--teal { background: #00a39b; }
.quote__avatar--ember { background: #e8590c; }

/* Lead quote spans the row and speaks at headline volume */
.quote--featured {
  grid-column: 1 / -1;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
/* Ambient oversized quote mark — texture, not decoration that competes */
.quote--featured::before {
  content: "\201C";
  position: absolute;
  top: 0.04em;
  right: 0.16em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(0, 113, 227, 0.06);
  pointer-events: none;
}
.quote--featured p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.012em;
  max-width: 30em;
  position: relative;
}
.quote--featured footer { flex-wrap: wrap; }
.quote--featured .quote__result { margin-left: auto; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* The featured plan stays white while its siblings tint to fog, so it lifts
   off the shelf by the swap (Fog Alternation Rule) — a subtle scale and the
   blue halo carry the rest. No gradient surface; the Drench Rule owns that. */
.plan--featured {
  background: var(--surface);
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 24px 64px rgba(0, 113, 227, 0.14);
  transform: scale(1.035);
  z-index: 1;
}
.plan--featured:hover {
  transform: scale(1.035) translateY(-4px);
  box-shadow: 0 28px 72px rgba(0, 113, 227, 0.18);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
}
.plan h3 { font-size: 1.3rem; }
.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  margin: 14px 0 6px;
}
.plan__price span { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); }
.plan__tagline { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 22px; }
/* Hairline groups the price + tagline block apart from the feature list */
.plan ul {
  margin-bottom: 28px;
  display: grid;
  gap: 11px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.plan ul li {
  position: relative;
  padding-left: 26px;
  font-size: 0.93rem;
  color: var(--text-dim);
}
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.plan .btn { margin-top: auto; }
/* Secondary plan CTAs invert to a white fill so they stay legible — and read
   clearly clickable — against the fog-tinted card, without borrowing the
   action blue that the featured plan's primary button owns. */
.plan .btn--ghost {
  background: var(--surface);
  border-color: var(--border);
}
.plan .btn--ghost:hover {
  background: #fff;
  border-color: rgba(0, 113, 227, 0.35);
}

.pricing__note {
  text-align: center;
  color: var(--text-dim);
  margin-top: 36px;
  font-size: 0.95rem;
}
.pricing__note a { color: var(--blue); font-weight: 600; }
.pricing__note a:hover { text-decoration: underline; }

/* ---------- Inline Calendly scheduler ----------
   Always visible below the CTA booking buttons; a white card on the blue
   drench with rounded corners clipping the embedded iframe. */
.cal-inline {
  /* Break out of the 680px .cta__inner measure so the embed is wide enough for
     Calendly's side-by-side layout (info + calendar + time slots), which kicks
     in around 1000px+. Below that Calendly falls back to the tall stacked
     layout that needs internal scrolling. Centered via the margin/translate
     pair so it stays on the page's centre line while exceeding its parent. */
  width: min(1080px, calc(100vw - 48px));
  margin-top: 36px;
  margin-bottom: 4px;
  margin-left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.cal-inline .calendly-inline-widget { min-width: 320px; height: 700px; }
/* Placeholder shown inside the reserved space until the lazy-loaded Calendly
   widget paints over it. Centered, muted, with a working fallback link. */
.cal-inline__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #6e6e73);
  font-size: 0.95rem;
}
/* On narrow screens Calendly stacks the panels, which needs more height to
   avoid an internal scrollbar. */
@media (max-width: 768px) {
  .cal-inline .calendly-inline-widget { height: 1040px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.faq[open] { border-color: rgba(0, 113, 227, 0.4); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
/* Plus → minus on open; flips back the instant a close begins (is-closing)
   so the icon leads the collapse rather than snapping at the end of it. */
.faq[open]:not(.is-closing) .faq__icon::after { transform: rotate(90deg); }
.faq p { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.96rem; }

/* The panel height is animated in JS (WAAPI) so native <details> semantics —
   keyboard, find-in-page, screen readers — stay intact. The answer copy
   itself just rides a short fade/slide keyed off the JS state classes. */
.faq.is-opening p { animation: faqAnswerIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
.faq.is-closing p {
  opacity: 0.12;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
@keyframes faqAnswerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- CTA (drenched: the One Blue finally owns a full surface) ---------- */
.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.cta--drench {
  background: linear-gradient(135deg, #0071e3 0%, #2356e8 55%, #5e5ce6 100%);
}
.cta__inner { position: relative; max-width: 680px; }
.cta--drench h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; margin: 20px 0 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta--drench .btn--primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 12px 32px rgba(0, 21, 64, 0.28);
}
.cta--drench .btn--primary:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 21, 64, 0.34);
}
.cta--drench .btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.cta--drench .btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
.cta p.cta__note { margin: 22px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); }
.cta__note a { color: #fff; font-weight: 600; }
.cta__note a:hover { text-decoration: underline; }
.cta--drench :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 64px 0 28px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 16px; max-width: 280px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 6px; }
.footer__col a { color: var(--text-dim); font-size: 0.93rem; transition: color 0.15s ease; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__bottom a:hover { color: var(--text); }

/* Touch devices: give the stacked footer links, the back-to-top link, and the
   inline header links a comfortable ≥44px tap height. Negative margins absorb
   the added padding so the visual rhythm is unchanged; only the hit area grows.
   Scoped to coarse pointers so mouse layouts keep their tighter spacing. */
@media (hover: none) and (pointer: coarse) {
  .footer__col a,
  .footer__bottom a,
  .nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer__col {
    gap: 2px;
  }
}

main .container,
.footer .container,
.apps-marquee,
.quotes-marquee {
  position: relative;
  z-index: 1;
}

/* ---------- Reveal animation ----------
   Gated on html.js so content is visible by default: no JS, no hidden page. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Items within one grid intersect together; a short per-item delay makes
   them cascade in rather than blink as a block — the difference between a
   page that assembles and one that flickers on. Delay is on the entrance
   transition only, so the hover transitions afterward stay instant. */
html.js .cards-grid > .reveal:nth-child(2),
html.js .pricing-grid > .reveal:nth-child(2),
html.js .proof-row > .reveal:nth-child(2),
html.js .faq-list > .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .cards-grid > .reveal:nth-child(3),
html.js .pricing-grid > .reveal:nth-child(3),
html.js .proof-row > .reveal:nth-child(3),
html.js .faq-list > .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .cards-grid > .reveal:nth-child(4),
html.js .faq-list > .reveal:nth-child(4) { transition-delay: 0.24s; }
html.js .cards-grid > .reveal:nth-child(5),
html.js .faq-list > .reveal:nth-child(5) { transition-delay: 0.32s; }
html.js .cards-grid > .reveal:nth-child(6),
html.js .faq-list > .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Off-screen pause ----------
   The page's continuous loops (icon marquee, wall-of-love marquee, hero
   float pills, the live-dot box-shadow pulse) animate forever. JS adds
   .anim-off to a section once it scrolls out of view, freezing those
   loops so the compositor and paint do no work for them off-screen —
   pure savings on a long scroll, with no visible seam on resume.
   Reduced motion already disables these animations entirely. */
.hero__apps.anim-off .apps-marquee__track,
.quotes-marquee.anim-off .quotes-marquee__track,
.hero__proof.anim-off .rank-float,
.hero__proof.anim-off .pill__dot { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  /* Hero entrance, card-icon lift, and the CTA sheen are all suppressed:
     content stands at its final state with no motion. */
  html.js .hero__copy > *,
  html.js .hero__proof,
  html.js .hero__apps { opacity: 1; animation: none; }
  .card:hover .card__icon { transform: none; }
  .btn--primary:hover::after { animation: none; }
  .btn:active { transform: none; }
  /* Nav pill compaction switches state instantly */
  .nav, .nav__inner, .nav__cta { transition: none; }
  .nav__links.is-open { animation: none; }
  /* FAQ: JS skips its height animation; the panel toggles instantly and the
     answer copy carries no fade/slide. */
  .faq__icon::before, .faq__icon::after { transition: none; }
  .faq.is-opening p { animation: none; }
  .faq.is-closing p { opacity: 1; transform: none; transition: none; }
  .rank-row__vol i, .chart-line, .apps-marquee__track,
  .rank-float, .pill__dot { animation: none; }
  .chart-line { stroke-dashoffset: 0; }
  /* System map appears whole: every node and connector at final state, no rise
     and no marching-dash flow. Matches the .is-visible specificity so it wins. */
  html.js .sysmap .sm-node,
  html.js .sysmap .sm-link,
  html.js .sysmap.is-visible .sm-node,
  html.js .sysmap.is-visible .sm-link { opacity: 1; animation: none; transform: none; }
  /* Spine timeline: line fully drawn, content static, no draw-in transition */
  html.js .tl-spine__fill { transform: scaleY(1); will-change: auto; transition: none; }
  html.js .tl-step { opacity: 1; transform: none; transition: none; }
  /* Quotes marquee falls back to the original static grid */
  .quotes-marquee {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .quotes-marquee__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    width: auto;
    animation: none;
  }
  .quotes-marquee .quote { flex: none; margin-right: 0; }
  .quotes-marquee .quote[aria-hidden="true"] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards-grid, .cases-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero__copy { max-width: 600px; }
  .hero__proof { justify-self: center; max-width: 400px; margin-top: 8px; }
}

@media (max-width: 860px) {
  .hero { padding-top: 64px; }

  /* Timeline collapses to one column: static head, same left-edge spine */
  .process-layout { grid-template-columns: 1fr; }
  .process-layout .section__head { position: static; margin-bottom: 44px; }
  /* Cues sit inline under the heading, full-width across the column */
  .process-cues { max-width: none; }

}

/* Narrow screens: the wide system map would shrink its labels to nothing, so
   below 620px it keeps a legible minimum width and scrolls horizontally inside
   its own panel instead of compressing. The figcaption carries the full story
   for anyone who doesn't scroll. */
@media (max-width: 620px) {
  .sysmap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sysmap__svg { min-width: 560px; }
  .proof-row {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .results-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 420px;
  }
  .results-foot .btn { align-self: stretch; text-align: center; }
}

@media (max-width: 600px) {
  .stats__strip { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .rank-float--a { left: -10px; }
  .rank-float--b { right: -8px; }
}

@media (max-width: 720px) {
  /* Dropdown floats as a card matching the compacted nav pill */
  .nav__links {
    display: none;
    position: absolute;
    top: 78px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 8px 24px 16px;
  }
  .nav__links.is-open {
    display: flex;
    transform-origin: top right;
    animation: navDrop 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: none; }
  }
  .nav__links a { padding: 13px 0; font-size: 1rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* The booking action joins the mobile menu since the nav pill is hidden */
  .nav__links-book {
    display: block;
    color: var(--blue);
    font-weight: 600;
  }
  .nav__links .nav__links-book:hover { color: var(--blue-dark); }

  .section { padding: 72px 0; }
  .cards-grid, .cases-grid, .pricing-grid { grid-template-columns: 1fr; }
  .plan--featured { order: -1; transform: none; }
  .plan--featured:hover { transform: translateY(-4px); }
  .quote--featured { padding: 28px 26px; }
}

@media (max-width: 480px) {
  .timeline { --node: 38px; }
  .tl-step { padding-left: calc(var(--node) + 22px); }
  .tl-steps { gap: 44px; }
  .tl-node svg { width: 17px; height: 17px; }
  .stats__strip { grid-template-columns: 1fr; gap: 22px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn--lg { font-size: 0.98rem; padding-inline: 18px; }
  .cta__actions .btn { width: 100%; }
  .tile { width: 52px; height: 52px; border-radius: 13px; }
  .phone { width: 250px; }
}

/* ============================================================
   Blog (blog.html)
   ============================================================ */
.blog-hero {
  text-align: center;
  padding: 84px 0 8px;
}
.blog-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.blog-hero__sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 18px auto 0;
}

/* Category filter chips */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.chip {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip:not(.chip--active):hover { color: var(--blue); border-color: var(--blue); }
.chip--active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.blog { padding: 52px 0 40px; }

/* Cover artwork (gradient + icon, no image assets needed) */
.cover {
  display: grid;
  place-items: center;
  background: var(--grad);
}
.cover svg { width: 56px; height: 56px; color: #fff; opacity: 0.92; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover--a { background: linear-gradient(135deg, #0090f7, #5e5ce6); }
.cover--b { background: linear-gradient(135deg, #34c759, #0090f7); }
.cover--c { background: linear-gradient(135deg, #5e5ce6, #bf5af2); }
.cover--d { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.cover--e { background: linear-gradient(135deg, #0071e3, #34c759); }
.cover--f { background: linear-gradient(135deg, #ff375f, #5e5ce6); }
.cover--g { background: linear-gradient(135deg, #1d1d1f, #5f5f64); }

/* Shared tag + meta */
.post-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border-radius: 980px;
  padding: 5px 12px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* Featured post */
.post-featured {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 56px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-featured__cover { min-height: 360px; }
.post-featured__cover svg { width: 76px; height: 76px; }
.post-featured__body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-featured__body h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  margin: 16px 0 14px;
}
.post-featured__body p { color: var(--text-dim); font-size: 1.02rem; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__cover { aspect-ratio: 16 / 10; }
.post-card__cover svg { width: 44px; height: 44px; }
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.post-card__body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 13px 0 9px;
}
.post-card__body p { color: var(--text-dim); font-size: 0.93rem; flex: 1; }
.post-card .post-meta { margin-top: 16px; }

/* Links wrapping whole cards keep text colors */
a.post-featured, a.post-card { color: inherit; }
a.post-featured:hover h2, a.post-card:hover h3 { color: var(--blue); }
.post-card__body h3, .post-featured__body h2 { transition: color 0.15s ease; }

.post-hidden { display: none; }

/* Centered "See all articles" button below the homepage blog teaser */
.section__cta {
  text-align: center;
  margin-top: 44px;
}

/* Homepage "More from the blog" teaser */
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section__head-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}
.section__head-link svg { transition: transform 0.18s ease; }
.section__head-link:hover svg { transform: translateX(3px); }

/* Browse-all card: tinted, no cover, vertically centred */
.post-card--more {
  justify-content: center;
  background: rgba(0, 113, 227, 0.05);
  border-color: rgba(0, 113, 227, 0.16);
}
.post-card--more .post-card__body { padding: 30px 26px; }
.post-card--more h3 { margin-top: 0; }
.post-card--more__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}
.post-card--more__cta svg { transition: transform 0.18s ease; }
.post-card--more:hover .post-card--more__cta svg { transform: translateX(3px); }

/* Staggered reveal for the teaser cards */
html.js .post-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .post-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}
.pagination__btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pagination__btn:hover:not(:disabled):not(.pagination__btn--active) {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pagination__btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  cursor: default;
}
.pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Newsletter band */
.blog-cta {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(104px, 14vw, 184px) 40px;
  text-align: center;
  isolation: isolate;
}
.blog-cta__content { position: relative; z-index: 3; width: 100%; }
.blog-cta h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--text); }
.blog-cta p { color: var(--text-dim); margin-top: 12px; }

/* Ambient orbit — two perspective rings of app icons drifting behind the form.
   Built from the site's own local app icons (Images/Apps/*.webp). */
.blog-cta__orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: perspective(1200px) rotateX(20deg);
  transform-origin: center bottom;
  opacity: .62;
}
.blog-cta__ring {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.blog-cta__ring--outer { --r: 460px; animation: blog-orbit 120s linear infinite; }
.blog-cta__ring--mid   { --r: 330px; animation: blog-orbit-rev 95s linear infinite; }
.blog-cta__ring--inner { --r: 215px; animation: blog-orbit 80s linear infinite; }
.blog-cta__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) scale(var(--s, 1));
}
.blog-cta__ring--mid .blog-cta__icon   { width: 68px; height: 68px; margin: -34px; }
.blog-cta__ring--inner .blog-cta__icon { width: 58px; height: 58px; margin: -29px; }
.blog-cta__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16), inset 0 0 0 1px rgba(0,0,0,.05);
}
.blog-cta__ring--mid .blog-cta__icon img   { border-radius: 17px; }
.blog-cta__ring--inner .blog-cta__icon img { border-radius: 14px; }
/* Depth of field: the far ring sits soft and slightly back. */
.blog-cta__ring--outer .blog-cta__icon img { filter: blur(2px); opacity: .8; }
@keyframes blog-orbit { to { transform: rotate(360deg); } }
@keyframes blog-orbit-rev { to { transform: rotate(-360deg); } }

/* Gradient veil — clears a band behind the heading + form so it stays legible,
   while leaving the surrounding icons fully visible. */
.blog-cta__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 56%, var(--bg-alt) 0%, rgba(245,245,247,.85) 42%, rgba(245,245,247,0) 72%);
}
/* Waitlist-style subscribe: pill input with embedded button,
   loading spinner, then an emerald success state with confetti. */
.waitlist {
  position: relative;
  max-width: 460px;
  height: 60px;
  margin: 26px auto 0;
}
.waitlist__confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

/* Form state */
.waitlist__form {
  position: relative;
  width: 100%;
  height: 100%;
  transition: opacity .5s cubic-bezier(.23,1,.32,1), transform .5s cubic-bezier(.23,1,.32,1);
}
.waitlist__form input {
  width: 100%;
  height: 60px;
  font: inherit;
  padding: 0 158px 0 24px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), inset 0 0 0 1px rgba(0,0,0,.02);
  transition: box-shadow .2s, border-color .2s;
}
.waitlist__form input::placeholder { color: var(--text-dim); }
.waitlist__form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.18);
}
.waitlist__form input:disabled { opacity: .7; cursor: not-allowed; }
/* Invalid state: a clear red ring on the field plus a spoken, visible message
   below it — replaces the browser's default validation bubble so the error is
   unmissable and on-brand. */
.waitlist__form input[aria-invalid="true"] {
  border-color: #c4314b;
  box-shadow: 0 0 0 3px rgba(196, 49, 75, .18);
}
.waitlist__error {
  display: none;
  margin: 10px auto 0;
  max-width: 460px;
  padding-left: 4px;
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
}
.waitlist[data-status="error"] .waitlist__error { display: block; }

.waitlist__submit {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  min-width: 142px;
  padding: 0 24px;
  border: none;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .2s, transform .1s;
}
.waitlist__submit:hover { filter: brightness(1.08); }
.waitlist__submit:active { transform: scale(.96); }
.waitlist__submit:disabled { cursor: wait; }
.waitlist__submit:disabled:hover { filter: none; }
.waitlist__submit:disabled:active { transform: none; }

.waitlist__spinner { display: none; width: 22px; height: 22px; animation: wl-spin .8s linear infinite; }
.waitlist__spinner-track { opacity: .25; }
.waitlist__spinner-head { opacity: .85; }
@keyframes wl-spin { to { transform: rotate(360deg); } }

/* Success state */
.waitlist__success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  background: var(--success, #10b981);
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.23,1,.32,1), transform .5s cubic-bezier(.23,1,.32,1);
}
.waitlist__success-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
}
.waitlist__check {
  display: inline-flex;
  padding: 4px;
  border-radius: 980px;
  background: rgba(255,255,255,.2);
}
.waitlist__check svg { width: 20px; height: 20px; }
.waitlist__check path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.waitlist__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 980px;
  border: 2px solid rgba(16,185,129,.7);
  transform: translate(-50%, -50%) scale(.8);
  opacity: 0;
  pointer-events: none;
}

/* Active states (toggled by data-status) */
.waitlist[data-status="loading"] .waitlist__label { display: none; }
.waitlist[data-status="loading"] .waitlist__spinner { display: block; }

.waitlist[data-status="success"] .waitlist__form {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
}
.waitlist[data-status="success"] .waitlist__success {
  opacity: 1;
  transform: scale(1);
  animation: wl-pulse .6s cubic-bezier(.175,.885,.32,1.275), wl-glow 2s ease-in-out infinite .6s;
}
.waitlist[data-status="success"] .waitlist__success-inner { animation: wl-bounce-in .5s cubic-bezier(.175,.885,.32,1.275) both; }
.waitlist[data-status="success"] .waitlist__check path { animation: wl-check .4s ease-out .3s forwards; }
.waitlist[data-status="success"] .waitlist__ring { animation: wl-ring .8s ease-out forwards; }
.waitlist[data-status="success"] .waitlist__ring:nth-child(2) { animation-delay: .15s; }
.waitlist[data-status="success"] .waitlist__ring:nth-child(3) { animation-delay: .3s; }

@keyframes wl-pulse {
  0% { transform: scale(.5); opacity: 0; }
  50% { transform: scale(1.06); }
  70% { transform: scale(.97); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wl-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,.4); }
  50% { box-shadow: 0 0 60px rgba(16,185,129,.8), 0 0 100px rgba(16,185,129,.4); }
}
@keyframes wl-bounce-in {
  0% { transform: scale(.8); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wl-check { to { stroke-dashoffset: 0; } }
@keyframes wl-ring {
  0% { transform: translate(-50%, -50%) scale(.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist__success,
  .waitlist__success-inner,
  .waitlist__ring,
  .waitlist__check path,
  .waitlist__spinner,
  .blog-cta__ring--outer,
  .blog-cta__ring--inner { animation: none !important; }
}

/* Blog responsive */
@media (max-width: 860px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__cover { min-height: 220px; }
  .post-featured__body { padding: 32px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .waitlist__form input { padding-right: 134px; }
  .waitlist__submit { min-width: 120px; padding: 0 16px; }
  .blog-cta { padding: 80px 22px; min-height: 520px; }
  .blog-cta__ring--outer { --r: 250px; }
  .blog-cta__ring--mid   { --r: 178px; }
  .blog-cta__ring--inner { --r: 112px; }
  .blog-cta__icon { width: 54px; height: 54px; margin: -27px; }
  .blog-cta__ring--mid .blog-cta__icon   { width: 46px; height: 46px; margin: -23px; }
  .blog-cta__ring--inner .blog-cta__icon { width: 40px; height: 40px; margin: -20px; }
}

/* ============================================================
   Article page (blogs/*.html)
   The reading view: a single calm measure on white, with the
   one blue for links and proof, gradient reserved for charts +
   the closing drench. ============================================================ */
.article-hero {
  padding: clamp(40px, 7vh, 76px) 0 clamp(28px, 4vh, 44px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.article-hero .container { width: min(820px, calc(100% - 48px)); }
.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 22px;
  transition: color 0.15s ease;
}
.article-hero__back:hover { color: var(--blue); }
.article-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  max-width: 18ch;
  margin-top: 8px;
}
.article-hero__sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-top: 18px;
  max-width: 60ch;
  text-wrap: pretty;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.article-meta__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: -2px; }
.article-meta__author { color: var(--text); font-weight: 600; }

/* Cover image — the generated thumbnail, shown between hero and body */
.article-cover {
  width: min(900px, calc(100% - 48px));
  margin: clamp(28px, 4vh, 44px) auto 0;
}
.article-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

/* Reading column */
.article {
  width: min(720px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(40px, 6vh, 72px) 0 clamp(48px, 7vh, 88px);
}
.article > * + * { margin-top: 1.3em; }
.article p { font-size: 1.06rem; line-height: 1.72; color: #2b2b2f; }
.article h2 {
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  letter-spacing: -0.022em;
  margin-top: 2.2em;
  scroll-margin-top: 96px;
}
.article h3 { font-size: 1.22rem; margin-top: 1.8em; }
.article a:not(.btn) { color: var(--blue); font-weight: 500; }
.article a:not(.btn):hover { text-decoration: underline; }
.article strong { color: var(--text); font-weight: 650; }
.article ul, .article ol { margin-left: 2px; display: grid; gap: 10px; }
.article ul li, .article ol li {
  position: relative;
  padding-left: 28px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: #2b2b2f;
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.article ol { counter-reset: a-ol; }
.article ol li { counter-increment: a-ol; }
.article ol li::before {
  content: counter(a-ol);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Key Takeaways box — the answer the page exists to give */
.takeaways {
  background: rgba(0, 113, 227, 0.05);
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 2em;
}
.takeaways__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.takeaways ul { gap: 9px; }
.takeaways ul li { font-size: 0.98rem; color: var(--text); }

/* Inline insight callout — information-gain markers.
   Full hairline + fog surface (no side-stripe); the blue tag carries the accent. */
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 2em;
}
.callout__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
}
.callout p { font-size: 1rem; margin: 0; }

/* Charts */
.article figure { margin-top: 2.2em; }
.chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 18px;
  box-shadow: var(--shadow-sm);
}
.chart__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.chart svg { display: block; width: 100%; max-width: 260px; height: auto; margin: 4px auto 0; overflow: visible; }
.article figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }

/* Comparison table (article) */
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article thead th {
  background: rgba(0, 113, 227, 0.05);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.article th,
.article td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article tbody tr:last-child td { border-bottom: 0; }
.article td:first-child { font-weight: 600; color: var(--text); }
@media (max-width: 600px) {
  .article table { font-size: 0.85rem; }
  .article th, .article td { padding: 10px 12px; }
}

/* Bar chart (horizontal) */
.bars { display: grid; gap: 16px; }
.bar__row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; }
.bar__name { font-size: 0.92rem; font-weight: 500; }
.bar__track { display: block; height: 14px; background: rgba(0, 0, 0, 0.06); border-radius: 99px; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.bar__val { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; min-width: 44px; text-align: right; }

/* FAQ inside the article */
.article-faq { margin-top: 2.4em; }
.article-faq h2 { margin-bottom: 0.4em; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.1rem; }
.faq-item p { font-size: 1rem; margin: 0; color: #2b2b2f; }

/* Closing CTA — the one drenched surface on the page */
.article-cta {
  margin: clamp(48px, 7vh, 80px) auto clamp(56px, 8vh, 96px);
  width: min(820px, calc(100% - 48px));
}
.article-cta__inner {
  background: var(--grad);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 113, 227, 0.22);
}
.article-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article-cta p { color: rgba(255, 255, 255, 0.88); margin: 14px auto 26px; max-width: 46ch; font-size: 1.05rem; }
.article-cta .btn {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.article-cta .btn:hover { background: #f2f5ff; transform: translateY(-2px); }

/* Read next — sibling article cross-linking */
.read-next {
  width: min(940px, calc(100% - 48px));
  margin: clamp(48px, 6vh, 76px) auto 0;
}
.read-next__head { margin-bottom: 22px; }
.read-next__head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
}
.read-next .post-card__body { padding: 18px 18px 22px; }
.read-next .post-card__body h3 { font-size: 1.04rem; margin: 10px 0 0; flex: 1; }

/* Sources */
.article-sources {
  width: min(720px, calc(100% - 48px));
  margin: clamp(40px, 5vh, 60px) auto clamp(56px, 7vh, 88px);
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-sources h2 { font-size: 1.15rem; margin-bottom: 16px; }
.article-sources ol { display: grid; gap: 10px; counter-reset: src; }
.article-sources li {
  counter-increment: src;
  position: relative;
  padding-left: 26px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
  word-break: break-word;
}
.article-sources li::before {
  content: counter(src) ".";
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-weight: 600;
}
.article-sources a { color: var(--blue); }
.article-sources a:hover { text-decoration: underline; }

/* Author card — E-E-A-T attribution at the foot of each article */
.article-author {
  width: min(720px, calc(100% - 48px));
  margin: clamp(40px, 5vh, 60px) auto 0;
  padding: clamp(22px, 3.5vw, 30px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-author__avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  overflow: hidden;
}
.article-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.article-author__name { font-weight: 700; font-size: 1.05rem; }
.article-author__role { color: var(--text-dim); font-size: 0.9rem; margin-top: 2px; }
.article-author__bio { font-size: 0.95rem; color: #2b2b2f; margin-top: 10px; line-height: 1.55; }
.article-author__bio a { color: var(--blue); }
.article-author__bio a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .article p, .article ul li, .article ol li { font-size: 1rem; }
  .bar__row { grid-template-columns: 78px 1fr auto; gap: 10px; }
  .article-author { flex-direction: column; gap: 12px; }
}
