/* Inter: the original site's own font files (OFL), self-hosted so text widths
   match adfix.com exactly and no request goes to Google Fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/inter-700-italic.woff2") format("woff2"); }

/* ============================================================
   ADFIX — Growth You Can See
   Static rebuild. Design system + components.
   Brand ink: #202020. Accent: growth green.
   ============================================================ */

:root {
  /* ═══════════════════════════════════════════════════════════════
     ADFIX OFFICIAL DESIGN TOKENS
     Source: ADFIX Marketing Site design system (verbatim).
     All other variables in this file are semantic aliases mapped
     onto these so existing component styles continue to work.
     ═══════════════════════════════════════════════════════════════ */

  /* Brand palette */
  --adfix-yellow:        #EEFF07;
  --adfix-yellow-hover:  #F4FF40;
  --adfix-yellow-press:  #D8E600;
  --adfix-carbon:        #202020;
  --adfix-carbon-hover:  #2E2E2E;
  --adfix-carbon-press:  #0F0F0F;
  --adfix-paper:         #FFFFFF;
  --adfix-bone:          #F3F3F3;
  --adfix-steel:         #8E8E8E;
  --adfix-coral:         #F26C63;

  /* Foreground hierarchy */
  --adfix-fg-1:          var(--adfix-carbon);
  --adfix-fg-2:          #4A4A4A;
  --adfix-fg-3:          #8E8E8E;
  --adfix-fg-invert-1:   var(--adfix-paper);
  --adfix-fg-invert-2:   rgba(255,255,255,0.72);
  --adfix-fg-invert-3:   rgba(255,255,255,0.48);

  /* Backgrounds */
  --adfix-bg-page:       var(--adfix-bone);
  --adfix-bg-surface:    var(--adfix-paper);
  --adfix-bg-dark:       var(--adfix-carbon);
  --adfix-bg-accent:     var(--adfix-yellow);

  /* Borders */
  --adfix-border:        rgba(0,0,0,0.08);
  --adfix-border-strong: rgba(0,0,0,0.16);
  --adfix-border-invert: rgba(255,255,255,0.12);

  /* Gradients */
  --adfix-grad-1: linear-gradient(180deg, rgba(255,255,255,0) 0%, #EEFF07 100%);
  --adfix-grad-2: linear-gradient(180deg, #EEFF07 0%, #202020 100%);
  --adfix-grad-3: linear-gradient(180deg, #FFFFFF 0%, #8E8E8E 100%);

  /* Typography stack */
  --adfix-font-wordmark: "Gravesend Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --adfix-font-display:  "Inter", "Helvetica Neue", Arial, sans-serif;
  /* The original site sets Inter for headings AND body copy */
  --adfix-font-body:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --adfix-font-mono:     ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Type scale */
  --adfix-type-hero:     150px;
  --adfix-type-display:  50px;
  --adfix-type-h1:       48px;
  --adfix-type-h2:       40px;
  --adfix-type-h3:       30px;
  --adfix-type-tagline:  24px;
  --adfix-type-body:     16px;
  --adfix-type-label:    21px;
  --adfix-type-small:    14px;

  --adfix-leading-tight: 1.00;
  --adfix-leading-snug:  1.10;
  --adfix-leading-body:  1.50;
  --adfix-tracking-caps: 0.08em;
  --adfix-tracking-tag:  0.02em;

  /* Spacing scale */
  --adfix-space-1:  4px;
  --adfix-space-2:  8px;
  --adfix-space-3:  12px;
  --adfix-space-4:  16px;
  --adfix-space-5:  24px;
  --adfix-space-6:  32px;
  --adfix-space-7:  48px;
  --adfix-space-8:  64px;
  --adfix-space-9:  96px;
  --adfix-space-10: 128px;

  /* Radii (sharp brand language) */
  --adfix-radius-none: 0;
  --adfix-radius-xs:   4px;
  --adfix-radius-sm:   6px;
  --adfix-radius-md:   8px;
  --adfix-radius-lg:   12px;

  /* Shadows */
  --adfix-shadow-none:    none;
  --adfix-shadow-1:       0 1px 2px rgba(0,0,0,0.08);
  --adfix-shadow-2:       0 4px 12px rgba(0,0,0,0.10);
  --adfix-shadow-yellow:  0 8px 32px rgba(238,255,7,0.35);

  /* Motion */
  --adfix-ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --adfix-ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --adfix-dur-fast:     150ms;
  --adfix-dur-base:     250ms;
  --adfix-dur-slow:     600ms;

  /* ─── Semantic aliases (keep existing styles working) ──────── */
  --ink:           var(--adfix-fg-1);
  --ink-2:         var(--adfix-carbon);
  --ink-soft:      var(--adfix-fg-2);
  --paper:         var(--adfix-bg-surface);
  --paper-2:       var(--adfix-bone);
  --paper-3:       #e8e8e6;
  --line:          var(--adfix-border);
  --muted:         var(--adfix-fg-3);
  --muted-on-dark: var(--adfix-fg-invert-2);

  --accent:        var(--adfix-yellow);
  --accent-deep:   var(--adfix-carbon);
  --accent-soft:   #fefcd1;

  --shadow-sm:     var(--adfix-shadow-1);
  --shadow-md:     var(--adfix-shadow-2);
  --shadow-lg:     0 30px 60px rgba(0,0,0,0.16);

  --radius:        var(--adfix-radius-md);
  --radius-lg:     var(--adfix-radius-lg);
  --radius-pill:   999px;

  --maxw:          1600px;
  --gut:           clamp(20px, 5vw, 80px);

  --ff:            var(--adfix-font-body);
  --ff-display:    var(--adfix-font-display);

  --t:             var(--adfix-dur-base) var(--adfix-ease-out);

  /* ─── Values measured on the original Shopify theme ──────────── */
  --text:          #171717;              /* body copy on light sections (rgb 23 23 23) */
  --header-bg:     #222222;              /* solid header (rgb 34 34 34) */
  --footer-bg:     #202020;              /* footer + footer logo band */
  --ease-theme:    cubic-bezier(.3, 1, .3, 1);
  --ease-drawer:   cubic-bezier(.7, 0, .2, 1);
  /* side gutter of header/footer: 20px, 36px at 1024, 48px from 1265 */
  --page-pad:      20px;
  /* header height: 92px phones, 108px tablets, 115px desktop.
     Pages with a transparent header use it to keep banner copy clear. */
  --header-h:      92px;
  --focus-ring:    #171717;
}
@media (min-width: 768px)  { :root { --header-h: 108px; } }
/* Side padding measured on the original: 24px at 1024 rising to 36px by ~1080, 48px from 1280 */
@media (min-width: 1024px) { :root { --header-h: 115px; --page-pad: clamp(24px, calc(25vw - 232px), 36px); } }
@media (min-width: 1280px) { :root { --page-pad: 48px; } }
/* up to ~1120 the CTA wraps onto two lines (see .header-cta), which makes the bar 124px */
@media (min-width: 1024px) and (max-width: 1119.98px) { :root { --header-h: 124px; } }

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Original headings: Inter 400, no bold */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.2; margin: 0; letter-spacing: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Visible keyboard focus everywhere; dark areas set --focus-ring to yellow */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.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;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--on-dark { color: var(--accent); }
.accent { color: var(--accent); }
.accent-ink { color: var(--accent-deep); }

/* Type scale */
/* Original titles: Inter 400, line-height 1; only banner-size titles get -0.04em */
.h1 { font-size: clamp(40px, 4.73vw, 90px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.h2 { font-size: clamp(32px, 3.4vw, 60px); font-weight: 400; line-height: 1; letter-spacing: 0; }
.h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 400; line-height: 1.1; letter-spacing: 0; }
.section-head { max-width: 64ch; margin-inline: auto; }
.section-head .lead { margin-inline: auto; margin-top: 16px; }

/* ---------- Buttons ---------- */
/* Original theme buttons: Inter 400, 14-16px, 18px 26px padding, 60px radius.
   Hover: an ellipse in the text colour sweeps in from the top and the
   label switches to the background colour. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 26px; border: 0; border-radius: 60px;
  font-family: var(--adfix-font-display); font-weight: 400;
  font-size: clamp(14px, calc(.8115rem + .1587vw), 16px); line-height: 1.25;
  --btn-bg: transparent; --btn-fg: var(--text); --btn-fill: var(--text); --btn-fg-hover: #fff; --btn-border: transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: inset 0 0 0 2px var(--btn-border);
  transition: color .5s var(--ease-theme) .1s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: -25%; top: -50%; width: 150%; height: 200%;
  border-radius: 50%; background: var(--btn-fill);
  transform: translate3d(0, -76%, 0);
  transition: transform .5s var(--ease-theme);
}
.btn:hover { color: var(--btn-fg-hover); }
.btn:hover::before { transform: translate3d(0, 0, 0); }
.btn--primary { --btn-bg: var(--adfix-yellow); --btn-fg: var(--text); --btn-fill: var(--text); --btn-fg-hover: var(--adfix-yellow); }
.btn--ink     { --btn-bg: var(--footer-bg); --btn-fg: #fff; --btn-fill: var(--adfix-yellow); --btn-fg-hover: var(--text); }
.btn--ghost   { --btn-fg: var(--text); --btn-border: var(--text); --btn-fill: var(--text); --btn-fg-hover: #fff; }
.btn--on-dark { --btn-fg: #fff; --btn-border: #fff; --btn-fill: #fff; --btn-fg-hover: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn .arrow { transition: transform .5s var(--ease-theme); }
.btn:hover .arrow { transform: translateX(4px); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn .arrow { transition: none; }
}

/* ---------- Header ----------
   Matches the original Shopify header: logo left, menu centred, yellow
   "Get in Touch" CTA right; burger + bottom-sheet drawer below
   1024px. It is NOT sticky: it scrolls away with the page, like the original.
   Solid #222 by default. A page whose first section is a dark banner adds
   .site-header--transparent: the header is then absolutely positioned over
   the banner with no background (the banner must start at the very top of
   the page and keep var(--header-h) clear at its top). */
.site-header {
  position: relative; z-index: 40;
  background: var(--header-bg);
  color: #fff;
  font-family: var(--adfix-font-display);
  font-size: 17px; line-height: normal;
  --focus-ring: var(--adfix-yellow);
}
.site-header--transparent {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent;
}
/* Safety net (zero specificity): the first section under a transparent header
   starts below it. A banner that sets its own padding-top wins over this. */
:where(.site-header--transparent + section, .site-header--transparent + main > section:first-child) {
  padding-top: var(--header-h);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: var(--header-h);
  padding: 24px var(--page-pad);
}
@media (min-width: 768px) { .header-inner { padding-block: 32px; } }
@media (min-width: 1024px) {
  .header-inner {
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    column-gap: 20px;
  }
}
@media (min-width: 1200px) { .header-inner { column-gap: 34px; } }

.site-header .brand { display: inline-flex; align-items: center; justify-self: start; }
.site-header .brand img { width: 95px; height: auto; }
@media (min-width: 768px) { .site-header .brand img { width: 170px; } }

/* Desktop menu: white pill slides up behind the hovered item */
.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; }
.site-nav a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; height: 42px; padding: 0 14px;
  border-radius: 999px;
  font-size: 17px; font-weight: 400; line-height: 1; color: #fff; white-space: nowrap;
  transition: color .5s var(--ease-theme);
}
.site-nav a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: #fff;
  transform: translateY(100%) scale(.6);
  transition: transform .5s var(--ease-theme);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--header-bg); }
  .site-nav a:hover::before { transform: none; }
}
@media (min-width: 1024px) { .site-nav { display: flex; justify-self: center; } }
/* 20px a side like the original from 1280px; narrower below that, so the six
   links (Playbooks was added) still fit next to the logo and the CTA at 1024px */
@media (min-width: 1024px) { .site-nav a { padding: 0 clamp(14px, calc(2.34vw - 10px), 20px); } }

.header-actions { display: flex; align-items: center; justify-content: flex-end; justify-self: end; }

/* Yellow pill CTA (own class so page-level .btn rules never touch it) */
.header-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: none; align-items: center; justify-content: center;
  padding: 18px 22px; border-radius: 60px;
  background: var(--adfix-yellow); color: var(--text);
  font-family: var(--adfix-font-display); font-weight: 400;
  font-size: clamp(14px, calc(.8115rem + .1587vw), 16px); line-height: 1;
  white-space: nowrap;
  transition: color .5s var(--ease-theme) .1s;
}
.header-cta::before {
  content: ""; position: absolute; z-index: -1;
  left: -25%; top: -50%; width: 150%; height: 200%;
  border-radius: 50%; background: var(--text);
  transform: translate3d(0, -76%, 0);
  transition: transform .5s var(--ease-theme);
}
.header-cta:hover { color: var(--adfix-yellow); }
.header-cta:hover::before { transform: translate3d(0, 0, 0); }
/* The original CTA narrows with the viewport (146px at 1024 to ~194px at 1120) and
   wraps onto two lines until it has room for one. */
@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex; padding: clamp(18px, 1.2vw, 22px) clamp(26px, 1.473vw, 30px); max-height: 60px;
    white-space: normal; max-width: calc(49.33vw - 359px); text-align: center; line-height: 1;
  }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: #fff;
}
.nav-toggle svg { width: 24px; height: 24px; stroke-width: 1.5; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile menu: bottom sheet on phones, left drawer from 640px (as on the original) */
.menu-drawer { position: fixed; inset: 0; z-index: 100; color: var(--text); --focus-ring: var(--text); }
.menu-drawer[hidden] { display: none; }
.menu-drawer__overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .6s var(--ease-drawer);
}
.menu-drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 60px;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px 20px 0 0; overflow: hidden;
  transform: translateY(100%);
  transition: transform .6s var(--ease-drawer);
}
.menu-drawer.is-open .menu-drawer__overlay { opacity: 1; }
.menu-drawer.is-open .menu-drawer__panel { transform: none; }
.menu-drawer__head { position: relative; flex: 0 0 auto; min-height: 48px; }
.menu-drawer__head::before {
  content: ""; position: absolute; top: 10px; left: 50%;
  width: 48px; height: 4px; margin-left: -24px;
  border-radius: 999px; background: rgba(23, 23, 23, .1);
}
.menu-drawer__close {
  position: absolute; top: 32px; right: 20px;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(23, 23, 23, .1); border-radius: 50%;
  background: #fff; color: var(--text);
}
.menu-drawer__close svg { width: 20px; height: 20px; stroke-width: 1.5; }
/* phones: the close button sits right of the grab handle, so the head grows to fit it */
@media (max-width: 639px) {
  .menu-drawer__head { min-height: 68px; }
  .menu-drawer__close { top: 12px; right: 12px; }
}
.menu-drawer__nav { flex: 1 1 auto; overflow-y: auto; padding: 12px 0 40px; }
.menu-drawer__nav a {
  display: block; padding: 10px 20px;
  font-family: var(--adfix-font-display);
  font-size: 25px; font-weight: 400; line-height: 1; letter-spacing: -.025em;
  color: var(--text);
}
.menu-drawer__nav a:focus-visible { outline-offset: -2px; }
.menu-drawer__foot {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px; background: rgba(23, 23, 23, .024);
}
.menu-drawer__cta {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border-radius: 60px;
  background: var(--footer-bg); color: #fff;
  font-size: 15px; line-height: 1; white-space: nowrap;
}
.menu-drawer__social { display: flex; align-items: center; gap: 24px; }
.menu-drawer__social a { display: block; color: var(--text); }
.menu-drawer__social svg { display: block; width: 20px; height: 20px; }
@media (min-width: 640px) {
  .menu-drawer__panel { top: 0; right: auto; width: min(576px, 100%); border-radius: 0; transform: translateX(-100%); }
  .menu-drawer__head { min-height: 96px; }
  .menu-drawer__head::before { display: none; }
  .menu-drawer__close { right: 20px; }
}
html.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .site-nav a, .site-nav a::before, .header-cta, .header-cta::before,
  .menu-drawer__overlay, .menu-drawer__panel { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #2c2c2c 0%, var(--ink) 55%, #101010 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(238,255,7,.18), transparent 60%),
    radial-gradient(40% 40% at 95% 90%, rgba(168,232,226,.14), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 150px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.78); margin-top: 22px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 850; color: var(--accent); letter-spacing: -.03em; }
.hero-stat .lab { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* video / media placeholder */
.media-ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #161616);
  aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--muted-on-dark);
  border: 1px solid rgba(255,255,255,.08);
}
.media-ph--light { background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); color: var(--muted); border: 1px solid var(--line); }
.media-ph .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.media-ph .play::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.media-ph .tag { position: absolute; bottom: 14px; left: 16px; font-size: 12.5px; letter-spacing: .04em; opacity: .7; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8d6cf; }
.card .num-badge {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Case card */
.case-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(160deg, #2b2b2b, #141414); border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-card .ribbon { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78)); }
.case-card .body { position: relative; padding: 28px; }
.case-card .kicker { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.case-card h3 { margin: 8px 0 6px; font-size: 26px; }
.case-card .metric { font-size: 14.5px; color: rgba(255,255,255,.78); }
.case-card .go { margin-top: 16px; font-weight: 700; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.case-card:nth-child(2) { background: linear-gradient(160deg, #233a31, #0e1d16); }
.case-card:nth-child(3) { background: linear-gradient(160deg, #2a3340, #121821); }
.case-card:nth-child(4) { background: linear-gradient(160deg, #38302a, #1a1410); }

/* ---------- Service rows ---------- */
.svc-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-row + .svc-row { margin-top: clamp(48px, 7vw, 96px); }
.svc-row:nth-child(even) .svc-media { order: -1; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row:nth-child(even) .svc-media { order: 0; } }
.result-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 15px;
}
.result-chip .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ---------- Logo wall ---------- */
.logo-wall { display: flex; flex-wrap: wrap; gap: 14px 16px; justify-content: center; }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-weight: 800; letter-spacing: .02em; color: var(--ink-soft); background: #fff;
  font-size: 16px; transition: var(--t);
}
.logo-chip:hover { border-color: var(--ink-2); color: var(--ink-2); }
.partner-wall { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }
.partner { font-weight: 800; font-size: 19px; color: var(--muted); letter-spacing: -.01em; }
.partner b { color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 18px; height: 100%;
}
.quote .stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink-2); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.quote .who .name { font-weight: 700; font-size: 15px; }
.quote .who .role { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(120% 140% at 50% -20%, #2a2a2a, var(--ink) 60%, #0d0d0d);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 80px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(238,255,7,.18), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 52ch; margin: 16px auto 0; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Why / feature list ---------- */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--ink-2); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15.5px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--paper-2), #fff); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(56px, 9vw, 104px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--ink-2); }

/* ---------- Case study article ---------- */
.cs-hero { background: linear-gradient(160deg, #232323, #101010); color: #fff; }
.cs-hero .wrap { padding-block: clamp(64px, 10vw, 120px); }
.cs-hero h1 { color: #fff; font-size: clamp(36px, 6vw, 68px); max-width: 16ch; }
.cs-hero .lead { color: rgba(255,255,255,.78); }
.cs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .cs-metrics { grid-template-columns: repeat(2, 1fr); } }
.cs-metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; }
.cs-metric .n { font-size: clamp(26px, 3.4vw, 38px); font-weight: 850; color: var(--accent); }
.cs-metric .l { font-size: 13.5px; color: rgba(255,255,255,.65); margin-top: 4px; }

.article { max-width: 760px; margin-inline: auto; }
.article .block + .block { margin-top: clamp(36px, 5vw, 56px); }
.article h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 14px; }
.article h2 .step { color: var(--accent-deep); font-size: 14px; display: block; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.article p { color: var(--ink-soft); margin-bottom: 14px; }
.article ul.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft); }
.article ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-deep); font-weight: 800; }
.result-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 4px; }
@media (max-width: 620px) { .result-strip { grid-template-columns: 1fr; } }
.result-strip .r { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.result-strip .r b { display: block; font-size: 30px; color: var(--ink-2); letter-spacing: -.02em; }
.result-strip .r span { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 16px; color: var(--ink-2); background: #fff; transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .row .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; border: 1px solid var(--line); }
.contact-info .row .lab { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-info .row a, .contact-info .row p { font-weight: 600; color: var(--ink-2); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Careers ---------- */
.perk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.perk .ic { font-size: 26px; }
.perk h3 { font-size: 19px; margin: 14px 0 8px; }
.perk p { color: var(--muted); font-size: 15.5px; }
.roles-empty { text-align: center; background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin-inline: auto; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul li { margin-bottom: 8px; }

/* ---------- Footer ----------
   Matches the original: #202020 block that starts exactly where the last page
   section ends, with a square top edge (the theme's rounded footer fills its
   own corners, so no rounding or overlap shows), inline menu with green dots,
   phone / email (+ our WhatsApp) and address, socials, centred logo band, then
   a black copyright bar (+ our Terms of service link). */
/* Shared footer: restrained typography, one surface, consistent alignment. */
.site-footer {
  position: relative; z-index: 2; margin-top: 0;
  background: var(--footer-bg); color: #f5f5f5;
  font-family: var(--adfix-font-display); font-size: 15px; font-weight: 400;
  line-height: 1.5; --focus-ring: var(--adfix-yellow);
  display: grid; grid-template-columns: auto 1fr;
  gap: 32px 48px; padding: 40px max(24px, calc((100% - 1200px) / 2)) 0;
}
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--adfix-yellow); }
.footer-logo { grid-column: 1; grid-row: 1; display: flex; align-items: center; }
.footer-logo img { width: 118px; height: auto; }
.footer-menu { grid-column: 2; grid-row: 1; align-self: center; }
.footer-menu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 24px; }
.footer-menu a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
.footer-main { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 32px; padding-bottom: 4px; }
.footer-info { display: flex; flex-direction: column; gap: 12px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; font-size: 16px; line-height: 1.5; }
.footer-contact a { display: flex; align-items: center; min-height: 44px; }
.footer-address { margin: 0; color: #aaa; font-style: normal; font-size: 13px; line-height: 1.6; }
.footer-address br { display: none; }
.footer-social { align-self: flex-start; }
.footer-social ul { display: flex; gap: 8px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.footer-social svg { width: 20px; height: 20px; }
.footer-copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #ffffff21; padding: 16px 0; color: #aaa; font-size: 12px; }
.footer-copyright p { margin: 0; }
.footer-copyright ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-copyright ul a, .site-footer .footer-cookies { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: inherit; }
@media (max-width: 900px) {
  .site-footer { column-gap: 24px; }
  .footer-menu ul { gap: 0 16px; }
}
@media (max-width: 767.98px) {
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 0; }
  .footer-logo { grid-column: 1; grid-row: 1; }
  .footer-logo img { width: 112px; }
  .footer-menu { grid-column: 1; grid-row: 2; }
  .footer-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .footer-main { grid-column: 1; position: relative; gap: 12px; padding-top: 20px; border-top: 1px solid #ffffff21; }
  .footer-info { gap: 16px; }
  .footer-contact { flex-direction: column; align-items: flex-start; font-size: 16px; }
  .footer-address { font-size: 12px; }
  .footer-address br { display: inline; }
  .footer-social { position: absolute; right: -12px; top: 20px; }
  .footer-social ul { gap: 0; }
  .footer-copyright { flex-direction: column; align-items: flex-start; gap: 0; padding: 20px 0 12px; }
  .footer-copyright ul { gap: 0 18px; }
  .footer-copyright ul a, .site-footer .footer-cookies { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .site-footer a { transition: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.bg-soft { background: var(--paper-2); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.stack-sm > * + * { margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════════
   BRAND BACKGROUND
   Animated carbon canvas with drifting yellow wedges + arcs.
   Apply via the .brand-bg class (e.g. on hero or page-hero sections).
   Pure CSS — no images, no JS, no external requests.
   ═══════════════════════════════════════════════════════════════ */

.brand-bg {
  position: relative;
  isolation: isolate;
  background: var(--adfix-carbon);
  color: var(--adfix-fg-invert-1);
  overflow: hidden;
}

/* Layer 1 — fine yellow grid, very low opacity */
.brand-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238,255,7,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,255,7,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 90%);
  z-index: -2;
  animation: bg-grid-drift 60s linear infinite;
}

/* Layer 2 — drifting yellow shapes (wedges + arc).
   Sized in vmax so they stay visible at any viewport width. */
.brand-bg::after {
  content: "";
  position: absolute; inset: -15%;
  background:
    /* large bottom-right yellow wedge */
    conic-gradient(from 200deg at 100% 100%, var(--adfix-yellow) 0deg, transparent 32deg),
    /* large top-left yellow wedge */
    conic-gradient(from 20deg at 0% 0%, var(--adfix-yellow) 0deg, transparent 28deg),
    /* mid-right yellow arc glow */
    radial-gradient(circle 60vmax at 100% 50%, rgba(238,255,7,.35), transparent 55%),
    /* mid-left mint soft fill */
    radial-gradient(circle 50vmax at 0% 40%, rgba(168,232,226,.18), transparent 60%);
  filter: blur(.5px);
  opacity: .9;
  z-index: -1;
  animation: bg-shapes 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* Slow ambient drift for the grid */
@keyframes bg-grid-drift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-64px,-64px,0); }
}

/* Wedges + arc gently breathe and shift — exaggerates the brand wedge motion */
@keyframes bg-shapes {
  0%   { transform: translate3d(0,0,0)        rotate(0deg)   scale(1);    }
  50%  { transform: translate3d(-2%, 1.5%, 0) rotate(2.5deg) scale(1.04); }
  100% { transform: translate3d(2%, -1%, 0)   rotate(-1deg)  scale(.98);  }
}

/* Foreground text on .brand-bg should always sit above the layers */
.brand-bg > * { position: relative; z-index: 1; }

/* Lighter contrast variant — for pages where the hero text is a section
   inside a larger light layout (e.g. contact). Same effect, slightly
   dialed-down so it doesn't dominate the page. */
.brand-bg--soft::after { opacity: .55; }

/* Honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .brand-bg::before,
  .brand-bg::after { animation: none; }
}

/* ---------- Official partner badges (home banner = subtle, services banner = pills) ---------- */
.pbadges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pbadge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 7px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(23, 23, 23, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--adfix-font-display); font-size: 14px; font-weight: 500; line-height: 1;
  color: #fff; white-space: nowrap;
}
.pbadge__check { width: 20px; height: 20px; flex: 0 0 auto; }
.pbadge__check circle { fill: var(--adfix-yellow); }
.pbadge__check path { stroke: #171717; }
.pbadges--subtle { gap: 8px 24px; }
.pbadges--subtle .pbadge {
  padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  gap: 7px; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .85);
}
.pbadges--subtle .pbadge__check { width: 14px; height: 14px; }
@media (max-width: 520px) { .pbadge { font-size: 13px; } }

/* Consent notice: a floating dark card, bottom-left on desktop (clear of the
   Chat pill on the right) and a full-width card on phones. Accept and Decline
   are the same size, so declining is as easy as accepting. */
.cookie-banner {
  position: fixed; z-index: 2000000; bottom: 24px; left: 24px;
  width: min(440px, calc(100% - 48px)); max-height: calc(100% - 48px); overflow: auto;
  box-sizing: border-box; padding: 22px 22px 18px; text-align: left;
  background: var(--adfix-carbon); color: #fff;
  border: 1px solid rgb(255 255 255 / .08); border-radius: 20px;
  box-shadow: 0 18px 50px rgb(0 0 0 / .35);
  --focus-ring: var(--adfix-yellow);
  animation: cookie-rise .35s var(--ease-theme);
}
@media (max-width: 700px) {
  .cookie-banner {
    bottom: 12px; left: 12px; width: calc(100% - 24px); max-height: 85vh;
    padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 18px;
  }
}
@media (max-width: 700px) { .hero-partners { gap: 12px 18px; } }
@keyframes cookie-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookie-prefs__title {
  margin: 0; font-family: var(--adfix-font-display); font-weight: 400; line-height: 1.2;
  font-size: clamp(1.1875rem, .9722rem + .4444vw, 1.5625rem); color: var(--text);
}
.cookie-banner__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie-banner__icon { flex: none; width: 22px; height: 22px; color: var(--adfix-yellow); }
.cookie-banner__title { margin: 0; font-family: var(--adfix-font-display); font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.cookie-banner__text { margin: 0; font-size: 14px; line-height: 1.55; color: rgb(255 255 255 / .72); }
.cookie-banner__text a { color: #fff; }
.cookie-banner a, .cookie-prefs a, .cookie-banner__prefs span {
  color: inherit;
  background: linear-gradient(currentColor, currentColor) left min(100%, 1.35em) / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-theme);
}
@media (hover: hover) and (pointer: fine) {
  .cookie-banner a:hover, .cookie-prefs a:hover, .cookie-banner__prefs:hover span { background-position-x: right; background-size: 0 1px; }
}
.cookie-banner__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cookie-banner__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 112px; min-height: 44px; padding: 10px 22px; border-radius: 60px;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cookie-banner__btn--accept { border: 1px solid var(--adfix-yellow); background: var(--adfix-yellow); color: var(--text); }
.cookie-banner__btn--accept:hover { border-color: var(--adfix-yellow-hover); background: var(--adfix-yellow-hover); }
.cookie-banner__btn--decline { border: 1px solid rgb(255 255 255 / .4); background: transparent; color: #fff; }
.cookie-banner__btn--decline:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.cookie-banner__prefs {
  margin-left: auto; min-height: 44px; padding: 0 2px; border: 0; background: none;
  font: inherit; font-size: 14px; color: rgb(255 255 255 / .8); cursor: pointer;
}
.cookie-banner__prefs:hover { color: #fff; }
.cookie-banner :focus-visible { outline: 2px solid var(--adfix-yellow); outline-offset: 3px; }
@media (max-width: 700px) {
  .cookie-banner__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-banner__btn { min-width: 0; width: 100%; }
  .cookie-banner__prefs { grid-column: 1 / -1; margin: 0 auto; min-height: 40px; }
}

html.cookie-prefs-open { overflow: hidden; }
/* focus lands on <main> after a choice made from the banner; no ring round the whole page */
main[tabindex="-1"]:focus { outline: none; }
.cookie-prefs__overlay { position: fixed; inset: 0; z-index: 2000001; background: rgb(0 0 0 / .6); }
.cookie-prefs {
  position: fixed; z-index: 2000002; top: 50%; left: 5%; width: 90%; transform: translateY(-50%);
  max-height: 80%; overflow-y: auto; display: flex; flex-direction: column;
  background: #fff; color: var(--text); text-align: left;
  box-shadow: 0 5px 10px rgb(63 63 68 / .5);
}
@media (min-width: 1351px) { .cookie-prefs { left: 15%; width: 70%; } }
@media (min-width: 1601px) { .cookie-prefs { left: 20%; width: 60%; } }
@media (min-width: 1901px) { .cookie-prefs { left: 25%; width: 50%; } }
@media (max-width: 639px) {
  .cookie-prefs { top: auto; bottom: 0; left: 0; width: 100%; transform: none; border-radius: 20px 20px 0 0; }
}
.cookie-prefs__header {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px 32px 20px; border-bottom: 1px solid rgb(23 23 23 / .1);
}
.cookie-prefs__title { width: 100%; padding-right: 20px; }
.cookie-prefs__actions { display: flex; gap: 16px; padding-right: 16px; }
.cookie-prefs__actions .btn { padding: clamp(12px, 1.2vw, 16px) clamp(20px, 1.473vw, 24px); }
.cookie-prefs__close {
  flex: 0 0 auto; order: 10; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 1px solid rgb(32 32 32 / .1); border-radius: 50%;
  background: none; color: var(--text); cursor: pointer;
}
.cookie-prefs__close svg { width: 10px; height: 10px; transition: transform .5s var(--ease-theme); }
@media (hover: hover) and (pointer: fine) { .cookie-prefs__close:hover svg { transform: rotate(90deg); } }
@media (max-width: 1200px) {
  .cookie-prefs__header { flex-direction: column; }
  .cookie-prefs__title { margin-bottom: 24px; padding: 0 56px; text-align: center; }
  .cookie-prefs__actions { padding: 0; }
  .cookie-prefs__close { position: absolute; top: 28px; right: 28px; }
}
@media (max-width: 750px) {
  .cookie-prefs__title { padding: 0 40px 0 0; text-align: left; }
  .cookie-prefs__actions { flex-direction: column; width: 100%; }
  .cookie-prefs__close { top: 14px; right: 14px; width: 32px; height: 32px; border: 0; }
}
@media (max-width: 400px) { .cookie-prefs__header { padding: 32px 20px 24px; } }
.cookie-prefs__body { padding: 20px 32px 32px; }
@media (max-width: 400px) { .cookie-prefs__body { padding: 20px 20px 15px; } }
.cookie-prefs__body h3 { margin: 0 0 15px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.cookie-prefs__body > p { margin: 0; font-size: 17px; line-height: 1.4; }
.cookie-prefs__options { margin-top: 20px; border-top: 1px solid rgb(23 23 23 / .1); }
.cookie-prefs__option { padding-top: 20px; }
.cookie-prefs__option:first-child { padding-top: 25px; }
.cookie-prefs__option label { display: flex; gap: 20px; align-items: center; font-size: 17px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.cookie-prefs__option input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.cookie-check {
  position: relative; flex: 0 0 auto; width: 24px; height: 24px; box-sizing: border-box;
  border: 2px solid currentColor; border-radius: 3px;
}
.cookie-prefs__option input:checked + .cookie-check { background: var(--text); }
.cookie-prefs__option input:checked + .cookie-check::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cookie-prefs__option input:disabled + .cookie-check { opacity: .2; }
.cookie-prefs__option input:disabled ~ * { cursor: not-allowed; }
.cookie-prefs__option input:focus-visible + .cookie-check { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.cookie-prefs__option p { margin: 5px 0 0; padding-left: 44px; font-size: 17px; line-height: 1.4; color: rgb(23 23 23 / .9); }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
  .cookie-banner a, .cookie-prefs a, .cookie-banner__prefs span, .cookie-prefs__close svg { transition: none; }
}

/* footer "Cookie preferences" button, styled like the links next to it */
.footer-cookies {
  display: block; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; font-size: 12px; cursor: pointer; transition: color .3s;
}
.footer-cookies:hover { color: var(--adfix-yellow); }
@media (prefers-reduced-motion: reduce) { .footer-cookies { transition: none; } }

/* "Chat" button that opens Crisp (main.js hides Crisp's own bubble). Same
   yellow pill and dark hover fill as the header CTA; sits under the cookie
   banner (z-index 2000000) and Crisp's open window. */
.chat-launcher {
  position: fixed; z-index: 999999; right: 16px; bottom: 16px;
  isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 20px; border: 0; border-radius: 60px;
  background: var(--adfix-yellow); color: var(--text);
  font: 500 17px/1 var(--adfix-font-body); cursor: pointer;
  box-shadow: 0 8px 28px rgb(0 0 0 / .22);
  transition: color .5s var(--ease-theme) .1s;
}
.chat-launcher[hidden] { display: none; }
.chat-launcher::before {
  content: ""; position: absolute; z-index: -1;
  left: -25%; top: -50%; width: 150%; height: 200%;
  border-radius: 50%; background: var(--text);
  transform: translate3d(0, -76%, 0);
  transition: transform .5s var(--ease-theme);
}
.chat-launcher svg { width: 24px; height: 24px; flex: none; }
.chat-launcher:hover { color: var(--adfix-yellow); }
.chat-launcher:hover::before { transform: translate3d(0, 0, 0); }
.chat-launcher:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (min-width: 768px) { .chat-launcher { right: 24px; bottom: 24px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .chat-launcher, .chat-launcher::before { transition: none; } }
@media print { .chat-launcher { display: none; } }

/* ── Playbooks: the hub (/playbooks) and playbook pages, built by scripts/build-playbooks.mjs ── */
.pb-wrap { width: 100%; max-width: calc(1280px + 2 * var(--page-pad)); margin-inline: auto; padding-inline: var(--page-pad); }

/* Hub banner: the animated brand canvas (.brand-bg), text centred across it like the other page banners */
.pb-hero { --focus-ring: var(--adfix-yellow); padding-block: clamp(80px, 10vw, 168px) clamp(72px, 8vw, 136px); }
.pb-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pb-eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--adfix-yellow); }
.pb-title { margin: 0; max-width: 18ch; font-family: var(--adfix-font-display); font-weight: 400; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; color: #fff; }
.pb-highlight { position: relative; display: inline-block; font-style: normal; }
.pb-highlight svg { position: absolute; z-index: -1; left: 0; bottom: -20%; width: 100%; height: 30%; stroke: var(--adfix-yellow); pointer-events: none; }
.pb-highlight path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pb-draw 1.3s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
@keyframes pb-draw { to { stroke-dashoffset: 0; } }
.pb-lede { margin: 32px 0 0; max-width: 46rem; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; text-wrap: pretty; color: rgb(255 255 255 / .75); }
.pb-note { margin: 0 0 20px; color: rgb(23 23 23 / .65); }

/* Hub list: one block per topic, each playbook a numbered title row (no summary) */
.pb-library { padding-block: clamp(24px, 3vw, 48px) 0; background: #fff; }
.pb-topic { padding-block: clamp(24px, 3vw, 40px); background: #fff; }
.pb-topic__grid { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .pb-topic__grid { grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: 48px; }
  .pb-topic__head { position: sticky; top: 24px; align-self: start; padding-top: 28px; }
}
.pb-topic__title, .pb-more__title { margin: 0; font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 24px; }
.pb-topic__head .pb-note { margin: 10px 0 0; font-size: 15px; }
.pb-more__title { margin-bottom: 20px; }

.pb-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(23 23 23 / .14); }
.pb-row { border-bottom: 1px solid rgb(23 23 23 / .14); }
.pb-row a {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 16px;
  padding: 20px 8px; color: var(--text);
  transition: background-color .3s var(--ease-theme), color .3s var(--ease-theme);
}
.pb-row__title { font-size: clamp(20px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -.02em; }
.pb-row__go {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgb(23 23 23 / .2); border-radius: 50%;
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-theme);
}
.pb-row__go svg { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .pb-row a { grid-template-columns: minmax(0, 1fr) 56px; gap: 24px; padding: 30px 24px; }
  .pb-row__go { width: 56px; height: 56px; }
}
.pb-row a:hover { background: var(--footer-bg); color: #fff; }
.pb-row a:hover .pb-row__go { background: var(--adfix-yellow); border-color: var(--adfix-yellow); color: var(--text); transform: translateX(4px); }
.pb-row a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.pb-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--adfix-yellow); color: var(--text); font-size: 11px; letter-spacing: .06em; vertical-align: middle; }

.pb-cta { margin-top: clamp(56px, 7vw, 96px); padding-block: clamp(48px, 6vw, 88px); background: var(--footer-bg); color: #fff; --focus-ring: var(--adfix-yellow); }
.pb-cta__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pb-cta__title { margin: 0; max-width: 20ch; font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.pb-cta p { margin: 0 0 12px; max-width: 40rem; color: rgb(255 255 255 / .8); font-size: 18px; line-height: 1.5; }

.pb-draft { margin: 0; padding: 12px var(--page-pad); background: var(--adfix-yellow); color: var(--text); font-size: 15px; text-align: center; }
.pb-article { padding-block: clamp(32px, 4vw, 56px) 0; background: #fff; }
.pb-crumbs { margin-bottom: 24px; font-size: 14px; color: rgb(23 23 23 / .65); }
.pb-crumbs a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pb-head { max-width: 52rem; }
.pb-head__title { margin: 0; font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.035em; }
.pb-byline { margin: 20px 0 0; font-size: 15px; color: rgb(23 23 23 / .65); }
.pb-summary { margin-top: 32px; padding: 22px 26px; border-left: 4px solid var(--adfix-yellow); border-radius: 0 12px 12px 0; background: #f5f5f2; }
.pb-summary p { margin: 0; font-size: 18px; line-height: 1.55; }

.pb-layout { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1024px) {
  .pb-layout { grid-template-columns: 240px minmax(0, 46rem); gap: 64px; margin-top: 56px; }
  .pb-toc { position: sticky; top: 24px; align-self: start; }
}
.pb-toc details { border-top: 1px solid rgb(23 23 23 / .12); padding-top: 16px; }
.pb-toc summary { cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgb(23 23 23 / .65); }
.pb-toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.35; }
.pb-toc a { color: var(--text); }
.pb-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .pb-toc summary { pointer-events: none; list-style: none; } .pb-toc summary::-webkit-details-marker { display: none; } }

.pb-body { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.pb-body > :first-child { margin-top: 0; }
.pb-body h2 { margin: 56px 0 16px; font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 24px; }
.pb-body h3 { margin: 36px 0 12px; font-weight: 600; font-size: 20px; line-height: 1.35; scroll-margin-top: 24px; }
.pb-body p { margin: 0 0 18px; }
.pb-body ul, .pb-body ol { margin: 0 0 20px; padding-left: 1.4em; }
.pb-body ul { list-style: disc; }
.pb-body ol { list-style: decimal; }
.pb-body li { margin: 6px 0; padding-left: 4px; }
.pb-body li::marker { color: rgb(23 23 23 / .45); }
.pb-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pb-body strong { font-weight: 600; }
.pb-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--text); font-size: 20px; line-height: 1.5; }
.pb-body code { padding: 1px 6px; border-radius: 4px; background: rgb(23 23 23 / .06); font-size: .88em; }
.pb-body img { display: block; max-width: 100%; height: auto; margin: 28px 0; border-radius: 12px; }
.pb-body hr { margin: 40px 0; border: 0; border-top: 1px solid rgb(23 23 23 / .12); }
.pb-table { margin: 24px 0 28px; overflow-x: auto; }
.pb-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.pb-table th, .pb-table td { padding: 12px 14px; border-bottom: 1px solid rgb(23 23 23 / .12); text-align: left; vertical-align: top; }
.pb-table th { font-weight: 600; background: #f5f5f2; }

.pb-more { padding-top: clamp(56px, 7vw, 96px); background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .pb-row a, .pb-row__go { transition: none; }
  .pb-row a:hover .pb-row__go { transform: none; }
  .pb-highlight path { animation: none; stroke-dashoffset: 0; }
}

/* Playbook visuals: figures (charts, screenshots) and the "pick one" checkout pills */
.pb-figure { margin: 32px 0; }
.pb-figure img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0; border-radius: 16px; }
.pb-figure figcaption { margin-top: 12px; max-width: 520px; font-size: 15px; line-height: 1.5; color: rgb(23 23 23 / .65); }
.pb-panel {
  margin: 28px 0; padding: 28px; border-radius: 16px;
  background: var(--footer-bg); color: #fff; font-size: 17px; line-height: 1.5;
}
.pb-panel p { margin: 0 0 14px; }
.pb-panel .pb-kicker { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--adfix-yellow); }
.pb-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 20px; }
.pb-panel dt { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--adfix-yellow); padding-top: 3px; }
.pb-panel dd { margin: 0; }
@media (max-width: 520px) { .pb-panel dl { grid-template-columns: 1fr; gap: 4px; } .pb-panel dd { margin-bottom: 10px; } }
.pb-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.pb-panel > :last-child, .pb-panel .pb-choice { margin-bottom: 0; } /* beat .pb-body p and .pb-panel p margins */
.pb-pill { padding: 10px 20px; border: 2px solid rgb(255 255 255 / .45); border-radius: 60px; font-weight: 600; letter-spacing: .06em; }
.pb-pill--hot { border-color: var(--adfix-yellow); color: var(--adfix-yellow); }
.pb-choice__or { color: rgb(255 255 255 / .6); }
/* Playbook stat tiles: big number + short label, on the dark brand panel */
.pb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.pb-stat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; background: var(--footer-bg); color: #fff; }
.pb-stat strong { font-family: var(--adfix-font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: var(--adfix-yellow); }
.pb-stat span { font-size: 14px; line-height: 1.4; color: rgb(255 255 255 / .78); }
