/* Dooglie website — the one stylesheet.
   Every colour, font, size and spacing value lives in :root below.
   Everything after :root uses var(--…) only. See CLAUDE.md § Styling. */

:root {
  /* Brand colours */
  --color-brand-blue: #3950a0;
  --color-brand-blue-deep: #2b3c80;
  --color-brand-teal: #3fc2c2;
  --color-brand-teal-deep: #1f8f8f;
  --color-ink: #0f1733;
  --color-ink-soft: #1b2650;
  --color-white: #ffffff;
  --color-paper: #f6f7fb;
  --color-mist: #eceff8;
  --color-line: #dde2ee;
  --color-slate: #1d2440;
  --color-slate-muted: #5b6380;
  --color-white-muted: #c9d1ec;
  --color-teal-wash: #e3f6f6;
  --color-blue-wash: #e8ebf7;
  --color-coral: #e8603c;
  --color-green: #2e8b3e;
  --color-green-wash: #e3f3e6;
  --color-amber: #b7791f;
  --color-amber-wash: #fbf0dc;
  --color-red: #c23a2b;
  --color-red-wash: #f9e4e1;

  /* Product mock-up colours (the demo CRM and the Chrome window) */
  --color-ui-chrome: #dfe3ec;
  --color-ui-crm-nav: #1b2430;
  --color-ui-crm-nav-2: #263243;
  --color-ui-crm-bg: #f5f7f9;
  --color-ui-crm-text: #1f2933;
  --color-ui-crm-muted: #6b7684;
  --color-ui-crm-link: #2f62b5;
  --color-ui-crm-green: #3d9a46;
  --color-ui-dot-red: #ff5f57;
  --color-ui-dot-amber: #febc2e;
  --color-ui-dot-green: #28c840;

  /* Real product UI (mirrors the Dooglie extension and Cowtrumpet exactly) */
  --pm-ink: #1d2440;
  --pm-muted: #5b6380;
  --pm-cobalt: #4652a0;
  --pm-cyan: #3fc2c2;
  --pm-cyan-soft: #e3f6f6;
  --pm-coral: #e8603c;
  --pm-frame: #9aa7cc;
  --pm-frame-text: #2d3348;
  --pm-panel: #f5f6fc;
  --pm-card-line: #e3e6f2;
  --pm-card-text: #2a3150;
  --pm-quote: #3b4262;
  --pm-now: #f2f4fb;
  --pm-tab-line: #dde1ef;
  --pm-tab-muted: #5c6380;
  --pm-hub-line: #b3bbdb;
  --pm-input-line: #cdd3e6;
  --pm-input-btn: #c9cfe4;
  --pm-info-bg: #eceffa;
  --pm-info: #3f4a8e;
  --pm-op-bg: #e6f5ec;
  --pm-op: #2a7a47;
  --pm-risk-bg: #fbeae6;
  --pm-risk: #b0412b;
  --pm-live: #1f6d6d;
  --pm-caution-bg: #fbf1dc;
  --pm-caution: #9a6a0a;
  --pm-ok: #2e8b3e;
  --pm-bad: #c23a2b;
  --pm-met-bg: #e3f3e5;
  --pm-miss-bg: #fae4e1;
  --pm-act: #3d9a5a;
  --pm-chrome: #dfe3ec;
  --pm-chrome-line: #c9cfdc;
  --pm-chrome-text: #3a4256;
  --pm-ct-nav: #1b2430;
  --pm-ct-nav-2: #222d3b;
  --pm-ct-nav-on: #2b3747;
  --pm-ct-nav-text: #c5cdd8;
  --pm-ct-badge: #3c4a5c;
  --pm-ct-badge-text: #b9c3d0;
  --pm-ct-user-bg: #384656;
  --pm-ct-menu-line: #6f7c8c;
  --pm-ct-menu-bg: #e9edf1;
  --pm-ct-menu-text: #5b6573;
  --pm-ct-bg: #f5f7f9;
  --pm-ct-line: #e3e7ec;
  --pm-ct-row-line: #eef1f4;
  --pm-ct-text: #1f2933;
  --pm-ct-muted: #6b7280;
  --pm-ct-faint: #8a94a3;
  --pm-ct-link: #2f62b5;
  --pm-ct-green: #3d9a46;
  --pm-ct-help: #c8432f;
  --pm-ct-teal: #2a7f7f;
  --pm-ct-red: #c23a2b;
  --pm-ct-blue: #2f6fb5;
  --pm-ct-purple: #6b4fbb;
  --pm-ct-sel: #eef4fb;
  --pm-ct-pers: #3b5bab;
  --pm-ct-pers-line: #b9c6e6;
  --pm-ct-filled: #227c7c;
  --pm-ct-head-tint: rgb(255 255 255 / 0.18);

  /* Roles: use these in components, not the brand colours directly */
  --color-bg: var(--color-paper);
  --color-surface: var(--color-white);
  --color-text: var(--color-slate);
  --color-text-muted: var(--color-slate-muted);
  --color-accent: var(--color-brand-blue);
  --color-accent-hover: var(--color-brand-blue-deep);
  --color-accent-text: var(--color-white);
  --color-highlight: var(--color-brand-teal);
  --color-border: var(--color-line);
  --color-dark-bg: var(--color-ink);
  --color-dark-surface: var(--color-ink-soft);
  --color-dark-text: var(--color-white);
  --color-dark-muted: var(--color-white-muted);
  --color-focus: var(--color-brand-teal);
  --color-placeholder: var(--color-coral);
  --color-heading: var(--color-brand-blue);
  --color-hover: var(--color-brand-teal);

  /* Glows, overlays and shadows */
  --glow-blue: rgb(57 80 160 / 0.55);
  --glow-teal: rgb(63 194 194 / 0.35);
  --overlay-dark: rgb(15 23 51 / 0.6);
  --overlay-light: rgb(255 255 255 / 0.08);
  --overlay-light-strong: rgb(255 255 255 / 0.16);
  --overlay-header: rgb(246 247 251 / 0.86);
  --shadow-sm: 0 1px 2px rgb(15 23 51 / 0.06), 0 2px 6px rgb(15 23 51 / 0.05);
  --shadow: 0 10px 30px rgb(15 23 51 / 0.10);
  --shadow-lg: 0 30px 80px rgb(15 23 51 / 0.35);
  --ring-teal: 0 0 0 3px rgb(63 194 194 / 0.35);

  /* Type */
  --font-heading: "Convergence", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-ui: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(1.9rem, 3.6vw, 2.6rem);
  --text-2xl: clamp(2.5rem, 6vw, 4.25rem);
  --line-tight: 1.12;
  --line-body: 1.6;
  --tracking-eyebrow: 0.14em;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Shape and layout */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --max-prose: 72ch;
  --header-height: 72px;
  --tap-min: 44px;
  --panel-width: 340px;

  /* Data stream and scroll story */
  --glow-teal-strong: rgb(63 194 194 / 0.6);
  --overlay-teal: rgb(63 194 194 / 0.12);
  --line-dark: rgb(255 255 255 / 0.12);
  --story-steps: 5;

  /* Wisdom effects */
  --wisdom-glow: rgb(63 194 194 / 0.55);
  --wisdom-light: #9fe8e8;
  --wisdom-blue-light: #8fa0e6;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 600ms;
}

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */

@font-face {
  font-family: "Convergence";
  src: url("../assets/fonts/convergence-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: var(--line-tight);
  font-weight: 400;
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  text-wrap: balance;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  transition: color 150ms;
}

a:hover {
  color: var(--color-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

strong {
  color: var(--color-text);
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.skip-link {
  position: absolute;
  left: -999px;
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--color-accent);
  margin: 0 0 var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-teal);
}

.lede {
  font-size: var(--text-md);
  line-height: 1.5;
  max-width: 46ch;
}

/* Content that still needs real material. Stays visible on purpose. */

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-2) var(--space-4);
}

.announce p {
  margin: 0;
  color: var(--color-dark-muted);
}

.announce strong {
  color: var(--color-highlight);
}

.announce a {
  color: var(--color-dark-text);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--overlay-header);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-lockup__mark {
  height: 38px;
  width: auto;
}

.logo-lockup__word {
  width: 132px;
  height: auto;
}

@media (max-width: 640px) {
  .logo-lockup__word {
    width: 112px;
  }

  .logo-lockup__mark {
    height: 32px;
  }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  font-size: var(--text-sm);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0 auto 0 var(--space-4);
  padding: 0;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-hover);
}

.site-nav .button {
  color: var(--color-accent-text);
}

.site-nav .button:hover {
  color: var(--color-ink);
}

.site-nav__group {
  position: relative;
}

.site-nav__group > span {
  cursor: default;
}

.site-nav__group > span::after {
  content: " ▾";
  font-size: var(--text-xs);
}

.site-nav__menu {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--space-3));
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 150ms, transform 150ms, visibility 150ms;
}

.site-nav__group:hover .site-nav__menu,
.site-nav__group:focus-within .site-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav__menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.site-nav__menu a:hover {
  background: var(--color-mist);
}

.site-nav__menu small {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, transform 150ms, box-shadow 150ms;
}

.button:hover {
  background: var(--color-hover);
  border-color: var(--color-hover);
  color: var(--color-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button--ghost {
  background: transparent;
  color: var(--color-accent);
}

.button--ghost:hover {
  background: var(--color-hover);
}

.button--teal {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  color: var(--color-ink);
}

.button--teal:hover {
  background: var(--color-dark-text);
  border-color: var(--color-dark-text);
  color: var(--color-ink);
}

.button--on-dark {
  background: transparent;
  border-color: var(--overlay-light-strong);
  color: var(--color-dark-text);
}

.button--on-dark:hover {
  background: var(--color-hover);
  border-color: var(--color-hover);
  color: var(--color-ink);
}

.button--small {
  padding: var(--space-1) var(--space-3);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-7) 0;
}

.section--surface {
  background: var(--color-surface);
}

.section--tight {
  padding: var(--space-6) 0;
}

.section--dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.section--dark p {
  color: var(--color-dark-muted);
}

.section--dark strong {
  color: var(--color-dark-text);
}

.section--dark .eyebrow {
  color: var(--color-highlight);
}

.section__head {
  max-width: 760px;
  margin: 0 0 var(--space-6);
}

.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__head--center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-7);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--color-blue-wash), transparent 70%),
    var(--color-bg);
}

.hero--dark {
  background:
    radial-gradient(50% 60% at 15% 10%, var(--glow-blue), transparent 70%),
    radial-gradient(40% 50% at 90% 30%, var(--glow-teal), transparent 70%),
    var(--color-dark-bg);
  color: var(--color-dark-text);
}

.hero--dark p {
  color: var(--color-dark-muted);
}

.hero--dark .eyebrow {
  color: var(--color-highlight);
}

.hero--left {
  text-align: left;
}

.hero__mark {
  width: 96px;
  margin: 0 auto var(--space-4);
}

.hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--left h1 {
  margin-left: 0;
}

.hero__lede {
  max-width: 56ch;
  margin: 0 auto var(--space-5);
  font-size: var(--text-md);
  line-height: 1.5;
}

.hero--left .hero__lede {
  margin-left: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero--left .hero__actions {
  justify-content: flex-start;
}

.hero__note {
  font-size: var(--text-sm);
  margin: 0;
}


.hero--compact {
  padding-bottom: 0;
}

.hero--compact .pricing-controls {
  margin-bottom: 0;
}

/* ---------- Product demo: tabs and caption ---------- */

.demo {
  text-align: left;
}

.demo__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 auto var(--space-4);
  padding: var(--space-1);
  width: fit-content;
  max-width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.demo__tab {
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.demo__tab[aria-selected="true"] {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.demo__tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-highlight);
}

.demo__tab[aria-selected="true"] .demo__tab-progress.is-running {
  animation: progress var(--demo-duration, 9s) linear forwards;
}

@keyframes progress {
  to { width: 100%; }
}

.demo__caption {
  text-align: center;
  font-size: var(--text-sm);
  margin: var(--space-3) auto 0;
  max-width: 60ch;
}

@keyframes flash {
  from { background: var(--color-brand-teal); }
}

@keyframes pulse {
  50% { opacity: 0.25; }
}

/* Insight card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-sm);
  animation: card-in 450ms var(--ease) both;
  flex: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* Static fallback for the demo on small screens: panel only */

@media (max-width: 860px) {
  .browser__body {
    grid-template-columns: 1fr;
    height: 560px;
  }

  .crm {
    display: none;
  }

  .panel {
    border-left: 0;
  }
}

/* ---------- Logo rows (integrations marquee) ---------- */



.logo-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-6);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, var(--color-ink) 10%, var(--color-ink) 90%, transparent);
  margin-bottom: var(--space-3);
}

.marquee__track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.logo-tile {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text);
  white-space: nowrap;
}

.logo-tile img {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
}

.logo-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.logo-group:first-child {
  grid-column: 1 / -1;
}

.logo-group h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.logo-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-group .logo-tile {
  padding: var(--space-1) var(--space-3);
}

/* ---------- Split layout: copy beside a visual ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.split + .split {
  margin-top: var(--space-7);
}

.split--reverse > :first-child {
  order: 2;
}

.checklist {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--color-teal-wash);
  box-shadow: inset 0 0 0 2px var(--color-highlight);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.38em;
  top: 0.48em;
  width: 0.32em;
  height: 0.58em;
  border: solid var(--color-brand-teal-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.card h3 {
  color: var(--color-heading);
}

.card > :last-child {
  margin-bottom: 0;
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-hover);
}

a.card:hover .card__link {
  color: var(--color-hover);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-blue-wash);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.section--dark .card {
  background: var(--color-dark-surface);
  border-color: var(--overlay-light-strong);
}

.section--dark .card h3 {
  color: var(--color-dark-text);
}

.section--dark .card__icon {
  background: var(--overlay-light);
  color: var(--color-highlight);
}

/* ---------- Pain points ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.pain {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.pain h3 {
  font-size: var(--text-base);
}

.pain p {
  margin: 0;
  font-size: var(--text-sm);
}

.pain__num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-coral);
  margin-bottom: var(--space-2);
  display: block;
}

/* ---------- Steps (how it works) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  opacity: 0.4;
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-highlight);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  position: relative;
}

.section--dark .step::before {
  background: var(--color-dark-bg);
  color: var(--color-highlight);
}

.step h3 {
  font-size: var(--text-lg);
}

.step p {
  font-size: var(--text-base);
}

/* ---------- Numbered features (01–06) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.features--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.feature {
  background: var(--color-surface);
  padding: var(--space-5) var(--space-4);
  transition: background 200ms;
}

.feature:hover {
  background: var(--color-paper);
}

.feature__num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-highlight);
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: var(--space-3);
}

.feature h3 {
  font-size: var(--text-lg);
}

.feature p {
  margin: 0;
}

/* ---------- Keyword search vs Dooglie (candidate identification) ---------- */

.finder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-ui-crm-text);
}

.finder p {
  font-size: var(--text-ui);
  color: inherit;
}

.finder__query svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.finder__query {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  color: var(--color-ui-crm-muted);
  margin-bottom: var(--space-3);
}

.finder__summary {
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.finder__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.result {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  animation: card-in 400ms var(--ease) both;
}

.result:nth-child(2) { animation-delay: 80ms; }
.result:nth-child(3) { animation-delay: 160ms; }
.result:nth-child(4) { animation-delay: 240ms; }

.result__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-blue-wash);
  color: var(--color-brand-blue);
  font-weight: 700;
}

.result__name {
  font-weight: 700;
}

.result__why {
  color: var(--color-ui-crm-muted);
  font-size: var(--text-xs);
}

.result__fit {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--text-ui);
  text-align: right;
}

.result__bar {
  grid-column: 2 / -1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-mist);
  overflow: hidden;
}

.result__bar i {
  display: block;
  height: 100%;
  width: var(--fit, 0%);
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
  border-radius: inherit;
  transition: width 900ms var(--ease);
}

/* ---------- Stats and quotes ---------- */





.quote {
  margin: 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote::before {
  content: "“";
  position: absolute;
  top: -0.15em;
  left: var(--space-4);
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-highlight);
}

.quote blockquote {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--color-text);
}

.quote figcaption {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.quote figcaption strong {
  display: block;
}

/* ---------- Timeline (getting started) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.timeline__when {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--color-highlight);
  margin-bottom: var(--space-2);
}

.timeline h3 {
  font-size: var(--text-base);
}

.timeline p {
  margin: 0;
  font-size: var(--text-sm);
}

.timeline li.timeline__guarantee {
  background: var(--color-dark-bg);
  border-color: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.timeline__guarantee p {
  color: var(--color-dark-muted);
}

/* ---------- Trust bar ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: 1.25;
}

.trust svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--color-highlight);
}

.trust strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
}

.trust span {
  color: var(--color-text-muted);
}

/* ---------- Closing call to action ---------- */

.cta {
  text-align: center;
}

.cta--band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 50% 120%, var(--glow-teal), transparent 70%),
    radial-gradient(60% 80% at 50% -20%, var(--glow-blue), transparent 70%),
    var(--color-dark-bg);
  color: var(--color-dark-text);
}

.cta--band p {
  color: var(--color-dark-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-5);
  font-size: var(--text-md);
}

.cta__mark {
  width: 72px;
  margin: 0 auto var(--space-4);
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Pricing ---------- */

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}

.toggle-group {
  display: inline-flex;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.toggle-group button {
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

.toggle-group button[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.toggle-group__save {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-brand-teal-deep);
  background: var(--color-teal-wash);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-2);
  margin-left: var(--space-1);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  background:
    radial-gradient(70% 50% at 100% 0%, var(--glow-teal), transparent 70%),
    radial-gradient(80% 60% at 0% 100%, var(--glow-blue), transparent 70%),
    var(--color-dark-bg);
  color: var(--color-dark-text);
  border-color: var(--color-dark-bg);
  box-shadow: var(--shadow-lg);
}

.price-card--featured p {
  color: var(--color-dark-muted);
}

.price-card--featured strong {
  color: var(--color-dark-text);
}

.price-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: var(--space-5);
  background: var(--color-highlight);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
}

.price-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-1);
}

.price__amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1;
}

.price__was {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  text-decoration: line-through;
  opacity: 0.55;
}

.price__unit {
  font-size: var(--text-sm);
}

.price-card__then {
  font-size: var(--text-sm);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.price-card--featured .price-card__then {
  border-color: var(--overlay-light-strong);
}

.price-card .checklist {
  flex: 1;
}

.price-card--featured .checklist li::before {
  background: var(--overlay-light);
}

.price-card--featured .checklist li::after {
  border-color: var(--color-highlight);
}

.founding {
  max-width: 960px;
  margin: 0 auto var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-teal-wash);
  border: 1px solid var(--color-highlight);
}

.founding p {
  margin: 0;
  color: var(--color-text);
}

.calculator {
  max-width: 960px;
  margin: var(--space-6) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.calculator h3 {
  margin-bottom: var(--space-2);
}

.calculator label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.calculator__users {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

.calculator input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
  height: 28px;
}

.calculator__scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breakdown {
  margin: 0;
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.breakdown dt {
  color: var(--color-text-muted);
}

.breakdown dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-align: right;
}

.breakdown .breakdown__total {
  border-bottom: 0;
  padding-top: var(--space-3);
}

.breakdown .breakdown__total dt {
  color: var(--color-text);
}

.breakdown .breakdown__total dd {
  font-size: var(--text-lg);
  color: var(--color-accent);
}

.calculator__saving {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--color-teal-wash);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.inclusions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.guarantee {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.guarantee__seal {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  background: var(--color-dark-surface);
  font-family: var(--font-heading);
  line-height: 1;
}

.guarantee__seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed var(--color-highlight);
  animation: spin-slow 40s linear infinite;
}

.guarantee__seal span {
  display: block;
  font-size: var(--text-2xl);
  color: var(--color-highlight);
}

.guarantee__seal small {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-dark-muted);
  margin-top: var(--space-1);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--color-accent);
  transition: transform 200ms;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: var(--space-2) 0 0;
}

/* ---------- Legal and long-form pages ---------- */

.page-head {
  padding: var(--space-6) 0 var(--space-5);
  background:
    radial-gradient(60% 80% at 0% 0%, var(--color-blue-wash), transparent 70%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.page-head p {
  margin: 0;
}

.page-head h1 {
  font-size: var(--text-xl);
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.page-head__meta a {
  font-family: var(--font-heading);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  font-size: var(--text-sm);
  line-height: 1.25;
  max-height: calc(100vh - var(--header-height) - var(--space-6));
  overflow: auto;
}

.toc h2 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: var(--space-2);
}

.toc a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--color-accent);
}

.prose {
  max-width: var(--max-prose);
}

.prose h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.prose h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.prose h3 {
  font-size: var(--text-base);
  margin-top: var(--space-4);
}

.prose p,
.prose li {
  color: var(--color-text);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose .clause {
  display: grid;
  grid-template-columns: 3.2em 1fr;
}

.prose .clause__num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  padding-top: 0.15em;
}

.prose .sub-list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
}

.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: var(--space-2);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-mist);
  font-family: var(--font-heading);
  font-weight: 400;
}

.table-scroll {
  overflow-x: auto;
}

.company-box {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

.company-box p {
  margin: 0;
  color: var(--color-text);
}

.archive-list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.archive-list li {
  border-bottom: 1px solid var(--color-border);
}

.archive-list a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  text-decoration: none;
  font-family: var(--font-heading);
}

.archive-list small {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- About ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.story {
  max-width: 760px;
  margin: 0 auto;
}

.story p {
  color: var(--color-text);
}

.story__sock {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--color-accent);
  border-left: 3px solid var(--color-highlight);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
}

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

.site-footer {
  padding: var(--space-6) 0 var(--space-4);
  background: var(--color-dark-bg);
  color: var(--color-dark-muted);
  font-size: var(--text-sm);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.site-footer__brand .logo-lockup {
  margin-bottom: var(--space-3);
}

.site-footer__brand p {
  color: var(--color-dark-muted);
  max-width: 30ch;
}

.site-footer h2 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-dark-text);
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: var(--space-2);
}

.site-footer a {
  color: var(--color-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-highlight);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--overlay-light-strong);
}

.site-footer__legal p {
  margin: 0;
  color: var(--color-dark-muted);
}

.site-footer__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-dark-muted);
  font: inherit;
  cursor: pointer;
}

.site-footer__link:hover {
  color: var(--color-highlight);
}

/* ---------- Cookie choice banner (js/consent.js) ---------- */

.consent {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.consent__text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.consent__actions {
  display: flex;
  gap: var(--space-2);
}

/* ---------- Scroll reveal (only when the script runs and motion is OK) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .marquee__track > [aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Medium screens ---------- */

@media (max-width: 1020px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-nav__links {
    gap: var(--space-3);
    margin-left: var(--space-2);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .js .site-nav {
    display: none;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: var(--space-4);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0;
  }

  .site-nav__links > li {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) 0;
  }

  .site-nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 var(--space-3);
    min-width: 0;
  }

  .site-nav__menu small {
    display: none;
  }

  .site-nav__actions {
    justify-content: space-between;
    padding-top: var(--space-3);
  }

  .split,
  .price-cards,
  .calculator,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse > :first-child {
    order: 0;
  }

  .split {
    gap: var(--space-5);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .toc {
    position: static;
    max-height: none;
    padding: var(--space-3);
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
  }

  .guarantee {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .demo__tabs {
    flex-wrap: nowrap;
    gap: 0;
  }

  .demo__tab {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-ui);
    white-space: nowrap;
  }

  :root {
    --text-base: 1rem;
    --text-lg: 1.375rem;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .section {
    padding: var(--space-6) 0;
  }

  .hero {
    padding: var(--space-5) 0 var(--space-6);
  }

  .calculator,
.price-card,
.quote {
    padding: var(--space-4);
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose .clause {
    grid-template-columns: 1fr;
  }
}

/* Marquee rows never wrap */
.marquee .logo-strip__row {
  flex-wrap: nowrap;
  gap: var(--space-3);
}

/* ---------- Headings on dark backgrounds stay white ---------- */

.section--dark :is(h1,
h2,
h3,
h4),
.hero--dark :is(h1,
h2,
h3,
h4),
.cta--band :is(h1,
h2,
h3,
h4),
.price-card--featured :is(h1,
h2,
h3,
h4),
.timeline__guarantee :is(h1,
h2,
h3,
h4),
.section--dark .card h3 {
  color: var(--color-dark-text);
}



/* ---------- Home page dog entrance ---------- */

.dog-hero {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto var(--space-5);
}

.dog-hero__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px var(--glow-teal));
}

.dog-hero__ring,
.dog-hero__spark,
.dog-hero__shine {
  position: absolute;
  pointer-events: none;
}

.dog-hero__ring {
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-brand-teal);
  opacity: 0;
}

.dog-hero__spark {
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  box-shadow: 0 0 12px var(--color-brand-teal);
  opacity: 0;
}

.dog-hero__spark:nth-child(odd) {
  background: var(--color-white);
  box-shadow: 0 0 10px var(--color-white);
  width: 7px;
  height: 7px;
  margin: -3.5px;
}

.dog-hero__shine {
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

.dog-hero__shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, var(--overlay-light-strong), transparent);
  transform: skewX(-15deg);
  opacity: 0;
}

.js .dog-hero__img {
  opacity: 0;
}

.js .dog-hero.is-go .dog-hero__img {
  animation:
    dog-drop 1100ms cubic-bezier(0.2, 1.4, 0.4, 1) 250ms both,
    dog-wiggle 700ms ease-in-out 1350ms both,
    dog-float 5s ease-in-out 2200ms infinite;
}

.js .dog-hero.is-go .dog-hero__ring {
  animation: ring-burst 1200ms var(--ease) 700ms both;
}

.js .dog-hero.is-go .dog-hero__ring:nth-of-type(2) {
  animation-delay: 850ms;
}

.js .dog-hero.is-go .dog-hero__ring:nth-of-type(3) {
  animation: ring-pulse 3s ease-out 2200ms infinite;
}

.js .dog-hero.is-go .dog-hero__spark {
  animation: spark 1000ms var(--ease) 700ms both;
}

.js .dog-hero.is-go .dog-hero__shine::after {
  animation: shine 900ms ease-in-out 1500ms both;
}

.dog-hero__spark:nth-of-type(1) { --x: 0px; --y: -120px; }
.dog-hero__spark:nth-of-type(2) { --x: 85px; --y: -85px; }
.dog-hero__spark:nth-of-type(3) { --x: 120px; --y: 0px; }
.dog-hero__spark:nth-of-type(4) { --x: 85px; --y: 85px; }
.dog-hero__spark:nth-of-type(5) { --x: 0px; --y: 120px; }
.dog-hero__spark:nth-of-type(6) { --x: -85px; --y: 85px; }
.dog-hero__spark:nth-of-type(7) { --x: -120px; --y: 0px; }
.dog-hero__spark:nth-of-type(8) { --x: -85px; --y: -85px; }
.dog-hero__spark:nth-of-type(9) { --x: 45px; --y: -140px; }
.dog-hero__spark:nth-of-type(10) { --x: 140px; --y: 45px; }
.dog-hero__spark:nth-of-type(11) { --x: -45px; --y: 140px; }
.dog-hero__spark:nth-of-type(12) { --x: -140px; --y: -45px; }

@keyframes dog-drop {
  0% { opacity: 0; transform: translateY(-160px) scale(0.2) rotate(-30deg); }
  55% { opacity: 1; transform: translateY(10px) scale(1.18) rotate(6deg); }
  75% { transform: translateY(-6px) scale(0.94) rotate(-3deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes dog-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
}

@keyframes dog-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ring-burst {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(2.6); }
}

@keyframes ring-pulse {
  0% { opacity: 0.45; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.8); }
}

@keyframes spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.5), calc(var(--y) * 1.5)) scale(0.3); }
}

@keyframes shine {
  0% { opacity: 1; left: -60%; }
  100% { opacity: 1; left: 130%; }
}

/* ---------- Scroll story: keyword search vs Dooglie ---------- */

.story-scroll {
  position: relative;
}

.js .story-scroll {
  height: calc(var(--story-steps) * 100vh);
}

.story-scroll__sticky {
  padding: var(--space-6) 0;
}

.js .story-scroll__sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story-scroll__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  width: 100%;
}

.story-visual {
  position: relative;
  min-height: 460px;
}

.story-frame {
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-ui-crm-text);
}

.story-frame p {
  font-size: var(--text-ui);
  color: inherit;
  margin: 0;
}

.js .story-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 450ms;
}

.js .story-frame.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.story-frame + .story-frame {
  margin-top: var(--space-4);
}

.js .story-frame + .story-frame {
  margin-top: 0;
}

.story-frame .finder {
  height: auto;
}

.story-frame .result {
  animation: none;
}

.js .story-frame.is-active .result {
  animation: card-in 400ms var(--ease) both;
}

.js .story-frame.is-active .result:nth-child(2) { animation-delay: 120ms; }
.js .story-frame.is-active .result:nth-child(3) { animation-delay: 240ms; }
.js .story-frame.is-active .result:nth-child(4) { animation-delay: 360ms; }

.typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--color-brand-blue);
  max-width: 100%;
}

.js .story-frame.is-active .typed {
  animation: typing 1400ms steps(44) both, caret 700ms step-end infinite;
}

@keyframes typing {
  from { width: 0; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

.cv-stamp {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-red);
  background: var(--color-red-wash);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  white-space: nowrap;
}

.js .story-frame.is-active .cv-stamp {
  animation: stamp 400ms var(--ease) both;
}

.js .story-frame.is-active .pm-ct__row:nth-child(3) .cv-stamp { animation-delay: 300ms; }
.js .story-frame.is-active .pm-ct__row:nth-child(4) .cv-stamp { animation-delay: 700ms; }
.js .story-frame.is-active .pm-ct__row:nth-child(5) .cv-stamp { animation-delay: 1100ms; }
.js .story-frame.is-active .pm-ct__row:nth-child(6) .cv-stamp { animation-delay: 1500ms; }

@keyframes stamp {
  from { opacity: 0; transform: scale(1.8) rotate(-8deg); }
}

.clock-burn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--color-red-wash);
  color: var(--color-red);
  font-weight: 600;
}

.clock-burn strong {
  color: var(--color-red);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-base);
  font-weight: 700;
}

.result--placed {
  border-color: var(--color-brand-teal);
  background: var(--color-teal-wash);
}

.placed-badge {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-green);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
}

.pipeline-steps li {
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--color-mist);
  color: var(--color-ui-crm-muted);
}

.js .story-frame.is-active .pipeline-steps li {
  animation: step-on 400ms var(--ease) both;
}

.js .story-frame.is-active .pipeline-steps li:nth-child(1) { animation-delay: 200ms; }
.js .story-frame.is-active .pipeline-steps li:nth-child(2) { animation-delay: 600ms; }
.js .story-frame.is-active .pipeline-steps li:nth-child(3) { animation-delay: 1000ms; }
.js .story-frame.is-active .pipeline-steps li:nth-child(4) { animation-delay: 1400ms; }

.pipeline-steps li,
.story-frame:not(.is-active) .pipeline-steps li {
  background: var(--color-green-wash);
  color: var(--color-green);
}

@keyframes step-on {
  from { background: var(--color-mist); color: var(--color-ui-crm-muted); transform: scale(0.9); }
}

.win-fee {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.win-fee p {
  color: var(--color-dark-muted);
}

.win-fee strong {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-brand-teal);
  font-weight: 400;
}

.learn-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.learn-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-blue-wash);
}

.learn-list li::before {
  content: "+";
  font-weight: 700;
  color: var(--color-brand-teal-deep);
}

.js .story-frame.is-active .learn-list li {
  animation: card-in 400ms var(--ease) both;
}

.js .story-frame.is-active .learn-list li:nth-child(2) { animation-delay: 250ms; }
.js .story-frame.is-active .learn-list li:nth-child(3) { animation-delay: 500ms; }

.accuracy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-2);
  align-items: center;
  font-weight: 600;
  margin-top: var(--space-2);
}

.accuracy__bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-mist);
  overflow: hidden;
}

.accuracy__bar i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
  transition: width 1200ms var(--ease) 400ms;
}

.story-frame.is-active .accuracy__bar i {
  width: 94%;
}

.story-copy {
  position: relative;
}

.story-step {
  padding-bottom: var(--space-5);
}

.js .story-step {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 24px));
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 450ms;
}

.js .story-step.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.js .story-copy {
  min-height: 420px;
}

.story-step__num {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--color-brand-teal-deep);
  margin-bottom: var(--space-2);
}

.story-progress {
  display: none;
  gap: var(--space-2);
  margin-top: var(--space-4);
  list-style: none;
  padding: 0;
}

.js .story-progress {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
}

.story-progress li {
  position: relative;
  width: 64px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-line);
  overflow: hidden;
}

.story-progress li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.story-progress li.is-on::after {
  box-shadow: 0 0 10px var(--glow-teal);
}

.story-hint {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* ---------- Data stream: everything in, outcomes out ---------- */

.flow {
  margin-bottom: var(--space-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  position: relative;
  min-height: 460px;
}

.flow__col {
  position: relative;
  height: 440px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, var(--color-ink) 15%, var(--color-ink) 85%, transparent);
}

.flow__track {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  animation: flow-up 28s linear infinite;
}

.flow__col--out .flow__track {
  animation-duration: 22s;
}

@keyframes flow-up {
  to { transform: translateY(-50%); }
}

.flow__chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--color-dark-surface);
  border: 1px solid var(--line-dark);
  color: var(--color-dark-text);
  font-size: var(--text-sm);
}

.flow__chip svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--color-brand-teal);
}

.flow__col--in .flow__chip {
  margin-right: 12%;
}

.flow__col--in .flow__chip:nth-child(3n + 2) {
  margin-left: 8%;
  margin-right: 4%;
}

.flow__col--in .flow__chip:nth-child(3n) {
  margin-left: 16%;
  margin-right: 0;
}

.flow__out {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow);
}

.flow__out p {
  margin: 0;
  color: var(--color-slate-muted);
  font-size: var(--text-sm);
}

.flow__out strong {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--color-ink);
  font-size: var(--text-base);
}

.flow__out strong span {
  color: var(--color-brand-teal-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.flow__brain {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.flow__brain img {
  width: 46%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px var(--glow-teal-strong));
}

.flow__brain-label {
  position: absolute;
  bottom: -2.2em;
  left: 0;
  right: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--color-brand-teal);
}

.flow__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--glow-teal-strong);
  animation: spin-slow 18s linear infinite;
}

.flow__orbit:nth-child(2) {
  inset: 14%;
  border-style: solid;
  border-color: var(--line-dark);
  animation-duration: 12s;
  animation-direction: reverse;
}

.flow__orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  box-shadow: 0 0 12px var(--color-brand-teal);
}

.flow__core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  animation: core-pulse 2.4s ease-in-out infinite;
}

@keyframes core-pulse {
  50% { transform: scale(1.25); opacity: 0.6; }
}

.flow__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--color-brand-teal);
}

.flow__wires path {
  fill: none;
  stroke: var(--line-dark);
  stroke-width: 1.5;
}

.flow__wires path.is-live {
  stroke: var(--color-brand-teal);
  stroke-dasharray: 6 14;
  animation: wire 1.4s linear infinite;
  opacity: 0.7;
}

@keyframes wire {
  to { stroke-dashoffset: -40; }
}

.roi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.roi__item {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-dark-surface);
  border: 1px solid var(--line-dark);
}

.roi__item--hero {
  background:
    radial-gradient(80% 80% at 100% 0%, var(--glow-teal), transparent 70%),
    var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.roi__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.1;
  color: var(--color-brand-teal);
  margin-bottom: var(--space-2);
}

.roi__item--hero .roi__value {
  color: var(--color-white);
  font-size: var(--text-2xl);
}

.roi__item p {
  margin: 0;
  font-size: var(--text-sm);
}

.roi__note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}

/* ---------- Time back: by hand vs with Dooglie ---------- */

.race {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.race__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 120px;
  gap: var(--space-3);
  align-items: center;
}

.race__label {
  font-family: var(--font-heading);
  color: var(--color-dark-text);
}

.race__track {
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-dark-surface);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.race__bar {
  display: flex;
  height: 100%;
  width: var(--w, 100%);
  border-radius: inherit;
  background: var(--color-coral);
  transform-origin: left;
}

.race__row--dooglie .race__bar {
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
}

.reveal .race__bar {
  transition: transform 1600ms var(--ease) 300ms;
}

.reveal .race__row--dooglie .race__bar {
  transition-delay: 1100ms;
  transition-duration: 700ms;
}

.js .reveal:not(.is-visible) .race__bar {
  transform: scaleX(0);
}

.race__time {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-dark-text);
  text-align: right;
}

.race__row--dooglie .race__time {
  color: var(--color-brand-teal);
}

.race__tasks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.race__tasks li {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-dark);
  color: var(--color-dark-muted);
  font-size: var(--text-sm);
}

.race__result {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.race__result strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-brand-teal);
}

/* ---------- About: founders picture ---------- */

.founders {
  max-width: 720px;
  margin: 0 auto var(--space-5);
}

.founders img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.founders figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------- New components on small screens ---------- */

@media (max-width: 900px) {
  .story-scroll__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .js .story-scroll__sticky {
    align-items: flex-start;
  }

  .story-copy {
    order: -1;
  }

  .js .story-copy {
    min-height: 260px;
  }

  .story-hint {
    display: none;
  }

  .js .story-progress {
    top: 0;
    bottom: auto;
    width: 100%;
  }

  .story-progress li {
    flex: 1;
    width: auto;
  }

  .js .story-step {
    top: 30px;
    transform: translateY(16px);
  }

  .js .story-step.is-active {
    transform: none;
  }

  .story-visual {
    min-height: 400px;
  }

  .story-copy h2 {
    font-size: var(--text-lg);
  }

  .story-copy p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
  }

  .js .story-progress {
    bottom: -4px;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .flow__col {
    height: 220px;
  }

  .flow__brain {
    width: 180px;
    margin: var(--space-3) auto var(--space-5);
  }

  .flow__wires {
    display: none;
  }

  .roi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .race__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .race__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .roi {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-visual {
    min-height: 380px;
  }

  .story-frame .cv-stamp {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .dog-hero__img {
    opacity: 1;
  }

  .flow__track {
    animation: none;
  }
}

.race__row--dooglie .race__bar {
  width: 10.6%;
}

/* ==========================================================================
   Real product UI. Mirrors the Dooglie extension and Cowtrumpet exactly
   (source: Dooglie onboarding prototype, which matches the extension build).
   Everything is prefixed pm- so it never clashes with the site's own styles.
   ========================================================================== */

/* A fixed-size "stage" scaled to fit its box, like a screenshot that stays sharp */

.pm-scaler {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.pm-stage {
  position: relative;
  width: 1440px;
  height: 820px;
  transform-origin: 0 0;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pm-ink);
  text-align: left;
}

.pm-stage p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.pm-stage strong,
.pm-stage b {
  color: inherit;
  font-weight: 700;
}

.pm-stage--panel {
  width: 400px;
  height: 780px;
}

.pm-stage--panel .pm-chrome,
.pm-stage--panel .pm-ct {
  display: none;
}

[hidden] {
  display: none !important;
}

/* Chrome window bar */

.pm-chrome {
  position: relative;
  z-index: 2;
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 10px;
  background: var(--pm-chrome);
  border-bottom: 1px solid var(--pm-chrome-line);
}

.pm-chrome__tab {
  height: 34px;
  min-width: 200px;
  padding: 0 14px;
  border-radius: 9px 9px 0 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--pm-chrome-text);
}

.pm-chrome__fav {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--pm-ct-nav);
}

.pm-chrome__url {
  margin-left: auto;
  align-self: center;
  height: 28px;
  width: 440px;
  background: var(--color-white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--pm-chrome-text);
}

.pm-chrome__ext {
  align-self: center;
  width: 30px;
  height: 30px;
  margin-left: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pm-chrome-line);
}

.pm-chrome__ext img {
  width: 22px;
  height: 22px;
}

.pm-chrome__avatar {
  align-self: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--pm-ct-user-bg);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pm-body {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

.pm-stage--panel .pm-body {
  top: 0;
}

/* Cowtrumpet, Dooglie's demo CRM */

.pm-ct {
  width: 1040px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--pm-ct-bg);
  color: var(--pm-ct-text);
}

.pm-ct__h {
  height: 66px;
  background: var(--pm-ct-nav);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}

.pm-ct__logo {
  background: var(--color-white);
  border-radius: 7px;
  padding: 3px 10px;
}

.pm-ct__logo img {
  height: 46px;
  width: auto;
}

.pm-ct__badge {
  border: 1px solid var(--pm-ct-badge);
  color: var(--pm-ct-badge-text);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.pm-ct__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pm-ct-bg);
  font-size: 13px;
}

.pm-ct__user b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pm-ct-user-bg);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.pm-ct__help {
  background: var(--pm-ct-help);
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.pm-ct__sub {
  height: 46px;
  background: var(--pm-ct-nav-2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: var(--color-white);
}

.pm-ct__menu {
  border: 1px solid var(--pm-ct-menu-line);
  background: var(--pm-ct-menu-bg);
  color: var(--pm-ct-menu-text);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12px;
}

.pm-ct__ent {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pm-ct__search {
  background: var(--color-white);
  border-radius: 3px;
  height: 28px;
  width: 220px;
  color: var(--pm-ct-faint);
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.pm-ct__add {
  margin-left: auto;
  background: var(--pm-ct-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 3px;
}

.pm-ct__main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.pm-ct__nav {
  width: 170px;
  flex: none;
  background: var(--pm-ct-nav);
  padding: 10px 6px;
  list-style: none;
  margin: 0;
}

.pm-ct__nav li {
  color: var(--pm-ct-nav-text);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  display: flex;
  gap: 9px;
  align-items: center;
}

.pm-ct__nav li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--pm-ct-blue);
}

.pm-ct__nav li:nth-child(2)::before { background: var(--pm-ct-green); }
.pm-ct__nav li:nth-child(3)::before { background: var(--pm-ct-teal); }
.pm-ct__nav li:nth-child(4)::before { background: var(--pm-ct-red); }
.pm-ct__nav li:nth-child(6)::before { background: var(--pm-ct-purple); }

.pm-ct__nav li.is-on {
  background: var(--pm-ct-nav-on);
  color: var(--color-white);
  font-weight: 600;
}

.pm-ct__list {
  flex: 1;
  min-width: 0;
  background: var(--color-white);
}

.pm-ct__tools {
  height: 36px;
  border-bottom: 1px solid var(--pm-ct-line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--pm-ct-muted);
}

.pm-ct__tools span:last-child {
  margin-left: auto;
  color: var(--pm-ct-faint);
}

.pm-ct__row {
  display: grid;
  grid-template-columns: 70px 1.3fr 1.2fr;
  align-items: center;
  height: 44px;
  border-bottom: 1px solid var(--pm-ct-line);
  border-left: 3px solid transparent;
  padding: 0 12px;
  font-size: 12.5px;
}

.pm-ct__row--head {
  height: 34px;
  color: var(--pm-ct-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.pm-ct__row.is-sel {
  background: var(--pm-ct-sel);
  border-left-color: var(--pm-ct-blue);
}

.pm-ct__id {
  color: var(--pm-ct-muted);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}

.pm-ct__nm {
  color: var(--pm-ct-link);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pm-ct__nm span,
.pm-ct__row > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-av {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-white);
  flex: none;
  background: var(--pm-ct-blue);
}

.pm-av--teal { background: var(--pm-ct-teal); }
.pm-av--green { background: var(--pm-ct-green); }
.pm-av--purple { background: var(--pm-ct-purple); }
.pm-av--orange { background: var(--pm-coral); }

.pm-pers {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--pm-ct-pers);
  border: 1px solid var(--pm-ct-pers-line);
  border-radius: 3px;
  padding: 2px 5px;
  font-style: normal;
}

.pm-ct__drawer {
  width: 400px;
  flex: none;
  border-left: 1px solid var(--pm-ct-line);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pm-ct__dh {
  color: var(--color-white);
  background: var(--pm-ct-teal);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.pm-ct__big {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--pm-ct-head-tint);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex: none;
}

.pm-ct__dh h3 {
  margin: 2px 0 4px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.pm-ct__dh p {
  font-size: 12px;
  opacity: 0.92;
}

.pm-ct__tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--pm-ct-line);
  padding: 0 10px;
}

.pm-ct__tabs span {
  padding: 11px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pm-ct-muted);
  border-bottom: 2px solid transparent;
}

.pm-ct__tabs span.is-on {
  color: var(--pm-ct-text);
  border-bottom-color: currentColor;
}

.pm-ct__dbody {
  flex: 1;
  overflow: hidden;
  padding: 4px 16px 16px;
}

.pm-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pm-ct-row-line);
  font-size: 12.5px;
  margin: 0;
}

.pm-kv dt {
  color: var(--pm-ct-muted);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 2px;
}

.pm-kv dd {
  margin: 0;
  color: var(--pm-ct-text);
}

.pm-filled {
  background: var(--pm-cyan-soft);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pm-filled small {
  font-size: 10px;
  color: var(--pm-ct-filled);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pm-ct-note {
  border: 1px solid var(--pm-ct-line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}

.pm-ct-note__meta {
  font-size: 11px;
  color: var(--pm-ct-muted);
  margin-bottom: 4px;
}

.pm-ct-note--new {
  border-color: var(--pm-cyan);
  box-shadow: 0 0 0 3px var(--pm-cyan-soft);
  animation: card-in 500ms var(--ease) both;
}

.pm-ct-note ul {
  margin: 4px 0;
  padding-left: 18px;
}

/* The Dooglie side panel (matches the extension build) */

.pm-panel {
  width: 400px;
  height: 100%;
  flex: none;
  background: var(--pm-frame);
  display: flex;
  flex-direction: column;
}

.pm-panel__top {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--pm-frame-text);
}

.pm-panel__top img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.pm-panel__top span:last-child {
  margin-left: auto;
  letter-spacing: 10px;
}

.pm-panel__in {
  flex: 1;
  margin: 0 6px 6px;
  background: var(--pm-panel);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.pm-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 4px;
}

.pm-panel__logo {
  width: 58px;
  height: auto;
}

.pm-live {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--pm-ct-teal);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 200ms;
}

.pm-live.is-on {
  opacity: 1;
}

.pm-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pm-cyan);
  box-shadow: 0 0 0 3px var(--pm-cyan-soft);
  animation: pulse 1.4s infinite;
}

.pm-clip {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  color: var(--pm-cobalt);
}

.pm-clip svg {
  width: 18px;
  height: 18px;
}

.pm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 14px 0;
  border-bottom: 1px solid var(--pm-tab-line);
}

.pm-tabs span {
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--pm-tab-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.pm-tabs span.is-on {
  color: var(--pm-cobalt);
  border-bottom-color: var(--pm-cobalt);
}

.pm-scroll {
  flex: 1;
  overflow: hidden;
  padding: 12px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Insight card */

.pm-card {
  background: var(--color-white);
  border: 1px solid var(--pm-card-line);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pm-card-text);
  flex: none;
  text-align: left;
}

.pm-card p {
  margin: 4px 0;
  color: inherit;
  font-size: inherit;
}

.pm-scroll .pm-card,
.pm-stack.is-visible .pm-card,
.reveal.is-visible .pm-stack .pm-card {
  animation: card-in 450ms var(--ease) both;
}

.pm-card__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--pm-ink);
}

.pm-card__sub {
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-badge {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--pm-info-bg);
  color: var(--pm-info);
  flex: none;
  text-transform: uppercase;
}

.pm-badge--op { background: var(--pm-op-bg); color: var(--pm-op); }
.pm-badge--risk { background: var(--pm-risk-bg); color: var(--pm-risk); }
.pm-badge--live { background: var(--pm-cyan-soft); color: var(--pm-live); }
.pm-badge--caution { background: var(--pm-caution-bg); color: var(--pm-caution); }

.pm-now {
  background: var(--pm-now);
  border-radius: 8px;
  padding: 7px 9px;
  margin-top: 6px;
}

.pm-now b {
  color: var(--pm-cobalt);
}

.pm-quote {
  border-left: 3px solid var(--pm-cyan);
  padding-left: 8px;
  margin: 6px 0;
  color: var(--pm-quote);
}

.pm-quote small,
.pm-card small {
  color: var(--pm-muted);
  font-size: 12px;
}

.pm-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

.pm-tag--met { background: var(--pm-met-bg); color: var(--pm-ok); }
.pm-tag--part { background: var(--pm-caution-bg); color: var(--pm-caution); }
.pm-tag--miss { background: var(--pm-miss-bg); color: var(--pm-bad); }
.pm-tag--warm { background: var(--pm-cyan-soft); color: var(--pm-live); }

.pm-yes { color: var(--pm-ok); font-weight: 700; }
.pm-no { color: var(--pm-bad); font-weight: 700; }
.pm-act { color: var(--pm-act); font-weight: 700; }

.pm-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.pm-item {
  border: 1px solid var(--pm-card-line);
  border-radius: 10px;
  padding: 9px 12px;
}

.pm-item__t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--pm-ink);
}

.pm-item__s {
  color: var(--pm-muted);
  font-size: 13px;
  margin-top: 1px;
}

.pm-sbar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pm-now);
  font-size: 13.5px;
  font-weight: 700;
}

.pm-sbar span {
  border-radius: 9px;
  padding: 8px 14px;
}

.pm-sbar__more {
  border: 1px solid var(--pm-input-line);
  color: var(--pm-cobalt);
}

.pm-sbar__in {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--pm-input-line);
  font-weight: 400;
  color: var(--pm-muted);
  white-space: nowrap;
  overflow: hidden;
}

.pm-sbar__go {
  background: var(--pm-cobalt);
  color: var(--color-white);
}

/* Meetings tab controls */

.pm-call {
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--pm-tab-line);
}

.pm-helprow {
  display: flex;
  gap: 8px;
}

.pm-helprow span {
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13.5px;
}

.pm-helprow span:first-child {
  flex: 1;
  border: 1px solid var(--pm-input-line);
  background: var(--color-white);
  color: var(--pm-muted);
}

.pm-helprow span:last-child {
  background: var(--pm-cobalt);
  color: var(--color-white);
  font-weight: 700;
}

.pm-cbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pm-cbtns span {
  border-radius: 10px;
  padding: 11px 8px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--pm-cobalt);
  font-size: 14.5px;
  text-align: center;
}

.pm-cbtns .pm-panic {
  background: var(--pm-coral);
}

.pm-tx {
  border: 1px solid var(--pm-card-line);
  background: var(--color-white);
  border-radius: 10px;
  padding: 8px 10px;
  height: 92px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pm-card-text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pm-tx p {
  margin: 0 0 3px;
  animation: card-in 300ms var(--ease) both;
}

.pm-tx--empty {
  justify-content: center;
  color: var(--pm-muted);
}

/* A free-standing stack of real cards, used beside copy */

.pm-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--pm-panel);
  box-shadow: 0 0 0 6px var(--pm-frame), var(--shadow);
}

.pm-stack .pm-card {
  animation: none;
}



.pm-stack .pm-card:nth-child(2) { animation-delay: 150ms; }
.pm-stack .pm-card:nth-child(3) { animation-delay: 300ms; }
.pm-stack .pm-card:nth-child(4) { animation-delay: 450ms; }



/* ---------- "Wisdom": the word that glows ---------- */

.wisdom-word {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, var(--color-brand-blue) 0%, var(--color-brand-teal) 35%, var(--color-brand-blue) 70%, var(--color-brand-teal) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wisdom-shimmer 6s linear infinite;
}

.wisdom-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.08em;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--color-brand-teal), transparent);
  transform: scaleX(0);
  animation: wisdom-underline 3.5s var(--ease) 600ms infinite;
}

.section--dark .wisdom-word,
.cta--band .wisdom-word {
  background-image: linear-gradient(100deg, var(--wisdom-light) 0%, var(--color-white) 30%, var(--color-brand-teal) 55%, var(--wisdom-blue-light) 80%, var(--wisdom-light) 100%);
  filter: drop-shadow(0 0 18px var(--wisdom-glow));
}

.wisdom-word--big {
  animation: wisdom-shimmer 4s linear infinite, wisdom-pulse 3s ease-in-out infinite;
}

@keyframes wisdom-shimmer {
  to { background-position: -250% 0; }
}

@keyframes wisdom-underline {
  0% { transform: scaleX(0); opacity: 1; }
  40% { transform: scaleX(1); opacity: 1; }
  70%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes wisdom-pulse {
  50% { filter: drop-shadow(0 0 34px var(--glow-teal-strong)); }
}

/* ---------- Data → Context → Frame → Wisdom ladder ---------- */

.ladder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0 auto var(--space-3);
  padding: var(--space-5) 0 0;
  max-width: 980px;
  text-align: center;
}

.ladder::before,
.ladder::after {
  content: "";
  position: absolute;
  top: calc(var(--space-5) + 13px);
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-line);
}

.ladder::after {
  background: linear-gradient(90deg, var(--color-line), var(--color-brand-blue), var(--color-brand-teal));
  transform: scaleX(0);
  transform-origin: left;
}

.reveal.is-visible.ladder::after,
.ladder.is-visible::after {
  animation: ladder-fill 2400ms var(--ease) 200ms forwards;
}

@keyframes ladder-fill {
  to { transform: scaleX(1); }
}

.ladder__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ladder__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-line);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
  transition: border-color 300ms, background 300ms, box-shadow 300ms;
}

.ladder__step strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  transition: color 300ms;
}

.ladder__step span {
  font-weight: 600;
  color: var(--color-text);
}

.ladder__step small {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.ladder.is-visible .ladder__dot {
  animation: ladder-dot 500ms var(--ease) both;
}

.ladder.is-visible .ladder__step strong {
  animation: ladder-word 500ms var(--ease) both;
}

.ladder.is-visible .ladder__step:nth-child(1) :is(.ladder__dot,
strong) { animation-delay: 200ms; }
.ladder.is-visible .ladder__step:nth-child(2) :is(.ladder__dot,
strong) { animation-delay: 900ms; }
.ladder.is-visible .ladder__step:nth-child(3) :is(.ladder__dot,
strong) { animation-delay: 1600ms; }
.ladder.is-visible .ladder__step:nth-child(4) :is(.ladder__dot,
strong) { animation-delay: 2400ms; }

@keyframes ladder-dot {
  to {
    border-color: var(--color-brand-blue);
    background: var(--color-blue-wash);
  }
}

@keyframes ladder-word {
  to { color: var(--color-heading); }
}

.ladder.is-visible .ladder__step--wisdom .ladder__dot {
  animation: ladder-wisdom 900ms var(--ease) 2400ms both, wisdom-beacon 2.4s ease-in-out 3300ms infinite;
}

.ladder.is-visible .ladder__step--wisdom strong {
  animation: ladder-wisdom-word 900ms var(--ease) 2400ms both;
}

@keyframes ladder-wisdom {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% {
    transform: scale(1.2);
    border-color: var(--color-brand-teal);
    background: var(--color-brand-teal);
    box-shadow: 0 0 0 8px var(--overlay-teal), 0 0 30px var(--wisdom-glow);
  }
}

@keyframes wisdom-beacon {
  0%, 100% { box-shadow: 0 0 0 8px var(--overlay-teal), 0 0 30px var(--wisdom-glow); }
  50% { box-shadow: 0 0 0 16px transparent, 0 0 44px var(--wisdom-glow); }
}

@keyframes ladder-wisdom-word {
  to {
    color: var(--color-brand-teal-deep);
    transform: scale(1.12);
  }
}

.ladder__step--wisdom strong {
  transform-origin: center bottom;
}

@media (max-width: 760px) {
  .ladder__step strong {
    justify-self: start;
  }

  .ladder__step--wisdom strong {
    transform-origin: left center;
  }
}

.ladder__caption {
  text-align: center;
  margin-bottom: var(--space-6);
}

.ladder__caption strong {
  color: var(--color-heading);
}

/* ---------- Wisdom call to action ---------- */

.cta--wisdom {
  padding: var(--space-7) 0;
}

.cta--wisdom h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  max-width: none;
}

.cta__line {
  display: block;
}

.wisdom-word--big {
  font-size: 1.18em;
  line-height: 1;
  padding: 0 0.04em;
}

.cta__mark-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
}

.cta__mark-wrap img {
  width: 76px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px var(--wisdom-glow));
}

.cta__mark-wrap span {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed var(--glow-teal-strong);
  animation: spin-slow 14s linear infinite;
}

.cta__mark-wrap span::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  box-shadow: 0 0 10px var(--color-brand-teal);
}

.cta__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta__particles i {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  box-shadow: 0 0 8px var(--color-brand-teal);
  opacity: 0;
  animation: rise 9s linear infinite;
}

.cta__particles i:nth-child(1) { left: 6%; animation-delay: 0s; }
.cta__particles i:nth-child(2) { left: 14%; animation-delay: 2.1s; animation-duration: 11s; }
.cta__particles i:nth-child(3) { left: 23%; animation-delay: 4.3s; }
.cta__particles i:nth-child(4) { left: 31%; animation-delay: 1.2s; animation-duration: 12s; }
.cta__particles i:nth-child(5) { left: 42%; animation-delay: 5.5s; }
.cta__particles i:nth-child(6) { left: 51%; animation-delay: 3.1s; animation-duration: 10s; }
.cta__particles i:nth-child(7) { left: 60%; animation-delay: 0.7s; }
.cta__particles i:nth-child(8) { left: 68%; animation-delay: 6.2s; animation-duration: 13s; }
.cta__particles i:nth-child(9) { left: 77%; animation-delay: 2.8s; }
.cta__particles i:nth-child(10) { left: 85%; animation-delay: 4.9s; animation-duration: 11s; }
.cta__particles i:nth-child(11) { left: 93%; animation-delay: 1.8s; }
.cta__particles i:nth-child(odd) { background: var(--color-white); box-shadow: 0 0 6px var(--color-white); width: 3px; height: 3px; }

@keyframes rise {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-520px); }
}

@media (max-width: 760px) {
  .ladder {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    text-align: left;
    padding-top: 0;
  }

  .ladder::before,
.ladder::after {
    top: 14px;
    bottom: 14px;
    left: 13px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .ladder::after {
    transform: scaleY(0);
    transform-origin: top;
  }

  @keyframes ladder-fill {
    to { transform: scaleY(1); }
  }

  .ladder__step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: var(--space-3);
    align-items: center;
  }

  .ladder__dot {
    grid-row: 1 / span 3;
    margin: 0;
  }
}

/* ---------- Dooglie Chat hierarchy: leadership → managers → consultants ---------- */

.hive {
  max-width: 860px;
  margin: 0 auto var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hive__tier {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-dark-surface);
  border: 1px solid var(--line-dark);
  text-align: center;
}

.hive__tier--lead {
  border-color: var(--color-brand-teal);
  box-shadow: 0 0 40px var(--overlay-teal);
}

.hive__role {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--color-brand-teal);
  margin-bottom: var(--space-2);
}

.hive__bubble {
  max-width: 600px;
  margin: 0 auto var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  text-align: left;
  font-size: var(--text-base);
}

.hive__tag {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-dark-muted);
}

.hive__flow {
  position: relative;
  height: 64px;
  display: flex;
  justify-content: center;
  gap: 18%;
}

.hive__flow i {
  position: relative;
  width: 2px;
  height: 100%;
  background: var(--line-dark);
  overflow: hidden;
}

.hive__flow i::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -10px;
  width: 8px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-teal);
  box-shadow: 0 0 10px var(--color-brand-teal);
  animation: hive-drop 1.8s linear infinite;
}

.hive__flow i:nth-child(2)::after { animation-delay: 0.6s; }
.hive__flow i:nth-child(3)::after { animation-delay: 1.2s; }

@keyframes hive-drop {
  to { top: 100%; }
}

.hive__people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  text-align: left;
}

.hive__person {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
}

.hive__person p {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.hive__person strong {
  display: block;
  color: var(--color-ink);
}

.hive__person small {
  color: var(--pm-op);
  font-weight: 600;
}

.hive__person--blocked {
  box-shadow: 0 0 0 2px var(--pm-coral);
}

.hive__person--blocked strong {
  text-decoration: line-through;
  text-decoration-color: var(--pm-coral);
}

.hive__person--blocked small {
  color: var(--pm-risk);
}

/* Sequence: each tier lights up in turn when the block scrolls into view */

.js .hive.reveal .hive__tier,
.js .hive.reveal .hive__flow,
.js .hive.reveal .hive__person {
  opacity: 0;
  transform: translateY(14px);
}

.hive.is-visible .hive__tier,
.hive.is-visible .hive__flow,
.hive.is-visible .hive__person {
  animation: hive-in 600ms var(--ease) forwards;
}

.hive.is-visible > :nth-child(2) { animation-delay: 500ms; }
.hive.is-visible > :nth-child(3) { animation-delay: 900ms; }
.hive.is-visible > :nth-child(4) { animation-delay: 1400ms; }
.hive.is-visible > :nth-child(5) { animation-delay: 1800ms; }
.hive.is-visible .hive__person:nth-child(1) { animation-delay: 2200ms; }
.hive.is-visible .hive__person:nth-child(2) { animation-delay: 2500ms; }
.hive.is-visible .hive__person:nth-child(3) { animation-delay: 2800ms; }

.hive.is-visible .hive__person--blocked {
  animation: hive-in 600ms var(--ease) 2800ms forwards, hive-shake 500ms ease-in-out 3500ms;
}

@keyframes hive-in {
  to { opacity: 1; transform: none; }
}

@keyframes hive-shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.hive__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hive__points h3 {
  font-size: var(--text-md);
}

.hive__points p {
  margin: 0;
}

.friend {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 0% 0%, var(--glow-teal), transparent 70%),
    var(--color-brand-blue);
}

.friend img {
  width: 88px;
  flex: none;
  filter: drop-shadow(0 0 16px var(--wisdom-glow));
}

.friend h3 {
  font-size: var(--text-xl);
}

.friend p {
  margin: 0;
  color: var(--color-white);
  font-size: var(--text-md);
}

@media (max-width: 760px) {
  .hive__people,
.hive__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .friend {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hive.reveal .hive__tier,
.js .hive.reveal .hive__flow,
.js .hive.reveal .hive__person {
    opacity: 1;
    transform: none;
  }
}

/* Mini Cowtrumpet window used in the scroll story */

.pm-mini {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--pm-ct-line);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--pm-ct-text);
}

.pm-mini__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--pm-ct-nav-2);
  color: var(--color-white);
}

.pm-mini__search {
  flex: 1;
  min-width: 0;
  background: var(--color-white);
  color: var(--pm-ct-text);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.pm-mini .pm-ct__row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto;
  gap: 12px;
  height: auto;
  min-height: 52px;
  padding: 8px 12px;
}

.pm-mini__sub {
  color: var(--pm-ct-muted);
  white-space: normal !important;
}

.pm-mini__hits {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--pm-ct-muted);
}

.story-frame .clock-burn {
  margin-top: var(--space-3);
}

@media (max-width: 640px) {
  .pm-mini .pm-ct__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pm-mini__sub {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.js .story-frame.is-active .pm-mini .pm-ct__row,
.js .story-frame.is-active .pm-card {
  animation: card-in 400ms var(--ease) both;
}

.js .story-frame.is-active .pm-ct__row:nth-child(4) { animation-delay: 120ms; }
.js .story-frame.is-active .pm-ct__row:nth-child(5) { animation-delay: 240ms; }
.js .story-frame.is-active .pm-ct__row:nth-child(6) { animation-delay: 360ms; }

.js .story-frame.is-active .pm-item {
  animation: card-in 400ms var(--ease) both;
}

.js .story-frame.is-active .pm-item:nth-child(2) { animation-delay: 150ms; }
.js .story-frame.is-active .pm-item:nth-child(3) { animation-delay: 300ms; }
.js .story-frame.is-active .pm-item:nth-child(4) { animation-delay: 450ms; }

/* ---------- About: our philosophy ---------- */

.manifesto {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--color-dark-text);
  max-width: 30ch;
  margin-bottom: var(--space-6);
}

.philosophy .manifesto {
  color: var(--color-dark-text);
}

.js .manifesto[data-words] span {
  display: inline-block;
  opacity: 0.12;
  transform: translateY(6px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), color 500ms;
  transition-delay: calc(var(--i) * 70ms);
}

.js .manifesto.is-visible span {
  opacity: 1;
  transform: none;
}

.manifesto .is-key {
  color: var(--color-brand-teal);
}

.versus {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.versus__head,
.versus__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.versus__head {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--color-dark-muted);
  background: var(--color-dark-surface);
}

.versus__head span:last-child {
  color: var(--color-brand-teal);
}

.versus__row {
  border-top: 1px solid var(--line-dark);
}

.versus__row span {
  color: var(--color-dark-muted);
  text-decoration: line-through;
  text-decoration-color: var(--pm-coral);
}

.versus__row i {
  font-style: normal;
  text-align: center;
  color: var(--color-brand-teal);
}

.versus__row strong {
  font-weight: 600;
  color: var(--color-dark-text);
}

.js .versus.reveal .versus__row {
  opacity: 0;
  transform: translateX(-16px);
}

.versus.is-visible .versus__row {
  animation: hive-in 500ms var(--ease) forwards;
}

.versus.is-visible .versus__row:nth-child(3) { animation-delay: 150ms; }
.versus.is-visible .versus__row:nth-child(4) { animation-delay: 300ms; }
.versus.is-visible .versus__row:nth-child(5) { animation-delay: 450ms; }
.versus.is-visible .versus__row:nth-child(6) { animation-delay: 600ms; }
.versus.is-visible .versus__row:nth-child(7) { animation-delay: 750ms; }

.pillars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.pillar {
  grid-column: span 2;
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-dark-surface);
  border: 1px solid var(--line-dark);
  transition: transform 250ms var(--ease), border-color 250ms;
}

.pillar:nth-child(n + 4) {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar,
  .pillar:nth-child(n + 4) {
    grid-column: auto;
  }
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-teal);
}

.pillar__num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--line-dark);
}

.pillar .card__icon {
  background: var(--overlay-light);
  color: var(--color-brand-teal);
}

.pillar h3 {
  font-size: var(--text-md);
}

.pillar p {
  margin: 0;
  font-size: var(--text-sm);
}

.js .pillars.reveal .pillar {
  opacity: 0;
  transform: translateY(18px);
}

.pillars.is-visible .pillar {
  animation: hive-in 550ms var(--ease) forwards;
}

.pillars.is-visible .pillar:nth-child(2) { animation-delay: 120ms; }
.pillars.is-visible .pillar:nth-child(3) { animation-delay: 240ms; }
.pillars.is-visible .pillar:nth-child(4) { animation-delay: 360ms; }
.pillars.is-visible .pillar:nth-child(5) { animation-delay: 480ms; }

.compound {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-dark-surface);
  border: 1px solid var(--line-dark);
  margin-bottom: var(--space-6);
  position: relative;
}

.compound h3 {
  font-size: var(--text-lg);
}

.compound__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-dark-muted);
}

.compound__legend li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: var(--space-2);
  vertical-align: middle;
  background: var(--color-dark-muted);
}

.compound__legend .is-dooglie::before {
  background: var(--color-brand-teal);
}

.compound__chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.compound__chart text {
  fill: var(--color-dark-muted);
  font-size: 11px;
  font-family: var(--font-body);
}

/* The chart shrinks on phones, so its labels are drawn larger to stay readable. */
@media (max-width: 760px) {
  .compound__chart text {
    font-size: var(--text-base);
  }
}

.compound__grid {
  fill: none;
  stroke: var(--line-dark);
  stroke-width: 1;
}

.compound__line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
}

.compound__line--tool {
  stroke: var(--color-dark-muted);
  stroke-width: 3;
  stroke-dasharray: 6 8;
}

.compound__line--dooglie {
  stroke: var(--color-brand-teal);
  filter: drop-shadow(0 0 8px var(--wisdom-glow));
}

.js .compound.reveal .compound__line--dooglie {
  stroke-dashoffset: 600;
}

.compound.is-visible .compound__line--dooglie {
  animation: draw-line 2200ms var(--ease) 300ms forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}


.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.promise {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 100% 0%, var(--glow-teal), transparent 70%),
    var(--color-brand-blue);
}

.promise h3 {
  font-size: var(--text-lg);
}

.promise p {
  margin: 0;
  color: var(--color-white);
}

@media (max-width: 760px) {
  .compound,
.promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .versus__head,
.versus__row {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    padding: var(--space-3);
    font-size: var(--text-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .versus.reveal .versus__row,
.js .pillars.reveal .pillar,
.js .manifesto[data-words] span {
    opacity: 1;
    transform: none;
  }

  .js .compound.reveal .compound__line--dooglie {
    stroke-dashoffset: 0;
  }
}

/* ---------- Outcome-led benefits and proof ---------- */

.outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: var(--space-5);
  align-items: start;
}

.outcomes__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.outcomes__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.outcomes__tab:hover {
  color: var(--color-heading);
  background: var(--color-surface);
}

.outcomes__tab[aria-selected="true"] {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-heading);
  box-shadow: var(--shadow-sm);
}

.outcomes__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-wash);
  color: var(--color-accent);
}

.outcomes__icon svg {
  width: 18px;
  height: 18px;
}

.outcomes__tab[aria-selected="true"] .outcomes__icon {
  background: var(--color-teal-wash);
  color: var(--color-brand-teal-deep);
}

.outcomes__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
}

.outcomes__tab.is-running .outcomes__progress {
  animation: progress var(--outcome-step, 7s) linear forwards;
}

.outcome {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  animation: card-in 450ms var(--ease) both;
}

.js .outcomes .outcome[data-off] {
  display: none;
}

.outcome__count {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.outcome h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
}

.outcome__today,
.outcome__with {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
}

.outcome__today {
  background: var(--color-mist);
}

.outcome__with {
  margin-top: var(--space-2);
  background: var(--color-teal-wash);
  border: 1px solid var(--color-highlight);
}

.outcome__today span,
.outcome__with span {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
}

.outcome__today span {
  color: var(--color-red);
}

.outcome__with span {
  color: var(--color-brand-teal-deep);
}

.outcome__today p,
.outcome__with p {
  margin: 0;
}

.outcome__today p {
  color: var(--color-text-muted);
  font-style: italic;
}

.outcome__how {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.outcomes__hint {
  display: none;
}

/* Faster-start calculator */

.faster {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.faster h3 {
  margin: 0 0 var(--space-3);
  color: var(--color-dark-text);
}

.faster p {
  color: var(--color-dark-muted);
}

.faster .eyebrow {
  color: var(--color-highlight);
}

.faster__def {
  padding: var(--space-3);
  border-left: 3px solid var(--color-brand-teal);
  border-radius: var(--radius-sm);
  background: var(--overlay-light);
  font-size: var(--text-sm);
}

.faster__def strong {
  color: var(--color-dark-text);
}

.faster__calc {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-dark-surface);
  border: 1px solid var(--overlay-light-strong);
}

.faster__calc label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark-text);
}

.faster__field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-3);
  border: 1px solid var(--overlay-light-strong);
  border-radius: var(--radius-sm);
  background: var(--overlay-light);
}

.faster__field span {
  color: var(--color-dark-muted);
}

.faster__field input {
  flex: 1;
  min-width: 0;
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--text-md);
  color: var(--color-dark-text);
}

.faster__field:focus-within {
  border-color: var(--color-brand-teal);
  box-shadow: var(--ring-teal);
}

.faster__field input:focus {
  outline: none;
}

.faster__result {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--overlay-light-strong);
}

.faster__result p {
  margin: 0 0 var(--space-2);
}

.faster__result strong {
  color: var(--color-dark-text);
}

.faster__big strong {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-brand-teal) !important;
}

.faster__note {
  margin: 0;
  font-size: var(--text-xs);
}

/* Three layers of control, compact */

.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: none;
}

.layers__step {
  position: relative;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.layers__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-4));
  width: var(--space-4);
  text-align: center;
  transform: translateY(-50%);
  color: var(--color-brand-teal);
}

.layers__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-family: var(--font-heading);
}

.layers__step h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-md);
}

.layers__step p {
  margin: 0;
  color: var(--color-text-muted);
}

.layers__more {
  margin: var(--space-4) 0 0;
  text-align: center;
  font-weight: 600;
}

.hero__crm {
  display: inline-block;
  max-width: 820px;
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--overlay-light-strong);
  border-radius: var(--radius-pill);
  background: var(--overlay-light);
  line-height: 1.5;
}

.hero__crm strong {
  color: inherit;
}

@media (max-width: 760px) {
  .hero__crm {
    border-radius: var(--radius);
    padding: var(--space-3);
  }
}

.demo-section .section__head {
  margin-bottom: var(--space-4);
}

.proof {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-blue-wash);
}

.proof__q {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-heading);
  text-align: center;
}

.proof__q span {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.proof__sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.proof__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.proof__side--with {
  box-shadow: var(--ring-teal);
}

.proof__label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.proof__side--with .proof__label {
  color: var(--color-brand-teal-deep);
}

.proof__bubble {
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--color-mist);
  font-style: italic;
}

.proof__note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Botless call capture ---------- */

.capture {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.capture__tx {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-dark-bg);
  color: var(--color-dark-muted);
  font-size: var(--text-sm);
  box-shadow: var(--shadow);
}

.capture__tx p {
  margin: var(--space-2) 0 0;
}

.capture__tx b {
  color: var(--color-dark-text);
}

.capture__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-brand-teal);
}

.capture__live i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-coral);
  animation: pulse 1.6s ease-in-out infinite;
}

.capture__arrow {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-brand-teal);
}

.capture__note {
  margin: 0;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .outcomes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .outcomes__list {
    display: none;
  }

  .outcomes__panels {
    display: flex;
    gap: var(--space-3);
    margin: 0 calc(-1 * var(--space-3));
    padding: var(--space-1) var(--space-3) var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--space-3);
    -webkit-overflow-scrolling: touch;
  }

  .js .outcomes .outcome[data-off] {
    display: block;
  }

  .outcome {
    flex: 0 0 86%;
    padding: var(--space-4);
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
    animation: none;
  }

  .outcome h3 {
    font-size: var(--text-md);
  }

  .outcomes__hint {
    display: block;
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: right;
  }

  .faster {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .layers {
    grid-template-columns: minmax(0, 1fr);
  }

  .layers__step:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: calc(-1 * var(--space-4));
    right: 50%;
    transform: translateX(50%);
    height: var(--space-4);
    line-height: var(--space-4);
  }

  .proof {
    padding: var(--space-4);
  }

  .proof__sides {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .capture__live i {
    animation: none;
  }
}

/* ---------- Product: outcome lines and what Dooglie replaces ---------- */

.outcome-line {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-brand-teal);
  border-radius: var(--radius-sm);
  background: var(--color-teal-wash);
}

.outcome-line svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: var(--space-1);
  color: var(--color-brand-teal-deep);
}

.replaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
}

.replace {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.replace h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-md);
}

.replace h3::before {
  content: "✕";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-red-wash);
  color: var(--color-red);
  font-size: var(--text-xs);
  vertical-align: middle;
}

.replace--soft h3::before {
  content: "↓";
  background: var(--color-amber-wash);
  color: var(--color-amber);
}

.replace__eg {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.replace p:last-child {
  margin: 0;
}

.replaces__note {
  margin: var(--space-5) auto 0;
  max-width: var(--max-prose);
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--color-heading);
}

/* ---------- Pricing: no-credits answer, guarantee timeline ---------- */

.faq .wisdom-word {
  font-weight: 600;
}

.guarantee-section .guarantee {
  margin-bottom: var(--space-6);
}

.gtimeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  gap: var(--space-4);
  position: relative;
}

.gtimeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
}

.gtimeline__step {
  position: relative;
  padding-top: 64px;
}

.gtimeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--color-dark-surface);
  border: 2px solid var(--color-brand-teal);
  color: var(--color-brand-teal);
}

.gtimeline__dot svg {
  width: 22px;
  height: 22px;
}

.gtimeline__step--trial .gtimeline__dot {
  box-shadow: 0 0 0 6px var(--glow-teal);
}

.gtimeline__when {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-brand-teal);
}

.gtimeline__step h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-dark-text);
}

.gtimeline__step p {
  margin: 0;
  color: var(--color-dark-muted);
}

.gtimeline__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.gtimeline__choice {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--overlay-light-strong);
  background: var(--overlay-light);
  font-size: var(--text-sm);
}

.gtimeline__choice strong {
  display: block;
  color: var(--color-dark-text);
}

.gtimeline__choice--stay {
  border-color: var(--color-brand-teal);
}

.guarantee__small {
  margin: var(--space-5) auto 0;
  max-width: var(--max-prose);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-dark-muted);
}

.guarantee__small a {
  color: var(--color-brand-teal);
}

@media (max-width: 760px) {
  .gtimeline {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .gtimeline::before {
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--color-brand-blue), var(--color-brand-teal));
  }

  .gtimeline__step {
    padding: 0 0 0 64px;
  }
}

/* ---------- Solutions: contract lifecycle, perm funnel, search continuity ---------- */

.lifecycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  position: relative;
}

.lifecycle::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-teal));
}

.lifecycle__step {
  position: relative;
  text-align: center;
}

.lifecycle__dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 2px solid var(--color-brand-teal);
  color: var(--color-accent);
}

.lifecycle__dot svg {
  width: 22px;
  height: 22px;
}

.lifecycle__step h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-md);
}

.lifecycle__step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.funnel__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.funnel__stage:nth-child(2) { margin: 0 var(--space-3); }
.funnel__stage:nth-child(3) { margin: 0 var(--space-5); }
.funnel__stage:nth-child(4) { margin: 0 var(--space-6); }

.funnel__name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--color-heading);
}

.funnel__name i {
  font-style: normal;
  color: var(--color-brand-teal);
}

.funnel__risk,
.funnel__fix {
  margin: 0;
  font-size: var(--text-sm);
}

.funnel__risk {
  color: var(--color-text-muted);
  font-style: italic;
}

.funnel__risk::before {
  content: "Goes wrong: ";
  font-style: normal;
  font-weight: 600;
  color: var(--color-red);
}

.funnel__fix::before {
  content: "Dooglie: ";
  font-weight: 600;
  color: var(--color-brand-teal-deep);
}

.funnel__note {
  margin: var(--space-4) auto 0;
  max-width: var(--max-prose);
  text-align: center;
  color: var(--color-text-muted);
}

.continuity {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.continuity p:last-child {
  font-size: var(--text-md);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .lifecycle {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .lifecycle::before {
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--color-brand-blue), var(--color-brand-teal));
  }

  .lifecycle__step {
    padding-left: 64px;
    text-align: left;
  }

  .lifecycle__dot {
    position: absolute;
    left: 0;
    top: 0;
  }

  .funnel__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .funnel__stage:nth-child(n) {
    margin: 0;
  }
}

/* ---------- Scroll story on phones: stacked, not pinned ---------- */

@media (max-width: 760px) {
  .js .story-scroll.story--stacked {
    height: auto;
  }

  .js .story--stacked .story-scroll__sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
    padding: var(--space-6) 0;
  }

  .story--stacked .story-scroll__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .story--stacked .story-frame,
  .story--stacked .story-step {
    width: 100%;
    min-width: 0;
  }

  .story--stacked .story-visual,
  .story--stacked .story-copy {
    display: contents;
  }

  .js .story--stacked .story-step,
  .js .story--stacked .story-frame {
    position: static;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .js .story--stacked .story-step {
    padding-top: var(--space-5);
  }

  .js .story--stacked .story-step:first-child {
    padding-top: 0;
  }

  .story--stacked .story-hint,
  .js .story--stacked .story-progress {
    display: none;
  }

  .story--stacked [data-story-step="0"] { order: 1; }
  .story--stacked [data-story-frame="0"] { order: 2; }
  .story--stacked [data-story-step="1"] { order: 3; }
  .story--stacked [data-story-frame="1"] { order: 4; }
  .story--stacked [data-story-step="2"] { order: 5; }
  .story--stacked [data-story-frame="2"] { order: 6; }
  .story--stacked [data-story-step="3"] { order: 7; }
  .story--stacked [data-story-frame="3"] { order: 8; }
  .story--stacked [data-story-step="4"] { order: 9; }
  .story--stacked [data-story-frame="4"] { order: 10; }
}

/* ---------- Phone polish: data stream, time back, tap sizes ---------- */

@media (max-width: 760px) {
  .flow {
    margin-bottom: var(--space-6);
    gap: var(--space-2);
  }

  .flow__col--in {
    height: 196px;
  }

  .flow__col--in .flow__chip,
  .flow__col--in .flow__chip:nth-child(3n + 2),
  .flow__col--in .flow__chip:nth-child(3n) {
    margin: 0;
  }

  .flow__brain {
    width: 136px;
    margin: var(--space-3) auto;
  }

  .flow__col--out {
    height: auto;
    mask-image: none;
  }

  .flow__col--out .flow__track {
    animation: none;
  }

  .flow__col--out .flow__out:nth-child(n + 5) {
    display: none;
  }

  .race__result {
    flex-direction: column;
    gap: var(--space-2);
  }

  .race__result strong {
    font-size: var(--text-xl);
  }

  .demo__tab {
    min-height: 40px;
  }

  .faq summary {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
}

/* ---------- Demo: wisdom pointers ----------
   A glowing label and arrow above each line of insight in the demo, so the
   caption underneath has something to point at. */

.pm-wise {
  background-image: linear-gradient(90deg, var(--color-brand-teal), var(--color-brand-blue), var(--color-brand-teal));
  background-size: 200% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  animation: wise-line 4s linear infinite;
}

@keyframes wise-line {
  to { background-position: -200% 100%; }
}

.pm-wise-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 4px 0 3px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  background: var(--color-dark-bg);
  box-shadow: 0 0 0 1px var(--color-brand-teal), 0 0 14px var(--wisdom-glow);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  animation: point-in 500ms var(--ease) both;
}

.pm-wise-tag span {
  color: transparent;
  background-image: linear-gradient(100deg, var(--wisdom-light) 0%, var(--color-white) 30%, var(--color-brand-teal) 55%, var(--wisdom-blue-light) 80%, var(--wisdom-light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wisdom-shimmer 6s linear infinite;
}

.pm-wise-tag i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  animation: point-nudge 1.6s ease-in-out infinite;
}

.pm-wise-tag i::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-brand-teal);
  box-shadow: 0 0 6px var(--wisdom-glow);
}

.pm-wise-tag i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-brand-teal);
  border-bottom: 2px solid var(--color-brand-teal);
  transform: rotate(45deg);
}

@keyframes point-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes point-nudge {
  0%, 100% { translate: 0 -1px; }
  50% { translate: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-wise,
  .pm-wise-tag,
  .pm-wise-tag span,
  .pm-wise-tag i {
    animation: none;
  }
}

/* ---------- Even rows: solution cards and price plans line up exactly ---------- */

.card-grid--solutions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--solutions > .card,
.price-cards > .price-card {
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

.card-grid--solutions > .card {
  grid-row: span 4;
}

.card-grid--solutions .card__link {
  align-self: end;
  padding-top: var(--space-3);
}

.price-cards > .price-card {
  grid-row: span 7;
}

.price-cards > .price-card > .button {
  align-self: end;
}

@media (max-width: 1100px) {
  .card-grid--solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .price-cards > .price-card {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
  }

  .price-cards > .price-card > .button {
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  .card-grid--solutions {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid--solutions > .card {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
  }

  .card-grid--solutions .card__link {
    align-self: flex-start;
  }
}

/* ---------- Support: email button ---------- */

.support-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.support-cta__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.support-cta__button svg {
  width: 20px;
  height: 20px;
}

.support-cta__address {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.support-cta__address strong {
  color: var(--color-text);
  font-weight: 600;
  user-select: all;
}

/* ---------- Dooglie, in a nutshell: definition and short answers ---------- */

.nutshell__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: start;
}

.define {
  margin-top: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand-teal);
  box-shadow: var(--shadow-sm);
}

.define__word {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-heading);
}

.define__word span {
  margin-left: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
}

.define__text {
  margin: var(--space-3) 0 0;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-text);
}

.define__also {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.nutshell__faq {
  margin: 0;
  max-width: none;
}

/* ---------- Phones: no wasted gap under the price controls ---------- */

@media (max-width: 760px) {
  .hero--compact + .section--tight {
    padding-top: 0;
  }
}

/* ---------- Phones on their side: the headline stays above the fold ---------- */

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding-top: var(--space-4);
  }

  .dog-hero {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-3);
  }
}

/* ---------- Touch screens: every control is easy to tap ----------
   At least 44px tall, in portrait and landscape. The price toggles keep
   their look and get a larger invisible tap area instead. */

@media (pointer: coarse) {
  .site-header .logo-lockup,
  .demo__tab {
    min-height: var(--tap-min);
  }

  .page-head__meta a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
  }

  .toggle-group button {
    position: relative;
  }

  .toggle-group button::after {
    content: "";
    position: absolute;
    inset: calc(var(--space-1) * -1.5) 0;
  }

  .faq summary {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .calculator input[type="range"] {
    height: var(--tap-min);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .nutshell__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
}
