/* ==========================================================================
   Merln — Product page
   Design source: Figma "Merln Website" › Product (1440px wide desktop design)
   Panels that are pixel-composed in Figma (.fit) are authored at design size
   and scaled down by js/main.js on narrower screens.
   ========================================================================== */

:root {
  --navy: #003084;
  --navy-deep: #002f83;
  --blue: #3981f3;
  --blue-hover: #2a6fe0;
  --pale: #ebf3ff;
  --ink: #1e1e1e;
  --green: #1c7a49;
  --content: 1200px;              /* site-wide content width (same as the Elementor pages); backgrounds stay full-bleed */
  --gutter: clamp(20px, 5vw, 72px);
  --grad-a: linear-gradient(159.37deg, #79adff 10.394%, #ebf3ff 109.41%);
  --grad-b: linear-gradient(155.39deg, #79adff 10.394%, #ebf3ff 109.41%);
  /* Typography: Manrope for headings, Roboto for everything else (body text, UI, buttons, forms) */
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-manrope: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-roboto: var(--font-body);
}

*, *::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;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.abs { position: absolute; }

.wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type ---------- */
.h-display {
  font: 800 60px/72px var(--font-manrope);
  letter-spacing: -2.8px;
  color: var(--navy);
  text-transform: capitalize;
  text-align: center;
  max-width: 760px;
}
.h-display .nb { display: block; }
.h-display--sm { font-size: 42px; max-width: none; }
.lede { font: 400 18px/29px var(--font-body); color: var(--ink); text-align: center; max-width: 728px; }
.lede--sm { max-width: 512px; }
.eyebrow { font: 700 16px/16px var(--font-body); color: var(--blue); }
.eyebrow--caps { font-weight: 600; letter-spacing: .96px; text-transform: uppercase; }
.eyebrow--center { text-align: center; }
.h-section {
  font: 700 38px/47px var(--font-manrope);
  letter-spacing: -1px;
  color: var(--navy);
  text-transform: capitalize;
}
.h-section--center { text-align: center; }
.h-section--light { color: #fff; }
.h-card {
  font: 700 32px/47px var(--font-manrope);
  letter-spacing: -1px;
  color: #333;
  text-transform: capitalize;
}
.body-lg { font: 400 17px/28px var(--font-body); color: var(--ink); max-width: 450px; }
.body-lg--center { text-align: center; }
.body-md { font: 400 17px/28px var(--font-body); color: var(--ink); max-width: 383px; }

/* ---------- Buttons / form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border: 0; border-radius: 10px;
  font: 600 14px/19px var(--font-body); color: #fff; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease;
}
.btn--navy { background: var(--navy); border-radius: 12px; padding: 13px 22px; }
.btn--navy:hover { background: #0a3fa3; }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-hover); }
.btn--lg { padding: 16px 20px; font-size: 16px; }
.btn--xl { padding: 16px 20px; font-size: 20px; }

.access-form {
  display: flex; align-items: center;
  width: min(520px, 100%); height: 56px;
  padding: 6px 6px 6px 18px;
  background: #fff; border: 1px solid #ccc; border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.access-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57, 129, 243, .18); }
.access-form input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 700 14px/19px var(--font-body); color: var(--ink);
}
.access-form input::placeholder { color: #7a8a9e; opacity: 1; }
.form-note { font: 500 14px/19px var(--font-body); color: var(--green); text-align: center; max-width: 520px; }
.form-note.is-error { color: #c0392b; }

/* ==========================================================================
   01 Header + Hero
   ========================================================================== */
.hero { padding-top: 0; padding-bottom: 48px; } /* breathing room under the video before the next section */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; height: 88px; } /* same as the WordPress header: 88px, logo / links / button centred in it */
.site-header__logo { display: block; width: 52px; height: 64px; }
/* The WordPress logo (home.svg) is a 400x400 canvas: the logo disc is 244.34 units wide in its centre (measured
   from the file), with the glow / ripple animation around it. To keep the disc at 40.8 px the image is drawn at
   400 x 40.8 / 244.34 = 66.8 px and pulled back by (66.8 - 40.8) / 2 = 13 px on every side, so the disc sits exactly
   where the old 40.8 px icon was and the animation has room around it. Desktop now copies the WordPress header
   instead: the image is 64 x 64 and starts 6 px left of the content edge (disc ~39 px); phones keep the 40.8 px disc. */
.site-header__logo img { display: block; width: 64px; height: 64px; max-width: none; margin: 0 -6px; }
.main-nav {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0;
  font: 400 16px/24px var(--font-body); white-space: nowrap;
}
.main-nav a { text-decoration: none; }
/* link colours: normal and active (the current page / while pressed) #003084, hover #3981F3 */
.main-nav a:not(.btn) { color: var(--navy); transition: color .2s; padding: 13px clamp(10px, 1.6vw, 20px); line-height: 1.2; } /* WordPress: 13px 20px per link (20px from 1250px wide, tighter below so it never touches the button) */
.main-nav a:not(.btn):hover { color: var(--blue); }
.main-nav a:not(.btn)[aria-current="page"], .main-nav a:not(.btn):active { color: var(--navy); }
.main-nav__signin { display: none !important; }
/* Sign In button (header + phone menu): Roboto 500 16px, padding 12px 24px, radius 12px, navy fill.
   Hover: white fill, navy text, navy outline (an inset ring in both states, so the size never changes). */
.site-header__signin, .main-nav__signin {
  padding: 12px 24px; border-radius: 12px;
  font: 500 16px/18px var(--font-body);
  box-shadow: inset 0 0 0 1px var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.site-header__signin:hover, .main-nav__signin:hover { background: #fff; color: var(--navy); }
.nav-toggle { display: none; }

.hero__media {
  margin-top: 4%; /* space between the header and the video: 4% (of the 1200px content width = 48px; ~14px on phones) */
  width: 100%; aspect-ratio: 1296 / 547;
  border-radius: clamp(16px, 2.5vw, 32px);
  background: var(--navy); overflow: hidden;
}
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px; background: var(--pale);
  font: 700 11px/15px var(--font-body); color: var(--navy);
}

/* ==========================================================================
   02 Platforms
   ========================================================================== */
.platforms-section { background: var(--pale); }
.platforms-section__inner {
  width: min(var(--content), 100% - 2 * var(--gutter)); margin: 0 auto; min-height: 470px;
  padding: 40px 0;
  display: flex; align-items: center; gap: 60px;
}
.copy--platforms { flex: 0 1 470px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.copy--platforms .h-section { max-width: 362px; }
.platforms {
  /* the text column gives way first; the icon box never gets narrower than 6 icons + gaps (566 px) */
  flex: 0 1 650px; min-width: 566px; margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 29.568px 25.344px;
}
.plat { position: relative; flex: none; width: 72px; height: 72px; }
.plat img { position: absolute; display: block; max-width: none; }
.plat > img:only-child, .plat > img.fill { inset: 0; width: 100%; height: 100%; }

/* Scroll reveal: every [data-reveal] block (everything except the header and hero video) fades in and
   rises slightly when it scrolls into view. <html class="reveal-on"> is set in <head> only when
   IntersectionObserver exists and the user has not asked for reduced motion. js/main.js adds .is-in
   and removes the attribute once the transition is over. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* Reveal on scroll: icons fade in one after another (.js is set in <head>, so no-JS visitors still see them) */
.js .platforms .plat {
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .platforms.is-visible .plat { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .platforms .plat { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   03 Features (4-slide showcase)
   ========================================================================== */
.features { padding: 72px 0; }
.features__head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 72px; }
.features__head .body-lg { max-width: 990px; }
.features__stage { position: relative; }
.fs {
  display: flex; align-items: center; justify-content: space-between; padding-left: 40px; overflow: hidden; border-radius: 24px;
  background: linear-gradient(265.88deg, rgb(215, 231, 255) 32.716%, rgb(235, 243, 255) 89.726%); /* one wide card behind the text and the visual (Figma) */
  touch-action: pan-y;
} /* touch: vertical = scroll, horizontal = swipe between slides (js/main.js) */

/* Left: the text changes per slide; the button below it never moves */
.fs__copy { flex: 0 0 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fs__copies { display: grid; width: 100%; }
.slide__copy {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  /* leaving text fades out quickly ... */
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.slide__copy.is-active {
  /* ... then the new text fades in and rises */
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease .2s, transform .6s cubic-bezier(.2, .7, .2, 1) .2s, visibility 0s;
}
.fs__cta { margin-top: 0; }

/* Right: one card at a time, same out-then-in sequence (the two never overlap, so nothing flashes) */
.fs__cards { flex: 1 1 0; max-width: 772px; min-width: 0; display: grid; }
.slide { grid-area: 1 / 1; min-width: 0; }
.slide__card {
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.slide.is-active .slide__card {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease .2s, transform .6s cubic-bezier(.2, .7, .2, 1) .2s, visibility 0s;
}

.slide__icon { width: 54px; height: 54px; }
.slide__icon--plan { position: relative; display: block; }
.slide__icon--plan img { position: absolute; left: 19.44%; top: 18.91%; width: 64.11%; height: 62.18%; }
.slide__visual { width: 100%; }

/* dots sit just below the cards, inside the section's bottom padding */
.dots { position: absolute; z-index: 20; top: calc(100% + 28px); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px;
  background: #b8cdf2; cursor: pointer; transition: width .3s, background-color .3s;
}
.dots button[aria-selected="true"] { width: 28px; background: var(--blue); }

/* fit: design-size canvas scaled to its container (see js/main.js) */
.fit { position: relative; width: 100%; }
.fit__inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.vis { overflow: hidden; }
.vis--r24 { border-radius: 24px; }
.vis--r28 { border-radius: 28px; }
.vis--grad-a { background: var(--grad-a); }
.vis--grad-b { background: var(--grad-b); }
.ask { display: flex; align-items: center; background: #fff; gap: 10px; }
.ask > p { font: 400 18px/1.5 var(--font-roboto); color: #3e3e3e; } /* question bubbles in the visuals use Roboto (the Creative slide sets its own size inline) */
.ask > img { transform: rotate(-90deg); } /* the send icon is drawn pointing right; turn it so the arrow points up */

/* slide 2 — creative cards */
.cr-card { width: 182px; height: 205px; border-radius: 12px; overflow: hidden; }
.cr-card > img { position: absolute; max-width: none; object-fit: cover; }
.cr-card__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 26.829%, #000 100%); }
.cr-card__label {
  position: absolute; left: 12px; top: 172px; display: flex; align-items: center; gap: 4px;
  font: 400 12px/1.5 var(--font-roboto); color: #fff; white-space: nowrap;
}
.cr-dot { position: relative; width: 20px; height: 20px; flex: none; }
.cr-dot img { position: absolute; max-width: none; }
.cr-dot > img:first-child { inset: 0; width: 100%; height: 100%; }
.cr-dot__badge { left: 4px; top: 4px; width: 12.8px; height: 12.8px; }
.cr-card__arrow {
  position: absolute; left: 135.42px; top: 163.21px; width: 44.842px; height: 42.426px;
  display: flex; align-items: center; justify-content: center;
}
.cr-card__arrow img { width: 30.866px; height: 30.866px; transform: rotate(-43.41deg) skewX(3.17deg); }

/* slide 3 — landing pages */
.lp-card { width: 639px; height: 516.5px; border-radius: 23.176px; background: #fff; }
.lp-thumb { width: 200px; height: 134px; border-radius: 12px; background: #d9d9d9; overflow: hidden; transform: scale(.8277); transform-origin: 0 0; } /* drawn at 200x134, shown at 165.5x110.9 */
.lp-thumb::after { content: ''; position: absolute; inset: 0; border: 1px solid #c3d5f0; border-radius: 12px; pointer-events: none; }
.lp-thumb > img:first-child { position: absolute; left: 0; top: 22px; width: 200px; height: 125px; max-width: none; }
.lp-thumb__bar { position: absolute; left: 0; top: 0; width: 100%; height: 22px; background: var(--pale); }
.lp-thumb__dots { position: absolute; left: 11px; top: 7px; width: 34px; height: 8px; }
.lp-info { width: 281.4px; display: flex; flex-direction: column; gap: 13.244px; }
.lp-domain { font: 400 20px/1.5 var(--font-roboto); color: #303030; }
.lp-stats { display: flex; align-items: center; gap: 29.798px; white-space: nowrap; }
.lp-stats span { display: flex; align-items: baseline; gap: 4px; }
.lp-stats b { font: 500 16.554px/1.5 var(--font-roboto); color: var(--ink); }
.lp-stats small { font: 400 12px/1.5 var(--font-roboto); color: #757575; }
.lp-plat { position: relative; height: 23.838px; }
.lp-plat .av { position: absolute; top: 0; width: 28.8px; height: 28.8px; transform: scale(.8277); transform-origin: 0 0; } /* avatars drawn at 28.8px, shown at 23.84px */
.lp-plat .av > img { position: absolute; max-width: none; }
.lp-plat .bleed { position: absolute; display: block; }
.lp-plat .bleed img { display: block; width: 100%; height: 100%; max-width: none; }
.lp-plat em { position: absolute; font: 400 12px/1.5 var(--font-roboto); font-style: normal; color: #757575; white-space: nowrap; }

/* slide 4 — test plan */
.plan-card { background: #fff; border-radius: 15.36px; }
.plan-card--tests { width: 504.32px; height: 572.32px; padding: 25.6px 15.36px; display: flex; flex-direction: column; }
.plan-card--plan {
  width: 515.84px; padding: 30.72px 20.48px; border: .64px solid #b8b8b8;
  display: flex; flex-direction: column; gap: 12.8px;
}
.plan-test, .plan-step { display: flex; align-items: flex-start; gap: 12.8px; padding: 12.8px; background: #fff; }
.plan-test__logo, .plan-step__ico { position: relative; flex: none; width: 51.2px; height: 51.2px; overflow: hidden; }
.plan-test > div, .plan-step > div { width: 384px; display: flex; flex-direction: column; gap: 8.32px; }
.plan-card h4 { font: 600 12.8px/1.5 var(--font-roboto); color: #3e3e3e; }
.plan-card p, .plan-brief { font: 400 12.8px/1.5 var(--font-roboto); color: #3e3e3e; }
.plan-card b { font-weight: 600; }
.plan-chip {
  align-self: flex-start; display: flex; align-items: center; gap: 6.4px;
  padding: 1.28px 6.4px; border-radius: 128px; background: #f2f2f2;
  font: 400 10.24px/1.5 var(--font-roboto); color: var(--blue);
}
.plan-chip img { width: 6.719px; height: 6.543px; }
.plan-card .plan-title { font: 600 24px/1.5 var(--font-roboto); color: #000; white-space: nowrap; }
.plan-brief { background: var(--pale); border-radius: 12.8px; padding: 12.8px; }
.plan-step__ico { display: grid; place-items: center; background: var(--pale); border-radius: 15.36px; overflow: visible; }
.plan-step__ico i { position: relative; width: 20.48px; height: 20.48px; }
.plan-step__ico img { position: absolute; left: -5.56%; top: -5.56%; width: 111.12%; height: 111.12%; max-width: none; }

/* ==========================================================================
   04 AI assistant
   ========================================================================== */
.ai {
  background: #24344b; /* #0c1d37 at 90% over white, as in Figma */
  border-radius: 40px 40px 0 0;
  padding-top: 90px;
}
.ai__head { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ai__head > div { display: flex; flex-direction: column; gap: 16px; }
.ai__sub { font: 400 18px/29px var(--font-body); color: rgba(255, 255, 255, .6); max-width: 522px; }
.ai__body { padding: 72px 0; }
.ai-card {
  background: #fff; border-radius: 28.8px; padding: 32px;
  display: grid; grid-template-columns: minmax(240px, 345.6px) minmax(0, 1fr); gap: 32px; align-items: start;
}
.ai-tabs { display: flex; flex-direction: column; justify-content: center; align-self: stretch; padding: 38.4px 0; }
.ai-tab {
  display: flex; flex-direction: column; gap: 6.4px; width: 100%; padding: 16px;
  border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 24px;
  transition: background-color .25s;
}
.ai-tab small { font: 400 12.8px/37.6px var(--font-roboto); color: #888; transition: color .25s; }
.ai-tab span { font: 600 20px/normal var(--font-roboto); color: #9e9e9e; transition: color .25s; }
.ai-tab:hover span { color: #6b7686; }
.ai-tab.is-active { background: #eff2f5; }
.ai-tab.is-active small { color: var(--blue); }
.ai-tab.is-active span { font-size: 22.4px; color: #252f3d; }
.ai-stage { position: relative; }
/* Switching questions cross-fades. Inactive panels stay rendered (just invisible) so their big images stay decoded.
   The new panel fades in ON TOP of the old one (the old one stays fully visible underneath for .45s, so the white card
   never shows through); the old content fades out quickly, the new content comes in a beat later (question first,
   then the answer). Animations only run once the page is live (.is-live), so the first panel doesn't fade at load. */
.ai-panel { position: absolute; inset: 0; border-radius: 22.4px; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; z-index: 1; }
.ai-panel[hidden] { display: block; }
.ai-panel.is-leaving { visibility: visible; opacity: 1; }
.ai-panel.is-leaving > * { opacity: 0; transition: opacity .15s ease; }
.ai-panel.is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; }
.is-live .ai-panel.is-active { animation: fade-in .4s ease both; }
.is-live .ai-panel.is-active > * { animation: fade-in .35s ease both; }
.is-live .ai-panel.is-active > .ai-ask { animation-delay: .1s; }
.is-live .ai-panel.is-active > .ai-answer { animation-delay: .2s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .is-live .ai-panel.is-active, .is-live .ai-panel.is-active > * { animation: none; }
  .ai-panel.is-leaving { visibility: hidden; }
}
.ai-ask { display: flex; align-items: center; min-height: 60px; padding: 10px 15px; background: #fff; border-radius: 12px; } /* the question bubble (no send button) */
.ai-ask p { font: 400 18px/1.5 var(--font-roboto); color: #000; }
.ai-answer {
  display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border-radius: 24px 24px 0 0; overflow: hidden; color: #fff;
}
.ai-answer__text b, .ai-answer__title { display: block; font: 600 14.4px/normal var(--font-body); }
.ai-answer__text p { font: 400 14.4px/normal var(--font-body); }
.reco { position: relative; width: 481px; padding: 10px; background: #fff; border-radius: 10px 10px 0 0; flex: none; }
.reco__img { position: relative; width: 461px; height: 278px; border-radius: 10px; overflow: hidden; }
.reco__bar {
  position: absolute; padding: 0 10px; background: #fff;
  font: 500 8px/12px var(--font-roboto); color: #454652;
}
.camp { position: relative; flex: none; }
.camp i {
  position: absolute; display: flex; align-items: center; width: 154.892px; height: 12.041px; padding: 0 5.473px;
  background: #fff; font: 400 7.881px/normal var(--font-roboto); font-style: normal; color: #1a1c1c; white-space: nowrap;
}

/* ==========================================================================
   05 Who it's for (accordion)
   ========================================================================== */
.audience { padding: 72px 0; }
.audience__head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 60px; }
.aud-track { display: flex; justify-content: center; gap: 25px; width: 1296px; height: 489px; }
.aud-card {
  position: relative; flex: 0 0 195.533px; height: 489px; border-radius: var(--r, 28px);
  background: var(--pale); overflow: hidden;
  transition: flex-basis .55s cubic-bezier(.4, 0, .2, 1), background-color .2s;
}
.aud-card::after {
  content: ''; position: absolute; inset: 0; border: .944px solid #bbc8dd; border-radius: inherit;
  pointer-events: none; transition: opacity .2s;
}
.aud-card.is-active { flex-basis: 853px; background: transparent; }
.aud-card.is-active::after { opacity: 0; }
.aud-tab {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent;
  /* a card that just collapsed gets its vertical label back once its content has faded out */
  cursor: pointer; text-align: left; transition: opacity .25s ease .12s;
}
.aud-card.is-active .aud-tab { opacity: 0; pointer-events: none; transition: opacity .1s; }
.aud-tab__label {
  /* Collapsed card title, 40 px (Figma had 60 px, too big). Horizontal text rotated 90° clockwise, which looks
     like vertical-rl but lets us place the letters exactly: the baseline (= the letters' left edge) is
     35 px (Manrope 600, 40/40) below the top of the line box, so left = 32 + 35 puts that edge at x = 32,
     the same as the left edge of the arrow circle below (circle ink starts at x = 31.98). */
  position: absolute; left: 67px; top: 52px; transform-origin: 0 0; transform: rotate(90deg); white-space: nowrap;
  font: 600 40px/40px var(--font-manrope); color: #252f3d;
}
.aud-tab__arrow {
  position: absolute; left: 18.89px; top: 387px; width: 89.684px; height: 84.853px;
  display: flex; align-items: center; justify-content: center;
}
.aud-tab__arrow img { width: 61.732px; height: 61.732px; transform: rotate(-43.41deg) skewX(3.17deg); }
.aud-stage {
  position: absolute; left: 0; top: 0; width: 853px; height: 489px; overflow: hidden;
  border-radius: var(--r, 28px); opacity: 0; pointer-events: none; transition: opacity .15s;
  transform-origin: 0 0;
}
/* the new content starts fading in immediately (no delay), while the card is still widening and
   revealing it from the left, so there is no empty pale card in between */
.aud-card.is-active .aud-stage { opacity: 1; pointer-events: auto; transition: opacity .3s ease; }
.aud-stage > img.abs { max-width: none; }
.aud-copy { display: none; } /* phones only, see the media query at the bottom */
.aud-title { position: absolute; font-family: var(--font-manrope); font-weight: 600; line-height: normal; color: #252f3d; }
.aud-text { position: absolute; font: 400 18px/26px var(--font-body); color: var(--ink); } /* short description inside an expanded card (Figma had 15 px, too small) */
.chip {
  display: flex; align-items: center; gap: 6.038px; height: 36.231px; padding: 3.019px 6.038px 3.019px 3.019px;
  border-radius: 6.038px; background: #f2f2f2; white-space: nowrap;
  font: 400 15.096px/21.889px var(--font-body); color: var(--ink);
}
.chip img { width: 30.192px; height: 30.192px; }
.ask--pill { padding: 6px 6px 6px 12px; gap: 6.038px; border-radius: 100px; }
.ask--pill p { font: 400 18px/1.5 var(--font-roboto); color: #3e3e3e; white-space: nowrap; }
.ask--pill img { flex: none; width: 30px; height: 30px; transform: rotate(-90deg); }
.aud-chat { display: flex; flex-direction: column; gap: 20px; filter: drop-shadow(8.8px 8.8px 0 rgba(0, 0, 0, .25)); }
.aud-chat .ask--pill { align-self: flex-start; }
.aud-chat__img { position: relative; width: 100%; aspect-ratio: 429 / 264; border-radius: 16.896px; overflow: hidden; }

/* ROAS chart (Agencies) */
.roas { background: #fff; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .05); }
/* The chart is drawn in Figma coordinates that leave more white on the right and bottom; the offset
   (measured from the rendered content: x 8.6–255.6, y 3–229.6 in a 311×274 card) centres it. */
.roas__inner { position: absolute; left: 23.4px; top: 20.7px; width: 100%; height: 100%; }
.roas__inner > img { position: absolute; max-width: none; }
.roas__title { position: absolute; left: 29.4px; top: 24px; transform: translate(-50%, -100%); font: 500 15.36px/23.04px var(--font-roboto); letter-spacing: .48px; color: var(--ink); }
.roas__y { position: absolute; left: 0; width: 29.59px; text-align: right; font: 400 7.68px/11.52px var(--font-roboto); letter-spacing: .24px; color: var(--ink); }
.roas__x { position: absolute; left: 135.26px; top: 189.07px; transform: translateX(-50%); font: 500 7.68px/11.52px var(--font-roboto); letter-spacing: .24px; color: var(--ink); white-space: nowrap; }
.roas__tip {
  position: absolute; left: 172.8px; top: 61.2px; width: 66.72px; height: 17.28px; padding: 4.8px; border-radius: 2.4px;
  background: #fff; filter: drop-shadow(0 0 .96px rgba(0, 0, 0, .15));
  display: flex; align-items: center; gap: 2.4px; font: 400 5.76px/7.68px var(--font-roboto); letter-spacing: .192px; color: var(--ink); white-space: nowrap;
}
.roas__tip img { width: 5.76px; height: 5.76px; }
.roas__tip b { font-weight: 500; margin-right: 12px; }
.roas__legend { position: absolute; left: 24px; top: 219.6px; display: flex; align-items: center; gap: 14.4px; height: 11.52px; white-space: nowrap; }
.roas__legend span { display: flex; align-items: center; gap: 5.76px; font: 400 7.68px/11.52px var(--font-roboto); letter-spacing: .24px; color: var(--ink); }
.roas__legend .sm { font-size: 6.72px; line-height: 9.6px; letter-spacing: .12px; }
.roas__legend img { position: static; width: 8.322px; height: 8.322px; }

/* ==========================================================================
   06 Closing CTA
   ========================================================================== */
.cta { background: linear-gradient(171.79deg, #b3d1ff 10.394%, #ebf3ff 109.41%); }
.cta__copy { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 48px 0; }

/* ==========================================================================
   07 Footer
   ========================================================================== */
/* Top/bottom padding is 3 % like the WordPress footer: a percentage padding is a share of the page WIDTH (1440 px -> 43.2 px, 1920 -> 57.6, 390 -> 11.7). overflow: clip keeps the reveal's 26px offset from stretching the page. */
.site-footer { background: var(--navy-deep); color: rgba(253, 254, 255, .74); overflow: clip; padding: 3% 0; }
.site-footer__inner { width: min(var(--content), 100% - 2 * var(--gutter)); margin: 0 auto; }
.f-logo { display: block; width: 114px; height: 28px; }
.f-logo img { display: block; width: 100%; height: 100%; max-width: none; }
.site-footer hr { margin: 20px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.f-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 20px; padding-bottom: 14.4px; } /* same rhythm as the WordPress footer (191px tall at 1440) */
.f-row p { font: 400 14px/21px var(--font-body); }
.f-row nav { font: 400 14px/21px var(--font-body); }
.f-row .f-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.f-row nav a { text-decoration: none; transition: color .2s; }
.f-row nav a:hover { color: #fff; }
.f-row .f-nav-small { display: none; } /* the tablet / phone link list (three groups), see the Footer media queries at the end */
/* 1025-1100px: the row is tight, so the links sit a little closer (WordPress lets the last link wrap there) */
@media (min-width: 1025px) and (max-width: 1100px) { .f-row .f-nav { gap: 8px 10px; } }

/* ==========================================================================
   08 Contact page (contact/index.html; the header and footer are the shared ones)
   ========================================================================== */
.contact__body { margin-top: 4%; padding-bottom: 96px; }
.contact__intro { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
/* title-to-text spacing like the News page: ~11px between the title line box (1.19) and the text */
.contact__intro .h-display { line-height: 1.19; }
.contact__intro .lede { margin-top: -11px; }
/* the tag is the Home page's: 10px padding, 10px dot, 11px Inter 500 caps */
.contact__intro .pill { gap: 8px; padding: 10px; font: 500 11px/16.5px 'Inter', var(--font-body); text-transform: uppercase; }
.contact__intro .pill img { width: 10px; height: 10px; }
.contact-form { width: min(760px, 100%); margin: 40px auto 0; padding: 40px; background: var(--pale); border-radius: 32px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 600 14px/20px var(--font-body); color: var(--navy); }
.field label span { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: #fff; border: 1px solid #ccc; border-radius: 14px; outline: 0;
  font: 400 16px/24px var(--font-body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a8a9e; opacity: 1; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23003084' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field select:has(option[value=""]:checked) { color: #7a8a9e; } /* the "Select ..." placeholder */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57, 129, 243, .18); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .16); }
.contact-form__foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.contact-form .form-note:not(.is-error):not(.is-success) { color: #5b6b80; }
.contact-form .form-note.is-success { color: var(--green); }
.contact-form .btn:disabled { opacity: .6; cursor: default; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .platforms-section__inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 56px 0; }
  .copy--platforms { flex-basis: auto; }
  .platforms { flex-basis: auto; min-width: 0; width: 100%; padding: 0; align-self: center; max-width: 566px; }
  .fs { flex-direction: column; align-items: stretch; gap: 28px; padding: 32px 0 0; }
  .fs__copy { flex-basis: auto; padding: 0 28px; }
  .fs__cards { flex: 0 0 auto; width: 100%; max-width: none; }
  .features__head { margin-bottom: 48px; }
  .dots { top: calc(100% + 20px); }
  .features { padding-bottom: 96px; }
  .ai__head { flex-direction: column; align-items: flex-start; }
  .ai-card { grid-template-columns: 1fr; }
  .ai-tabs { padding: 0; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .ai-tab { width: calc(50% - 2px); }
}

/* Menu button + drawer on tablets and phones (<= 1024px): copies the WordPress header (Elementor nav menu).
   Button 33x33, 5% black fill, 3px radius, 22px icon in #33373d. Drawer: full-width white sheet with a soft shadow,
   links 16px in #33373d (current page #3981F3), big tap rows; it opens by growing down from the top edge. */
@media (max-width: 1024px) {
  .site-header__signin { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 33px; height: 33px; padding: 0;
    border: 0; border-radius: 3px; background: rgba(0, 0, 0, .05); color: #33373d; cursor: pointer;
    margin-right: calc(32.8px - clamp(20px, 5vw, 72px)); /* WordPress: button 32.8px from the screen edge */
  }
  .nav-toggle svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
  .nav-toggle__open { fill: none !important; }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .main-nav {
    position: absolute; top: 99px; left: calc(50% - 50vw); right: auto; width: 100vw; transform: scaleY(0); transform-origin: top;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    background: #fff; border-radius: 0; box-shadow: 0 14px 10px 1px rgba(0, 0, 0, .1);
    visibility: hidden; transition: transform .3s, visibility 0s .3s;
    z-index: 5;
  }
  .main-nav.is-open { visibility: visible; transform: scaleY(1); transition: transform .3s; }
  .main-nav a:not(.btn) { padding: 30px 40px; line-height: 1.2; border: 0; color: #33373d; }
  .main-nav a:not(.btn):hover { color: var(--blue); }
  .main-nav a:not(.btn)[aria-current="page"] { color: var(--blue); }
  .main-nav__signin {
    display: block !important; margin: 0; padding: 30px 40px; border-radius: 0; box-shadow: none;
    background: transparent; color: #33373d; font: 400 16px/1.2 var(--font-body);
  }
  .main-nav__signin:hover { background: transparent; color: var(--blue); }
}

@media (max-width: 767px) {
  .h-display { font-size: clamp(34px, 9vw, 48px); line-height: 1.15; letter-spacing: -1.6px; }
  .h-display--sm { font-size: clamp(28px, 8vw, 38px); }
  .h-section, .h-card { font-size: 30px; line-height: 1.25; }
  .lede { font-size: 16px; line-height: 26px; }
  .hero__media { aspect-ratio: 4 / 3; } /* phones get the 4:3 video */

  .hero { padding-top: 12px; }
  .site-header { z-index: 5; height: 44px; } /* the 44px menu button; video gap below is the 4% margin on .hero__media */
  .site-header__logo { width: 40.8px; height: 40.8px; }
  .site-header__logo img { width: 66.8px; height: 66.8px; margin: -13px; }
  .nav-toggle { margin-right: calc(15.6px - 20px); }
  .main-nav { top: 63px; border-radius: 0 0 16px 16px; }
  .main-nav a:not(.btn), .main-nav__signin { padding: 21px 16px; line-height: 1.1; }

  .platforms-section__inner { min-height: 0; }
  .ai { border-radius: 28px 28px 0 0; padding-top: 56px; }
  .ai__body { padding: 40px 0; }
  .ai-card { padding: 16px; gap: 16px; }
  .ai-tab { width: 100%; }

  /* Phones: no switching. Every question is followed by its own answer panel, one under the other.
     The tab list and the stage dissolve (display: contents) so that their children become items of
     .ai-card and can be interleaved with `order`; each 806x525 panel is scaled by --ai-s (set in main.js). */
  .ai-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .ai-tabs, .ai-stage, .ai-stage > .fit__inner { display: contents; }
  .ai-tab, .ai-tab.is-active {
    padding: 12px 4px 0; background: none; border-radius: 0; cursor: default; pointer-events: none;
  }
  .ai-tab small, .ai-tab.is-active small { color: var(--blue); line-height: 20px; }
  .ai-tab span, .ai-tab.is-active span { color: #252f3d; font-size: 20px; }
  .ai-panel, .ai-panel[hidden] {
    display: block !important; visibility: visible !important; opacity: 1 !important; animation: none !important; pointer-events: auto; position: relative; inset: auto; flex: none; width: 806px; height: 525px;
    transform: scale(var(--ai-s, .42)); transform-origin: 0 0;
    margin: 0 calc(806px * (var(--ai-s, .42) - 1)) calc(525px * (var(--ai-s, .42) - 1)) 0;
  }
  .ai-tab:nth-child(1) { order: 1; } .ai-panel:nth-child(1) { order: 2; }
  .ai-tab:nth-child(2) { order: 3; } .ai-panel:nth-child(2) { order: 4; }
  .ai-tab:nth-child(3) { order: 5; } .ai-panel:nth-child(3) { order: 6; }
  .ai-tab:nth-child(4) { order: 7; } .ai-panel:nth-child(4) { order: 8; }

  .audience { padding: 56px 0; }
  .audience__head { margin-bottom: 32px; }
  /* Who it's for on phones: no accordion. All three cards are shown one under the other. Each card has a
     readable title + description in normal text (.aud-copy, hidden on desktop) above its picture; the
     picture is the 853x489 design canvas scaled by --s (set in js/main.js), without its own small text. */
  .aud-track { flex-direction: column; gap: 36px; }
  .aud-card, .aud-card.is-active {
    flex: none; width: 100%; height: auto; overflow: hidden; background: none; border-radius: 0; transition: none;
  }
  .aud-card::after, .aud-tab { display: none; }
  .aud-copy { display: block; padding: 0 4px 16px; }
  .aud-copy h3 { font: 600 30px/1.2 var(--font-manrope); color: #252f3d; margin-bottom: 8px; }
  .aud-copy p { font: 400 16px/24px var(--font-body); color: var(--ink); }
  .aud-stage, .aud-card.is-active .aud-stage {
    position: relative; flex: none; opacity: 1; pointer-events: auto; transition: none;
    transform: scale(var(--s, .38)); transform-origin: 0 0;
    margin: 0 calc(853px * (var(--s, .38) - 1)) calc(489px * (var(--s, .38) - 1)) 0;
  }
  .aud-stage .aud-title, .aud-stage .aud-text { display: none; } /* shown as .aud-copy instead */
}

/* Footer on tablets and phones: same as the WordPress footer. The links leave the copyright row and become three
   groups (Product / Pricing / About, News / Contact / FAQ, Terms of Services / Terms of Use / Privacy Policy) under
   the divider, the copyright comes last.
   Tablet (<= 1024px): the groups sit side by side, gap 20 %, links 10px apart, 4 % side padding, 7.36 % top/bottom.
   Phone (<= 767px): one column of 41px tall link rows, 6 % side padding, 34.32px top/bottom. */
@media (max-width: 1024px) {
  .site-footer { padding: 7.36% 0; }
  .site-footer__inner { width: 92%; }
  .f-row { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 16px; padding-bottom: 14.4px; }
  .f-row p { order: 2; }
  .f-row .f-nav { display: none; }
  .f-row .f-nav-small { order: 1; display: flex; align-items: flex-start; gap: 20%; width: 100%; }
  .f-col { display: flex; flex-direction: column; gap: 10px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 34.32px 0; }
  .site-footer__inner { width: 88%; }
  .f-row { gap: 12px; }
  .f-row .f-nav-small { flex-direction: column; gap: 0; }
  .f-col { gap: 0; width: 100%; }
  .f-row .f-nav-small a { display: block; padding: 10px 0; }
}

@media (max-width: 767px) {
  .contact__body { padding-bottom: 56px; }
  .contact-form { margin-top: 28px; padding: 24px 20px; border-radius: 24px; }
  .contact-form__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* .fit scaling switched off (stacked accordion on phones) */
.fit--off { height: auto !important; }
.fit--off > .fit__inner { position: static; width: auto !important; height: auto !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Cookie notice (static pages) ----------
   Looks like the Complianz banner on the WordPress pages and shares its cookies (see js/main.js §7). */
.ck-banner {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999;
  box-sizing: border-box; width: 400px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 24px;
  background: #fff; color: #1f2a44;
  border: 1px solid #e3e8f2; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 47, 131, .18);
  font-family: var(--font-body);
  animation: ck-in .3s ease both;
}
.ck-banner[hidden] { display: none; }
@keyframes ck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ck-banner__head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ck-banner__title { margin: 0; color: var(--navy-deep); font: 600 18px/27px var(--font-body); }
.ck-banner__close {
  margin: 0 0 0 auto; padding: 0; width: 20px; height: 20px; border: 0; background: none;
  color: #6b7a99; cursor: pointer; line-height: 0;
}
.ck-banner__close svg { width: 20px; height: 20px; display: block; }
.ck-banner__close:hover { color: var(--navy-deep); }
.ck-banner__msg { margin: 0; color: #4a5568; font: 400 14px/1.5 var(--font-body); }
.ck-banner__msg a { color: var(--navy-deep); text-decoration: underline; }
.ck-banner__btn {
  width: 100%; padding: 12px 20px; border: 1px solid var(--navy-deep); border-radius: 10px;
  background: var(--navy-deep); color: #fff; font: 600 15px/20px var(--font-body); cursor: pointer;
  transition: background .2s;
}
.ck-banner__btn:hover { background: #0a3f9f; }
.ck-banner__btn:focus-visible, .ck-banner__close:focus-visible, .ck-banner__msg a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 767px) {
  .ck-banner { left: 16px; right: 16px; bottom: 24px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .ck-banner { animation: none; } }
