/* ==========================================================================
   Growthbound — Brand Kit 1.0
   Visual direction: white canvas, hairline borders, one accent (Growth Blue)
   ========================================================================== */

:root {
  /* Brand */
  --navy: #041945;          /* ink: headings and primary text */
  --blue: #0A57D7;          /* the single accent: primary actions only */
  --blue-700: #0847B0;
  --blue-50: #EDF3FD;
  --electric: #0B99FC;
  --teal: #15C3A8;
  --green: #54EF5C;

  /* Surfaces */
  --paper: #FFFFFF;
  --fog: #F3F4F8;
  --abyss: #020B1F;         /* footer */

  /* Neutrals */
  --mist: #D5D8E0;          /* hairlines */
  --mist-soft: #E6E8EE;
  --steel: #8B8D98;
  --pewter: #6F737B;
  --graphite: #5A5F69;

  --ok: #0E9F6E;
  --error: #D92D20;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-tag: 6px;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-feature-settings: "cv11", "ss01" 0;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0;
}

p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

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

.sprite { position: absolute; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--paper); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.card {
  background: var(--paper);
  border: 1px solid var(--mist-soft);
  border-radius: var(--radius);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--blue-700); color: var(--paper); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-block { width: 100%; }

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.ghost-link .icon { color: var(--blue); width: 20px; height: 20px; transition: transform .15s; }
.ghost-link:hover { color: var(--navy); }
.ghost-link:hover .icon { transform: translateX(2px); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--mist-soft); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand img { width: 148px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mist-soft);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--mist-soft);
}
.site-nav.is-open { display: flex; }

.site-nav ul { display: flex; flex-direction: column; }
.site-nav li a {
  display: block;
  padding: 14px 0;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--mist-soft);
}

.nav-actions { display: flex; flex-direction: column; gap: 12px; }
.nav-link-plain { display: none; }

@media (min-width: 960px) {
  .brand img { width: 164px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 48px;
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav ul { flex-direction: row; gap: 28px; }
  .site-nav li a { padding: 8px 0; border: 0; font-size: .875rem; }
  .site-nav li a:hover { color: var(--blue); }
  .nav-actions { flex-direction: row; align-items: center; gap: 24px; }
  .nav-link-plain { display: inline; font-size: .875rem; font-weight: 500; text-decoration: none; }
}

/* Sections -------------------------------------------------------------- */
.section { padding-block: 80px; }
@media (min-width: 960px) { .section { padding-block: 120px; } }
.section-fog { background: var(--fog); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }
@media (min-width: 960px) {
  .section-head { margin-bottom: 64px; }
  .section-head-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
    max-width: none;
    text-align: left;
  }
  .section-head-split .section-lead { margin-top: 0; }
}
.section-head-split { text-align: left; margin-inline: 0; max-width: none; }

h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--graphite);
}
@media (min-width: 768px) { .section-lead { font-size: 1.25rem; } }

/* Hero ------------------------------------------------------------------ */
.hero { padding-block: 56px 72px; }
@media (min-width: 1024px) { .hero { padding-block: 96px 112px; } }

.hero-layout { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-layout { grid-template-columns: 1fr 1fr; gap: 72px; } }

.kicker {
  font-size: .875rem;
  font-weight: 500;
  color: var(--pewter);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero h1 .accent { color: var(--blue); }

.hero .lead {
  margin-top: 24px;
  max-width: 540px;
  font-size: 1.125rem;
  color: var(--graphite);
}
@media (min-width: 768px) { .hero .lead { font-size: 1.25rem; } }

.capture {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin-top: 36px;
}
.capture input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
  font: 400 1rem/1.4 var(--font-body);
  color: var(--navy);
}
.capture input::placeholder { color: var(--steel); }
.capture input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 87, 215, .15); }
@media (min-width: 480px) { .capture { flex-direction: row; } }

.hero .ghost-link { margin-top: 20px; }

/* Hero product mock (light, flat) */
.hero-visual {
  padding: 24px;
  border-radius: 20px;
  background: var(--fog);
}
@media (min-width: 640px) { .hero-visual { padding: 40px; } }

.mock {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--mist-soft);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mist-soft);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.mock-bar p { margin-left: 8px; font-size: .75rem; color: var(--steel); }

.mock-body { display: grid; gap: 12px; padding: 14px; }
@media (min-width: 480px) { .mock-body { padding: 18px; gap: 14px; } }

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mist-soft);
  border-radius: 10px;
}
.kpi { padding: 12px; }
.kpi + .kpi { border-left: 1px solid var(--mist-soft); }
.kpi p { font-size: .6875rem; color: var(--pewter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; margin: 2px 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.kpi span { font-size: .6875rem; font-weight: 500; color: var(--ok); }
@media (min-width: 480px) {
  .kpi { padding: 14px 16px; }
  .kpi p, .kpi span { font-size: .75rem; }
  .kpi strong { font-size: 1.5rem; }
}

.mock-chart { padding: 12px 14px 8px; border: 1px solid var(--mist-soft); border-radius: 10px; }
.mock-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mock-chart-head p { font-size: .8125rem; font-weight: 600; }
.mock-chart-head span { font-size: .75rem; color: var(--steel); }
.mock-chart svg { width: 100%; height: 100px; overflow: visible; }
.chart-grid { stroke: var(--mist-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-area { fill: rgba(10, 87, 215, .08); }
.chart-dot { fill: var(--blue); stroke: rgba(10, 87, 215, .2); stroke-width: 8; }

.flow { display: flex; align-items: center; }
.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--mist-soft);
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}
.flow-node .icon { width: 14px; height: 14px; color: var(--steel); }
.flow-node-done { border-color: var(--blue); color: var(--blue); }
.flow-node-done .icon { color: var(--blue); stroke-width: 2.5; }
.flow-line { position: relative; flex: 1; min-width: 8px; height: 1px; background: var(--mist); }
@media (max-width: 420px) {
  .flow-node { padding: 6px 7px; font-size: .6875rem; }
  .flow-node .icon { display: none; }
}

/* Band (social-proof style) --------------------------------------------- */
.band { padding-block: 48px; background: var(--fog); }
@media (min-width: 960px) { .band { padding-block: 64px; } }

.band-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--pewter);
}
.band-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  margin-top: 28px;
}
.band-grid li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--steel);
}
.band-grid .icon { width: 22px; height: 22px; }
@media (min-width: 1024px) { .band-grid { flex-wrap: nowrap; justify-content: space-between; gap: 32px; } .band-grid li { font-size: 1.0625rem; white-space: nowrap; } }

/* Feature cards (services) ---------------------------------------------- */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px 28px 0;
  border-radius: var(--radius);
  background: var(--fog);
  overflow: hidden;
}
.feature h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.25; }
.feature-copy p { margin-top: 8px; font-size: .9375rem; color: var(--graphite); }

.feature-link {
  order: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.feature-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.feature-link:hover { color: var(--blue-700); }
.feature:hover .feature-link .icon { transform: translateX(3px); }
.feature:hover h3 { color: var(--blue); }

/* Mini product UIs anchored to the bottom of each card */
.mini {
  position: relative;
  order: 2;
  margin-top: auto;
  padding-top: 28px;
  transform: translateY(12px);
  transition: transform .3s ease;
}
.feature:hover .mini { transform: translateY(4px); }

.mini-card {
  padding: 14px 16px 26px;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  border: 1px solid var(--mist-soft);
  border-bottom: 0;
  font-size: .8125rem;
}
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 6px; color: var(--graphite); }
.mini-row b { font-weight: 600; color: var(--navy); }
.mini-head { padding-top: 0; color: var(--navy); font-weight: 600; }
.mini-head b { font-size: 1rem; }

.pill-ok, .pill-accent {
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  font-style: normal;
  font-size: .75rem;
  font-weight: 600;
}
.pill-ok { background: #E7F7EF; color: var(--ok); }
.pill-accent { background: var(--blue-50); color: var(--blue); }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 8px 0; }
.mini-bars i { flex: 1; border-radius: 3px; background: var(--mist-soft); }
.mini-bars i:nth-child(1) { height: 35%; }
.mini-bars i:nth-child(2) { height: 50%; }
.mini-bars i:nth-child(3) { height: 42%; }
.mini-bars i:nth-child(4) { height: 62%; }
.mini-bars i:nth-child(5) { height: 55%; }
.mini-bars i:nth-child(6) { height: 74%; }
.mini-bars i.hot { height: 100%; background: var(--blue); }

.mini-app { display: inline-flex; align-items: center; gap: 8px; }
.mini-app i { width: 18px; height: 18px; border-radius: 5px; background: var(--navy); }
.mini-progress { height: 6px; margin: 6px 0; border-radius: 6px; background: var(--mist-soft); overflow: hidden; }
.mini-progress i { display: block; width: 72%; height: 100%; border-radius: 6px; background: var(--blue); }

.mini-browser { padding-top: 10px; }
.mini-dots { display: flex; align-items: center; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--mist-soft); }
.mini-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }
.mini-dots span { margin-left: 8px; font-size: .6875rem; color: var(--steel); }
.mini-lines { display: grid; gap: 8px; padding: 16px 0 14px; }
.mini-lines i { display: block; height: 8px; border-radius: 4px; background: var(--mist-soft); }
.mini-lines .l1 { width: 80%; height: 12px; background: var(--navy); }
.mini-lines .l2 { width: 92%; }
.mini-lines .l3 { width: 64%; }
.mini-btn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 600;
}

.mini-toast {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 -10px 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--mist-soft);
  font-size: .75rem;
  font-weight: 600;
}
.mini-toast .icon { width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--blue); color: var(--paper); stroke-width: 3; }
.mini-flow { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.mini-flow span { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--mist-soft); font-size: .6875rem; font-weight: 500; white-space: nowrap; }
.mini-flow span:nth-of-type(2) { border-color: var(--blue); color: var(--blue); }
.mini-flow i { flex: 1; height: 1px; background: var(--mist); }

.mini-chart-wrap { position: relative; margin-top: 8px; }
.mini-chart { width: 100%; height: 72px; }
.mc-area { fill: rgba(10, 87, 215, .1); }
.mc-line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }

.mini-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.mini-swatches i { height: 36px; border-radius: 6px; }
.mini-swatches .s1 { background: var(--navy); }
.mini-swatches .s2 { background: var(--blue); }
.mini-swatches .s3 { background: var(--fog); border: 1px solid var(--mist-soft); }
.mini-swatches .s4 { background: linear-gradient(135deg, var(--blue), var(--electric), var(--teal), var(--green)); }

/* Mini UI motion: plays when the card scrolls into view (.is-visible), reacts on hover */
.mini-bars i { transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), height .5s ease; }
.mini-bars i:nth-child(1) { --d: .05s; }
.mini-bars i:nth-child(2) { --d: .1s; }
.mini-bars i:nth-child(3) { --d: .15s; }
.mini-bars i:nth-child(4) { --d: .2s; }
.mini-bars i:nth-child(5) { --d: .25s; }
.mini-bars i:nth-child(6) { --d: .3s; }
.mini-bars i:nth-child(7) { --d: .35s; }
.js .feature:not(.is-visible) .mini-bars i { transform: scaleY(0); }
.js .feature.is-visible .mini-bars i.hot { animation: hot 2.4s ease-in-out 1.2s infinite; }
.feature:hover .mini-bars i:nth-child(1) { height: 48%; }
.feature:hover .mini-bars i:nth-child(2) { height: 38%; }
.feature:hover .mini-bars i:nth-child(3) { height: 60%; }
.feature:hover .mini-bars i:nth-child(4) { height: 50%; }
.feature:hover .mini-bars i:nth-child(5) { height: 72%; }
.feature:hover .mini-bars i:nth-child(6) { height: 64%; }

.mini-progress i { transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .25s, width .6s ease; }
.js .feature:not(.is-visible) .mini-progress i { transform: scaleX(0); }
.feature:hover .mini-progress i { width: 86%; }

.mini-lines i { transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.mini-lines .l1 { --d: .1s; }
.mini-lines .l2 { --d: .2s; }
.mini-lines .l3 { --d: .3s; }
.js .feature:not(.is-visible) .mini-lines i { transform: scaleX(0); }

.mini-btn-wrap { position: relative; display: inline-block; }
.mini-btn { transition: opacity .4s ease .45s, transform .4s ease .45s; }
.js .feature:not(.is-visible) .mini-btn { opacity: 0; transform: translateY(6px); }
.js .feature.is-visible .mini-btn { animation: press 4.5s 1.6s infinite; }
.mini-cursor {
  position: absolute;
  left: 62%;
  top: 52%;
  width: 16px;
  height: 16px;
  fill: var(--navy);
  stroke: var(--paper);
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}
.js .feature.is-visible .mini-cursor { animation: cursor 4.5s 1.6s infinite; }

.mini-toast { transition: opacity .4s ease .9s, transform .5s cubic-bezier(.2, .9, .3, 1.3) .9s; }
.js .feature:not(.is-visible) .mini-toast { opacity: 0; transform: translateY(8px) scale(.95); }
.mini-flow i { position: relative; }
.mini-flow i::after,
.flow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
}
.js .feature.is-visible .mini-flow i::after { animation: travel 2.4s ease-in-out 1s infinite; }
.js .feature.is-visible .mini-flow i:last-of-type::after { animation-delay: 2.2s; }
.js .feature.is-visible .mini-flow span:nth-of-type(2) { animation: ping 2.4s ease-out 2s infinite; }

.mc-line { transition: stroke-dashoffset 1.4s ease-out .2s; }
.js .feature .mc-line { stroke-dasharray: 420; }
.js .feature:not(.is-visible) .mc-line { stroke-dashoffset: 420; }
.mc-area { transition: opacity .8s ease 1s; }
.js .feature:not(.is-visible) .mc-area { opacity: 0; }
.mc-dot {
  position: absolute;
  right: -4px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transition: opacity .3s ease 1.5s;
}
.js .feature:not(.is-visible) .mc-dot { opacity: 0; }
.js .feature.is-visible .mc-dot { animation: ping 2s ease-out 1.8s infinite; }

.mini-swatches i { transition: transform .5s cubic-bezier(.2, .9, .3, 1.3) var(--d, 0s), opacity .4s ease var(--d, 0s); }
.mini-swatches .s1 { --d: .1s; }
.mini-swatches .s2 { --d: .18s; }
.mini-swatches .s3 { --d: .26s; }
.mini-swatches .s4 { --d: .34s; }
.js .feature:not(.is-visible) .mini-swatches i { opacity: 0; transform: scale(.6); }
.feature:hover .mini-swatches i { transform: translateY(-4px); }

/* Why / compare --------------------------------------------------------- */
.compare { display: grid; gap: 16px; }
@media (min-width: 840px) { .compare { grid-template-columns: 1fr 1fr; } }

.compare-col { padding: 28px; }
@media (min-width: 840px) { .compare-col { padding: 36px; } }
.compare-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 600;
}
.compare-label img { width: 26px; height: auto; }
.compare-col ul { display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; color: var(--graphite); }
.compare-col li .icon { width: 18px; height: 18px; margin-top: 2px; }
.compare-after { border-color: var(--blue); }
.compare-after li { color: var(--navy); }
.icon-muted { color: var(--steel); }
.icon-accent { color: var(--blue); stroke-width: 2.5; }

.pillars { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars li { padding: 28px; }
.pillars h3 { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.03em; }
.pillars p { margin-top: 8px; color: var(--graphite); }

/* Steps ----------------------------------------------------------------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li { padding: 28px; }
.step-num {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  background: var(--blue-50);
  color: var(--blue);
  font-size: .8125rem;
  font-weight: 600;
}
.steps h3 { margin: 40px 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.steps p { color: var(--graphite); font-size: .9375rem; }

/* Products -------------------------------------------------------------- */
.endorsement { font-size: .8125rem; color: var(--pewter); }

/* Screen viewer */
.viewer { margin-top: 32px; }

.viewer-chips {
  display: none;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.viewer-chips::-webkit-scrollbar { display: none; }
.js .viewer-chips { display: flex; }

.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--mist-soft);
  border-radius: 10px;
  background: var(--paper);
  font: 500 .875rem/1.2 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--graphite);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--mist); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.viewer-stage {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--fog);
}
@media (min-width: 768px) { .viewer-stage { padding: 40px 150px 40px 40px; } }
@media (min-width: 1024px) { .viewer-stage { padding-right: 190px; } }

.browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mist-soft);
  border-radius: 10px;
  background: var(--paper);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--mist-soft);
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.browser-bar span { margin-left: 8px; font-size: .75rem; color: var(--steel); }
.browser img { width: 100%; height: auto; transition: opacity .2s; }
.browser img.is-loading { opacity: .3; }

.phone { margin: 0; }
.phone img {
  width: 100%;
  height: auto;
  border: 6px solid var(--navy);
  border-radius: 26px;
  background: var(--paper);
}
.phone-float { display: none; }
@media (min-width: 768px) {
  .phone-float {
    display: block;
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 160px;
  }
}
@media (min-width: 1024px) { .phone-float { width: 200px; right: 32px; } }

.viewer-caption { margin-top: 12px; font-size: .875rem; color: var(--pewter); text-align: center; }

.includes { display: grid; gap: 20px; }
@media (min-width: 640px) { .includes { grid-template-columns: 1fr 1fr; gap: 24px 32px; } }
.includes li { display: flex; gap: 14px; align-items: flex-start; }
.includes .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue);
  stroke-width: 1.85;
}
.includes strong { display: block; font-size: .9375rem; font-weight: 600; }
.includes span { display: block; margin-top: 2px; font-size: .875rem; color: var(--graphite); }

.how { display: grid; gap: 14px; }
.how li { display: flex; gap: 12px; align-items: flex-start; color: var(--graphite); }
.how span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-tag);
  background: var(--blue-50);
  color: var(--blue);
  font-size: .8125rem;
  font-weight: 600;
}

.assurances {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--fog);
}
@media (min-width: 960px) { .assurances { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.assurances li { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--graphite); }
.assurances .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }

.tag {
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  background: var(--blue-50);
  color: var(--blue);
  font-size: .8125rem;
  font-weight: 600;
}

/* Home product cards with carousel ------------------------------------- */
.products-duo { display: grid; gap: 16px; }
@media (min-width: 960px) { .products-duo { grid-template-columns: 1fr 1fr; } }

.pcard { display: flex; flex-direction: column; overflow: hidden; }
.pcard-media { padding: 20px 20px 8px; background: var(--fog); border-top: 1px solid var(--mist-soft); }
@media (min-width: 640px) { .pcard-media { padding: 28px 28px 12px; } }
.pcard-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 28px; }
@media (min-width: 640px) { .pcard-body { padding: 32px; } }

.pcard-logo { width: auto; height: 28px; }
.pcard-body .tag { margin-top: 14px; }
.pcard-tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.pcard-summary { margin-top: 8px; color: var(--graphite); }
.pcard-points { display: grid; gap: 10px; margin: 20px 0 28px; }
.pcard-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.pcard-points .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); stroke-width: 2.5; }
.pcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; }
.pcard-actions .btn .icon { width: 18px; height: 18px; }

.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--mist-soft);
  border-radius: 10px;
  background: var(--paper);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.slide figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  background: rgba(4, 25, 69, .88);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 500;
}

.carousel-dots { display: none; justify-content: center; gap: 2px; margin-top: 8px; }
.js .carousel-dots { display: flex; }
.dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--mist);
  transition: width .25s, background-color .25s;
}
.dot[aria-current="true"]::before { width: 22px; background: var(--navy); }

/* Product pages ---------------------------------------------------------- */
.product-hero { padding-top: 40px; text-align: center; }
@media (min-width: 960px) { .product-hero { padding-top: 64px; } }
.product-hero .container:first-child { max-width: 860px; }

.crumbs { display: flex; justify-content: center; gap: 8px; font-size: .875rem; color: var(--pewter); }
.crumbs a { color: var(--pewter); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.product-hero-logo { width: auto; height: 34px; margin: 32px auto 0; }
.product-hero h1 {
  margin-top: 24px;
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.product-hero .lead { margin: 20px auto 0; max-width: 680px; font-size: 1.125rem; color: var(--graphite); }
@media (min-width: 768px) { .product-hero .lead { font-size: 1.25rem; } }
.product-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 32px; }
.product-hero-viewer { margin-top: 48px; padding-bottom: 80px; text-align: left; }
@media (min-width: 960px) { .product-hero-viewer { margin-top: 64px; padding-bottom: 112px; } }
.product-hero-viewer .viewer-chips { justify-content: flex-start; }
@media (min-width: 960px) { .product-hero-viewer .viewer-chips { justify-content: center; } }

.pp-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .pp-split { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

.pp-phones { display: flex; justify-content: center; gap: 16px; }
.pp-phones .phone { width: min(46%, 220px); }
.pp-phones .phone:nth-child(2) { margin-top: 48px; }

.checks-list { display: grid; gap: 14px; margin-top: 32px; }
.checks-list li { display: flex; gap: 12px; align-items: flex-start; }
.checks-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--blue); stroke-width: 2.5; }

.how-lg { gap: 20px; margin-top: 32px; }
.how-lg li { color: var(--graphite); }
.how-lg strong { display: block; margin-bottom: 2px; color: var(--navy); }
.how-lg span { width: 32px; height: 32px; font-size: .875rem; }

.includes-cards { gap: 16px; }
@media (min-width: 640px) { .includes-cards { gap: 16px; } }
@media (min-width: 1024px) {
  .includes-cards { grid-template-columns: repeat(3, 1fr); }
  .includes-cards li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
.includes-cards li {
  padding: 24px;
  border: 1px solid var(--mist-soft);
  border-radius: var(--radius);
  background: var(--paper);
}

/* FAQ ------------------------------------------------------------------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}

.faq { border-top: 1px solid var(--mist-soft); }
.faq details { border-bottom: 1px solid var(--mist-soft); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary .icon { color: var(--steel); transition: transform .2s, color .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--blue); }
.faq details p { padding: 0 48px 24px 0; color: var(--graphite); }

/* Contact --------------------------------------------------------------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }

.next-steps { display: grid; gap: 14px; margin-top: 36px; }
.next-steps li { display: flex; align-items: center; gap: 14px; color: var(--graphite); }
.next-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-tag);
  background: var(--paper);
  border: 1px solid var(--mist-soft);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
}

.contact-direct { display: grid; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--mist); }
.contact-direct li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-direct .icon { color: var(--steel); }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.form-card { padding: 24px 20px; }
@media (min-width: 640px) { .form-card { padding: 36px; } }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; }
.field label span { color: var(--blue); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
  font: 400 1rem/1.4 var(--font-body);
  color: var(--navy);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238B8D98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field input::placeholder { color: var(--steel); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 87, 215, .15);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .15); }

.field-error { margin-top: 6px; font-size: .8125rem; color: var(--error); }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note { font-size: .8125rem; color: var(--pewter); text-align: center; }

.form-status:empty { display: none; }
.form-status {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
}
.form-status.is-success { background: #E7F7EF; color: #067647; }
.form-status.is-error { background: #FEF3F2; color: #B42318; }

.contact-form button[disabled] { opacity: .7; cursor: progress; }

/* Footer ---------------------------------------------------------------- */
.site-footer {
  padding-top: 64px;
  background: var(--abyss);
  color: var(--mist);
  font-size: .875rem;
}

.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

.footer-brand img { width: 164px; height: auto; margin-bottom: 20px; }
.footer-tagline { font-size: 1rem; font-weight: 600; color: var(--paper); }
.footer-brand p:last-child { margin-top: 4px; color: var(--steel); }

.footer-title { margin-bottom: 14px; font-weight: 600; color: var(--paper); }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  padding-block: 24px;
  font-size: .8125rem;
  color: var(--steel);
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, .1);
}

/* Motion (subtle) ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .3s ease-out forwards; }
.js .chart-dot { opacity: 0; animation: fade .3s 1.8s forwards; }

.js .flow-line::after { animation: travel 3s ease-in-out 2s infinite; }
.js .flow-line:nth-of-type(2)::after { animation-delay: 3s; }
.js .flow-line:nth-of-type(3)::after { animation-delay: 4s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(10, 87, 215, .45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(10, 87, 215, 0); }
}
@keyframes hot { 50% { background-color: #3B82F6; } }
@keyframes press {
  0%, 40%, 52%, 100% { transform: none; background-color: var(--blue); }
  46% { transform: scale(.94); background-color: var(--blue-700); }
}
@keyframes cursor {
  0% { opacity: 0; transform: translate(70px, 34px); }
  12% { opacity: 1; }
  40% { transform: translate(0, 0) scale(1); }
  46% { transform: translate(0, 0) scale(.85); }
  52% { transform: translate(0, 0) scale(1); }
  80% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .chart-dot { opacity: 1; transform: none; }
  .js .chart-line { stroke-dashoffset: 0; }
}
