/* Ace Prospection — shared styles */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-bg-dark: #10192b;
  --color-text: #171b21;
  --color-text-muted: #4b5563;
  --color-text-inverse: #eef1f6;
  --color-accent: #1d4e89;
  --color-accent-dark: #133a67;
  --color-accent-tint: #e8eef7;
  --color-border: #e3e6ea;
  --radius-sm: 6px;
  --radius-md: 10px;
  --max-width: 1120px;
  --shadow-sm: 0 1px 2px rgba(16, 25, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 25, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.logo .mark {
  font-size: 1.35rem;
  line-height: 1;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-tint);
}

.nav-cta,
.nav-cta.active {
  color: #fff;
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
  margin-left: 4px;
}

.nav-cta:hover {
  color: #fff;
  background: var(--color-accent-dark);
}

/* Always-visible mobile CTA — on small screens the nav (and its CTA button)
   is hidden behind the hamburger menu, so scrolling would otherwise leave
   visitors with no visible path to convert until they tap the menu open. */
.mobile-cta-float {
  display: none;
}

@media (max-width: 640px) {
  .mobile-cta-float {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    text-align: center;
    text-decoration: none;
    background: var(--color-accent);
    color: #fff;
    font-weight: 650;
    font-size: 0.98rem;
    padding: 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

section {
  padding: 88px 0;
}

section.tight {
  padding: 64px 0;
}

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

.highlight {
  font-weight: 700;
  color: var(--color-accent);
}

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

.eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 6px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}


h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.lede {
  font-size: 1.15rem;
  max-width: 640px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

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

.feature-list-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text);
}

.feature-list-label {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--color-text);
  margin: 0 0 16px;
}

.feature-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-check svg {
  width: 12px;
  height: 12px;
}

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

.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  background-color: var(--color-bg-alt);
}

.hero-demo {
  max-width: 900px;
  margin: 40px auto 0;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  line-height: 0;
}

.hero-demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  /* clip-path instead of the parent's overflow:hidden + border-radius --
     that combo is a known trigger for Chrome mis-recompositing an
     autoplaying video's colors on scroll. clip-path avoids that codepath. */
  clip-path: inset(0 round 14px);
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.hero-inner h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero-inner h1 {
    white-space: normal;
  }
}

.hero-tag {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps.steps-compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.steps.steps-compact .step-card {
  padding: 26px 18px;
}

.steps.steps-compact .step-number {
  width: 30px;
  height: 30px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.steps.steps-compact h3 {
  font-size: 1rem;
}

.steps.steps-compact p {
  font-size: 0.88rem;
}

.step-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.step-card h3 {
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Case study ---------- */

.case-header {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

.case-header h2 {
  margin-bottom: 4px;
}

.case-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.case-context-highlight {
  font-size: 0.98rem;
  color: var(--color-text);
  background: var(--color-accent-tint);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.case-context-highlight strong {
  color: var(--color-accent);
}

.impact-block {
  background: transparent;
  padding: 0;
  margin-bottom: 40px;
}

.impact-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.impact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: 0 1px 2px rgba(16, 25, 43, 0.04);
}

.impact-card .impact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  margin-bottom: 12px;
}

.impact-card .impact-icon svg {
  width: 18px;
  height: 18px;
}

.impact-card-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.impact-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.impact-card-delta {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
}

.impact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

.quote-block {
  border-left: 3px solid var(--color-accent);
  padding: 4px 0 4px 20px;
  margin: 0 0 48px;
  font-style: italic;
  color: var(--color-text-muted);
}

.quote-block footer {
  margin-top: 10px;
  font-weight: 600;
  font-style: normal;
  color: var(--color-text-muted);
}

/* ---------- Tagged demo (annotated hero video reused as case-study walkthrough) ---------- */

.tagged-demo-title {
  max-width: 1080px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--color-text);
}

.tagged-demo-check {
  flex: none;
  display: inline-flex;
  margin-left: 6px;
  vertical-align: middle;
}

.tagged-demo-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tagged-demo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.08);
  line-height: 0;
}

/* Spotlight — dims everything outside the highlighted region while paused.
   Clipping lives on a separate plain div, not the <video> itself, so it
   doesn't reintroduce the Chrome scroll/repaint bug the video's own
   clip-path fix was for. */
.demo-spotlight-clip {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
}

.demo-spotlight-cutout {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.demo-spotlight-cutout.visible {
  opacity: 1;
}

/* Section jump buttons, docked to the right of the video */
.demo-nav-col {
  flex: 0 0 172px;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.demo-nav-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.65;
  margin-bottom: 10px;
  padding-left: 2px;
}

.demo-nav-brand .mark {
  font-size: 0.85rem;
}

.demo-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-nav-btn {
  text-align: left;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.demo-nav-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.demo-nav-btn.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
  font-weight: 650;
}

@media (max-width: 760px) {
  .tagged-demo-wrap {
    flex-direction: column;
  }
  .demo-nav-col {
    flex: 0 0 auto;
    width: 100%;
  }
  .demo-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .demo-nav-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

.tagged-demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  clip-path: inset(0 round 14px);
}

/* Pulsing anchor dot marking the exact point on the video the card refers to */
.demo-marker {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.demo-marker.visible {
  opacity: 1;
}

.demo-marker-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(29, 78, 137, 0.22);
}

.demo-marker-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  animation: demo-marker-pulse 1.8s ease-out infinite;
}

@keyframes demo-marker-pulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Callout — docked top-center over the video, out of the way of the section
   content below. The marker dot shows *where*; this card explains *what*. */
.demo-callout {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 4;
  width: min(460px, 88%);
  min-height: 76px;
  transform: translate(-50%, -6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 16px 36px -14px rgba(15, 23, 42, 0.28), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-callout.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-callout-tag {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--color-accent);
  padding-left: 11px;
  border-left: 2.5px solid var(--color-accent);
  margin-bottom: 12px;
}

.demo-callout-text {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 480;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--color-text);
  padding-left: 13.5px;
  margin-bottom: -4px;
}

@media (max-width: 640px) {
  .demo-callout {
    top: 4px;
    width: min(280px, 88%);
    min-height: 0;
    padding: 5px 9px;
  }
  .demo-callout-tag {
    font-size: 0.68rem;
    margin-bottom: 2px;
    padding-left: 6px;
    border-left-width: 2px;
  }
  .demo-callout-text {
    font-size: 0.6rem;
    line-height: 1.2;
    padding-left: 8px;
    margin-bottom: 0;
  }
}

/* Center pause indicator — shown whenever the video is paused, by script or by the user */
.demo-pause-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0.55;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-pause {
  display: flex;
  gap: 7px;
}

.icon-pause span {
  display: block;
  width: 7px;
  height: 24px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
}

.icon-play {
  display: none;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
}

.demo-pause-icon.is-playing .icon-pause {
  display: none;
}

.demo-pause-icon.is-playing .icon-play {
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: #263352;
  color: var(--color-text-inverse);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 56px 32px;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  color: #b7bfcc;
  margin-bottom: 28px;
}

.cta-band .cta-note {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8891a3;
  margin: -14px 0 18px;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  background: #fff;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #eaf3ec;
  border: 1px solid #bfdcc6;
  color: #1f5b32;
  font-size: 0.92rem;
}

.form-success.visible {
  display: block;
}

.demo-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calendly-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}

.cta-note-inline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 8px 0 0;
}

.note-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.note-card strong {
  color: var(--color-text);
}

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

.founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.contact-card h3 {
  margin-bottom: 14px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  word-break: break-word;
}

.contact-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.contact-email:hover {
  text-decoration: underline;
}

.background-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.background-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.bg-label {
  flex: 0 0 130px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 520px) {
  .background-list li {
    flex-direction: column;
    gap: 2px;
  }
  .bg-label {
    flex-basis: auto;
  }
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

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

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .demo-columns {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    display: none;
    gap: 4px;
  }
  .site-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 14px;
  }
  .steps,
  .steps.steps-compact {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .cta-band {
    padding: 40px 22px;
  }
}

.reveal .container > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible .container > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal .container > *:nth-child(1) { transition-delay: 0.05s; }
.reveal .container > *:nth-child(2) { transition-delay: 0.16s; }
.reveal .container > *:nth-child(3) { transition-delay: 0.27s; }
.reveal .container > *:nth-child(4) { transition-delay: 0.38s; }
.reveal .container > *:nth-child(5) { transition-delay: 0.49s; }
.reveal .container > *:nth-child(6) { transition-delay: 0.6s; }
.reveal .container > *:nth-child(7) { transition-delay: 0.71s; }
.reveal .container > *:nth-child(8) { transition-delay: 0.82s; }

.reveal .feature-list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible .feature-list li {
  opacity: 1;
  transform: translateY(0);
}

.reveal .feature-list li:nth-child(1) { transition-delay: 0.3s; }
.reveal .feature-list li:nth-child(2) { transition-delay: 0.38s; }
.reveal .feature-list li:nth-child(3) { transition-delay: 0.46s; }
.reveal .feature-list li:nth-child(4) { transition-delay: 0.54s; }
.reveal .feature-list li:nth-child(5) { transition-delay: 0.62s; }
.reveal .feature-list li:nth-child(6) { transition-delay: 0.7s; }
.reveal .feature-list li:nth-child(7) { transition-delay: 0.78s; }

.privacy-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.reveal .feature-lede {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.8s;
}

.reveal-visible .feature-lede {
  opacity: 1;
  transform: translateY(0);
}

.reveal .impact-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible .impact-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal .impact-card:nth-child(1) { transition-delay: 0.42s; }
.reveal .impact-card:nth-child(2) { transition-delay: 0.5s; }
.reveal .impact-card:nth-child(3) { transition-delay: 0.58s; }

.reveal .step-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible .step-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal .step-card:nth-child(1) { transition-delay: 0.3s; }
.reveal .step-card:nth-child(2) { transition-delay: 0.38s; }
.reveal .step-card:nth-child(3) { transition-delay: 0.46s; }
.reveal .step-card:nth-child(4) { transition-delay: 0.54s; }

.load-in {
  opacity: 0;
  transform: translateY(18px);
  animation: load-in-anim 0.7s ease forwards;
}

.load-in-1 { animation-delay: 0.05s; }
.load-in-2 { animation-delay: 0.2s; }
.load-in-3 { animation-delay: 0.35s; }
.load-in-4 { animation-delay: 0.5s; }

@keyframes load-in-anim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .load-in {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.4);
  /* CSS-driven entrance (not JS-toggled) -- plays automatically the instant
     the element is inserted, no requestAnimationFrame dependency. A JS-timed
     class toggle left the banner stuck at opacity:0 + pointer-events:none
     (invisible AND unclickable) whenever rAF was throttled/delayed -- the
     mobile bug this rebuild fixes. */
  animation: cookie-banner-in 0.3s ease forwards;
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-hiding {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.cookie-banner-text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-banner-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-text-inverse);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.cookie-banner-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-banner-accept {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.cookie-banner-accept:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }
  .cookie-banner-text {
    flex: 1 1 auto;
  }
  .cookie-banner-actions {
    flex-direction: row-reverse;
    justify-content: stretch;
  }
  .cookie-banner-btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

