/* ==========================================================================
   DreamScale Inc. — styles.css
   Dark mode only · single red accent · mobile-first · no build step.

   0. Pre-launch switches
   1. Fonts & design tokens
   2. Base
   3. Layout
   4. Components (buttons, eyebrow, cards, icons, tags, links)
   5. Header & navigation
   6. Page sections
   7. Sub-pages (privacy, 404)
   8. Motion & reduced motion
   ========================================================================== */


/* ==========================================================================
   0. PRE-LAUNCH SWITCHES
   ========================================================================== */

/* PLACEHOLDER TESTIMONIALS — hidden while the quotes are placeholders.
   To show the section: put real quotes in index.html, then delete the
   line below (or wrap it in a comment). */
.placeholder-content { display: none !important; }


/* ==========================================================================
   1. FONTS & DESIGN TOKENS
   ========================================================================== */

/* Geist (from Google Fonts, SIL Open Font License, see /assets/fonts/OFL.txt),
   served from this site: faster first paint and no third-party request. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

/* Fallback faces sized to match Geist, so text doesn't jump when the web
   font finishes loading (prevents layout shift). */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 105.52%;
  ascent-override: 95.24%;
  descent-override: 27.96%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Fallback Roboto";
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 105.18%;
  ascent-override: 95.55%;
  descent-override: 28.05%;
  line-gap-override: 0%;
}

:root {
  /* Surfaces */
  --bg: #0B0B0D;
  --bg-raised: #0F0F12;
  --surface: #141418;
  --surface-hover: #18181D;
  --surface-2: #1D1D23;
  --line-soft: #1A1A1F;
  --line: #232329;
  --line-strong: #34343C;

  /* Text (all pass WCAG AA on every surface above) */
  --text: #F2F1EE;
  --text-muted: #A9A9B0;
  --text-subtle: #8D8D95;

  /* Accent: one red. --red for fills (white text on it passes AA),
     --red-ink is the same hue lightened so red text on dark passes AA. */
  --red: #D52B1E;
  --red-hover: #B8231A;
  --red-ink: #FF5D52;
  --red-soft: rgba(213, 43, 30, 0.13);
  --red-glow: rgba(213, 43, 30, 0.32);

  /* Type */
  --font: "Geist", "Geist Fallback", "Geist Fallback Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h2: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 136px);
  --header-h: 68px;
  --radius: 18px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  interpolate-size: allow-keywords;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

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

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }

::selection { background: rgba(213, 43, 30, 0.5); color: #fff; }

:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  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: -200px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

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

.section { padding-block: var(--section-y); }
.section--raised { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--h2); line-height: 1.06; letter-spacing: -0.04em; }
.section-head--center { margin-inline: auto; text-align: center; }

.lede {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.section-head--center .lede { margin-inline: auto; max-width: 38em; text-wrap: balance; }

.split { display: grid; gap: 40px; }
.split .section-head { margin-bottom: 0; }

@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split__head { position: sticky; top: calc(var(--header-h) + 48px); }
}

.card-grid { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .card-grid { gap: 20px; }
  .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.3s var(--ease); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 0 0 0 transparent, inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--text); }

@media (hover: hover) {
  .btn--primary:hover { background: var(--red-hover); box-shadow: 0 10px 32px -8px rgba(213, 43, 30, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
  .btn--primary:hover .icon { transform: translateX(3px); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #4A4A54; transform: translateY(-2px); }
}
.btn:active { transform: translateY(0); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

@media (max-width: 479.98px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* Eyebrow label ------------------------------------------------------------- */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--red); }
.eyebrow--plain::before { content: none; }
.section-head--center .eyebrow { justify-content: center; }
.eyebrow__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-subtle); }

/* Accent text --------------------------------------------------------------- */
.accent { color: var(--red-ink); }

/* Canadian mark: abstract 1:2:1 flag bands, no leaf ------------------------- */
.ca-mark {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background:
    radial-gradient(circle, var(--red) 0 1.6px, transparent 2.1px),
    linear-gradient(90deg, var(--red) 0 25%, var(--text) 25% 75%, var(--red) 75%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Icons --------------------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Cards --------------------------------------------------------------------- */
.card {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
.card h3 { margin-bottom: 12px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }
.card p { color: var(--text-muted); }

/* hover: red edge light + soft corner glow */
.card::before,
.card::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.card::before {
  inset: -1px;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 93, 82, 0.75), rgba(213, 43, 30, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card::after {
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(213, 43, 30, 0.1), transparent 55%);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: var(--line-strong); background-color: var(--surface-hover); }
  .card:hover::before, .card:hover::after { opacity: 1; }
}

/* Tags ---------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.tag--placeholder { border-style: dashed; border-color: var(--red-ink); color: var(--red-ink); }

/* Text links ---------------------------------------------------------------- */
.text-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.text-link:hover { color: var(--red-ink); text-decoration-color: var(--red-ink); }


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 13, 0.88); }
.js .site-header:not(.is-scrolled):not(:has(.is-open)) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Wordmark (text logo) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  color: var(--text);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.wordmark__logo {
  /* Lockup rules from the brand reference:
     - robot head is the height of the capital letters (head = 48% of the mark)
     - robot base sits on the text baseline
     - gap to the wordmark of about a third of the text height (the mark's own padding) */
  align-self: baseline;
  flex: none;
  width: 1.515em;
  height: 1.515em;
  margin: -0.6em -0.045em 0 -0.24em; /* top: the antenna rises above without making the header taller; left: cancels the mark's built-in padding */
  translate: 0 0.152em;       /* moves the base of the head (not the image edge) onto the baseline */
}
.wordmark__dream { font-weight: 700; }
.wordmark__scale { font-weight: 400; }
.wordmark__dot { width: 0.22em; height: 0.22em; margin-left: 0.07em; border-radius: 1px; background: var(--red); }

/* Desktop links */
.site-nav__list { display: flex; gap: 2px; }
.site-nav__list > li > a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav__list > li > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav__list > li > a[aria-current="true"] { color: var(--text); }

/* Menu button */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* Mobile & tablet: collapsible menu */
@media (max-width: 899.98px) {
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    translate: none;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0s;
  }
  .js .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-block: 8px 24px;
  }
  .js .site-nav__list > li + li { border-top: 1px solid var(--line); }
  .js .site-nav__list > li > a { padding: 16px 0; border-radius: 0; color: var(--text); font-size: 1.125rem; }
  .js .site-nav__list > li > a:hover { background: none; color: var(--red-ink); }

  /* Without JavaScript the links simply sit in a scrollable row */
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
  html:not(.js) .nav-toggle { display: none; }
}

@media (max-width: 359.98px) {
  .site-header__cta { display: none; }
}

@media (min-width: 900px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__actions { justify-self: end; }
  .wordmark { justify-self: start; }
  .nav-toggle { display: none; }
}


/* "Tools" dropdown in the main nav */
.nav-drop { position: relative; }
.nav-drop__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.nav-drop__btn:hover,
.nav-drop__btn[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-drop__btn .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform 0.25s var(--ease); }
.nav-drop.is-open .nav-drop__btn .icon { transform: rotate(180deg); }

.nav-drop__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav-drop__menu a:hover,
.nav-drop__menu a[aria-current="page"] { background: var(--surface-2); }
.nav-drop__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid rgba(255, 93, 82, 0.2); border-radius: 10px; background: var(--red-soft); color: var(--red-ink); }
.nav-drop__icon .icon { width: 20px; height: 20px; }
.nav-drop__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.nav-drop__text strong { font-size: 0.9375rem; font-weight: 600; }
.nav-drop__text small { font-size: 0.8125rem; color: var(--text-muted); }

@media (min-width: 900px) {
  .nav-drop__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 5;
    min-width: 330px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    translate: -50% -6px;
    transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .nav-drop.is-open .nav-drop__menu,
  html:not(.js) .nav-drop:hover .nav-drop__menu,
  html:not(.js) .nav-drop:focus-within .nav-drop__menu {
    opacity: 1;
    visibility: visible;
    translate: -50% 0;
    transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), visibility 0s;
  }
}
@media (max-width: 899.98px) {
  .js .nav-drop__btn { width: 100%; justify-content: space-between; padding: 16px 0; border-radius: 0; color: var(--text); font-size: 1.125rem; }
  .js .nav-drop__btn:hover,
  .js .nav-drop__btn[aria-expanded="true"] { background: none; }
  .js .nav-drop__menu { display: none; padding-bottom: 12px; }
  .js .nav-drop.is-open .nav-drop__menu { display: block; }
  html:not(.js) .nav-drop__menu { display: none; }
  html:not(.js) .nav-drop:focus-within .nav-drop__menu { display: block; }
}

/* ==========================================================================
   6. PAGE SECTIONS
   ========================================================================== */

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  display: grid;
  align-items: center;
  min-height: min(calc(86vh - var(--header-h)), 820px);
  min-height: min(calc(86svh - var(--header-h)), 820px);
  padding-block: clamp(72px, 10vw, 128px);
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: calc(-1 * var(--header-h)) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 10%, transparent 72%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
}
.hero__glow {
  position: absolute;
  top: -380px;
  left: 50%;
  width: max(760px, 150%);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--red-glow), rgba(213, 43, 30, 0.1) 50%, transparent 78%);
}
@media (min-width: 1024px) {
  .hero__glow { top: -600px; width: 1300px; }
}

.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { justify-content: center; margin-bottom: 28px; }
.hero__title {
  margin-bottom: 44px;
  font-size: clamp(3.5rem, 1.4rem + 9vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.hero__title .accent { display: block; }

/* Industries marquee -------------------------------------------------------- */
.industries { padding-block: 32px 36px; border-block: 1px solid var(--line-soft); background: var(--bg-raised); }
.industries__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.industries__title { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--text-muted); }

.marquee-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.marquee-toggle:hover { color: var(--text); border-color: #4A4A54; }
.marquee-toggle .icon { width: 16px; height: 16px; stroke-width: 2; }
.marquee-toggle__play { display: none; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__pause { display: none; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__play { display: block; }

/* Default (no JS / reduced motion): a tidy static list */
.marquee__track { display: flex; justify-content: center; }
.marquee__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; padding-inline: var(--gutter); }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  white-space: nowrap;
}
.marquee__list .icon { width: 26px; height: 26px; color: var(--text-subtle); transition: color 0.3s; }
.marquee__list li:hover .icon { color: var(--red-ink); }

/* How it works -------------------------------------------------------------- */
.steps { display: grid; gap: 40px; }
.step { position: relative; padding-left: 72px; }
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--red-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.6s var(--ease) calc(var(--d, 0ms) + 200ms), box-shadow 0.6s var(--ease) calc(var(--d, 0ms) + 200ms);
}
.steps.is-visible .step__num,
html:not(.js) .step__num { border-color: rgba(255, 93, 82, 0.55); box-shadow: 0 0 0 6px rgba(213, 43, 30, 0.08); }
.step h3 { margin: 10px 0 10px; font-size: 1.25rem; letter-spacing: -0.02em; }
.step p { color: var(--text-muted); }

/* connecting rail: grey track + red fill that draws in */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: -32px;
  left: 23.5px;
  width: 1px;
  background: var(--line-strong);
}
.step:not(:last-child)::after {
  background: linear-gradient(var(--red-ink), var(--red));
  transform-origin: top;
  transform: scaleY(var(--rail, 1));
  transition: transform 1s var(--ease) calc(var(--d, 0ms) + 300ms);
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 80px 8px 0 0; }
  .step h3 { margin-top: 0; }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after { top: 24px; right: -20px; bottom: auto; left: 60px; width: auto; height: 1px; }
  .step:not(:last-child)::after {
    background: linear-gradient(90deg, var(--red-ink), var(--red));
    transform-origin: left;
    transform: scaleX(var(--rail, 1));
  }
}

/* Services: four cards, each with a small looping animation ------------------ */
.svc-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.svc { display: flex; flex-direction: column; padding: 12px 12px 28px; }
.svc h3 { margin: 26px 14px 8px; font-size: 1.1875rem; line-height: 1.25; }
.svc p { margin: 0 14px; font-size: 1rem; line-height: 1.55; }

.svc__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(70% 70% at 50% 50%, rgba(213, 43, 30, 0.08), transparent 70%), var(--bg);
}
.svc__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 16px 16px;
  background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  pointer-events: none;
}
.svc__art > * { position: relative; }
@media (max-width: 639.98px) { .svc__art { height: 150px; } }

/* shared: app tile */
.art__node {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-muted);
}
.art__node .icon { width: 22px; height: 22px; }

/* AI Automation: a task passes from app to app */
.art__wire {
  flex: 0 1 40px;
  height: 2px;
  margin: 0 6px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.art__wire i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--red-ink);
  box-shadow: 0 0 12px 2px rgba(255, 93, 82, 0.6);
  opacity: 0;
}

/* AI Phone Agents: the phone rings, the call gets booked */
.art--call { flex-direction: column; gap: 18px; }
.art__dial { display: grid; place-items: center; width: 58px; height: 58px; }
.art__dial > * { grid-area: 1 / 1; }
.art__phone {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(213, 43, 30, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.art__phone .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.art__ring { width: 100%; height: 100%; border: 1.5px solid var(--red-ink); border-radius: 50%; opacity: 0; }
.art__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  font-weight: 600;
}
.art__chip .icon { width: 15px; height: 15px; stroke-width: 2.4; color: var(--red-ink); }

/* AI Customer Acquisition: leads flow into the pipeline */
.art--pipe { padding-inline: 24px; }
.art__track { flex: 1; height: 2px; margin-right: 10px; background: linear-gradient(90deg, transparent, var(--line-strong) 25%); }
.art__track i {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1.5px solid var(--text-subtle);
  border-radius: 50%;
  background: var(--surface-2);
}
.art__track i:nth-child(1) { left: 22%; }
.art__track i:nth-child(2) { left: 50%; }
.art__track i:nth-child(3) { left: 78%; }
.art__node--goal { width: 56px; height: 56px; border-color: rgba(255, 93, 82, 0.45); border-radius: 50%; background: var(--red-soft); color: var(--red-ink); }
.art__node--goal .icon { width: 26px; height: 26px; }

/* AI Search Visibility: a search is typed, your business is recommended */
.art--search { flex-direction: column; gap: 12px; padding-inline: 18px; }
.art__bar,
.art__result { width: 100%; max-width: 236px; }
.art__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
}
.art__bar .icon { width: 16px; height: 16px; color: var(--text-subtle); }
.art__query { overflow: hidden; white-space: nowrap; }
.art__caret { flex: none; width: 1.5px; height: 16px; margin-left: -6px; background: var(--red-ink); }
.art__result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 93, 82, 0.4);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 10px 30px -12px rgba(213, 43, 30, 0.45);
  text-align: left;
}
.art__spark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--red-soft); color: var(--red-ink); }
.art__spark .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.art__answer { display: flex; flex-direction: column; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.art__answer small { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-ink); }

/* Testimonials (placeholder) ------------------------------------------------ */
.placeholder-note {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px dashed rgba(255, 93, 82, 0.6);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.testimonials .card-grid > li { display: flex; }
.quote { display: flex; flex-direction: column; width: 100%; margin: 0; }
.quote .tag { align-self: flex-start; margin-bottom: 22px; }
.quote blockquote { flex: 1; margin: 0 0 28px; }
.quote blockquote p { font-size: 1.125rem; line-height: 1.55; color: var(--text); }
.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}
.quote__avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--text-subtle); }
.quote__avatar .icon { width: 20px; height: 20px; }

/* Founder ------------------------------------------------------------------- */
.founder__grid { display: grid; gap: 40px; align-items: center; max-width: 980px; }
@media (min-width: 800px) {
  .founder__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
}
.founder__photo { width: 100%; max-width: 280px; margin: 0; }

.headshot,
.headshot-placeholder { width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; }
.headshot { height: auto; object-fit: cover; }
.headshot-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #111115 14px 28px);
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.headshot-placeholder .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.founder__caption { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; font-size: 0.9375rem; color: var(--text-muted); }
.founder__caption strong { font-size: 1.0625rem; color: var(--text); }

.founder__copy h2 { font-size: var(--h2); line-height: 1.06; letter-spacing: -0.04em; }
.prose { display: grid; gap: 18px; margin: 24px 0 32px; font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); }
.prose p:first-child { color: var(--text); }

/* FAQ ----------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--text-muted);
  transition: transform 0.35s var(--ease), border-color 0.2s, color 0.2s, background-color 0.2s;
}
.faq-item summary:hover::after { border-color: #4A4A54; color: var(--text); }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--red); color: var(--red-ink); background-color: var(--red-soft); }
.faq-item__answer { padding: 0 56px 26px 0; font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); }

/* Final CTA ----------------------------------------------------------------- */
.cta-band { padding-block: var(--section-y); }
.cta-band__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #141418, #0E0E11);
  text-align: center;
}
.cta-band__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 75%);
}
.cta-band__glow {
  position: absolute;
  left: 50%;
  bottom: -70%;
  z-index: -1;
  width: max(900px, 120%);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(213, 43, 30, 0.42), rgba(213, 43, 30, 0.1) 55%, transparent 80%);
}
.cta-band__title {
  max-width: 12em;
  margin: 0 auto 40px;
  font-size: clamp(2.25rem, 1.35rem + 3.8vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.cta-band__email { margin-top: 24px; font-size: 0.9375rem; color: var(--text-subtle); }

/* Footer -------------------------------------------------------------------- */
.site-footer { padding-top: 64px; border-top: 1px solid var(--line-soft); background: var(--bg-raised); }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer__brand p { margin-top: 14px; max-width: 30ch; color: var(--text-muted); }
.ca-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 22px !important;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.site-footer__heading {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.site-footer__list { display: grid; gap: 6px; }
.site-footer__list a,
.site-footer__list span { display: inline-flex; align-items: center; gap: 10px; padding-block: 5px; color: var(--text); text-decoration: none; transition: color 0.2s; }
.site-footer__list a:hover { color: var(--red-ink); }
.site-footer__list .icon { width: 18px; height: 18px; color: var(--text-subtle); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.site-footer__base a { color: var(--text-muted); text-underline-offset: 3px; }
.site-footer__base a:hover { color: var(--red-ink); }


/* ==========================================================================
   7. SUB-PAGES (privacy policy, 404)
   ========================================================================== */

.page { padding-block: clamp(48px, 8vw, 104px) var(--section-y); }
.page__head { max-width: 46rem; margin-bottom: 48px; }
.page__head h1 { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 3.75rem); line-height: 1.04; letter-spacing: -0.045em; }
.page__head .lede { margin-top: 16px; }

.notice {
  max-width: 46rem;
  margin-bottom: 48px;
  padding: 16px 20px;
  border: 1px dashed var(--red-ink);
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--text);
}
.notice strong { color: var(--red-ink); }

.legal { max-width: 46rem; font-size: 1.0625rem; line-height: 1.75; color: var(--text-muted); }
.legal h2 { margin: 48px 0 14px; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 14px; }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }

.site-header--simple .site-header__inner { display: flex; }
.site-footer--simple { padding-top: 0; }
.site-footer--simple .site-footer__base { margin-top: 0; border-top: 0; }

.not-found { min-height: 60vh; display: grid; align-content: center; }
.not-found__code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; color: var(--red-ink); }


/* ==========================================================================
   7b. TOOLS: AUTOMATION SAVINGS CALCULATOR
   Built only from the tokens and components above.
   ========================================================================== */

/* Link to the calculator from the homepage services section */
.services__tool { display: flex; justify-content: center; margin-top: 40px; }
.services__tool .icon { width: 18px; height: 18px; color: var(--red-ink); }

/* Cards that hold content you work with shouldn't jump on hover */
@media (hover: hover) {
  .card--static:hover { transform: none; border-color: var(--line); background-color: var(--surface); }
  .card--static:hover::before,
  .card--static:hover::after { opacity: 0; }
}

/* Page hero (smaller than the homepage hero) */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 {
  max-width: 12em;
  margin-inline: auto;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.048em;
}
.page-hero h1 .accent { display: block; }
.page-hero .lede { max-width: 32em; margin-inline: auto; text-wrap: balance; }

/* Layout */
.calc { padding-bottom: clamp(56px, 7vw, 88px); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.calc__results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
@media (min-width: 1024px) {
  .calc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; }
}
@media (min-width: 1024px) and (min-height: 820px) {
  .calc__results { position: sticky; top: calc(var(--header-h) + 20px); }
}
.calc-note { margin-top: 24px; font-size: 0.875rem; text-align: center; color: var(--text-subtle); }
.calc-note .icon { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }

/* Form */
.calc-form { display: grid; gap: 26px; }
.calc-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.field__optional { font-weight: 500; color: var(--text-subtle); }
.field__hint { font-size: 0.8125rem; line-height: 1.5; color: var(--text-subtle); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--red-ink); }
.field__error .icon { width: 16px; height: 16px; }
.field__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; }

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
}
.input:hover,
.select:hover { border-color: #4A4A54; }
.input:focus-visible,
.select:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--red-ink); }
.input::placeholder { color: var(--text-subtle); opacity: 1; }
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input::-webkit-outer-spin-button,
.input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9A9B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.select option { background: var(--surface); color: var(--text); }

.affix { position: relative; }
.affix__sign { position: absolute; top: 50%; left: 14px; translate: 0 -50%; color: var(--text-subtle); pointer-events: none; }
.affix .input { padding-left: 30px; }

.link-btn {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--red-ink); }
.helper { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--bg-raised); }

/* Segmented control (radio buttons) */
.segmented {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}
.segmented legend { padding: 0; }
.segmented label { position: relative; display: grid; cursor: pointer; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.segmented input:focus-visible + span { outline: 2px solid var(--red-ink); outline-offset: 2px; }
@media (max-width: 479.98px) { .segmented span { padding: 0 8px; font-size: 0.875rem; } }
.segmented--sm { display: inline-grid; }
.segmented--sm span { min-height: 32px; padding: 0 14px; font-size: 0.8125rem; }

/* Slider */
.range { display: flex; align-items: center; gap: 14px; }
.range output { min-width: 4ch; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.range input[type="range"] {
  flex: 1;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--red);
  cursor: pointer;
}
.range input[type="range"]:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 4px; border-radius: 999px; }
.range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) var(--pct, 77.8%), var(--line-strong) var(--pct, 77.8%));
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 4px solid var(--red);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.range input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.range input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--red); }
.range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--red); border-radius: 50%; background: var(--text); }

/* Optional costs */
.calc-costs { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raised); }
.calc-costs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.calc-costs summary::-webkit-details-marker { display: none; }
.calc-costs__label { flex: 1; }
.calc-costs summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), color 0.2s, border-color 0.2s;
}
.calc-costs[open] summary::after { transform: rotate(45deg); border-color: var(--red); color: var(--red-ink); }
.calc-costs__body { display: grid; gap: 16px; padding: 4px 16px 16px; }
@media (min-width: 420px) { .calc-costs__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Results */
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results__title { font-size: 1.25rem; letter-spacing: -0.02em; }
.results__head .btn .icon { width: 16px; height: 16px; stroke-width: 2; }
.results__head .btn { max-width: 100%; height: auto; padding-block: 8px; white-space: normal; text-align: left; line-height: 1.25; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stats:not(.has-costs) .stat--five { grid-column: 1 / -1; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  container-type: inline-size;
}
.stat--lg { min-height: 132px; }
.stat dt { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--text-muted); }
.stat dd { display: flex; flex-direction: column; gap: 4px; margin: auto 0 0; }
.stat__value {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat--lg .stat__value { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.625rem); color: var(--red-ink); }
.stat__value.is-long { font-size: 1.25rem; }
.stat--lg .stat__value.is-long { font-size: 1.5rem; }
@supports (font-size: 1cqi) {
  /* --chars is set by the calculator, so each number fills its tile without overflowing */
  .stat__value,
  .stat__value.is-long { font-size: min(1.875rem, calc(100cqi / (var(--chars, 6) * 0.62))); }
  .stat--lg .stat__value,
  .stat--lg .stat__value.is-long { font-size: min(2.625rem, calc(100cqi / (var(--chars, 6) * 0.62))); }
}
.stat__sub { min-height: 1.45em; font-size: 0.8125rem; line-height: 1.45; color: var(--text-subtle); }

.payback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 93, 82, 0.35);
  border-radius: 14px;
  background: var(--red-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.payback .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--red-ink); stroke-width: 2; }
.payback--warn { border-color: var(--line-strong); background: var(--surface-2); color: var(--text-muted); }
.payback--warn .icon { color: var(--text-muted); }

.results__summary {
  min-height: calc(3.2em + 20px);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.results__summary strong,
.results__summary em { font-style: normal; color: var(--text); }
.results__summary strong { color: var(--red-ink); }
.results__status { min-height: 1.4em; margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--text); }

/* Chart */
.chart-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chart-card__head h3 { font-size: 1.0625rem; letter-spacing: -0.02em; }
.chart-card__canvas { position: relative; height: 240px; }
@media (min-width: 640px) { .chart-card__canvas { height: 260px; } }
.chart-card__caption { min-height: 1.5em; margin-top: 12px; font-size: 0.875rem; color: var(--text-muted); }
.chart-table { margin-top: 8px; }
.chart-table summary {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}
.chart-table summary:hover { color: var(--text); }

/* Tables (chart data, assumptions) */
.table-wrap { overflow-x: auto; margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.data-table th,
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th:first-child,
.data-table td:first-child { text-align: left; }
.data-table thead th { font-weight: 600; color: var(--text-muted); white-space: normal; vertical-align: bottom; }
.data-table tbody th { font-weight: 500; color: var(--text-muted); }
.data-table td { color: var(--text); }

/* Offer band right after the calculator */
.offer { padding-bottom: var(--section-y); }
.offer__panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(80% 140% at 100% 50%, rgba(213, 43, 30, 0.16), transparent 60%), var(--surface);
}
@media (min-width: 900px) { .offer__panel { grid-template-columns: minmax(0, 1fr) auto; } }
.offer__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; }
.offer__panel p { margin-top: 10px; color: var(--text-muted); }

/* How it's calculated */
@media (min-width: 1024px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.method-card h3 { font-size: 1.25rem; }
.method-list { display: grid; gap: 8px; margin-top: 18px; padding-left: 1.1em; list-style: disc; font-size: 0.9375rem; color: var(--text-muted); }
.method-example { margin: 16px 0 20px; font-size: 1.125rem; line-height: 1.65; color: var(--text-muted); }
.method-example strong { color: var(--red-ink); }

/* ==========================================================================
   8. MOTION
   Everything here is non-essential and switched off for people who ask
   their device to reduce motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Fade/slide in on scroll (classes set by main.js) */
  .js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.9s var(--ease) var(--d, 0ms), translate 0.9s var(--ease) var(--d, 0ms);
  }
  .js .card.reveal {
    transition: opacity 0.9s var(--ease) var(--d, 0ms), translate 0.9s var(--ease) var(--d, 0ms),
      transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
  }
  .js .reveal.is-visible { opacity: 1; translate: none; }

  /* How-it-works rail draws in */
  .js .steps:not(.is-visible) .step::after { --rail: 0; }

  /* Hero glow drifts slowly */
  .hero__glow { animation: glow-drift 18s ease-in-out infinite; }

  /* Service card animations (main.js adds .is-playing while they're on screen) */
  .svc__art * { animation-fill-mode: backwards; }
  .art--flow .art__node { animation: node-flash 3.6s ease infinite; }
  .art--flow > :nth-child(3) { animation-delay: 1.2s; }
  .art--flow > :nth-child(5) { animation-delay: 2.4s; }
  .art--flow .art__wire i { animation: wire-travel 3.6s ease-in-out infinite; }
  .art--flow > :nth-child(2) i { animation-delay: 0.35s; }
  .art--flow > :nth-child(4) i { animation-delay: 1.55s; }

  .art__ring { animation: ring-out 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
  .art__ring + .art__ring { animation-delay: 1.2s; }
  .art__phone .icon { animation: phone-shake 2.4s ease-in-out infinite; }
  .art__chip { animation: chip-pop 4.8s var(--ease) infinite; }

  .art__track i { animation: lead-flow 3.6s linear infinite; }
  .art__track i:nth-child(2) { animation-delay: 1.2s; }
  .art__track i:nth-child(3) { animation-delay: 2.4s; }
  .art__node--goal { animation: goal-hit 1.2s ease-out infinite; }

  .art__query { animation: type-query 6s steps(20, end) infinite; }
  .art__caret { animation: caret-blink 1s steps(1) infinite; }
  .art__result { animation: result-in 6s var(--ease) infinite; }

  .js [data-play]:not(.is-playing) .svc__art,
  .js [data-play]:not(.is-playing) .svc__art * { animation-play-state: paused; }

  /* Industries marquee (main.js clones the list and adds .is-running) */
  .js .marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .js .marquee__track { width: max-content; justify-content: flex-start; }
  .js .marquee__list { flex-wrap: nowrap; gap: 56px; padding-inline: 0 56px; }
  .js .marquee-toggle { display: inline-grid; }
  .marquee.is-running .marquee__track { animation: marquee var(--marquee-duration, 40s) linear infinite; }
  .marquee:hover .marquee__track,
  .marquee.is-paused .marquee__track,
  .marquee.is-offscreen .marquee__track { animation-play-state: paused; }

  /* FAQ answers open smoothly where supported */
  @supports (interpolate-size: allow-keywords) {
    .faq-item::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
    }
    .faq-item[open]::details-content { block-size: auto; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__list[data-clone] { display: none; }
}

@keyframes marquee { to { transform: translate3d(calc(-1 * var(--marquee-distance, 50%)), 0, 0); } }
@keyframes node-flash {
  0%, 34%, 100% { border-color: var(--line-strong); color: var(--text-muted); box-shadow: 0 0 0 0 rgba(213, 43, 30, 0); }
  6%, 22% { border-color: rgba(255, 93, 82, 0.7); color: var(--red-ink); box-shadow: 0 0 0 4px rgba(213, 43, 30, 0.12), 0 0 24px rgba(213, 43, 30, 0.35); }
}
@keyframes wire-travel {
  0% { left: 0; opacity: 0; }
  4% { opacity: 1; }
  25% { left: 100%; opacity: 1; }
  30%, 100% { left: 100%; opacity: 0; }
}
@keyframes ring-out { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes phone-shake {
  0%, 24%, 100% { transform: none; }
  4% { transform: rotate(-14deg); }
  8% { transform: rotate(12deg); }
  12% { transform: rotate(-10deg); }
  16% { transform: rotate(8deg); }
  20% { transform: rotate(-4deg); }
}
@keyframes chip-pop {
  0%, 30% { opacity: 0; transform: translateY(8px) scale(0.94); }
  40%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes lead-flow {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  76% { border-color: var(--text-subtle); background: var(--surface-2); }
  88% { left: 100%; opacity: 1; border-color: var(--red-ink); background: var(--red); }
  94%, 100% { left: 100%; opacity: 0; }
}
@keyframes goal-hit {
  0%, 58%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(213, 43, 30, 0); }
  66% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(213, 43, 30, 0.18); }
  82% { transform: scale(1); }
}
@keyframes type-query {
  0%, 6% { max-width: 0; }
  38%, 92% { max-width: 11em; }
  100% { max-width: 0; }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes result-in {
  0%, 42% { opacity: 0; transform: translateY(10px); }
  50%, 90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.06); }
}

@media print {
  .site-header, .marquee-toggle, .hero__bg, .cta-band__glow { display: none !important; }
  .js .reveal { opacity: 1 !important; translate: none !important; }
  .svc__art * { animation: none !important; }
}
