/* Q'Creative · page layer for index.html
   Section layouts only. Tokens, type, buttons, cards and chrome come from tokens.css and base.css;
   the hero FX, process motion and portfolio styles live in their module CSS. Overrides of those
   files are grouped at the end under "Module overrides", each with its reason. */

/* ---------- Shared ---------- */

.section-cta { margin-top: clamp(32px, 4vw, 52px); }
/* Phones: every pair keeps one row, like the hero and the fixed bar (measured to fit at 320 px) */
@media (max-width: 479px) {
  .section-cta { flex-wrap: nowrap; }
  .section-cta > .btn--primary { flex: 1 1 auto; }
  .section-cta > .btn--secondary { flex: 0 0 auto; }
}
@media (max-width: 359px) {
  .section-cta > .btn { padding-inline: 14px; }
}

.nav { transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.nav.is-scrolled { box-shadow: 0 10px 30px -22px rgb(40 26 84 / 0.35); }
/* Phones and small tablets: only the Pricing anchor stays, in the space the CTA leaves.
   Under 768 px the hero pair and the fixed bar carry the CTAs, so the nav has none */
@media (max-width: 899px) {
  .nav__links { display: flex; margin-left: auto; }
  .nav__links a:not([href="#pricing"]) { display: none; }
}
@media (max-width: 767px) {
  .nav__cta { display: none; }
  .nav__links { margin-right: -14px; }
}
/* Over the dark testimonials block the light glass turned muddy grey: switch to dark glass (main.js) */
.nav.nav--on-dark { --focus: var(--p-lilac); background: rgb(14 13 21 / 0.78); border-bottom-color: var(--dark-line); box-shadow: none; }
.nav--on-dark .nav__logo img { filter: invert(1); }
.nav--on-dark .nav__links a { color: var(--dark-ink-2); }
.nav--on-dark .nav__links a:hover { background: rgb(245 244 249 / 0.08); color: var(--dark-ink); }
.nav--on-dark .btn--primary { background: var(--dark-ink); color: var(--ink); }
.nav--on-dark .btn--primary::after { background: var(--dark-ink); }

/* Testimonial attribution (results case and dark quotes) */
.person { display: flex; align-items: center; gap: 12px; }
.person strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.person .t-sm { display: block; }
.person__mono {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--p-lilac);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.person__mono--sky { background: var(--p-sky); }
.person__mono--mint { background: var(--p-mint); }
/* LinkedIn photos (192 px sources, shown at 48) */
.person__photo {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgb(20 19 26 / 0.08);
}
.section--dark .person__photo { background: var(--dark-2); box-shadow: 0 0 0 1px rgb(245 244 249 / 0.14); }

/* ---------- 1 · Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* First paint and no-JS state; hero-fx.js lays the same mesh (then WebGL) on top */
  background: var(--grad-mesh-sm), var(--bg);
}
@media (min-width: 1024px) { .hero { background: var(--grad-mesh), var(--bg); } }
.hero__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 5.6vw, 84px) clamp(48px, 5.6vw, 84px);
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__copy h1 { max-width: 6.6em; } /* em, never ch: ch changes at the font swap */
.hero__copy .t-lead { max-width: 30em; }
.hero__copy .cta-pair { margin-top: 8px; }
/* Audience line, under the pair in sentence case (it used to be a tracked-caps kicker above the H1) */
.hero__for { margin-top: -8px; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
/* Override (.h-muted): over the moving pastel mesh --ink-muted could drop near 3.3:1 on the lilac pool */
.hero h1 .h-muted { color: var(--ink-2); }
.hero__stage { height: clamp(380px, 46vw, 560px); }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (max-width: 479px) {
  /* Phones: the pair keeps one row and both labels stay whole (copy deck C) */
  .hero__copy .cta-pair { width: 100%; flex-wrap: nowrap; }
  .hero__copy .cta-pair .btn--lg { padding-inline: 18px; font-size: 1rem; }
  .hero__copy .cta-pair .btn--primary { flex: 1 1 auto; }
  .hero__copy .cta-pair .btn--secondary { flex: 0 0 auto; }
}
@media (max-width: 359px) {
  .hero__copy .cta-pair .btn--lg { --btn-h: 52px; padding-inline: 14px; font-size: 0.9375rem; }
}

/* Logo band at the foot of the hero (ClickUp «Trusted by» row): one static row in a uniform grey.
   Translucent so the mesh glows through */
.logos {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
}
.logos__inner { display: flex; align-items: stretch; min-height: 88px; }
.logos__label {
  flex: none;
  display: flex;
  align-self: stretch;
  width: 12.5em;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  line-height: 1.5;
}
/* .logos prefix: base.css resets padding on ul[role="list"] with higher specificity */
.logos .logos__list {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
}
.logos__list li { display: flex; align-items: center; justify-content: center; }
/* Every logo becomes a silhouette (white, black and colour sources alike).
   Desktop size comes from the width/height attributes (base.css sets height: auto, the ratio does the rest) */
.logos__list img { max-width: none; filter: grayscale(1) brightness(0); opacity: 0.5; }
/* NN: keep the white strokes of the disc so the mark still reads */
.logos__list img.logo--detail { filter: grayscale(1) contrast(1.6) brightness(0.62); opacity: 0.6; }

/* Below 1200 px: label on top and two rows of four. The first column is wider for the long Uber wordmark;
   each logo takes its own height from --hs (set in the HTML) so they read at the same optical size */
@media (max-width: 1199px) {
  .logos__inner { flex-direction: column; gap: 16px; padding-block: 22px 24px; min-height: 0; }
  .logos__label { width: auto; padding: 0; border-right: 0; text-align: center; align-self: center; }
  .logos .logos__list { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px 8px; padding: 0; }
  .logos__list img { width: auto; height: calc(var(--hs) * var(--logo-k, 1)); }
}
@media (min-width: 600px) and (max-width: 1199px) { .logos__list { --logo-k: 1.35; } }
@media (max-width: 359px) { .logos__list { --logo-k: 0.86; } }

/* ---------- 2 · Results ---------- */

/* Right under the logo band: a little more air than between the other sections */
#results { padding-top: calc(var(--section-y) * 1.25); }

/* The H2 is 73 characters and literal: one step below the other H2s (copy deck B3) */
.results__title { font-size: clamp(1.75rem, 1.15rem + 2.3vw, 3.125rem); max-width: 17em; }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.case__quote {
  display: grid;
  align-content: space-between;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 4.4vw, 64px);
}
.case__logo { opacity: 0.9; }
.case__text p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.05rem + 1.25vw, 2.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.case__visual {
  position: relative;
  min-height: 420px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 30% 30%, rgb(174 226 255 / 0.85), transparent 70%),
    radial-gradient(55% 50% at 80% 80%, rgb(220 202 255 / 0.85), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgb(166 243 215 / 0.7), transparent 70%),
    var(--w-sky);
  overflow: hidden;
}
.case__ad {
  position: absolute;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  outline: 1px solid rgb(255 255 255 / 0.6);
  outline-offset: -1px;
}
.case__ad--a { width: 50%; left: 12%; top: 16%; transform: rotate(-4deg); }
.case__ad--b { width: 36%; right: 9%; top: 9%; transform: rotate(5deg); }
@media (max-width: 899px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case__logo { width: 170px; }
  .case__visual { min-height: 0; aspect-ratio: 5 / 4; border-left: 0; border-top: 1px solid var(--line); }
  .case__ad--a { width: 44%; left: 10%; top: 12%; }
  .case__ad--b { width: 31%; right: 12%; top: 7%; }
}

/* ---------- 4 · Use cases ---------- */

.uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.use { display: grid; align-content: start; gap: 12px; }
.use h3 { font-size: var(--fs-h4); letter-spacing: -0.02em; margin-top: 8px; }
.use .t-body { color: var(--ink-2); }
@media (max-width: 899px) { .uses { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) {
  .use { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .use__mock { grid-row: span 2; }
  .use h3 { margin-top: 0; align-self: end; }
}

/* Use-case scenes: a real creative from the portfolio as a feed ad, the result it drives (form, inbox,
   checkout) and a toast. Sized in container units so the scene scales as one piece at every width.
   Without JS or with reduced motion the scene shows its final frame; main.js adds .is-live to loop it. */
.use__mock {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  border: 1px solid rgb(255 255 255 / 0.9);
  background:
    radial-gradient(circle at 74% 40%, var(--uc-glow) 0, transparent 46%),
    radial-gradient(rgb(20 19 26 / 0.07) 1px, transparent 1.3px) 0 0 / 12px 12px,
    rgb(255 255 255 / 0.5);
  overflow: hidden;
  isolation: isolate;
}
.uc--lead { --uc-glow: rgb(194 165 255 / 0.55); --uc-deep: var(--p-lilac-deep); --uc-ink: var(--p-lilac-ink); --uc-wash: var(--w-lilac); --uc-d: 0s; }
.uc--news { --uc-glow: rgb(120 199 253 / 0.5); --uc-deep: var(--p-sky-deep); --uc-ink: var(--p-sky-ink); --uc-wash: var(--w-sky); --uc-d: 0.9s; }
.uc--shop { --uc-glow: rgb(104 221 184 / 0.5); --uc-deep: var(--p-mint-deep); --uc-ink: var(--p-mint-ink); --uc-wash: var(--w-mint); --uc-d: 1.8s; }
.uc i, .uc b, .uc em, .uc small, .uc strong { display: block; font-style: normal; }

/* The feed ad */
.uc__ad {
  position: absolute;
  left: 6cqw;
  top: 6cqw;
  z-index: 1;
  display: grid;
  gap: 1.4cqw;
  width: 39cqw;
  padding: 1.8cqw;
  border-radius: 3.2cqw;
  background: var(--surface);
  box-shadow: var(--shadow-l);
  rotate: -3deg;
}
.uc__ad--square { top: 10cqw; }
.uc__head { display: flex; align-items: center; gap: 1.4cqw; min-width: 0; }
.uc__avatar { flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: linear-gradient(140deg, var(--uc-wash), var(--uc-deep)); }
.uc__head > span { min-width: 0; }
.uc__head strong { font-size: 2.6cqw; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc__head small { font-family: var(--font-mono); font-size: 2.1cqw; line-height: 1.2; color: var(--ink-3); }
.uc__creative { display: block; width: 100%; height: auto; border-radius: 1.6cqw; }
.uc__foot { display: flex; align-items: center; gap: 1.6cqw; }
.uc__cta {
  flex: none;
  padding: 1cqw 2.2cqw;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 2.3cqw;
  font-weight: 600;
  line-height: 1.2;
}

/* Bars that stand in for secondary text */
.uc__lines { display: grid; gap: 1cqw; flex: 1; min-width: 0; }
.uc__lines i { height: 1.3cqw; border-radius: 1cqw; background: var(--line); }
.uc__lines i:nth-child(2) { width: 62%; background: var(--surface-2); }
.uc__lines strong { font-size: 2.6cqw; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The result panel */
.uc__panel {
  position: absolute;
  left: 43cqw;
  top: 19cqw;
  z-index: 2;
  display: grid;
  gap: 1.3cqw;
  width: 51cqw;
  padding: 3.4cqw;
  border-radius: 3.2cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}
.uc__title { font-family: var(--font-display); font-size: 3.6cqw; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.8cqw; }
.uc__label { font-size: 2.3cqw; line-height: 1; color: var(--ink-3); }
.uc__field {
  display: flex;
  align-items: center;
  height: 6.2cqw;
  padding-inline: 1.8cqw;
  border-radius: 1.6cqw;
  border: 1px solid var(--line);
  background: var(--surface-2);
  margin-bottom: 0.6cqw;
}
.uc__typed { font-size: 2.6cqw; line-height: 1; white-space: nowrap; color: var(--ink); }
.uc__btn {
  display: grid;
  place-items: center;
  height: 6.6cqw;
  margin-top: 1cqw;
  border-radius: var(--radius-pill);
  background: var(--uc-deep);
  font-size: 2.7cqw;
  font-weight: 600;
  line-height: 1;
}

/* Inbox */
.uc__list { display: block; height: 30cqw; margin-inline: -1cqw; overflow: hidden; }
.uc__track { display: grid; gap: 1.2cqw; }
.uc__row { display: flex; align-items: center; gap: 1.6cqw; height: 8.2cqw; padding-inline: 1.2cqw; border-radius: 1.8cqw; }
.uc__row > b { flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: var(--p-peach); }
.uc__row:nth-child(3) > b { background: var(--p-butter); }
.uc__row:nth-child(4) > b { background: var(--p-lilac); }
.uc__row.is-new { background: var(--uc-wash); }
.uc__row.is-new > b { background: linear-gradient(140deg, var(--uc-wash), var(--uc-deep)); }
.uc__row > em { flex: none; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--uc-ink); }

/* Checkout */
.uc--shop .uc__panel { top: 21cqw; }
.uc__product { display: flex; align-items: center; gap: 2cqw; padding-right: 7cqw; }
.uc__thumb { position: relative; flex: none; width: 11cqw; height: 11cqw; border-radius: 1.8cqw; overflow: hidden; background: var(--surface-2); }
/* Crop the creative to the folded shirts (lower half of the 4:5 frame) */
.uc__thumb img { position: absolute; left: -45%; top: -150%; width: 190%; max-width: none; height: auto; }
.uc__sizes { display: flex; gap: 1.2cqw; margin-top: 0.8cqw; }
.uc__sizes i {
  display: grid;
  place-items: center;
  min-width: 6.4cqw;
  height: 5cqw;
  padding-inline: 1cqw;
  border-radius: 1.4cqw;
  border: 1px solid var(--line);
  font-size: 2.3cqw;
  line-height: 1;
  color: var(--ink-2);
}
.uc__sizes i.is-on { border-color: var(--ink); color: var(--ink); }
.uc__bag {
  position: absolute;
  top: 2.8cqw;
  right: 2.8cqw;
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: var(--surface-2);
}
.uc__bag svg { width: 3.8cqw; height: 3.8cqw; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.uc__bag b {
  position: absolute;
  top: -0.6cqw;
  right: -0.6cqw;
  display: grid;
  place-items: center;
  width: 3.6cqw;
  height: 3.6cqw;
  border-radius: 50%;
  background: var(--uc-ink);
  color: var(--accent-ink);
  font-size: 2.1cqw;
  font-weight: 600;
  line-height: 1;
}

/* Toast */
.uc__toast {
  position: absolute;
  top: 6cqw;
  right: 5cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.5cqw 2.4cqw 1.5cqw 1.8cqw;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.8);
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: var(--shadow-m);
  font-size: 2.8cqw;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.uc__toast > b { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--uc-ink); box-shadow: 0 0 0 0.9cqw var(--uc-wash); }
.uc__toast small { font-family: var(--font-mono); font-size: 2.1cqw; font-weight: 400; color: var(--ink-3); }

/* Cursor: --uc-a is the ad's CTA, --uc-b the panel's action (its resting place in the still frame) */
.uc__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 5cqw;
  height: 5cqw;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1;
  translate: var(--uc-b);
  filter: drop-shadow(0 1px 1px rgb(20 19 26 / 0.2));
}
.uc--lead { --uc-from: 80cqw 80cqw; --uc-a: 37cqw 65cqw; --uc-b: 70cqw 59cqw; }
.uc--news { --uc-from: 82cqw 82cqw; --uc-a: 37cqw 61cqw; --uc-b: 72cqw 33cqw; }
.uc--shop { --uc-from: 80cqw 82cqw; --uc-a: 37cqw 65cqw; --uc-b: 70cqw 58cqw; }

/* The loop (7 s, each card offset by --uc-d; it only runs while the block is on screen) */
@media (prefers-reduced-motion: no-preference) {
  .uses.is-live .uc { --uc-t: 7s; }
  .uses.is-live .uc :where(.uc__ad, .uc__cursor, .uc__cta, .uc__btn, .uc__typed, .uc__toast, .uc__track, .uc__bag b, .uc__sizes i.is-on) {
    animation-duration: var(--uc-t);
    animation-delay: var(--uc-d);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: var(--ease-out);
    animation-play-state: paused;
  }
  .uses.is-live.is-playing .uc * { animation-play-state: running; }

  .uses.is-live .uc__ad { animation-name: uc-float; animation-duration: 3.6s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .uses.is-live .uc__cursor { animation-name: uc-cursor; }
  .uses.is-live .uc__cta { animation-name: uc-press-a; }
  .uses.is-live .uc__btn { animation-name: uc-press-b; }
  .uses.is-live .uc__typed--1 { animation-name: uc-type-1; }
  .uses.is-live .uc__typed--2 { animation-name: uc-type-2; }
  .uses.is-live .uc__toast { animation-name: uc-toast; }
  .uses.is-live .uc--news .uc__toast { animation-delay: calc(var(--uc-d) - 1.3s); }
  .uses.is-live .uc__track { animation-name: uc-inbox; }
  .uses.is-live .uc__bag b { animation-name: uc-pop; }
  .uses.is-live .uc__sizes i.is-on { animation-name: uc-size; }
}
@keyframes uc-float { from { translate: 0 0; } to { translate: 0 -1.4cqw; } }
@keyframes uc-cursor {
  0%, 6% { translate: var(--uc-from); opacity: 0; scale: 1; }
  12% { opacity: 1; }
  24% { translate: var(--uc-a); scale: 1; }
  26% { scale: 0.8; }
  29% { scale: 1; }
  31% { translate: var(--uc-a); }
  45% { translate: var(--uc-b); scale: 1; }
  47% { scale: 0.8; }
  50% { scale: 1; }
  76% { translate: var(--uc-b); opacity: 1; }
  84%, 100% { translate: var(--uc-b); opacity: 0; }
}
@keyframes uc-press-a { 0%, 25% { scale: 1; } 27% { scale: 0.9; } 31%, 100% { scale: 1; } }
@keyframes uc-press-b {
  0%, 46% { scale: 1; filter: none; }
  48% { scale: 0.95; filter: brightness(0.94); }
  53%, 100% { scale: 1; filter: none; }
}
@keyframes uc-type-1 {
  0%, 31% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: steps(11, end); }
  38%, 88% { clip-path: inset(0 0 0 0); opacity: 1; }
  94%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes uc-type-2 {
  0%, 37% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: steps(16, end); }
  44%, 88% { clip-path: inset(0 0 0 0); opacity: 1; }
  94%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes uc-toast {
  0%, 52% { opacity: 0; translate: 0 -2.6cqw; scale: 0.94; }
  58%, 86% { opacity: 1; translate: 0 0; scale: 1; }
  93%, 100% { opacity: 0; translate: 0 -2.6cqw; scale: 0.94; }
}
@keyframes uc-inbox {
  0%, 36% { translate: 0 -9.4cqw; }
  44%, 88% { translate: 0 0; }
  96%, 100% { translate: 0 -9.4cqw; }
}
@keyframes uc-pop {
  0%, 47% { scale: 0; }
  51% { scale: 1.25; }
  55%, 88% { scale: 1; }
  94%, 100% { scale: 0; }
}
@keyframes uc-size {
  0%, 33% { border-color: var(--line); color: var(--ink-2); }
  37%, 88% { border-color: var(--ink); color: var(--ink); }
  94%, 100% { border-color: var(--line); color: var(--ink-2); }
}

/* ---------- 5 · Process ---------- */

.process { padding-top: calc(var(--section-y) * 0.6); padding-bottom: calc(var(--section-y) * 0.7); }
/* The header rides inside the module's stage; the stage is full width, so it needs the gutter itself */
.process__head { margin-bottom: 0; padding-inline: var(--gutter); }
/* Reserve the motion graphic's height before process-motion.js runs (it starts after load) */
/* Formulas from motion-lead, measured with the header inside the stage (within 25 px from 320 to 999 px);
   coefficients updated for the taller iPhone-proportioned phone (+72 layout units) */
.js .process-motion:not(.qpm) { min-height: calc(min(100vw - 16px, 487.5px) * 5.152 + 225px); }
@media (min-width: 640px) and (max-width: 999px) {
  .js .process-motion:not(.qpm) { min-height: calc(min(100vw - 32px, 864px) * 2.509 + 215px); }
}
@media (min-width: 1000px) {
  .js .process-motion:not(.qpm) { min-height: 200vh; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1000px) {
  .js .process-motion:not(.qpm) { min-height: 100vh; }
}
.process .section-cta { margin-top: clamp(24px, 3vw, 40px); }

/* No-JS fallback */
.process-static { margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.process-static > li { display: grid; gap: 12px; align-content: start; }
.process-static h3 { font-size: var(--fs-h4); }
.process-static__n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ---------- 6 · In numbers ---------- */

.stats { margin: 0; }
.stats > .stat { display: grid; gap: clamp(20px, 3vw, 36px); align-content: space-between; }
.stats dd { margin: 0; font-size: clamp(3rem, 2.2rem + 3.4vw, 5.5rem); color: var(--ink); }
.statement {
  max-width: 26em;
  margin-top: clamp(36px, 4.4vw, 72px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.625rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: pretty;
}
@media (max-width: 767px) {
  .stats > .stat { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: 18px; }
  .stats dd { font-size: 3rem; }
  .statement { font-size: 1.25rem; line-height: 1.32; letter-spacing: -0.02em; }
  .case__text p { line-height: 1.3; }
}

/* ---------- 7 · Testimonials (dark) ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin-inline: auto;
  border: 1px solid var(--dark-line);
}
.quote { display: grid; align-content: space-between; gap: 28px; margin: 0; padding: clamp(24px, 3.2vw, 44px); }
.quote + .quote { border-left: 1px solid var(--dark-line); }
/* .section--dark :is(p) in base.css greys every paragraph; the quote itself keeps the bright ink */
.section--dark .quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
}
.section--dark .person strong { color: var(--dark-ink); }
/* Elha's wordmark is white in the source file, so it reads as-is on the dark card */
.quote .person { flex-wrap: wrap; row-gap: 14px; }
.quote .person > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.person__logo { display: flex; flex: none; margin-left: auto; opacity: 0.88; }
/* Narrow cards: the logo takes its own line under the name, aligned with it (avatar 40 + gap 12) */
@media (max-width: 1023px) { .person__logo { flex-basis: 100%; margin-left: 0; padding-left: 60px; } }
@media (max-width: 767px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote + .quote { border-left: 0; border-top: 1px solid var(--dark-line); }
}

/* ---------- 8 · Slack ---------- */

.slack__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.slack__head { margin: 0; }
@media (max-width: 899px) {
  .slack__inner { grid-template-columns: minmax(0, 1fr); }
  .slack__head { justify-items: center; text-align: center; margin-inline: auto; }
  .slack__head .t-lead { margin-inline: auto; }
}

/* Slack's own look (Aubergine theme): aubergine top bar and sidebar, blue active channel, green send button */
.chat { --sl-aub: #3F0E40; --sl-aub-top: #350D36; --sl-blue: #1164A3; --sl-green: #007A5A; --sl-text: #1D1C1D; --sl-grey: #616061; }
.chat__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: 14px;
  background: var(--sl-aub-top);
}
.chat__dots { position: absolute; left: 14px; top: 50%; translate: 0 -50%; display: flex; gap: 6px; }
.chat__dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.chat__dots i:nth-child(2) { background: #FEBC2E; }
.chat__dots i:nth-child(3) { background: #28C840; }
.chat__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(62%, 320px);
  height: 26px;
  padding-inline: 10px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.2);
  font-size: 12px;
  color: rgb(255 255 255 / 0.86);
  white-space: nowrap;
  overflow: hidden;
}
.chat__logo { flex: none; width: 16px; height: 16px; padding: 2px; border-radius: 4px; background: #fff; box-sizing: content-box; }
.chat__body { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 340px; }
.chat__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  background: var(--sl-aub);
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  line-height: 1.3;
}
.chat__ws { padding: 2px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid rgb(255 255 255 / 0.14); font-size: 15px; font-weight: 700; color: #fff; }
.chat__group { padding: 8px 8px 4px; font-size: 12px; color: rgb(255 255 255 / 0.6); }
.chat__ch { display: block; padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__ch::before { content: "#"; margin-right: 6px; opacity: 0.7; }
.chat__ch.is-active { background: var(--sl-blue); color: #fff; font-weight: 600; }
.chat__main { display: flex; flex-direction: column; min-width: 0; }
.chat__channel {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--sl-text);
}
.chat__channel span { margin-right: 3px; color: var(--sl-grey); font-weight: 500; }
.chat .chat__msgs { display: grid; gap: 16px; margin: 0; padding: 18px 20px; list-style: none; flex: 1; align-content: start; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.msg__av { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.msg__av--you { display: block; border: 0; background: radial-gradient(circle at 34% 28%, #fff 0 6%, var(--p-peach) 40%, var(--p-peach-deep) 92%); }
.msg__name { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--sl-text); }
.msg__time { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--sl-grey); }
.msg__text { font-size: 0.9375rem; line-height: 1.45; color: var(--sl-text); }
.chat__composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 18px;
  height: 44px;
  padding: 0 8px 0 12px;
  border: 1px solid #BBBABB;
  border-radius: 8px;
}
.chat__composer i { flex: 1; min-width: 0; font-style: normal; font-size: 14px; color: #8D8C8D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__composer b { display: grid; place-items: center; flex: none; width: 30px; height: 28px; border-radius: 6px; background: var(--sl-green); }
.chat__composer svg { width: 14px; height: 14px; fill: #fff; }
@media (max-width: 599px) {
  .chat__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chat__side { display: none; }
  .chat .chat__msgs { padding: 14px 16px; gap: 14px; }
  .chat__channel { padding-inline: 16px; }
  .chat__composer { margin: 0 16px 16px; }
  .chat__search { width: auto; max-width: calc(100% - 96px); margin-left: 52px; }
}

/* ---------- 9 · Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan { display: flex; flex-direction: column; gap: 18px; }
.plan:not(.plan--pro) { box-shadow: none; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: var(--fs-h3); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price .t-num { font-size: clamp(2.5rem, 2.1rem + 1.4vw, 3.25rem); }
.plan__per { font-size: var(--fs-sm); color: var(--ink-3); }
.plan__fit { font-size: var(--fs-sm); color: var(--ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan__list { display: grid; gap: 11px; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.plan__list li { display: flex; gap: 12px; align-items: baseline; }
.plan__list strong { font-weight: 600; color: var(--ink); }
.plan__list li::before {
  content: "";
  flex: none;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--p-mint-ink);
  border-bottom: 1.6px solid var(--p-mint-ink);
  transform: translateY(-3px) rotate(-45deg);
}
.plan__btn { width: 100%; margin-top: auto; }
.plan__list + .plan__btn { margin-top: auto; }
.plan--pro .plan__list { padding-bottom: 6px; }
/* Enterprise has no list: a quiet stack of creatives fills the space (decorative) */
.plan__art { position: relative; flex: 1; min-height: 130px; }
.plan__art span {
  position: absolute;
  top: 50%; left: 50%;
  width: 74px; height: 92px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: var(--shadow-m);
}
.plan__art span:nth-child(1) { translate: -110% -50%; rotate: -8deg; background: linear-gradient(160deg, var(--w-peach), var(--p-peach)); }
.plan__art span:nth-child(2) { translate: -50% -56%; background: linear-gradient(160deg, var(--w-mint), var(--p-mint)); z-index: 1; }
.plan__art span:nth-child(3) { translate: 10% -50%; rotate: 8deg; background: linear-gradient(160deg, var(--w-butter), var(--p-butter)); }
/* Override (base.css .card--featured::before): a 4 px bar with the card's radius flattened its ends.
   Clip it to the card instead; the card's outer shadow is not affected */
.plan--pro.card--featured { overflow: hidden; }
.plan--pro.card--featured::before { inset: 0 0 auto; height: 4px; border-radius: 0; }
@media (max-width: 899px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .plan__art { min-height: 120px; }
}
/* Phones: more air between the last plan and the closing pair, so it reads as its own close */
@media (max-width: 767px) {
  #pricing .section-cta { margin-top: 44px; }
}

/* ---------- 10 · FAQ ---------- */

/* Desktop: heading and closing pair on the left, questions on the right. Phones: heading, questions, pair */
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head list" "cta list";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
}
.faq__head { grid-area: head; margin: 0; }
.faq__list { grid-area: list; border-top: 1px solid var(--line); }
.faq__cta { grid-area: cta; align-self: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
/* Plus that turns into a minus */
.faq__q::before, .faq__q::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 14px; height: 1.6px;
  margin-top: -0.8px;
  border-radius: 1px;
  background: var(--ink-2);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] .faq__q::after { transform: rotate(0deg); }
.faq__q:hover { color: var(--ink-2); }
.faq__a { max-width: 40em; padding: 0 44px 22px 0; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }
@media (max-width: 899px) {
  .faq__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "cta"; grid-template-rows: auto; }
  .faq__head { justify-items: center; text-align: center; margin: 0 auto clamp(28px, 4vw, 40px); }
  .faq__head .t-lead { margin-inline: auto; }
  .faq__cta { justify-content: center; }
  .faq__q { padding-block: 18px; font-size: 1.0625rem; }
}

/* ---------- Footer ---------- */

.footer p { margin: 0; }
.footer__links a { padding-block: 6px; }
.footer__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.footer__btn {
  padding-block: 6px;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}
.footer__btn:hover { color: var(--ink); }
/* Legal row: shown by main.js once LEGAL has URLs or company details */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.footer__legal[hidden], .footer__legal [hidden] { display: none; }
.footer__legal a:hover { color: var(--ink); }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: calc(var(--z-mobile-cta) + 10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: min(460px, calc(100% - 32px));
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: var(--shadow-l);
  /* Moves with transform only: changing bottom while the bar comes and goes counted as layout shift */
  transition: transform var(--dur-med) var(--ease-out);
}
.consent[hidden] { display: none; }
/* Entrance with opacity and transform only: a fixed overlay, nothing in the page moves */
.consent:not([hidden]) { animation: consent-in var(--dur-med) var(--ease-out); }
@keyframes consent-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
.consent__text { flex: 1 1 180px; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.consent__actions { display: flex; flex: none; gap: 8px; }
.consent .btn { --btn-h: 40px; padding-inline: 16px; }
@media (max-width: 767px) {
  .consent {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    gap: 8px 12px;
    padding: 10px 10px 10px 14px;
  }
  .consent__text { flex-basis: 140px; font-size: var(--fs-xs); }
  .consent .btn { --btn-h: 38px; padding-inline: 14px; font-size: var(--fs-sm); }
  /* With the fixed bar on screen, the banner sits on top of it */
  .mobile-cta-on .consent { transform: translate3d(0, calc(-1 * var(--mobile-cta-h)), 0); }
}
/* Narrow phones: text and buttons stay on one row so the banner keeps clear of the hero pair */
@media (max-width: 359px) {
  .consent { gap: 8px 10px; padding: 10px 10px 10px 12px; }
  .consent__text { flex-basis: 110px; }
  .consent .btn { padding-inline: 12px; }
}
/* Short phones (568 px tall): a tighter hero top keeps its pair above the banner */
@media (max-width: 479px) and (max-height: 620px) {
  .hero__inner { padding-top: 24px; }
  .hero__copy { gap: 18px; }
}

/* ---------- Mobile bar ---------- */

/* Space for the bar keeps the footer and the last CTA pair uncovered (base.css adds the padding) */
@media (max-width: 767px) {
  .mobile-cta .btn--primary { flex: 1 1 auto; }
  .mobile-cta .btn--secondary { flex: 0 0 auto; }
}

/* ---------- Module overrides ---------- */

/* portfolio.css · lightbox CTA pair: keep both buttons on one row inside the 360 px side panel
   (the base .cta-pair wraps the secondary onto its own line there) */
.qp-lb__cta .cta-pair { flex-wrap: nowrap; }
.qp-lb__cta .cta-pair > .btn { flex: 1 1 auto; padding-inline: 16px; }

/* motion.css · process mocks: hairline edge only (a row of edge + 110 px shadow read as default UI);
   the 9:16 / 4:5 captions sit on the dotted canvas, so they go to --ink-2 (4.4:1 with --ink-3) */
.qpm-mock { box-shadow: var(--shadow-s); }
.qpm-art figcaption { color: var(--ink-2); }

/* base.css · dark block glow and primary CTA halo in warm pastels (peach, butter, mint), no violet or cyan.
   Butter stays faint: over near-black it turns olive */
.section--dark::before {
  background:
    radial-gradient(44% 72% at 20% 104%, rgb(255 203 180 / 0.76), transparent 70%),
    radial-gradient(40% 64% at 54% 110%, rgb(253 238 164 / 0.4), transparent 70%),
    radial-gradient(34% 58% at 86% 104%, rgb(166 243 215 / 0.5), transparent 70%);
}
.btn--primary::before {
  background: conic-gradient(from var(--iris-angle), var(--p-peach-deep), var(--p-butter-deep), var(--p-mint-deep), var(--p-butter-deep), var(--p-peach-deep));
}

/* Sections and main receive focus from in-page links; the jump itself is the feedback */
main:focus, section[tabindex="-1"]:focus { outline: none; }
