/* ==========================================================================
   AdHandler360 – Product Landing Page
   Pure HTML + CSS. Dark product world → light proof world.
   Design tokens follow "AdHandler360 Landingpage – Masterbriefing V2.0 (21.10.2026)".
   ========================================================================== */

/* ---------- Webfonts (self-hosted, SIL OFL – see /fonts) ---------- */

@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/red-hat-text-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/red-hat-text-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/red-hat-text-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/red-hat-text-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  /* --- CPG colors · CI-VERBINDLICH (Briefing 1.3, colors(2).pdf) --- */
  --cpg-green-600: #002B17;   /* dark: typography & CPG sender on light */
  --cpg-green-500: #003E21;   /* brand: CPG brand surfaces */
  --cpg-green-400: #009965;   /* links/accents on light – large text & graphics only */
  --cpg-green-300: #00E185;   /* no small text on white */
  --cpg-green-200: #7FF0C2;   /* light accents / highlights on dark */
  --cpg-green-100: #CCF9E7;   /* subtle tints */
  --cpg-grey-500: #3C4035;
  --cpg-grey-400: #777A72;
  --cpg-grey-300: #9D9F9A;
  --cpg-grey-200: #C4C5C2;
  --cpg-grey-100: #EBEBEA;
  --cpg-grey-50:  #F3F3F2;
  --cpg-blue-light: #00CAE1;
  --cpg-blue: #6244F7;
  --cpg-purple: #D344F7;
  --cpg-magenta: #F74471;
  --cpg-orange: #F77A44;

  /* --- AdHandler360 product tokens · UMSETZUNGSVORSCHLAG (Briefing 2, Freigabe Fred) --- */
  --adh-product-mint: #ABFFCA;  /* from logo-dark.svg: Primary CTA, growth graph, active toggles, headline accents */
  --adh-on-mint: var(--cpg-green-600);       /* text on mint (11:1) */
  --adh-bg-base: #061117;
  --adh-bg-card: #0C1B23;
  --adh-text-on-dark: #FFFFFF;
  --adh-light-surface: var(--cpg-grey-50);
  --adh-light-divider: var(--cpg-grey-100);
  /* Feature clusters: Build / Optimize / Protect */
  --adh-build: var(--cpg-green-400);
  --adh-optimize: var(--cpg-blue);
  --adh-protect: var(--cpg-purple);
  /* Lighter text variants of the cluster colors for small text on dark (≥ 5.9:1 on --adh-bg-card) */
  --adh-build-text: color-mix(in srgb, var(--adh-build) 80%, #fff);
  --adh-optimize-text: color-mix(in srgb, var(--adh-optimize) 65%, #fff);
  --adh-protect-text: color-mix(in srgb, var(--adh-protect) 80%, #fff);

  /* --- Dark product world (derived from tokens) --- */
  --bg: var(--adh-bg-base);
  --bg-2: color-mix(in srgb, var(--adh-bg-base) 55%, var(--adh-bg-card));
  --surface: var(--adh-bg-card);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: var(--adh-text-on-dark);
  --muted: color-mix(in srgb, var(--adh-text-on-dark) 62%, var(--adh-bg-base));  /* ≈ 7.6:1 on card */

  /* --- Light proof world --- */
  --l-bg: var(--adh-light-surface);
  --l-surface: #FFFFFF;
  --l-line: var(--adh-light-divider);
  --l-line-strong: var(--cpg-grey-200);
  --l-text: var(--cpg-green-600);
  --l-muted: color-mix(in srgb, var(--cpg-grey-500) 60%, var(--cpg-grey-400));  /* ≈ 7:1 on Grey 50 */

  /* --- Section accent (overridden per cluster / world) --- */
  --accent: var(--adh-product-mint);
  --accent-text: var(--adh-product-mint);
  --accent-dim: color-mix(in srgb, var(--adh-product-mint) 13%, transparent);
  --focus: var(--adh-product-mint);

  /* --- Type --- */
  --font-headline: "Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* --- Shape & layout --- */
  --radius-sm: 10px;   /* icon containers, chips, small buttons */
  --radius: 14px;      /* cards */
  --radius-lg: 20px;   /* large containers: product windows, PoC, case */
  --card-pad: 24px;
  --icon: 20px;
  --icon-stroke: 1.75;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-height: 72px;
  --shadow-dark: 0 40px 80px -40px rgba(0, 0, 0, .9);
  --shadow-light: 0 30px 60px -40px rgba(0, 43, 23, .22);
}

/* Cluster & world scopes: every accent-aware component reads --accent / --accent-text / --accent-dim */
.feature--build, .pillar--build {
  --accent: var(--adh-build); --accent-text: var(--adh-build-text);
  --accent-dim: color-mix(in srgb, var(--adh-build) 16%, transparent);
}
.feature--optimize, .pillar--optimize {
  --accent: var(--adh-optimize); --accent-text: var(--adh-optimize-text);
  --accent-dim: color-mix(in srgb, var(--adh-optimize) 18%, transparent);
}
.feature--protect, .pillar--protect {
  --accent: var(--adh-protect); --accent-text: var(--adh-protect-text);
  --accent-dim: color-mix(in srgb, var(--adh-protect) 16%, transparent);
}
.light {
  --accent: var(--cpg-green-400);        /* large text & graphics only (3.3:1) */
  --accent-text: var(--cpg-green-500);   /* small text on light (11:1) */
  --accent-dim: var(--cpg-green-100);
  --focus: var(--cpg-green-500);
}
.cpg {
  --accent: var(--cpg-green-200); --accent-text: var(--cpg-green-200);
  --accent-dim: color-mix(in srgb, var(--cpg-green-200) 14%, transparent);
  --focus: var(--cpg-green-200);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

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

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

.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: -9999px; top: 8px; z-index: 100;
  background: var(--adh-product-mint); color: var(--adh-on-mint); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* Anchor targets clear the sticky header */
section[id], main[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ---------- Typography ---------- */

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-headline); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow--accent { color: var(--accent-text); }

.h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.accent { color: var(--accent-text); }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 620px; }
.lead strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }

/* ---------- Buttons (ButtonPrimary / ButtonSecondary) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 700; font-size: 16px; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--adh-product-mint); color: var(--adh-on-mint); }
.btn--primary:hover { background: color-mix(in srgb, var(--adh-product-mint) 70%, #fff); }
.btn--ghost { border-color: rgba(255,255,255,.32); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

.light .btn--primary { background: var(--cpg-green-500); color: #fff; }
.light .btn--primary:hover { background: var(--cpg-green-600); }
.light .btn--ghost { color: var(--l-text); border-color: var(--l-line-strong); background: var(--l-surface); }
.light .btn--ghost:hover { border-color: var(--l-text); }

.text-link { color: var(--accent-text); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

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

/* ---------- Icons: one set, one stroke, one size ---------- */

.ico {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-dim); color: var(--accent-text);
}
.ico svg, .hero-note svg { width: var(--icon); height: var(--icon); stroke-width: var(--icon-stroke); }
.ico svg *, .hero-note svg * { vector-effect: non-scaling-stroke; }

/* ---------- Toggle (recurring control motif) ---------- */

.toggle {
  position: relative; flex: none;
  width: 36px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform .2s ease;
}
.toggle.is-on { background: var(--adh-product-mint); }
.toggle.is-on::after { transform: translateX(16px); background: var(--adh-on-mint); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--adh-bg-base) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 36px; height: var(--header-height); }

/* Logo component: official wordmark + CPG sender (not part of the SVG) */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: none; }
.brand-logo { height: 20px; width: auto; }

.nav-links { display: flex; gap: 28px; font-size: 16px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.lang-switch a { display: grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 8px; border-radius: 7px; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: rgba(255,255,255,.1); color: var(--text); }

.nav-burger {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-burger .bars, .nav-burger .bars::before, .nav-burger .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-burger .bars::before, .nav-burger .bars::after { content: ""; position: absolute; left: 0; }
.nav-burger .bars::before { top: -6px; }
.nav-burger .bars::after { top: 6px; }
.nav-burger[aria-expanded="true"] .bars { background: transparent; }
.nav-burger[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions { gap: 10px; }
  .nav-login { min-height: 44px; }

  /* Overlay below the header bar: opening it never shifts the page, so anchor jumps land correctly */
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: 0; overflow: hidden; visibility: hidden;
    background: var(--adh-bg-base);
    border-top: 1px solid transparent; border-bottom: 1px solid transparent;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .site-header.is-open .mobile-menu {
    max-height: calc(100vh - var(--header-height)); overflow-y: auto; visibility: visible;
    border-top-color: var(--line); border-bottom-color: var(--line-strong); transition: max-height .3s ease;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.8);
  }
  .mobile-menu .container { display: grid; gap: 4px; padding-top: 8px; padding-bottom: 20px; }
  .mobile-menu .m-link { display: flex; align-items: center; gap: 6px; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .lang-switch--menu { display: none; }

  /* Without JavaScript the menu is simply shown open */
  .no-js .site-header { position: relative; }
  .no-js .nav-burger { display: none; }
  .no-js .mobile-menu { position: static; max-height: none; visibility: visible; border-top-color: var(--line); }
}

@media (max-width: 560px) {
  :root { --header-height: 64px; }
  .brand-logo { height: 15px; }
  .nav-actions > .lang-switch { display: none; }
  .lang-switch--menu { display: inline-flex; justify-self: start; margin-top: 16px; }
  .lang-switch--menu a { min-width: 52px; min-height: 44px; }
  .nav-login { padding: 0 16px; }
}

/* ==========================================================================
   Sections – shared
   ========================================================================== */

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

/* Card component: shared padding, radius, border */
.pillar-mini, .pillar, .subfeature, .cpg-card, .poc-step {
  padding: var(--card-pad); border-radius: var(--radius); border: 1px solid var(--line);
}
.pillar-mini, .subfeature { background: rgba(255,255,255,.02); }
/* Long German compounds break cleanly inside cards (uses the page's lang attribute) */
.pillar-mini, .pillar, .subfeature, .cpg-card, .poc-step, .poc-stat { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }

/* ==========================================================================
   1. Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(900px 500px at 78% 70%, color-mix(in srgb, var(--adh-product-mint) 12%, transparent), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 60%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 60%, #000 0%, transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy .lead { margin: 26px 0 34px; }
.hero-copy .lead strong { white-space: nowrap; }  /* keep “web and app” / “Web und App” on one line */
.hero-copy .lead + .hero-note { margin-top: 0; }
.hero-note { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.hero-note svg { color: var(--accent-text); flex: none; }

/* Growth curve – colors come from the product mint token */
.hero-graph {
  /* Mobile/tablet: same proportions as the drawing (1440 × 600), anchored bottom-right; the left part runs off-screen */
  position: absolute; right: 0; bottom: 0; z-index: 0;
  height: 82%; width: auto; min-width: 100%; aspect-ratio: 1440 / 600;
  pointer-events: none;
  animation: reveal 2.8s cubic-bezier(.6,.1,.2,1) .2s both;
}
.hero-graph stop { stop-color: var(--adh-product-mint); }
.hero-graph stop.hi { stop-color: color-mix(in srgb, var(--adh-product-mint) 70%, #fff); }
.hero-graph .area { opacity: 0; animation: fade 1.6s ease 1.2s forwards; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }
/* Desktop: the curve always spans the full width and starts rising at the left edge.
   Up to 1440 px it scales evenly; on wider screens it only stretches horizontally and keeps its height,
   so it can never climb into the text column. */
@media (min-width: 961px) {
  .hero-graph { left: 0; width: 100%; min-width: 0; height: min(41.667vw, 600px); aspect-ratio: auto; }
  /* Room below the text for the curve (≥ 32 px clearance, EN + DE) */
  .hero { padding-bottom: clamp(104px, calc(6vw + 48px), 136px); }
}

.hero-visual { position: relative; aspect-ratio: 7 / 5; min-height: 320px; }
.float-control {
  position: absolute;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  background: color-mix(in srgb, var(--adh-bg-card) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--adh-product-mint) 28%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
.float-control .ico { width: 34px; height: 34px; }
.float-control .toggle { margin-left: 8px; }
.fc-1 { left: 8%;  top: 30%; animation-delay: 0s; }
.fc-2 { left: 34%; top: 50%; animation-delay: -2s; }
.fc-3 { left: 46%; top: 6%;  animation-delay: -4s; }
.fc-4 { right: 2%; top: 20%; animation-delay: -1s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ==========================================================================
   2. Philosophy
   ========================================================================== */

.philosophy { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.philo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 56px); }
.philo-grid > div { max-width: 760px; }
.philo-grid .lead { margin-top: 22px; }
.philo-tagline { margin-top: 28px; font-weight: 600; font-size: 19px; }
.philo-tagline span { color: var(--accent-text); }
.pillars-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar-mini .ico { margin-bottom: 18px; }
.pillar-mini h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.pillar-mini p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   3. Platform intro
   ========================================================================== */

.platform { background: var(--bg-2); }
.platform-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.platform-grid .lead { margin-top: 20px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar {
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: linear-gradient(180deg, var(--accent-dim), transparent 80%), var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-3px); border-color: var(--accent); }
.pillar .tag { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--accent-text); text-transform: uppercase; }
.pillar strong { font-family: var(--font-headline); font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.pillar .go { margin-top: auto; font-size: 15px; color: var(--muted); }

/* ==========================================================================
   4. Feature sections (Build / Optimize / Protect)
   ========================================================================== */

.feature { background: var(--bg-2); border-top: 1px solid var(--line); }
.feature--optimize { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.feature--protect { background: var(--bg); }

.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature--optimize .feature-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature--optimize .feature-copy { order: 2; }

.feature-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.feature-copy .h3 { margin-bottom: 16px; }
.feature-copy > p { color: var(--muted); max-width: 540px; }
.feature-copy > .feature-claim { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--accent); font-weight: 600; color: var(--text); }
.feature-claim small { display: block; font-weight: 400; color: var(--muted); font-size: 16px; margin-top: 4px; }

.steps { margin-top: 28px; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 16px; color: var(--muted); }
.steps li b { color: var(--text); font-weight: 600; }
.steps .n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Sub feature cards */
.subfeatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.subfeature h4 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.subfeature strong { display: block; font-family: var(--font-headline); font-size: 19px; line-height: 1.3; margin: 10px 0 8px; letter-spacing: -0.01em; }
.subfeature p { font-size: 15px; color: var(--muted); }

/* ---------- Product UI window ---------- */

.ui-window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}
.ui-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.ui-bar span { margin-left: 10px; }

/* Tabbed product screens (static screenshots + auto-advancing tabs) */
.tab-panels { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.tab-panel {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.tab-panel.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.tab-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Opt-in per screenshot: show the whole image, fill the rest of the frame with the screenshot's own background (--shot-bg) */
.tab-panel--fit { background: var(--shot-bg, var(--bg-2)); }
.tab-panel--fit img { object-fit: contain; object-position: center; }

.tab-list { display: flex; border-top: 1px solid var(--line); }
.tab {
  flex: 1 1 0; min-width: 0; min-height: 48px; position: relative;
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 12px 6px 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s ease, background-color .2s ease;
}
.tab + .tab { border-left: 1px solid var(--line); }
.tab:hover { color: var(--text); background: rgba(255,255,255,.02); }
.tab[aria-selected="true"] { color: var(--accent-text); background: rgba(255,255,255,.03); }
.tab:focus-visible { outline-offset: -3px; }

/* Countdown bar: runs on the active tab; script.js advances on animationend */
.tab-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.tab-timer::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
}
.tab[aria-selected="true"] .tab-timer::after {
  animation: tab-countdown var(--interval, 6s) linear forwards;
  animation-play-state: paused;
}
.tabs-box.is-running .tab[aria-selected="true"] .tab-timer::after { animation-play-state: running; }
@keyframes tab-countdown { to { transform: scaleX(1); } }

/* ==========================================================================
   Light world
   ========================================================================== */

.light { background: var(--l-bg); color: var(--l-text); position: relative; }
.light .eyebrow { color: var(--l-muted); }
.light .eyebrow--accent { color: var(--accent-text); }
.light .lead, .light .muted { color: var(--l-muted); }
.light .lead strong { color: var(--l-text); }
.light .poc-step { border-color: var(--l-line); }

/* 7. Customer story */
.case { padding-top: clamp(16px, 2vw, 32px); }
.case-card {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-light);
}
.case-body { padding: clamp(28px, 4vw, 52px); }
.case-logo { font-size: 40px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; }
.case-logo svg { width: 38px; height: 38px; }
.case-headline { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 26px; }
.case-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
.case-blocks h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.case-blocks p { font-size: 16px; color: var(--l-muted); }
.case-media { position: relative; min-height: 340px; background: var(--l-line); }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--l-line); }
.case-kpi { padding: 26px clamp(20px, 3vw, 40px); border-right: 1px solid var(--l-line); }
.case-kpi:last-child { border-right: 0; }
.case-kpi strong { display: block; font-family: var(--font-headline); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.case-kpi span { display: block; margin-top: 8px; font-size: 15px; color: var(--l-muted); }
.case-quote { grid-column: 1 / -1; padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px); background: var(--l-bg); border-top: 1px solid var(--l-line); display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.case-quote .q { font-family: var(--font-headline); font-size: 64px; line-height: .8; color: var(--accent); }
.case-quote blockquote { margin: 0; font-family: var(--font-headline); font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.case-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 15px; color: var(--l-muted); }
.placeholder { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cpg-orange) 20%, transparent) 0 6px, color-mix(in srgb, var(--cpg-orange) 8%, transparent) 6px 12px); border-radius: 4px; padding: 0 4px; }

/* 8. Logos (CustomerLogo) – approved SVG/PNG files only, no recoloring */
.logos { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); background: var(--l-surface); }
.logos .eyebrow { text-align: center; margin-bottom: 36px; }
.logo-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; align-items: center; }
.logo-wall li { display: flex; align-items: center; justify-content: center; height: 56px; }
.logo-wall img { max-height: 40px; width: auto; }
.lw { font-weight: 700; font-size: 20px; white-space: nowrap; color: var(--l-muted); }

/* 9. PoC */
.poc-card {
  background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-light);
}
.poc-card .h2 { font-size: clamp(30px, 3.8vw, 48px); }
.poc-card .lead { margin-top: 16px; }
.poc-card .poc-intro { margin-top: 14px; color: var(--l-muted); max-width: 560px; }
.poc-steps { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.poc-step { background: var(--l-bg); position: relative; }
.poc-step .num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--accent-text); }
.poc-step strong { display: block; font-family: var(--font-headline); font-size: 19px; margin: 10px 0 2px; }
.poc-step em { display: block; font-style: normal; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.poc-step p { font-size: 15px; color: var(--l-muted); }
.poc-side { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--l-line); }
.poc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.poc-stat { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: var(--l-bg); }
.poc-stat strong { display: block; white-space: nowrap; font-family: var(--font-headline); font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); line-height: 1.05; }
.poc-stat span { font-size: 14px; color: var(--l-muted); }
.poc-side .btn--primary { width: 100%; }
.poc-side .fine { font-size: 14px; color: var(--l-muted); text-align: center; }

/* 10. Built by CPG Digital – CPG brand surface (Green 500) */
.cpg { background: var(--cpg-green-500); color: #fff; }
.cpg-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cpg-built { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
.cpg-built span { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, #fff 75%, var(--cpg-green-500)); }
/* Clear space around the CPG logo: half the logo height on every side (confirm against styleguide) */
.cpg-logo { height: 44px; width: auto; margin: 22px 0; }
.cpg-grid .h3 { color: var(--accent-text); margin-top: 18px; font-size: clamp(20px, 2vw, 24px); }
.cpg-text p { color: color-mix(in srgb, #fff 78%, var(--cpg-green-500)); margin-top: 16px; max-width: 560px; }
.cpg-text .text-link { margin-top: 26px; }
.cpg-cards { display: grid; gap: 16px; align-self: end; }
.cpg .cpg-card { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.cpg-card strong { font-family: var(--font-headline); font-size: 19px; }
.cpg-card p { font-size: 15px; color: color-mix(in srgb, #fff 75%, var(--cpg-green-500)); margin-top: 4px; }

/* 11. Final CTA */
.final {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 100%, color-mix(in srgb, var(--cpg-green-400) 12%, transparent), transparent 70%),
    var(--l-bg);
}
.final .h2 { font-size: clamp(40px, 6vw, 76px); }
.final .lead { margin: 18px auto 34px; }
.final .cta-row { justify-content: center; margin-top: 34px; }
.final .lead + .fine { margin-top: 0; }
.final .fine { margin-top: 22px; font-size: 15px; color: var(--l-muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }
.final .fine span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ==========================================================================
   Footer: product row (light, logo-color.svg) + CPG sender bar (Green 600)
   ========================================================================== */

.site-footer { --focus: var(--cpg-green-500); background: var(--l-surface); color: var(--l-muted); border-top: 1px solid var(--l-line); font-size: 15px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.footer-logo img { height: 18px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.footer-links a:hover { color: var(--l-text); text-decoration: underline; text-underline-offset: 4px; }

.footer-cpg { --focus: var(--cpg-green-200); background: var(--cpg-green-600); color: color-mix(in srgb, #fff 75%, var(--cpg-green-600)); font-size: 14px; }
.footer-cpg-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; padding-bottom: 22px; }
.footer-cpg-logo img { height: 26px; width: auto; margin: 13px 0; }
.footer-claim { font-weight: 600; letter-spacing: .16em; color: #fff; }
.footer-copy { margin-left: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
}

@media (max-width: 960px) {
  .hero-grid, .platform-grid, .feature-grid, .feature--optimize .feature-grid,
  .case-card, .poc-card, .cpg-grid { grid-template-columns: 1fr; }
  .feature--optimize .feature-copy { order: 0; }
  .hero-visual { aspect-ratio: 16 / 11; }
  .subfeatures { grid-template-columns: 1fr; }
  .case-media { min-height: 260px; order: -1; }
  .poc-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--l-line); padding-top: 28px; }
  .cpg-built { margin-bottom: 24px; }
}

@media (max-width: 680px) {
  .pillars, .pillars-mini { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar-mini { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; align-items: center; }
  .pillar-mini .ico { margin: 0; grid-row: span 2; }
  .hero-visual { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-graph { height: 46%; }
  .float-control { position: relative; inset: auto; animation: none; font-size: 14px; padding: 10px; gap: 8px; min-width: 0; }
  .float-control .toggle { margin-left: auto; }
  .float-control .ico { width: 30px; height: 30px; }
  .tab { font-size: 13px; padding: 12px 2px 14px; }
  .case-blocks { grid-template-columns: 1fr; }
  .case-kpis { grid-template-columns: 1fr; }
  .case-kpi { border-right: 0; border-bottom: 1px solid var(--l-line); }
  .case-kpi:last-child { border-bottom: 0; }
  .case-quote { grid-template-columns: 1fr; gap: 6px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .poc-steps { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .footer-links { margin-left: -8px; }
  .footer-copy { margin-left: 0; width: 100%; }
}

@media (max-width: 400px) {
  .hero-visual { grid-template-columns: 1fr; }
}

/* Motion preferences: show calm, static product states */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-graph .area { opacity: 1; }
  .tab[aria-selected="true"] .tab-timer::after { transform: scaleX(1); }
}
