/* Q'Creative · base layer (reset, type, buttons, CTA pair, sections, hairline grid, chrome)
   Depends on tokens.css. Modules only consume variables; component classes here are shared by the builder. */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */

@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/funnel-display-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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: "Funnel Sans";
  src: url("../fonts/funnel-sans-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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: "Fragment Mono";
  src: url("../fonts/fragment-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

/* Metric-matched fallbacks so the font swap does not re-wrap lines (CLS budget < 0.05).
   Tuned in Chromium on the real copy (hero, H2s, leads) across 320 to 1440 px: line count matches in ~99 % of widths.
   Arial covers macOS, iOS and Windows; Android has no Arial, so a Roboto face follows in the stacks (tokens.css).
   Headline widths must be set in em, never ch: ch follows the "0" of whichever font is showing and changes at the swap. */
@font-face {
  font-family: "Funnel Display Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.6%;
  ascent-override: 93.8%;
  descent-override: 23.5%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Funnel Display Fallback Android";
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 106.8%;
  ascent-override: 93.6%;
  descent-override: 23.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Funnel Sans Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 100%;
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Funnel Sans Fallback Android";
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 100.2%;
  ascent-override: 99.8%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p a, .link {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
::selection { background: var(--p-lilac); color: var(--ink); }

/* ---------- Focus ---------- */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .chip:focus-visible { outline-offset: 4px; border-radius: var(--radius-pill); }

.visually-hidden {
  position: absolute !important;
  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: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
h1, .t-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: var(--lh-hero);
  letter-spacing: var(--tr-hero);
}
h2, .t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-h2);
}
h3, .t-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-h3);
}
h4, .t-h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
}

p { text-wrap: pretty; }

.t-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.t-body { font-size: var(--fs-body); color: var(--ink-2); }
.t-sm { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-3); }
.t-mono, .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}
.t-num {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Two-tempo headline: first half in ink, second half fades to grey.
   <h2 class="t-h2 h-split">Our process. <span class="h-muted">Built to convert.</span></h2>
   Only on --bg, --surface or washes: on a full pastel the grey drops below 3:1. */
.h-split { text-wrap: balance; }
.h-muted { color: var(--ink-muted); }

/* Eyebrow / section label (mono). Optional colored dot: style="--dot: var(--p-mint-deep)" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--dot::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--accent-2));
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--ruled { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  max-width: 780px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}
.section-head .t-lead { margin-inline: auto; }
.section-head--start { justify-items: start; margin-inline: 0; text-align: left; }
.section-head--start .t-lead { margin-inline: 0; }

/* ---------- Hairline grid (ClickUp-style structure) ---------- */

/* Vertical rails on the content edges, running the full height of the section */
.rails { position: relative; }
.rails::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: min(100% - 2 * var(--gutter), var(--maxw));
  transform: translateX(-50%);
  border-inline: 1px solid var(--line);
  pointer-events: none;
}
@media (max-width: 767px) {
  .rails::before { display: none; }
}

/* Cells separated by 1 px lines. Set columns with style="--cols: 4" */
.hairline-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.hairline-grid > * { background: var(--bg); padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.hairline-grid--boxed { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
@media (max-width: 767px) {
  .hairline-grid { grid-template-columns: repeat(var(--cols-sm, 1), minmax(0, 1fr)); }
}

/* Faded square grid backdrop (hero, empty areas). Put on a positioned wrapper */
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size, 72px) var(--grid-size, 72px);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%);
}

/* Horizontal fade for rows that bleed off the edges */
.fade-x {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* Small "+" marker where hairlines cross. Position it absolutely, centered on the intersection */
.cross {
  position: absolute;
  width: 11px; height: 11px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat;
  pointer-events: none;
}

.rule { height: 1px; border: 0; background: var(--line); margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--sm { --btn-h: 40px; padding-inline: 18px; font-size: var(--fs-sm); }
.btn--lg { --btn-h: 56px; padding-inline: 28px; font-size: 1.0625rem; }

/* Primary: ink pill with a pastel iris halo. The only ink-filled element on the page */
@property --iris-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 1px 2px rgb(20 19 26 / 0.22),
    0 10px 24px -10px rgb(20 19 26 / 0.5);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: inherit;
  /* Written out (not var(--grad-iris)) so the animated --iris-angle resolves on the button, not on :root */
  background: conic-gradient(from var(--iris-angle), var(--p-lilac-deep), var(--p-sky-deep), var(--p-mint-deep), var(--p-butter-deep), var(--p-peach-deep), var(--p-lilac-deep));
  filter: blur(9px);
  opacity: 0.7;
  transition: opacity var(--dur-med) var(--ease-out), filter var(--dur-med) var(--ease-out);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.10), rgb(255 255 255 / 0) 55%),
    var(--accent);
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:hover::before { opacity: 1; filter: blur(12px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn--primary:hover { animation: iris-spin 3.2s linear infinite; }
}
@keyframes iris-spin { to { --iris-angle: 360deg; } }

/* Secondary: outline pill, no fill */
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); background: rgb(20 19 26 / 0.03); }

/* Optional trailing arrow: <span class="btn__arrow" aria-hidden="true"></span> */
.btn__arrow {
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h9M7.5 3.5 11 7l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h9M7.5 3.5 11 7l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ---------- CTA pair: always both, always together ---------- */

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cta-pair--center { justify-content: center; }
@media (max-width: 479px) {
  /* Share the row while they fit; if not, each wraps to its own full-width line */
  .cta-pair > .btn { flex: 1 1 auto; }
}

/* ---------- Tags and chips ---------- */

/* Static label with pastel fill and ink text. Tint with style="--tint: var(--p-mint)" */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: var(--tint, var(--p-lilac));
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Filter chip. Active state uses lilac wash, never ink fill (ink fill belongs to the primary CTA) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-active {
  background: var(--w-lilac);
  border-color: var(--p-lilac-deep);
  color: var(--p-lilac-ink);
}
.chip__count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: var(--shadow-s);
}
.card--raised { box-shadow: var(--shadow-m); }
.card--flat { box-shadow: none; }
.card--tint { background: var(--tint, var(--w-lilac)); border-color: transparent; box-shadow: none; }
/* Featured card: hairline spectrum on the top edge */
.card--featured { border-color: var(--p-lilac-deep); box-shadow: var(--shadow-m); }
.card--featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: var(--grad-spectrum);
}

.tint-lilac { --tint: var(--w-lilac); }
.tint-peach { --tint: var(--w-peach); }
.tint-mint { --tint: var(--w-mint); }
.tint-sky { --tint: var(--w-sky); }
.tint-butter { --tint: var(--w-butter); }

/* ---------- Interface mock pieces (product-style visuals built in code) ---------- */

.ui-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.ui-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.ui-window__bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.metric-card {
  display: inline-grid;
  gap: 6px;
  padding: 12px 16px 14px;
  border-radius: var(--radius-m);
  border: 1px solid rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-m);
}
.metric-card__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.metric-card__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--p-mint-ink);
}
.delta--warn { color: var(--p-peach-ink); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}
.nav__logo { display: inline-flex; flex: none; }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: none; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { background: var(--surface-2); color: var(--ink); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ---------- Dark block (one per page, with pastel glow) ---------- */

.section--dark {
  --focus: var(--p-lilac);
  --focus-ring: 0 0 0 2px var(--dark), 0 0 0 4px var(--p-lilac);
  position: relative;
  margin-inline: clamp(8px, 1vw, 16px);
  border-radius: clamp(20px, 2.4vw, 32px);
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  /* Keep the glow core inside the bottom padding: small text must never sit on it */
  height: min(70%, 420px);
  z-index: -1;
  background: var(--glow-dark);
  filter: blur(28px) saturate(1.15);
  pointer-events: none;
}
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.section--dark :is(h1, h2, h3, h4) { color: var(--dark-ink); }
.section--dark :is(.t-lead, .t-body, p) { color: var(--dark-ink-2); }
.section--dark :is(.t-sm, .eyebrow, .t-mono) { color: var(--dark-ink-2); }
.section--dark .h-muted { color: var(--dark-muted); }
.section--dark .btn--primary { background: var(--dark-ink); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 10px 24px -10px rgb(0 0 0 / 0.6); }
.section--dark .btn--primary::after { background: var(--dark-ink); }
.section--dark .btn--secondary { color: var(--dark-ink); border-color: rgb(245 244 249 / 0.32); }
.section--dark .btn--secondary:hover { border-color: var(--dark-ink); background: rgb(245 244 249 / 0.06); }
.section--dark .card { background: var(--dark-2); border-color: var(--dark-line); box-shadow: none; }
.section--dark .hairline-grid { background: var(--dark-line); border-color: var(--dark-line); }
.section--dark .hairline-grid > * { background: var(--dark); }
.section--dark .rails::before { border-color: var(--dark-line); }
.section--dark .rule { background: var(--dark-line); }
.section--dark p a, .section--dark .link { color: var(--p-lilac); }
.logo--invert { filter: invert(1); }

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-7);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}
.footer__logo img { height: 20px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer__links a:hover { color: var(--ink); }

/* ---------- Mobile CTA bar (appears after the hero; main.js toggles .is-visible) ---------- */

.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-mobile-cta);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur-med) var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .cta-pair { flex-wrap: nowrap; gap: 8px; }
.mobile-cta .btn {
  --btn-h: 46px;
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 14px;
  font-size: 0.9375rem;
}
@media (max-width: 349px) {
  .mobile-cta .btn { padding-inline: 10px; font-size: var(--fs-sm); }
}
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}
/* Add to <body> so the bar never covers the footer */
@media (max-width: 767px) {
  .has-mobile-cta { padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
