/* ==========================================================================
   Crisp Credit — shared design system
   Every page links this file. Mobile-first; breakpoints at 640/768/1024px.
   ========================================================================== */

:root {
  --color-brand-100: #E2EAF8;
  --color-brand-300: #7A90B8;
  --color-brand-500: #1AA3FF;
  --color-brand-600: #0077BF;
  --color-brand-800: #005C96;
  --color-accent-cyan: #00D4FF;
  --gradient-brand: linear-gradient(135deg, #1AA3FF, #00D4FF);

  --color-white: #FFFFFF;
  --color-navy-900: #080D26;
  --color-navy-700: #2E3D5A;
  --color-slate-500: #4A5E82;

  --color-success: #1E7E34;
  --color-error: #C62828;

  --bg: var(--color-white);
  --surface: var(--color-white);
  --surface-tint: var(--color-brand-100);
  --text-body: var(--color-navy-900);
  --text-heading: var(--color-navy-900);
  --text-secondary: var(--color-navy-700);
  --text-muted: var(--color-slate-500);
  --link: var(--color-brand-600);
  --border-input: var(--color-brand-300);
  --divider: var(--color-brand-100);
  --btn-primary-bg: var(--color-brand-600);
  --btn-primary-text: var(--color-white);
  --btn-primary-hover: var(--color-brand-800);
  --focus-ring: var(--color-brand-600);

  --font-base: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-display: clamp(1.75rem, 5.5vw, 2.625rem);
  --text-display-lg: clamp(2.5rem, 5.5vw, 3.5rem);
  --text-display-xl: clamp(2.75rem, 7vw, 4.5rem);

  --space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 40px; --space-xl: 64px;
  --space-2xl: 96px; --space-3xl: 128px; --space-4xl: 160px;
  --section-y: clamp(64px, 9vw, 128px);
  --section-y-hero: clamp(80px, 12vw, 160px);

  --radius-md: 8px; --radius-lg: 16px; --radius-xl: 24px; --radius-btn: 10px; --radius-full: 9999px;
  --shadow-card: 0 1px 3px rgb(8 13 38 / .04), 0 12px 28px -14px rgb(8 13 38 / .10);

  --container: 1120px; --container-prose: 680px;
  --page-pad: clamp(20px, 5vw, 48px);
  --grid-gutter: clamp(16px, 2.2vw, 24px);

  /* ─── Motion (Brand System v2) ──────────────────────────── */
  --motion-fast: 150ms;
  --motion-base: 300ms;
  --motion-slow: 600ms;
  --motion-ambient: 10s;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* ─── Brand System v3.1 — visual-language addendum ──────── */
  /* Accent/glow color, not a button-fill color: white text on this measures
     3.0:1, below the 4.5:1 AA floor. Use for text-on-dark, glow shadows,
     and decorative gradients — never as a solid interactive-button background. */
  --color-accent-glow: #0099FF;
  --text-secondary-on-dark: #7A9DBF;
  --shadow-btn-glow: 0 4px 24px rgba(0, 153, 255, 0.38);
}

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

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

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--btn-primary-hover); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.container-prose { max-width: calc(var(--container-prose) + 2 * var(--page-pad)); }

.section { padding-block: var(--section-y); }
.section-hero { padding-block: var(--section-y-hero); }
.section-tint { background: var(--surface-tint); }

/* Brand System v3.1 — full-bleed dark band, used sparingly (hero + trust
   strip only on Home). Founder feedback 2026-07-17: the v3 off-white band
   introduced a warm neutral that clashed against the site's cool blue/white/
   navy palette and read as visually inconsistent — retired. Three tones
   total, including white: white (primary), --surface-tint (light cool blue,
   sparing), and this dark navy band — not a fourth. */
.section-dark {
  background: var(--color-navy-900);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }
.section-dark p { color: var(--text-secondary-on-dark); }
.section-dark .link-arrow { color: var(--color-brand-500); }
.section-dark .link-arrow:hover { color: var(--color-accent-glow); }
.section-dark .pill { background: rgba(255, 255, 255, 0.12); color: var(--color-white); }

/* Brand System v3.1 — dark-band list support, added 2026-07-20 during the
   propagation pass. Home's dark band carries no lists, so this gap never
   surfaced there: list text inherits --text-body, which resolves to
   --color-navy-900 — the exact background of this band, i.e. invisible, not
   merely low-contrast. Every interior page leads with lists, so banding any
   of them dark requires these rules first.

   Specificity is deliberate, not defensive: the base rules these override
   (`.container-prose ul:not(.checklist) li`, `.checklist li span`) carry
   :not()-inflated specificity, so a plain `.section-dark li` would silently
   lose. Keep the descendant chains if you edit these. */
.section-dark .container-prose ul:not(.checklist) li { color: var(--text-secondary-on-dark); }
.section-dark .container-prose ul:not(.checklist) li::marker { color: var(--color-brand-500); }
.section-dark .checklist li span { color: var(--text-secondary-on-dark); }
.section-dark .checklist li svg { color: var(--color-brand-500); }
.section-dark .muted { color: var(--text-secondary-on-dark); }
.section-dark strong { color: var(--color-white); }

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

/* Brand System v3.1 — single typeface throughout (DM Sans, var(--font-base),
   inherited from body). Founder feedback 2026-07-17: a second display face
   (DM Serif Display) read as a mismatched font next to the body copy it sat
   beside. Hierarchy now comes from weight and letter-spacing only — heavier
   and tighter as size increases — not a typeface switch, the way most
   product sites handle a bold display moment. */
.display-lg,
.display,
.h2 {
  font-weight: 700;
}

.display-lg {
  font-size: var(--text-display-lg);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.display {
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2 { font-size: var(--text-2xl); letter-spacing: -0.015em; }

.lead {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-btn-glow);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Arrow text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-weight: 500;
  color: var(--link);
}
.link-arrow:hover { color: var(--btn-primary-hover); }
.link-arrow .arrow { transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

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

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg) var(--space-md);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgb(8 13 38 / .06), 0 24px 48px -16px rgb(8 13 38 / .16);
}

.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.card p { color: var(--text-secondary); }

/* Solid brand chip for numbers & icons — never gradient */
.chip-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-brand-600);
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  flex: none;
}
.chip-glyph svg { width: 24px; height: 24px; }

/* Pill chips (trust strip) — on the tint band they sit on white for contrast */
.pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}
@media (min-width: 640px) {
  .pill-row {
    display: flex;
    flex-wrap: wrap;
  }
}

.section-tint .pill { background: var(--color-white); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--color-brand-100);
  color: var(--color-brand-800);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sticky nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--divider);
}

.site-nav .nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo { display: inline-flex; align-items: center; gap: 11px; }
.nav-logo img { height: 40px; width: auto; }
/* Horizontal lockup: icon fills the bar, wordmark set beside it (both from brand SVGs) */
.nav-logo .brand-icon { height: 46px; }
.nav-logo .brand-word { height: 21px; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 4px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-brand-600); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--color-brand-600); }

.nav-cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  color: var(--text-heading);
}

/* Full-screen mobile sheet */
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-white);
  display: none;
  flex-direction: column;
  padding: var(--space-sm) var(--page-pad) var(--space-lg);
}
.nav-sheet.is-open { display: flex; }

.nav-sheet-head {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.nav-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  color: var(--text-heading);
}

.nav-sheet-links {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.nav-sheet-links a {
  display: block;
  padding: 12px 0;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-heading);
}
.nav-sheet-links a:hover { color: var(--color-brand-600); text-decoration: none; }

.nav-sheet .btn { margin-top: var(--space-lg); }

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

@media (min-width: 1024px) and (max-width: 1119px) {
  .nav-links { gap: var(--space-sm); }
  .nav-cta { padding-inline: 18px; }
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
}

.grid-steps {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-steps { grid-template-columns: repeat(3, 1fr); }
}

/* Asymmetric bento: pillar 1 tall left; 2 & 3 stacked right */
.grid-bento {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .grid-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .grid-bento .bento-tall { grid-row: 1 / 3; }
}

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

.site-footer { padding-block: var(--space-xl); }

/* Brand System v3.1 — the mark was previously nav-only; this closes that gap. */
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); }
.footer-logo img { height: 36px; width: auto; }
.footer-logo .brand-icon { height: 40px; }
.footer-logo .brand-word { height: 19px; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-links a { color: var(--text-muted); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--color-brand-600); }

@media (min-width: 640px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

.footer-note {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.footer-contact {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.footer-contact li { display: flex; align-items: center; gap: 6px; }
.footer-contact svg { flex-shrink: 0; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--color-brand-600); }

/* --------------------------------------------------------------------------
   Facet system (Brand System v2) — decoration only, never behind text/icons.
   Angular gradient shard shapes echoing the logo's ribbon-fold facets.
   Brand System v3.1: recedes to a backdrop layer behind .phone-mockup —
   absolutely positioned within .hero-visual rather than occupying its own
   grid column, so it reads as atmosphere, not the subject. -------------- */

.hero-visual {
  position: relative;
}
@media (min-width: 1024px) {
  .hero-visual {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.facet-field {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
@media (min-width: 1024px) {
  .facet-field { display: block; }
}

.facet-field svg { width: 100%; height: 100%; overflow: visible; }

.facet-shape {
  transform-box: fill-box;
  transform-origin: center;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .facet-shape--a { animation: facetDriftA var(--motion-ambient) var(--ease-standard) infinite; }
  .facet-shape--b { animation: facetDriftB calc(var(--motion-ambient) * 1.3) var(--ease-standard) infinite; }
  .facet-shape--c { animation: facetDriftC calc(var(--motion-ambient) * 0.85) var(--ease-standard) infinite; }
}

@keyframes facetDriftA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(6px, -8px) rotate(2deg); }
}
@keyframes facetDriftB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-8px, 5px) rotate(-1.5deg); }
}
@keyframes facetDriftC {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(4px, 6px) rotate(1deg); }
}

/* Cursor-reactive parallax (desktop enhancement) — JS toggles this class and
   sets --px/--py; CSS does the actual transform so it stays cheap. */
.facet-field.is-parallax .facet-shape--a { transform: translate(calc(var(--px, 0) * 0.6px), calc(var(--py, 0) * 0.6px)); }
.facet-field.is-parallax .facet-shape--b { transform: translate(calc(var(--px, 0) * -0.4px), calc(var(--py, 0) * 0.4px)); }
.facet-field.is-parallax .facet-shape--c { transform: translate(calc(var(--px, 0) * 0.3px), calc(var(--py, 0) * -0.5px)); }
.facet-field.is-parallax .facet-shape { animation: none; transition: transform var(--motion-fast) var(--ease-out); }

/* Thin faceted-edge divider — used sparingly (texture, not a section-rhythm rule) */
.facet-divider {
  display: block;
  width: 100%;
  height: 6px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero chat mockup (Brand System v3.1) — the actual hero subject. Shows a
   worker's WhatsApp-style conversation with Crisp (own brand chrome, not a
   WhatsApp UI reproduction — WhatsApp's own interface is platform-controlled
   and out of this system's scope). Visible at every breakpoint, unlike the
   facet backdrop which stays desktop-only. Copy is illustrative, pending the
   deferred content/compliance pass — not final marketing claims.
   -------------------------------------------------------------------------- */

.phone-mockup {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  margin-inline: auto;
  border-radius: 32px;
  background: var(--color-navy-900);
  padding: 10px;
  box-shadow: 0 24px 64px -24px rgb(8 13 38 / .45), 0 4px 16px -4px rgb(8 13 38 / .2);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--btn-primary-bg);
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--text-sm);
  flex: none;
}

.phone-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-chat-avatar img { width: 20px; height: 20px; display: block; }

.phone-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-tint);
  overflow-y: auto;
  scrollbar-width: none; /* hide scrollbar — a real chat screen has none */
}
.phone-chat-body::-webkit-scrollbar { display: none; }

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.chat-bubble.in {
  align-self: flex-start;
  background: var(--color-white);
  color: var(--text-body);
  border-end-start-radius: 4px;
}
.chat-bubble.out {
  align-self: flex-end;
  background: var(--btn-primary-bg);
  color: var(--color-white);
  border-end-end-radius: 4px;
}

.typing-dots {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border-end-start-radius: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-300);
}
@media (prefers-reduced-motion: no-preference) {
  .typing-dots span { animation: typingBounce 1.2s ease-in-out infinite; }
  .typing-dots span:nth-child(2) { animation-delay: .15s; }
  .typing-dots span:nth-child(3) { animation-delay: .3s; }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Ambient glow (Facet + Flow addition) — soft pulsing radial wash behind the
   hero, decoration only. Desktop only, same breakpoint as .facet-field.
   -------------------------------------------------------------------------- */

.section-hero { position: relative; }

.ambient-glow {
  display: none;
  position: absolute;
  top: -160px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  /* Brand System v3 — recolored to the new accent-glow hue (was brand-500). */
  background: radial-gradient(circle, rgba(0, 153, 255, 0.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}
@media (min-width: 1024px) {
  .ambient-glow { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .ambient-glow { animation: ambientGlow 7s var(--ease-standard) infinite; }
}
@keyframes ambientGlow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Logo watermark (Brand System v3.1) — one deliberate, oversized-but-subtle
   placement of the icon mark alone (assets/crisp-credit-icon.svg, used
   directly — no wordmark to crop out). Used once, on the closing CTA only —
   not a pattern to repeat on every section.
   Same position:relative / z-index:-1 approach as .ambient-glow above, so it
   sits behind content without needing extra positioning context.
   -------------------------------------------------------------------------- */

.cta-watermark {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
@media (min-width: 1024px) {
  .cta-watermark { display: block; }
}

.cta-watermark-crop {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 560px;
  aspect-ratio: 242 / 266; /* icon mark's own ratio — source is now the icon SVG directly, no wordmark to crop */
  overflow: hidden;
  opacity: 0.05;
}
.cta-watermark-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Hero staggered reveal (Facet + Flow addition) — load-in only, plays once,
   no scroll trigger needed since the hero is always in view on page load.
   -------------------------------------------------------------------------- */

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: heroReveal 0.85s var(--ease-out) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.20s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.35s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.50s; }
  .facet-field { animation: heroReveal 1s var(--ease-out) 0.25s both; }
  .phone-mockup { animation: heroReveal 1s var(--ease-out) 0.4s both; }
}

/* --------------------------------------------------------------------------
   Scroll reveal (Facet + Flow addition) — progressive enhancement only.
   .js-reveal is added by a head-inline script ONLY when JS + IntersectionObserver
   + no reduced-motion are all present, so content is never hidden without a
   guaranteed reveal mechanism (no JS / reduced motion / no IO = always visible).
   -------------------------------------------------------------------------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1 !important; transform: none !important; }

.reveal-d1 { transition-delay: 0s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Flow line (Brand System v2) — signature moment, Home mechanism steps only.
   SVG path drawn behind the 3 step cards; self-draws in on scroll via JS
   toggling .is-drawn (stroke-dashoffset transition). Static/instant under
   reduced motion (handled by the global override above).
   -------------------------------------------------------------------------- */

.flow-line-field {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .flow-line-field { display: block; }
}

.flow-line-field .flow-path {
  fill: none;
  stroke: url(#flow-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset var(--motion-slow) var(--ease-out);
}
.flow-line-field.is-drawn .flow-path { stroke-dashoffset: 0; }

.grid-steps { position: relative; }
.grid-steps .card { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Forms (shared by later pages)
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--text-heading); }

/* Optional-field marker (added 2026-07-20). The conversion form deliberately
   carries only three required fields; everything else must read as skippable
   at a glance. A field that looks required reintroduces exactly the friction
   the minimal-form decision removed, so this is set lighter and muted rather
   than matching the label's weight. */
.field-optional { font-weight: 400; color: var(--text-muted); }

.input,
textarea.input,
select.input {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--color-white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  min-height: 48px;
  padding: 10px 14px;
}
.input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }

.field-error { color: var(--color-error); font-size: var(--text-sm); }
.field-success { color: var(--color-success); font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.stack-xs > * + * { margin-top: var(--space-xs); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.stack-md > * + * { margin-top: var(--space-md); }
.stack-lg > * + * { margin-top: var(--space-lg); }

.center { text-align: center; }

.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;
}

/* --------------------------------------------------------------------------
   How It Works additions — folded in from how-it-works.html (2026-07-07)
   Rewritten to use the canonical tokens above (not the regenerated fork).
   -------------------------------------------------------------------------- */

/* Tinted reassurance card — .card on the brand-100 surface, no shadow */
.card-tint {
  background: var(--surface-tint);
  box-shadow: none;
}

/* Reassurance checklist — brand-blue tick marker, never warning styling */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.checklist li svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-brand-600);
}
.checklist li span { color: var(--text-body); }

/* Plain bulleted body lists (disc marker in brand blue) */
.container-prose ul:not(.checklist) { padding-left: 1.25em; }
.container-prose ul:not(.checklist) li { color: var(--text-body); }
.container-prose ul:not(.checklist) li::marker { color: var(--color-brand-600); }

/* --------------------------------------------------------------------------
   Business Case additions — folded in from business-case.html (2026-07-07)
   -------------------------------------------------------------------------- */

/* Hidden-costs bento of 5 — 2-up top / 3-up bottom on desktop, 2-col at 768, 1-col mobile */
.grid-bento-5 {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--grid-gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-bento-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-bento-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-bento-5 > :nth-child(1) { grid-column: span 3; }
  .grid-bento-5 > :nth-child(2) { grid-column: span 3; }
  .grid-bento-5 > :nth-child(3) { grid-column: span 2; }
  .grid-bento-5 > :nth-child(4) { grid-column: span 2; }
  .grid-bento-5 > :nth-child(5) { grid-column: span 2; }
}

/* --------------------------------------------------------------------------
   Components missing rules — added to close verifier failures.
   Minimal implementations using existing tokens; due a design pass.
   -------------------------------------------------------------------------- */

.btn-secondary {
  background: transparent;
  color: var(--color-brand-600);
  box-shadow: inset 0 0 0 1.5px var(--color-brand-300);
}
.btn-secondary:hover {
  background: var(--surface-tint);
  color: var(--color-brand-800);
  box-shadow: inset 0 0 0 1.5px var(--color-brand-500);
}
.btn-secondary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.grid-2up {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2up { grid-template-columns: 1fr 1fr; }
}

.faq {
  border-top: 1px solid var(--divider);
}
.faq details {
  border-bottom: 1px solid var(--divider);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.faq details > :not(summary) {
  padding-bottom: var(--space-md);
}
.faq-chevron {
  flex: 0 0 auto;
  color: var(--color-brand-500);
  transition: transform .18s ease;
}
.faq details[open] .faq-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .faq-chevron { transition: none; }
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-brand-500);
}

.form-success {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  color: var(--color-success);
  font-size: var(--text-sm);
}
.form-success[hidden] { display: none; }
