/* =========================================================
   Flickd — Home
   Tokens follow the Gaudio Lab reference system:
   one accent (the logo blue), Poppins display + Roboto body, shadowless.
   ========================================================= */

:root {
  /* Color */
  --sky: #0058fd;            /* logo blue — the single accent */
  --sky-press: #0046cc;
  --sky-dark: #5b93ff;       /* accent on night backgrounds (keeps contrast) */
  --ink: #111214;
  --ink-2: #4a4f57;          /* secondary body text on white */
  --canvas: #ffffff;
  --surface: #f0f5ff;
  --night: #1e1e1f;
  --night-2: #2a2a2c;
  --muted: #9ca3af;
  --faint: #d3d5da;
  --hairline: #d6d6d6;
  --on-primary: #fafafa;
  --client: #23262d;         /* neutral stand-in for a client's own brand in case-study screens */

  /* Type */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 112px;

  /* Radius */
  --r-sm: 4px; --r-md: 6px; --r-lg: 12px; --r-xl: 16px; --r-full: 9999px;

  /* Motion */
  --fast: 120ms;
  --standard: 240ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  --header-h: 68px;
  --gutter: 20px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
/* a finger that drifts sideways while scrolling shouldn't drag the page left and right;
   the sideways swipe rows are their own scroll boxes, so they still swipe */
html, body { overflow-x: clip; }
body { touch-action: pan-y pinch-zoom; }
.shots, .ad-grid, .wide-shot { overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.band-night :focus-visible, .footer :focus-visible, .call-card :focus-visible { outline-color: var(--sky-dark); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-md);
}
.skip-link:focus { top: var(--s-4); }

site-header, site-footer { display: block; }
site-header { min-height: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  height: 44px; padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 500 16px/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn--sm { height: 36px; padding: 0 var(--s-4); font-size: 14px; border-radius: var(--r-md); }
.btn--lg { height: 52px; padding: 0 28px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--sky); color: var(--on-primary); }
.btn--primary:hover { background: var(--sky-press); }
.btn--outline { border-color: var(--sky); color: var(--sky-press); background: transparent; }
.btn--outline:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--standard) var(--ease);
}
.header.is-scrolled, .header.is-open { border-bottom-color: var(--hairline); }
.header.is-open { background: var(--canvas); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
/* Full "Flickd Studio" lockup; black parts follow currentColor so the footer can flip them to white */
.logo { flex: none; }
.logo__img { height: 44px; width: auto; }
.footer .logo__img { height: 56px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: var(--s-1); }
.nav__link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 var(--s-4);
  border-radius: var(--r-md); font: 500 14px/1 var(--font-body);
  text-decoration: none; color: var(--ink);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav__link:hover { background: var(--surface); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--sky-press); }

/* Industries dropdown */
.nav__drop { position: relative; }
.nav__trigger { gap: 6px; border: 0; background: transparent; cursor: pointer; }
.nav__trigger svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast) var(--ease); }
.nav__drop.is-open .nav__trigger { background: var(--surface); }
.nav__drop.is-open .nav__trigger svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: 100%; left: 0; padding-top: 10px; width: 360px;
  transform: translateY(-4px); opacity: 0; visibility: hidden;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
.nav__drop.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__panel ul {
  display: grid; gap: 4px; padding: 8px; border: 1px solid var(--hairline); border-radius: var(--r-xl);
  background: var(--canvas); box-shadow: 0 16px 40px rgba(17, 18, 20, 0.12);
}
.nav__item { display: flex; align-items: center; gap: var(--s-4); padding: 8px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: background-color var(--fast) var(--ease); }
.nav__item:hover { background: var(--surface); }
.nav__thumb { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.nav__item:hover .nav__thumb { background: #fff; }
/* zoomed to the landing page's hero, past the phone's status and address bars */
.nav__thumb img { width: 160%; max-width: none; height: auto; margin: -38px 0 0 -30%; }
.nav__item b { display: block; font: 600 15px/1.3 var(--font-display); }
.nav__item small { display: block; font-size: 13px; color: var(--ink-2); }
.nav__item[aria-current="page"] b { color: var(--sky-press); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; border-radius: var(--r-full);
  background: transparent; cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--standard) var(--ease), top var(--standard) var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  height: calc(100dvh - var(--header-h));
  padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list li { border-bottom: 1px solid var(--hairline); }
.mobile-menu__link {
  display: flex; align-items: center; min-height: 64px;
  font: 600 24px/1.2 var(--font-display); letter-spacing: -0.02em; text-decoration: none;
}
.mobile-menu__link[aria-current="page"] { color: var(--sky-press); }
.mobile-menu__sub { display: grid; gap: 2px; padding: 0 0 var(--s-4) var(--s-4); }
.mobile-menu__sub a { display: flex; align-items: center; min-height: 44px; font-size: 18px; color: var(--ink-2); text-decoration: none; }
.mobile-menu__sub a[aria-current="page"] { color: var(--sky-press); }

@media (max-width: 959px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
.section-title {
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 16ch;
  text-wrap: balance;
}
.section-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-7); align-items: start; }
.prose { display: grid; gap: var(--s-4); font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.prose__strong { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: var(--s-8); }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: center; }
.hero__title {
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}
/* industry pages: a real photo beside the headline; on phones it sits right under it */
.hero__media { margin: 0; }
.hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-xl); }
/* the week of missed enquiries, under the hero */
.missed__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: center; }
.hero__lead { margin-top: var(--s-5); font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.hero .btn-row { margin-top: var(--s-6); }
/* Hero: a week of enquiries landing straight on the page, then none answered */
.feed { margin: 0; padding: var(--s-6) 0; }

/* Hero feed: the toasts, and the end of the week with none answered */
.toasts { display: grid; gap: 10px; max-width: 420px; margin-inline: auto; }
.toasts li {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.06), 0 8px 22px rgba(17, 18, 20, 0.08);
  opacity: 0; transform: translateY(-14px) scale(0.97);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), background-color 400ms var(--ease), color 400ms var(--ease);
}
.toasts li.is-in { opacity: 1; transform: none; }
.toasts i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; transition: filter 500ms var(--ease); }
.toasts i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-call { background: #e5484d; } .t-form { background: var(--sky); } .t-msg { background: #4b6cb7; }
.toasts b { display: block; font: 500 15px/1.25 var(--font-body); }
.toasts span { display: block; font-size: 13px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toasts time, .toasts em { grid-column: 3; grid-row: 1; align-self: start; font-size: 12px; font-style: normal; color: var(--ink-2); white-space: nowrap; transition: opacity 400ms var(--ease); }
.toasts em { opacity: 0; padding: 3px 8px; border-radius: var(--r-full); background: #fde8e8; color: #c62f34; font-weight: 500; }
/* end of the day: nothing answered */
.feed.is-missed .toasts li { background: #f4f5f7; color: #8a8f97; box-shadow: none; }
.feed.is-missed .toasts span { color: #a3a7ae; }
.feed.is-missed .toasts i { filter: grayscale(1) opacity(0.45); }
.feed.is-missed .toasts time { opacity: 0; }
.feed.is-missed .toasts em { opacity: 1; }
.feed__tally { max-width: 420px; margin: var(--s-4) auto 0; text-align: right; font-size: 15px; color: var(--ink-2); }
.feed__tally b { font: 600 18px/1 var(--font-display); color: var(--ink); }

/* ---------- Night band: web system ---------- */
.band-night { background: var(--night); color: #fff; }
.band-night .section-title { color: #fff; }
.band-night .section-lead { color: var(--faint); }

/* ---------- Calculator ---------- */
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.calc__in, .calc__out { min-width: 0; }
.calc__in { padding: var(--s-6); border: 1px solid var(--hairline); border-radius: var(--r-xl); }
.calc__in .field:last-of-type { margin-bottom: var(--s-4); }
.money { position: relative; display: flex; align-items: center; }
.money span { position: absolute; left: 14px; color: var(--ink-2); pointer-events: none; }
.calc .money input { padding-left: 28px; }
.money--end span { left: auto; right: 14px; }
.calc .money--end input { padding-left: 14px; padding-right: 32px; }
.field label output { float: right; font: 600 16px/1.4 var(--font-display); color: var(--sky-press); font-variant-numeric: tabular-nums; }
.range { width: 100%; min-height: 0 !important; padding: 0 !important; border: 0 !important; accent-color: var(--sky); height: 44px; cursor: pointer; }
.range__ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.calc__assume { margin-top: var(--s-2); border-top: 1px solid var(--hairline); padding-top: var(--s-2); }
.calc__assume summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--sky-press); }
.calc__assume[open] summary { margin-bottom: var(--s-3); }
.calc__assume summary { list-style: none; gap: var(--s-2); }
.calc__assume summary::-webkit-details-marker { display: none; }
.calc__assume summary::before {
  content: ""; width: 7px; height: 7px; margin-right: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--fast) var(--ease);
}
.calc__assume[open] summary::before { transform: rotate(45deg); }
.calc__note { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.calc__out {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6); border-radius: var(--r-xl); background: var(--night); color: var(--faint);
}
.calc__out :focus-visible { outline-color: var(--sky-dark); }
.calc__label { font-size: 15px; }
.calc__big { margin-top: calc(var(--s-3) * -1); font: 700 clamp(40px, 5vw, 60px)/1.05 var(--font-display); letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.calc__rows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: #3a3a3d; }
.calc__rows div { padding: 14px 16px; background: var(--night-2); }
.calc__rows dt { font-size: 13px; }
.calc__rows dd { margin: 6px 0 0; font: 600 22px/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.calc__compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.calc__compare div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid #3a3a3d; }
.calc__compare span { font-size: 13px; }
.calc__compare b { font: 600 20px/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.calc__compare .is-key { border-color: var(--sky-dark); background: rgba(91, 147, 255, 0.12); }
.calc__compare .is-key b { color: var(--sky-dark); }
.calc__fine { font-size: 13px; line-height: 1.55; color: var(--muted); }
/* check-up: where most enquiries are lost */
.calc__leak { padding: 14px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); border-left: 3px solid #f5a524; color: #fff; font-size: 16px; line-height: 1.45; }
.calc__leak:empty { display: none; }
.calc__out .btn { margin-top: auto; }
.calc__peek { display: none; }

/* ---------- Process ---------- */
.process { background: var(--surface); }
.process .section-lead { margin-top: var(--s-4); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: step; }
.step { position: relative; padding-top: var(--s-6); border-top: 2px solid var(--ink); }
.step::before {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; border-radius: 50%; background: var(--ink);
}
.step:last-child { border-top-color: var(--sky); }
.step:last-child::before { background: var(--sky); }
.step__n { display: block; font: 500 14px/1 var(--font-body); color: var(--ink-2); margin-bottom: var(--s-3); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.step p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final-cta__inner { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-7); align-items: end; }
.final-cta__title {
  font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.035em;
  text-wrap: balance;
}
.final-cta .section-lead { margin-bottom: var(--s-5); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--faint); padding: var(--s-7) 0 var(--s-5); }
.footer .logo { color: #fff; }
.footer a { text-decoration: none; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6);
  padding-bottom: var(--s-7); border-bottom: 1px solid #3a3a3d;
}
.footer__statement { margin-top: var(--s-5); max-width: 34ch; font-size: 16px; line-height: 1.6; }
.footer__where { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-weight: 500; color: #fff; }
.footer__where svg { width: 18px; height: 18px; fill: none; stroke: var(--sky-dark); stroke-width: 1.8; }
.footer__nav { display: grid; grid-template-columns: repeat(3, max-content); gap: var(--s-5) var(--s-6); }
.footer__nav ul { display: grid; gap: var(--s-3); align-content: start; }
.footer__nav a { font-size: 15px; transition: color var(--fast) var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__cta { display: grid; gap: var(--s-4); justify-items: start; align-content: start; }
.footer__cta p { color: #fff; font: 600 20px/1.3 var(--font-display); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--s-3);
  padding-top: var(--s-5);
}
.footer__tagline { font: 600 18px/1.3 var(--font-display); color: #fff; }
.footer__copy { font-size: 14px; color: var(--muted); }

/* =========================================================
   Inner pages
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--hairline);
}
.page-hero--compact { padding-bottom: var(--s-7); }
.page-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.page-hero__grid--text { align-items: end; }
.page-hero__title {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.page-hero__grid:not(.page-hero__grid--text) .page-hero__intro { margin-top: var(--s-5); }

/* Who we are: hero collage of the CRM, a video we made and a chatbot */
.stack { position: relative; aspect-ratio: 6 / 5; }
.stack__crm { position: absolute; top: 0; right: 0; width: 92%; height: auto; border-radius: var(--r-lg); filter: drop-shadow(0 16px 32px rgba(17, 18, 20, 0.12)); }
.stack__video {
  position: absolute; left: 0; bottom: 16%; width: 56%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--hairline);
  box-shadow: 0 20px 40px rgba(17, 18, 20, 0.18);
}
.stack .stack__phone { position: absolute; right: 4%; bottom: 0; width: 30%; }

/* Who we are: what we make, marketing tiles light and engineering tiles dark */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 400px; gap: var(--s-4); }
.tile { margin: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile--full .tile__media--crm img { width: 100%; }
.tile__media { flex: 1; min-height: 0; overflow: hidden; display: flex; justify-content: center; padding: var(--s-6) var(--s-5) 0; }
.tile__media img { width: 64%; max-width: 230px; height: auto; align-self: flex-start; }
.tile__media--fill { padding: 0; }
.tile__media--fill .play { position: relative; width: 100%; height: 100%; }

/* Click a looping film to watch it large, with sound */
.play { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.play video { display: block; width: 100%; height: 100%; object-fit: cover; }
.player { width: min(1200px, calc(100vw - 2 * var(--gutter))); max-width: none; padding: 0; border: 0; background: none; overflow: visible; }
.player::backdrop { background: rgba(10, 10, 12, 0.88); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #000; }
.player__close {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
}
.player__close:hover, .player__close:focus-visible { background: rgba(255, 255, 255, 0.28); }
.player__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tile__media--crm { justify-content: flex-start; padding: var(--s-6) 0 0 var(--s-6); }
.tile__media--crm img { width: 150%; max-width: none; border-radius: var(--r-lg) 0 0 0; }
.tile figcaption { padding: var(--s-4) var(--s-5) var(--s-5); font: 600 19px/1.3 var(--font-display); letter-spacing: -0.01em; }
.tile--eng { background: var(--night); }
.tile--eng figcaption { color: #fff; }
.tile--eng .phone-shot { filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45)); }

/* Who we are: where to meet us */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.where .section-lead { margin-top: var(--s-4); }
.where .btn { margin-top: var(--s-6); }
.where__map { width: 100%; max-width: 360px; justify-self: center; overflow: visible; }
.where__map .land { fill: url(#land-fade); }
.where__map .coast { fill: none; stroke: #4a4a4f; stroke-width: 2; }
.where__map .pin circle { fill: var(--sky-dark); }
.where__map .pin .halo { fill: rgba(91, 147, 255, 0.22); }
.where__map .pin text { fill: #fff; font: 600 17px var(--font-display); }

.final-cta__inner--row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s-6); }
.final-cta__inner--row .final-cta__title { max-width: 16ch; }

/* ---------- What we do ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }
.service-index a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--hairline); border-radius: var(--r-full);
  font: 500 14px/1.2 var(--font-body); text-decoration: none;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.service-index a:hover { background: var(--surface); border-color: var(--sky); }
.service-index span { color: var(--sky-press); }

.service { padding-block: var(--s-8); }
.service + .service { border-top: 1px solid var(--hairline); }
.service__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-7); align-items: start; }
.service__name { display: flex; gap: 10px; font: 500 15px/1.4 var(--font-body); color: var(--ink-2); }
.service__name span { color: var(--sky-press); }
.service__title {
  margin-top: var(--s-4);
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 18ch; text-wrap: balance;
}
.service__desc { margin-top: var(--s-5); font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 50ch; }
.service__includes { padding: var(--s-5) var(--s-5) var(--s-3); border-radius: var(--r-xl); background: var(--surface); }
.service__includes h3 { font: 500 14px/1 var(--font-body); color: var(--ink-2); margin-bottom: var(--s-2); }
.service__includes li { display: flex; align-items: center; gap: var(--s-3); padding: 12px 0; font-size: 16px; }
.service__includes li + li { border-top: 1px solid #dbe5fa; }
.service__includes li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ---------- Phone screens (assets/img/screen-*.webp) ---------- */
.phone-shot { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(17, 18, 20, 0.18)); }
.band-night .phone-shot { filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45)); }

/* Home hero: three industries' landing pages, fanned */
.fan { position: relative; height: 560px; }
.fan img { position: absolute; top: 40px; width: 240px; left: 50%; margin-left: -120px; }
.fan img:nth-child(1) { transform: translateX(-62%) rotate(-8deg) scale(0.9); }
.fan img:nth-child(2) { transform: translateX(62%) rotate(8deg) scale(0.9); }
.fan img:nth-child(3) { top: 0; z-index: 1; }

/* A row of phones, one step each, staggered */
.shots { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.shot { margin: 0; }
.shot:nth-child(even) { margin-top: var(--s-7); }
.shot figcaption { display: flex; gap: 10px; margin-top: var(--s-5); font: 600 18px/1.3 var(--font-display); letter-spacing: -0.01em; }
.shot figcaption span { color: var(--sky-press); }
.band-night .shot figcaption { color: #fff; }
.band-night .shot figcaption span { color: var(--sky-dark); }

/* Two phones beside a short statement */
.duo { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: center; }
.duo__shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); width: 100%; max-width: 520px; justify-self: end; }
.duo__shots img:last-child { margin-top: var(--s-7); }
.duo .section-lead { margin-top: var(--s-4); }
.duo .btn { margin-top: var(--s-6); }

/* A desktop app in a browser window: the CRM (crm.html), the quote and invoice tool (quote-tool.html) */
.wide-shot { margin: 0; }
.wide-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(17, 18, 20, 0.14)); }
.wide-shot figcaption { margin-top: var(--s-4); font-size: 14px; color: var(--ink-2); }

/* ---------- Home: one card per industry page ---------- */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.industry {
  display: grid; overflow: hidden; border-radius: var(--r-xl); background: var(--surface);
  text-decoration: none; transition: background-color var(--fast) var(--ease);
}
.industry:hover { background: #e3ecff; }
.industry__shot { height: 300px; overflow: hidden; padding: var(--s-6) var(--s-6) 0; }
.industry__shot img { width: 78%; margin-inline: auto; transition: transform var(--standard) var(--ease); }
.industry:hover .industry__shot img { transform: translateY(-8px); }
.industry__text { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); background: var(--canvas); border: 1px solid var(--hairline); border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.industry h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.industry p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.industry__text::after { content: "→"; flex: none; font-size: 22px; color: var(--sky-press); transition: transform var(--fast) var(--ease); }
.industry:hover .industry__text::after { transform: translateX(4px); }

/* ---------- Contact ---------- */
.call-shot { margin: 0; display: grid; gap: var(--s-3); }
.call-shot img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(17, 18, 20, 0.18); }
.call-shot figcaption { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.contact { padding-top: var(--s-7); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; }
.form, .form-done { grid-column: 1; grid-row: 1; }
.call-card {
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-xl); background: var(--night); color: var(--faint);
}
.call-card h2 { color: #fff; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.call-card p { margin: var(--s-3) 0 var(--s-5); font-size: 16px; line-height: 1.6; }
.call-card .btn--outline { color: #fff; border-color: var(--sky-dark); }
.call-card .btn--outline:hover { background: rgba(91, 147, 255, 0.16); }

.form__group { margin: 0 0 var(--s-6); padding: 0 0 var(--s-6); border: 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
/* Contact: Zoom or in person */
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--hairline); border-radius: var(--r-full); font-size: 15px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.seg label:hover span { border-color: var(--sky); }
.seg input:checked + span { border-color: var(--sky); background: var(--sky); color: #fff; font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.form__group legend { padding: 0; margin-bottom: var(--s-5); font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; }
.form__hint { margin: calc(var(--s-5) * -1 + var(--s-2)) 0 var(--s-5); font-size: 15px; color: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-5); align-content: start; }
.form__group > .field:last-child, .form__group > .form__row:last-child .field { margin-bottom: 0; }
.field label { font-size: 15px; font-weight: 500; }
.field__opt { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #b9bdc4; border-radius: var(--r-md);
  background: var(--canvas); color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
  transition: border-color var(--fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #80868f; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); border-radius: var(--r-md);
}
.field [aria-invalid="true"] { border-color: #c4320a; }
.field__error { font-size: 14px; color: #b42318; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}

.form__submit { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4) var(--s-5); }
.form__submit .btn[disabled] { opacity: 0.6; cursor: progress; }
.form__note { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.form__status { margin-top: var(--s-5); padding: 12px 16px; border-radius: var(--r-md); background: #fef3f2; color: #b42318; font-size: 15px; }

.form-done {
  display: grid; justify-items: start; gap: var(--s-4);
  padding: var(--s-7) var(--s-6); border-radius: var(--r-xl); background: var(--surface);
}
.form-done[hidden], .field[hidden] { display: none; }
.form-done svg { width: 48px; height: 48px; }
.form-done h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.025em; }
.form-done p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.form-done:focus { outline: none; }

/* Home: the offer at a glance, under the hero buttons */
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  font-size: 15px; color: var(--ink-2);
}
.hero__facts b { font: 600 17px/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Example ads ---------- */
/* Phone screenshots of example ads on each platform */
.ads { background: var(--surface); }
.ad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.ad { display: grid; gap: var(--s-3); }
.ad__where { font: 600 15px/1.3 var(--font-display); }
.ad__img { width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(17, 18, 20, 0.12)); }
.ad-note { margin-top: var(--s-5); font-size: 14px; color: var(--ink-2); }
.pdf__icons a { display: flex; color: inherit; }
.pdf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); }
.pdf-actions .ad-note { margin-top: 0; }
.pdf-actions .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pdf-actions__meta { font-size: 13px; font-weight: 400; color: var(--ink-2); }

/* ---------- Sample monthly report: a PDF open in a viewer ---------- */
.pdf { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #525659; box-shadow: 0 12px 32px rgba(17, 18, 20, 0.16); }
/* the viewer opens partway; the button shows the rest */
.pdf__view { position: relative; max-height: 560px; overflow: hidden; }
.pdf__view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(82, 86, 89, 0), #525659); pointer-events: none; }
.pdf.is-open .pdf__view { max-height: none; }
.pdf.is-open .pdf__view::after, .pdf__page--peek { display: none; }
.pdf__more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  border: 0; background: #323639; color: #fff; font: 500 15px/1 var(--font-body); cursor: pointer;
}
.pdf__view + .pdf__more { border-top: 1px solid rgba(255, 255, 255, 0.08); }
/* report beside its heading, so the viewer stays a readable width */
.report__grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s-7); align-items: start; }
.report__copy { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.report__copy .section-lead { margin-top: var(--s-4); }
.report__copy .pdf-actions { flex-direction: column; align-items: flex-start; margin-top: var(--s-6); }
.pdf__bar {
  display: flex; align-items: center; gap: var(--s-3); height: 48px; padding: 0 var(--s-4);
  background: #323639; color: #f1f1f1; font-size: 13px;
}
.pdf__bar svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdf__file { display: flex; align-items: center; gap: var(--s-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf__chip { flex: none; padding: 5px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.3); font-variant-numeric: tabular-nums; }
.pdf__pages { margin-left: auto; }
.pdf__icons { display: flex; gap: var(--s-4); margin-left: var(--s-2); }
.pdf__view { padding: 32px 32px 0; }
.pdf__page {
  max-width: 840px; margin: 0 auto; padding: 56px 64px 36px;
  background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.pdf__page + .pdf__page { margin-top: 20px; }
/* the top of page 2, fading out at the bottom of the viewer */
.pdf__page--peek {
  height: 170px; overflow: hidden; padding-top: 48px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
}
.pdf h4, .pdf-print h4 { margin: 0 0 var(--s-3); font: 600 16px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }

/* page 1 opens on a site photo with the title over it, bleeding to the page edges */
.doc-cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  flex: none; height: 250px; margin: -56px -64px 0; padding: 36px 64px 30px; overflow: hidden; color: #fff;
}
.doc-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.doc-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(17, 18, 20, 0.84) 0%, rgba(17, 18, 20, 0.5) 48%, rgba(17, 18, 20, 0) 78%); }
.doc-cover > div { position: relative; z-index: 2; }
.doc-cover .doc-logo .logo__img { height: 32px; color: #fff; }
.doc-cover b { display: block; font: 700 34px/1.05 var(--font-display); letter-spacing: -0.03em; }
.doc-cover span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.82); }

.doc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--hairline); }
.doc-logo .logo__img { height: 40px; color: var(--ink); }
.doc-meta { display: grid; gap: 4px; text-align: right; }
.doc-meta b { font: 600 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.doc-meta span { font-size: 13px; color: var(--ink-2); }
.doc-sec { margin-top: var(--s-6); }
.doc-sec p { font-size: 15px; line-height: 1.65; max-width: 70ch; }
.doc-kpis { margin: var(--s-5) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.doc-kpis div { padding: 14px; border-radius: 12px; background: #f4f5f7; }
.doc-kpis dt { font-size: 12px; color: var(--ink-2); }
.doc-kpis dd { margin: 8px 0 0; font: 700 26px/1 var(--font-display); letter-spacing: -0.03em; }
.doc-kpis small { display: block; margin-top: 7px; font-size: 11.5px; white-space: nowrap; color: #1a7f4b; }
.doc-kpis small.is-flat { color: var(--ink-2); }
.doc-kpis .doc-kpi--key { background: var(--sky); color: #fff; }
.doc-kpis .doc-kpi--key dt, .doc-kpis .doc-kpi--key small { color: rgba(255, 255, 255, 0.85); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.doc-panel { padding: 18px; border-radius: 12px; background: #f4f5f7; }
.doc-bars { display: grid; gap: 11px; }
.doc-bars li { display: grid; grid-template-columns: 128px 1fr 26px; align-items: center; gap: 10px; font-size: 12px; }
.doc-bars span { color: var(--ink-2); }
.doc-bars i { display: block; width: var(--w); min-width: 6px; height: 10px; border-radius: 999px; background: var(--sky); }
.doc-bars b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.doc-bars--funnel i { background: #9dbcfe; }
.doc-bars--funnel li:last-child i { background: var(--sky); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.doc-table th { padding: 0 0 8px; border-bottom: 1px solid var(--hairline); text-align: left; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.doc-table td { padding: 9px 0; border-bottom: 1px solid #eceef1; }
.doc-table th:not(:first-child), .doc-table td:not(:first-child) { text-align: right; padding-left: var(--s-4); }
.doc-table tfoot td { border-bottom: 0; font-weight: 600; }
.doc-table--log th:not(:first-child), .doc-table--log td:not(:first-child) { text-align: left; }
.pdf__page--peek .doc-table th:not(:first-child), .pdf__page--peek .doc-table td:not(:first-child) { text-align: left; }
.doc-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: var(--ink-2); font-size: 11px; line-height: 1.45; font-weight: 500; }
.doc-pill--won { background: #e3f5ea; color: #1a7f4b; }
.doc-pill--quote { background: var(--surface); color: var(--sky-press); }
.doc-pill--no { background: #f4f5f7; color: #8a8f97; }
/* a table beside a picture: the best ad, or the landing page itself */
.doc-split { display: grid; grid-template-columns: minmax(0, 1fr) 188px; gap: 28px; align-items: start; margin-top: var(--s-6); }
.doc-split--media { grid-template-columns: 132px minmax(0, 1fr); }
.doc-split .doc-sec { margin-top: 0; }
.doc-ad { margin: 0; overflow: hidden; border-radius: 12px; background: #f4f5f7; }
.doc-ad img { display: block; width: 100%; height: auto; }
.doc-ad figcaption { padding: 10px 12px 12px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.doc-ad figcaption b { display: block; margin-bottom: 2px; font: 600 14px/1.3 var(--font-display); color: var(--ink); }
.doc-shot { width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(17, 18, 20, 0.16)); }
.doc-next { margin-top: var(--s-6); padding: 16px 20px; border-radius: 12px; background: var(--surface); }
.doc-next ul { display: grid; gap: 6px; font-size: 14px; }
.doc-next li::before { content: "→"; margin-right: 8px; color: var(--sky-press); }
/* page 2 ends on the jobs signed this month */
.doc-signed { flex: none; display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; border-radius: 12px; background: #f4f5f7; }
.doc-signed img { display: block; width: 100%; height: 100%; object-fit: cover; }
.doc-signed > div { padding: 18px 22px; }
.doc-signed ul { display: grid; font-size: 13px; }
.doc-signed li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 9px 0; border-bottom: 1px solid #e3e5e9; }
.doc-signed li:last-child { border-bottom: 0; }
.doc-signed li span { color: var(--ink-2); }
.doc-signed li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-foot { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 11px; color: var(--muted); }
/* a narrow page (the viewer beside the heading, or a phone) stacks its panels; the PDF keeps two columns */
.pdf__page { container-type: inline-size; }
@container (max-width: 600px) {
  .doc-grid, .doc-split, .doc-split--media, .doc-signed { grid-template-columns: 1fr; }
  .doc-ad { display: grid; grid-template-columns: 110px 1fr; align-items: center; max-width: 360px; }
  .doc-split--media .doc-shot { width: 120px; }
  .doc-signed img { height: 180px; }
}

/* ---------- Pricing ---------- */
.pricing { border-top: 1px solid var(--hairline); }
.pricing .section-title { margin-bottom: var(--s-5); }
.plan__addon { display: grid; gap: 6px; margin: var(--s-5) 0 var(--s-6); padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.plan__addon b { font-size: 15px; font-weight: 500; color: var(--ink); }
.plan {
  padding: var(--s-6);
  border: 1px solid var(--hairline); border-top: 4px solid var(--sky); border-radius: var(--r-xl);
  background: var(--canvas);
}
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-3); row-gap: var(--s-2); }
.plan__price b { font: 700 clamp(44px, 5vw, 56px)/1 var(--font-display); letter-spacing: -0.035em; white-space: nowrap; }
.plan__price span { font-size: 17px; color: var(--ink-2); }
.plan__term { margin-top: var(--s-4); font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--hairline); }
.faq__list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 40px 22px 0;
  font: 500 clamp(17px, 1.8vw, 20px)/1.35 var(--font-display); letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform var(--fast) var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list summary:hover { color: var(--sky-press); }
.faq__list details p { padding: 0 0 22px; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }

/* Contact: what happens after the form */
.call-card__steps { display: grid; gap: var(--s-4); margin: var(--s-5) 0; counter-reset: call; }
.call-card__steps li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); font-size: 15px; line-height: 1.5; counter-increment: call; }
.call-card__steps li::before {
  content: counter(call); width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--sky-dark); color: #fff; font-size: 13px; font-weight: 500;
}
.call-card__steps b { color: #fff; font-weight: 500; }
.call-card__price { padding-top: var(--s-4); border-top: 1px solid #3a3a3d; font-size: 14px; line-height: 1.55; }
.call-card__price b { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid, .split, .final-cta__inner { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--s-6); }
  .hero__grid:has(> .hero__media) { gap: 0; }
  .hero__copy:has(+ .hero__media) { display: contents; }
  .hero__grid > .hero__media { order: 1; margin-top: var(--s-5); }
  .hero__grid:has(> .hero__media) .hero__lead { order: 2; }
  .hero__grid:has(> .hero__media) .btn-row { order: 3; }
  .hero__grid:has(> .hero__media) .hero__facts { order: 4; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .missed__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .split { gap: var(--s-5); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .page-hero__grid, .service__grid, .summary, .contact__grid { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; max-width: 520px; }
    .duo { grid-template-columns: 1fr; gap: var(--s-6); }
  .duo__shots { max-width: 520px; }
  .fan { height: 480px; }
  /* home hero: the phones sit right under the headline, before the lead and buttons */
  .hero__grid:has(> .fan) { gap: 0; }
  .hero__copy:has(+ .fan) { display: contents; }
  .hero__grid > .fan { order: 1; margin-top: var(--s-5); }
  .hero__grid:has(> .fan) .hero__lead { order: 2; }
  .hero__grid:has(> .fan) .btn-row { order: 3; }
  .page-hero__grid { gap: var(--s-6); }
  .service__grid, .summary { gap: var(--s-6); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .report__copy { position: static; }
  .where { grid-template-columns: 1fr; }
  .where__map { max-width: 240px; }
  .call-card { grid-column: 1; grid-row: auto; position: static; }
  .form, .form-done { grid-row: auto; }
        .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .doc-kpis { grid-template-columns: repeat(3, 1fr); }
  .calc__grid { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  :root { --gutter: 16px; --header-h: 60px; --s-8: 80px; }
  .logo__img { height: 38px; }
  /* the header already takes its own space, so phones start just under it */
  .hero { padding-top: var(--s-5); padding-bottom: var(--s-7); }
  .hero__lead, .prose, .section-lead { font-size: 17px; }
  .btn-row .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: var(--s-6); }
  .section-head--row { grid-template-columns: 1fr; }
  .section-head--row .btn { justify-self: start; }
  .plan { padding: var(--s-5); }
  .plan__price { flex-direction: column; align-items: flex-start; }
  /* calculator: keep the answer on screen while the inputs scroll */
  .calc__peek {
    position: sticky; bottom: 12px; z-index: 5;
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
    margin: var(--s-4) calc(var(--s-2) * -1) 0; padding: 12px 16px;
    border-radius: var(--r-lg); background: var(--night); color: var(--faint);
    box-shadow: 0 8px 24px rgba(17, 18, 20, 0.25); font-size: 13px;
  }
  .calc__peek b { font: 700 22px/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .calc__big { font-size: 40px; }
  .calc__rows dd { font-size: 19px; }
  .calc__compare b { font-size: 17px; }
  /* calculator results: one figure per row, label left and number right */
  .calc__rows, .calc__compare { grid-template-columns: 1fr; }
  .calc__rows div, .calc__compare div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
  .calc__rows dd { margin: 0; white-space: nowrap; }
  .calc__compare b { white-space: nowrap; }
  .range__ends { margin-top: -6px; }
  /* report: open partway, the rest behind a button */
  .pdf-actions .btn { width: 100%; height: auto; min-height: 52px; padding-block: 12px; white-space: normal; flex-wrap: wrap; }

  .feed { padding: var(--s-4) 0; }
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-4); scroll-padding-inline: var(--gutter);
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: start; }
  .shot:nth-child(even) { margin-top: 0; }
  /* side phones tuck in behind the centre one so nothing leaves the screen */
  .fan { height: 380px; }
  .fan img { width: 170px; margin-left: -85px; }
  .fan img:nth-child(1) { transform: translateX(-45%) rotate(-7deg) scale(0.86); }
  .fan img:nth-child(2) { transform: translateX(45%) rotate(7deg) scale(0.86); }
  .industry__shot { height: 190px; padding: var(--s-5) var(--s-5) 0; }
  .industry__shot img { width: 62%; }
  /* desktop app screens stay readable: they scroll sideways instead of shrinking */
  .wide-shot { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-4); scrollbar-width: none; }
  .wide-shot::-webkit-scrollbar { display: none; }
  .wide-shot img { width: 760px; max-width: none; }
  .wide-shot figcaption { position: sticky; left: 0; }
  .toasts li { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px 12px; }
  .toasts i { width: 34px; height: 34px; }
  .pdf__zoom, .pdf__icons { display: none; }
  .calc__in, .calc__out { padding: var(--s-5); }
  .pdf__view { padding: 12px 12px 0; }
  .pdf__page { padding: 24px 18px 20px; }
  .doc-head { flex-direction: column; align-items: flex-start; }
  .doc-meta { text-align: left; }
  .doc-cover { height: 210px; margin: -24px -18px 0; padding: 22px 18px 20px; }
  .doc-cover b { font-size: 26px; }
  .doc-cover::before { background: linear-gradient(0deg, rgba(17, 18, 20, 0.86) 0%, rgba(17, 18, 20, 0.35) 70%, rgba(17, 18, 20, 0.2) 100%); }

  .doc-kpis { grid-template-columns: 1fr 1fr; }
  .doc-kpis .doc-kpi--key { grid-column: 1 / -1; }
  .doc-bars li { grid-template-columns: 1fr 26px; row-gap: 4px; }
  .doc-bars span { grid-column: 1 / -1; }
  .doc-table { font-size: 12px; }
  .doc-table th:not(:first-child), .doc-table td:not(:first-child) { padding-left: var(--s-2); }
  /* example ads become a swipeable row */
  .ad-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .ad-grid::-webkit-scrollbar { display: none; }
  .ad { scroll-snap-align: start; }
  /* process becomes a vertical timeline */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 var(--s-6) var(--s-5); }
  .step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .step::before { top: 0; left: -7px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .final-cta__inner { gap: var(--s-5); }
  .final-cta .btn { width: 100%; }
  .page-hero { padding-top: var(--s-5); padding-bottom: var(--s-7); }
  .service-index { margin-top: var(--s-6); }
  .service { padding-block: var(--s-7); }
  .bento { grid-auto-rows: 300px; gap: var(--s-3); }
  .tile--wide { grid-column: 1 / -1; }
  .tile--full .tile__media--crm img { width: 230%; }
  .tile__media { padding: var(--s-5) var(--s-3) 0; }
  .tile__media--fill { padding: 0; }
  .tile__media img { width: 78%; }
  .tile__media--crm { padding: var(--s-5) 0 0 var(--s-5); }
  .tile__media--crm img { width: 230%; }
  .tile figcaption { padding: var(--s-3) var(--s-4) var(--s-4); font-size: 16px; }
  .stack .stack__phone { width: 34%; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit .btn { width: 100%; }
  .form-done { padding: var(--s-6) var(--s-5); }
                          }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.nowrap { white-space: nowrap; }
