/* ==========================================================================
   ExactlyHQ — Design System
   Brand: true blue (hue 213). Neutrals: Stripe's slate-navy scale, taken
   verbatim from stripe.com's live tokens (--hds-color-core-neutral-*).
   Geometry, type weights and button metrics follow Stripe's HDS.
   All text colors verified for WCAG AA. Amber is decorative only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand ramp — blue */
  --b-25:  #F4F8FF;
  --b-50:  #E7F0FE;
  --b-75:  #D5E5FD;
  --b-100: #BCD6FB;
  --b-200: #8CB9F7;
  --b-300: #5A9BF2;   /* 6.13:1 on --ink — on-dark accent */
  --b-400: #2B7DE9;
  --b-500: #1268D6;
  --b-600: #0B5BC9;   /* 6.26:1 on white — primary action */
  --b-700: #0A49A0;   /* 8.49:1 — hover */
  --b-800: #0B3A7D;
  --b-900: #0C2A57;

  /* Neutrals — Stripe's core-neutral scale */
  --n-0:   #FFFFFF;
  --n-25:  #F8FAFD;
  --n-50:  #E5EDF5;
  --n-100: #D4DEE9;
  --n-200: #BAC8DA;
  --n-300: #95A4BA;
  --n-400: #7D8BA4;
  --n-500: #64748D;
  --n-600: #50617A;   /* 6.30:1 — body text */
  --n-700: #3C4F69;
  --n-800: #273951;
  --n-900: #1A2C44;
  --n-975: #0D253D;
  --n-990: #061B31;   /* 17.37:1 — headings */

  /* Semantic aliases */
  --ink:          var(--n-990);
  --ink-2:        var(--n-975);
  --ink-3:        var(--n-900);

  --brand:         var(--b-600);
  --brand-dark:    var(--b-700);
  --brand-light:   var(--b-300);
  --brand-tint:    var(--b-50);

  --amber:        #FE8C2D;   /* DECORATIVE ONLY — 2.36:1, never text */
  --amber-light:  #FFAF2D;
  --amber-tint:   #FFF2D8;
  --amber-text:   #8A5A12;   /* 5.44:1 — the warm tone when text is required */

  /* Neutrals */
  --text:         var(--n-990);
  --muted:        var(--n-600);
  --bg:           var(--n-0);
  --bg-soft:      var(--n-25);
  --border:       var(--n-50);
  --border-strong:var(--n-100);

  /* On dark */
  --on-dark:      #FFFFFF;
  --on-dark-mut:  #A3B4CB;   /* 8.62:1 on ink */
  --on-dark-brd:  rgba(255,255,255,.14);

  --danger:       #C42B14;

  /* Type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 4.6vw, 3.5rem);
  --fs-h1:      clamp(2rem, 3.6vw, 2.75rem);
  --fs-h2:      clamp(1.75rem, 2.8vw, 2.25rem);
  --fs-h3:      1.25rem;
  --fs-lead:    clamp(1.0625rem, 1.5vw, 1.1875rem);

  /* Space — Stripe's core scale */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 88px;  --s-10: 128px;

  /* Radius — Stripe's core radius scale */
  --r-sm: 4px; --r: 6px; --r-lg: 16px; --r-xl: 24px; --r-full: 99999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(6,27,49,.06);
  --sh:    0 2px 5px rgba(6,27,49,.05), 0 8px 16px -6px rgba(6,27,49,.08);
  --sh-lg: 0 4px 10px rgba(6,27,49,.05), 0 24px 48px -12px rgba(6,27,49,.14);
  --sh-jade: 0 1px 2px rgba(11,91,201,.24);

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-hds: cubic-bezier(.25,1,.5,1);   /* Stripe's transition curve */
  --nav-h: 72px;
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* ---------- Typography ---------- */
/* Stripe sets headings light (300) with tight leading; PJS 400/500 is the
   nearest equivalent that still holds up at small sizes. */
h1, h2, h3, h4 { line-height: 1.07; letter-spacing: -0.02em; font-weight: 400; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; font-weight: 500; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.25; font-weight: 500; }

p { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

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

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: 780px; }

.section { padding: var(--s-9) 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: var(--s-8) 0; }

.section-header { max-width: 760px; margin: 0 auto var(--s-8); text-align: center; }
.section-header h2 { text-wrap: balance; }
.section-header h2 { margin-bottom: var(--s-4); }
.section-header p { font-size: var(--fs-lead); }

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

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  background: var(--brand); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); z-index: 200; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Buttons ---------- */
/* Stripe metrics: 1rem/500, 4px radius, 1px border, colour-only hover. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 13.5px 16px 14.5px;
  border-radius: var(--r-sm);
  font-weight: 500; font-size: 1rem; line-height: 1; letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease-hds), border-color .3s var(--ease-hds),
              color .3s var(--ease-hds), box-shadow .3s var(--ease-hds);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform .3s var(--ease-hds); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-jade); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--b-100); }
.btn-secondary:hover { border-color: var(--brand); background: var(--b-25); }

.btn-lg { padding: 15.5px 20px 16.5px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 700; font-size: .9375rem;
}
.link-arrow svg { transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--text); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.footer .logo-mark { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: var(--s-2); }
.nav-links > a {
  padding: .5rem .75rem; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; color: var(--n-700);
  transition: color .3s var(--ease-hds), background .3s var(--ease-hds);
}
.nav-links > a:hover { color: var(--text); background: var(--n-25); }
.nav-links > a.active { color: var(--text); font-weight: 600; }
.nav-cta { margin-left: var(--s-3); }
.nav-cta .btn { padding: 11.5px 14px 12.5px; font-size: .9375rem; }

.mobile-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
/* Bars cross into an X; the middle one shrinks out rather than just fading */
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .34s var(--ease-hds), opacity .18s var(--ease-hds); }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel drops out from under the nav. visibility (not display) so the whole
   thing is animatable while still leaving the tab order when closed. */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--sh);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-1);
  visibility: hidden; pointer-events: none;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .24s var(--ease-hds), transform .34s var(--ease-hds),
              visibility 0s linear .34s;
}
.mobile-menu.open {
  visibility: visible; pointer-events: auto;
  opacity: 1; transform: none;
  transition: opacity .2s var(--ease-hds), transform .34s var(--ease-hds),
              visibility 0s;
}

/* Items cascade in behind the panel */
.mobile-menu > * { opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease-hds), transform .3s var(--ease-hds); }
.mobile-menu.open > * { opacity: 1; transform: none; }
.mobile-menu.open > *:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open > *:nth-child(2) { transition-delay: .10s; }
.mobile-menu.open > *:nth-child(3) { transition-delay: .14s; }
.mobile-menu.open > *:nth-child(4) { transition-delay: .18s; }
.mobile-menu.open > *:nth-child(5) { transition-delay: .22s; }
.mobile-menu.open > *:nth-child(6) { transition-delay: .26s; }

.mobile-menu a { padding: .8125rem var(--s-3); border-radius: var(--r-sm); font-weight: 500; color: var(--n-700); }
.mobile-menu a:hover { background: var(--n-25); color: var(--text); }
.mobile-menu .btn { margin-top: var(--s-3); }
/* Outranks `.mobile-menu a`, which would otherwise repaint the label slate */
.mobile-menu a.btn-primary { color: #fff; background: var(--brand); }
.mobile-menu a.btn-primary:hover { color: #fff; background: var(--brand-dark); }

/* ==========================================================================
   Hero — Stripe's homepage hero, rebuilt
   Light band, 12-column grid, full-bleed hairlines top and bottom, a light
   weight display headline held to ~22ch, and the twisting gradient wave
   filling the right half. Structure matches stripe.com's .hero-section__*.
   ========================================================================== */
.hero-light {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Background layer: hairlines + wave, exactly as Stripe stacks them */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-rule {
  position: absolute; left: 0; right: 0; z-index: 2;
  border-top: 1px solid var(--border);
  mix-blend-mode: multiply;
}
.hero-rule--top { top: var(--nav-h); }
.hero-rule--bottom { bottom: 0; }

.hero-wave {
  position: absolute; top: 50%; right: -7%;
  width: min(1000px, 58%);
  transform: translateY(-50%);
  line-height: 0;
}
.hero-wave img { width: 100%; height: auto; }

/* Content layer */
.hero { display: flex; align-items: center; min-height: min(76svh, 826px); padding: calc(var(--nav-h) + var(--s-9)) 0 calc(var(--s-9) + var(--s-3)); }
.hero > .container, .page-hero > .container { position: relative; z-index: 2; width: 100%; }

.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: var(--s-5); }
.hero-grid > * { grid-column: 1 / -1; }

.hero .eyebrow {
  text-transform: none; letter-spacing: 0;
  font-size: .875rem; font-weight: 600; color: var(--text);
  margin-bottom: 0; mix-blend-mode: multiply;
}
.hero h1 {
  font-size: var(--fs-display); font-weight: 300;
  line-height: 1.03; letter-spacing: -.02em;
  max-width: 22ch; text-wrap: pretty; margin: 0;
}
.hero h1 .grad { color: var(--brand); }
.hero .lead { max-width: 46ch; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }

.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-4); padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  max-width: 46rem;
}
.proof-item {
  font-size: .875rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.proof-item strong { color: var(--text); font-weight: 600; }
.stars { color: var(--amber-text); letter-spacing: 1px; font-size: .875rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8); }
.page-hero h1 { margin-bottom: var(--s-4); max-width: 24ch; font-weight: 300; }
.page-hero .lead { max-width: 46rem; }
.page-hero .hero-wave { width: min(760px, 46%); right: -6%; opacity: .85; }

.breadcrumb { display: flex; align-items: center; gap: var(--s-2); font-size: .875rem; color: var(--muted); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb span { color: var(--n-300); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Trust bar ---------- */
.trust-bar { padding: var(--s-6) 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.trust-bar p { text-align: center; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); }
.trust-row span { font-size: .9375rem; font-weight: 700; color: var(--text); opacity: .55; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-strong); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }

.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: var(--s-4);
}
.card h3 { margin-bottom: var(--s-3); }
.card > p { font-size: .9375rem; margin-bottom: var(--s-4); }

.feature-list { display: flex; flex-direction: column; gap: 9px; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.feature-list li { position: relative; padding-left: 22px; font-size: .875rem; color: var(--muted); }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55;
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: step; }
.step { position: relative; padding-top: var(--s-6); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .8125rem; font-weight: 800; letter-spacing: .08em; color: var(--brand);
}
.step::after { content: ''; position: absolute; top: 8px; left: 30px; right: -20px; height: 1px; background: var(--border); }
.process .step:last-child::after { display: none; }
.step h3 { font-size: 1.0625rem; margin-bottom: var(--s-2); }
.step p { font-size: .9375rem; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.industry {
  padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r);
  background: #fff; font-size: .875rem; font-weight: 600; text-align: center;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.industry:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- Why / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.why-list { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-6); }
.why-item { display: flex; gap: var(--s-4); }
.why-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r);
  background: var(--brand-tint); color: var(--brand); display: grid; place-items: center;
}
.why-item h4 { margin-bottom: 5px; }
.why-item p { font-size: .9375rem; }

.scorecard { background: var(--ink); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--sh-lg); }
.scorecard h3 { color: #fff; font-size: 1.0625rem; margin-bottom: var(--s-5); }
.metric { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--on-dark-brd); }
.metric:last-child { border-bottom: 0; }
.metric .label { font-size: .9375rem; color: var(--on-dark-mut); }
.metric .value { font-size: .875rem; font-weight: 800; color: var(--brand-light); display: flex; align-items: center; gap: 5px; }
.metric .value.no { color: #FEB9AC; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; }
.quote-card blockquote { font-size: 1rem; line-height: 1.65; color: var(--text); margin: var(--s-3) 0 var(--s-5); flex-grow: 1; }
.quote-card .stars { color: var(--amber-text); }
.quote-author { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--ink-3));
  color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: 800;
}
.quote-author strong { display: block; font-size: .9375rem; }
.quote-author span { font-size: .8125rem; color: var(--muted); }

/* ---------- Work showcase ----------
   Full-page captures are very tall, so each sits in a fixed window and
   scrolls to reveal the rest on hover/focus. */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-6); }

.work-card {
  --frame-h: 420px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.work-card:hover, .work-card:focus-within { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-strong); }

/* Browser chrome */
.browser-bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px var(--s-4);
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }

/* Scroll window */
.work-shot {
  position: relative; height: var(--frame-h); overflow: hidden; background: var(--bg-soft);
}
.work-shot img {
  display: block; width: 100%; height: auto;
  transform: translateY(0);
  transition: transform .6s var(--ease);
}
.work-card:hover .work-shot img,
.work-card:focus-within .work-shot img {
  transform: translateY(calc(-100% + var(--frame-h)));
  transition-duration: var(--dur, 8s);
  transition-timing-function: ease-in-out;
}

.work-hint {
  position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(6,27,49,.82); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-full); padding: 5px 11px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.work-card:hover .work-hint, .work-card:focus-within .work-hint { opacity: 0; transform: translateY(4px); }

/* Meta */
.work-meta { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; flex-grow: 1; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.work-meta h3 { font-size: 1.1875rem; }
.work-sector {
  flex-shrink: 0; font-size: .6875rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--brand-dark);
  background: var(--brand-tint); border-radius: var(--r-full); padding: 4px 10px;
}
.work-meta > p { font-size: .9375rem; margin-bottom: var(--s-4); flex-grow: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.work-tags li {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--r-full); padding: 4px 10px;
}

/* Stat strip */
.work-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; }
.work-stat .n { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand-light); line-height: 1.1; }
.work-stat .l { font-size: .875rem; color: var(--on-dark-mut); margin-top: 4px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }

/* Padding keeps card hover-lift and focus rings from being clipped by overflow */
.carousel-viewport { overflow: hidden; margin: 0 -10px; padding: 10px; }

.carousel-track {
  display: flex; align-items: stretch; gap: var(--s-5);
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.carousel-track.is-dragging { transition: none; }
.carousel-slide { flex: 0 0 calc((100% - var(--s-5)) / 2); min-width: 0; }
.carousel-slide > * { height: 100%; }

/* Grabbable only where dragging actually helps */
.carousel[data-draggable] .carousel-viewport { cursor: grab; }
.carousel[data-draggable] .carousel-track.is-dragging { cursor: grabbing; }

.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  margin-top: var(--s-6);
}
.car-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: 50%;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              background .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
}
.car-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh); }
.car-btn:disabled { opacity: .35; cursor: default; }

.car-dots { display: flex; align-items: center; gap: 7px; margin: 0 var(--s-2); }
.car-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-full);
  background: var(--border-strong); cursor: pointer;
  transition: width .28s var(--ease), background .18s var(--ease);
}
.car-dot:hover { background: var(--brand-dark); }
.car-dot[aria-current="true"] { width: 26px; background: var(--brand); }

/* Play / pause control swaps icon on state */
.car-toggle .ico-pause { display: flex; gap: 3px; }
.car-toggle .bar { display: block; width: 3px; height: 12px; background: currentColor; border-radius: 1px; }
.car-toggle .ico-play { display: none; margin-left: 2px; }
.car-toggle[data-state="paused"] .ico-pause { display: none; }
.car-toggle[data-state="paused"] .ico-play { display: block; }

.placeholder-note {
  max-width: 680px; margin: var(--s-6) auto 0;
  display: flex; gap: var(--s-3); align-items: flex-start;
  background: var(--amber-tint); border: 1px solid rgba(254,140,45,.32);
  border-radius: var(--r); padding: var(--s-4) var(--s-5);
}
.placeholder-note svg { color: #8A5A12; flex-shrink: 0; margin-top: 3px; }
.placeholder-note p { font-size: .875rem; color: #6F4A10; margin: 0; }
.placeholder-note strong { color: #4A320B; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; text-align: left;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; color: var(--text);
  transition: color .15s var(--ease);
}
.faq-q:hover { color: var(--brand); }
.faq-icon { flex-shrink: 0; color: var(--brand); transition: transform .25s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { overflow: hidden; height: 0; transition: height .28s var(--ease); }
.faq-a > div { padding-bottom: var(--s-5); }
.faq-a p { font-size: .9375rem; }

/* ---------- Service sections ---------- */
.service-block { padding: var(--s-9) 0; border-bottom: 1px solid var(--border); }
.service-block:last-of-type { border-bottom: 0; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.service-block:nth-of-type(even) .service-media { order: -1; }
.service-num { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: var(--s-3); }
.service-block h2 { margin-bottom: var(--s-4); }
.service-block .lead { margin-bottom: var(--s-4); }
.service-block > .container > .service-grid p { margin-bottom: var(--s-5); }

.service-media { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-6); }
.checklist { display: flex; flex-direction: column; gap: var(--s-3); }
.checklist li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: .9375rem; color: var(--text); font-weight: 500; }
.checklist svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: var(--s-5); align-items: stretch; max-width: 1040px; margin: 0 auto; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6); display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 24px 56px -16px rgba(11,91,201,.22);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .3125rem .875rem; border-radius: var(--r-full); white-space: nowrap;
}
.price-card h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.plan-desc { font-size: .875rem; color: var(--muted); margin-bottom: var(--s-5); }
.price-row { display: flex; align-items: baseline; gap: 4px; }
.price-row .amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--text); }
.price-row .amount.dim { font-size: 2rem; color: var(--muted); }
.price-row .period { font-size: .9375rem; color: var(--muted); font-weight: 600; }
.price-note { font-size: .8125rem; color: var(--muted); margin: var(--s-2) 0 var(--s-5); }
.price-feats { display: flex; flex-direction: column; gap: 11px; margin-bottom: var(--s-6); flex-grow: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.price-feats li svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.price-feats li.off { color: var(--muted); }
.price-feats li.off svg { color: var(--border-strong); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 620px; }
.compare th, .compare td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-soft); font-weight: 800; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--brand); font-weight: 800; }
.compare .no { color: var(--muted); }
.compare tbody tr:hover { background: var(--bg-soft); }

.callout {
  display: flex; gap: var(--s-4); align-items: flex-start;
  background: var(--brand-tint); border: 1px solid rgba(11,91,201,.22);
  border-radius: var(--r-lg); padding: var(--s-5) var(--s-6);
  max-width: 760px; margin: 0 auto;
}
.callout svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.callout h4 { margin-bottom: 5px; }
.callout p { font-size: .9375rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-8); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-7); box-shadow: var(--sh); }
.form-card h2 { font-size: 1.5rem; margin-bottom: var(--s-2); }
.form-card > p { font-size: .9375rem; margin-bottom: var(--s-6); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { margin-bottom: var(--s-4); display: flex; flex-direction: column; }
.field label { font-size: .875rem; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  padding: .75rem .875rem;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  background: #fff; font-size: .9375rem; width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,91,201,.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: .8125rem; color: var(--danger); margin-top: 5px; font-weight: 600; min-height: 0; }
.form-note { font-size: .8125rem; color: var(--muted); margin-top: var(--s-4); text-align: center; }
.form-note a { color: var(--brand); font-weight: 600; text-decoration: underline; }

.form-success {
  display: none; text-align: center; padding: var(--s-7) var(--s-5);
}
.form-success.show { display: block; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto var(--s-5);
  background: var(--brand-tint); color: var(--brand); display: grid; place-items: center;
}
.form-success h2 { margin-bottom: var(--s-3); }

.info-list { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-6); }
.info-item { padding-left: var(--s-5); border-left: 2px solid var(--brand); }
.info-item .k { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.info-item .v { font-size: 1rem; font-weight: 700; }
.info-item .v a { color: var(--brand); }
.info-item .v a:hover { text-decoration: underline; }

/* ---------- Values / stat strip ---------- */
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }
.value-num { font-size: .8125rem; font-weight: 700; color: var(--brand); letter-spacing: .1em; margin-bottom: var(--s-3); }
.value-card h3 { font-size: 1.125rem; margin-bottom: var(--s-2); }
.value-card p { font-size: .9375rem; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.375rem; margin: var(--s-7) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--s-4); font-size: .9375rem; }
.prose ul { margin: 0 0 var(--s-4) 0; display: flex; flex-direction: column; gap: 8px; }
.prose li { position: relative; padding-left: 20px; font-size: .9375rem; color: var(--muted); }
.prose li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.prose .updated { font-size: .875rem; color: var(--muted); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); margin-bottom: var(--s-6); }

/* ---------- Final CTA ---------- */
/* Stripe's .footer-cta-section: light, left-aligned in a half column,
   closed off with a dashed rule rather than a coloured band. */
.final-cta { padding: var(--s-9) 0; background: var(--bg); text-align: left; }
.final-cta > .container > * { max-width: 620px; }
.final-cta h2 { margin-bottom: var(--s-4); max-width: 24ch; text-wrap: pretty; }
.final-cta p { max-width: 42ch; margin: 0 0 var(--s-6); font-size: var(--fs-lead); }

/* ---------- Footer ---------- */
/* Stripe's footer is light (surface-bg-quiet = white) with dashed column
   dividers; link text sits at text-soft and darkens to text-solid on hover. */
.footer { background: var(--bg); color: var(--muted); padding: 0 0 var(--s-5); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0;
  margin-bottom: 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.footer-grid > div { padding: var(--s-8) var(--s-5) var(--s-8) 0; }
.footer-grid > div + div { padding-left: var(--s-5); }
.footer-grid > div:not(:last-child) { border-right: 1px dashed var(--border); }
.footer-brand p { font-size: .9375rem; margin-top: var(--s-4); max-width: 30ch; color: var(--muted); }
.footer h4 { font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: var(--s-3); }
.footer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-links a { font-size: 1rem; line-height: 1.25; color: var(--muted); width: fit-content; transition: color .3s var(--ease-hds); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: .8125rem; color: var(--n-500);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .split, .service-grid, .form-layout { grid-template-columns: 1fr; gap: var(--s-7); }
  .service-block:nth-of-type(even) .service-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .step::after { display: none; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-card.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(2n) { border-right: 0; }
  .footer-grid > div:nth-child(-n+2) { border-bottom: 1px dashed var(--border); }
  .footer-grid > div:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 900px) {
  .carousel-slide { flex-basis: 100%; }
  .work-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .work-card { --frame-h: 300px; }
  .work-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  /* Wave drops below the copy so nothing reads over it */
  .hero { min-height: 0; padding: calc(var(--nav-h) + var(--s-7)) 0 var(--s-8); }
  .hero-wave, .page-hero .hero-wave {
    top: auto; bottom: -6%; right: -22%;
    width: min(520px, 92%); transform: none; opacity: .42;
  }
  .hero h1, .page-hero h1 { max-width: none; }
  .hero .lead { max-width: none; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .section { padding: var(--s-8) 0; }
  .hero { padding: calc(var(--nav-h) + var(--s-7)) 0 var(--s-8); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: var(--s-5); }
  .hero-proof { gap: var(--s-3) var(--s-5); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .industries { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { padding: var(--s-6) 0; }
  .footer-grid > div + div { padding-left: 0; }
  /* Specificity has to match the desktop rules it overrides */
  .footer-grid > div:not(:last-child) { border-right: 0; border-bottom: 1px dashed var(--border); }
  .footer-grid > div:nth-child(-n+2) { border-bottom: 1px dashed var(--border); }
  .btn { width: 100%; }
  .hero-ctas .btn, .final-cta .btn { width: 100%; }
}

/* ==========================================================================
   Landing pages (paid traffic)
   Chrome is stripped to a single conversion path; everything inside the page
   is the same component set the rest of the site uses. Appended so no shipped
   rule is edited.
   ========================================================================== */

/* ---------- Stripped chrome ---------- */
.nav-lp .nav { justify-content: space-between; }
.nav-lp .nav-cta { margin-left: 0; }
/* The logo is a wordmark here, not a way out of the page */
.nav-lp .logo { cursor: default; }

.footer-lp { padding: 0 0 var(--s-6); }
.footer-lp .footer-bottom {
  border-top: 1px dashed var(--border);
  padding-top: var(--s-5);
  align-items: center;
}
.footer-lp .footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.footer-lp .footer-legal a { color: var(--n-500); transition: color .3s var(--ease-hds); }
.footer-lp .footer-legal a:hover { color: var(--text); }

/* ---------- Split hero: copy left, form right ---------- */
.hero-lp { min-height: 0; padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8); }
.hero-lp .hero-split {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: var(--s-8); align-items: center;
}
/* The form takes half the width, so the display size would wrap badly */
.hero-lp h1 { font-size: var(--fs-h1); margin-bottom: var(--s-4); max-width: 18ch; }
.hero-lp .lead { max-width: 44ch; margin-bottom: var(--s-6); }
.hero-lp .eyebrow { display: inline-block; margin-bottom: var(--s-4); }
.hero-lp .checklist li { font-size: 1rem; }

.lp-proof {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--muted);
}
.lp-proof strong { color: var(--text); font-weight: 700; }

/* ---------- Landing form card ---------- */
.lp-form-card { padding: var(--s-6); }
.lp-form-card h2 { font-size: 1.3125rem; }
.lp-form-card > p { margin-bottom: var(--s-5); }
.lp-form-card .field { margin-bottom: var(--s-3); }
.lp-form-card .form-success { padding: var(--s-6) var(--s-4); }

/* Bottom-of-page form sits centred rather than beside anything */
.lp-form-narrow { max-width: 620px; margin: 0 auto; }

/* ---------- Single centred price card ---------- */
.lp-price-solo { max-width: 420px; margin: 0 auto; }

/* ---------- Sticky mobile CTA ---------- */
.lp-sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(6,27,49,.08);
  transition: transform .3s var(--ease-hds), opacity .3s var(--ease-hds);
}
.lp-sticky-cta .btn { width: 100%; }
.lp-sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- Landing responsive ---------- */
@media (max-width: 1024px) {
  .hero-lp .hero-split { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-lp h1 { max-width: 22ch; }
}

@media (max-width: 768px) {
  .hero-lp { padding: calc(var(--nav-h) + var(--s-6)) 0 var(--s-7); }
  .hero-lp h1, .hero-lp .lead { max-width: none; }
  .lp-form-card { padding: var(--s-5); }
  .lp-sticky-cta { display: block; }
  /* Keep the bar from covering the last of the page */
  body.has-sticky-cta { padding-bottom: 84px; }
  .footer-lp .footer-bottom { align-items: flex-start; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .faq-a { transition: none; }

  /* The global rule zeroes durations but not delays — the menu needs both */
  .mobile-menu, .mobile-menu > *, .mobile-toggle span { transition: none !important; transition-delay: 0s !important; }
  .mobile-menu > * { opacity: 1; transform: none; }

  /* Don't auto-scroll the captures — let people scroll them by hand instead */
  .work-shot { overflow-y: auto; }
  .work-card:hover .work-shot img,
  .work-card:focus-within .work-shot img { transform: none !important; }
  .work-hint { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav-wrap, .mobile-menu, .final-cta, .footer, .lp-sticky-cta { display: none; }
  body { color: #000; }
}
