/* ── Design Tokens ── */
:root {
  --navy: #0B132B;
  --navy-light: #1a2547;
  --teal: #00B4D8;
  --teal-mint: #00F5D4;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --text: #1A1A2E;
  --muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(11, 19, 43, 0.06);
  --shadow-md: 0 4px 24px rgba(11, 19, 43, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 19, 43, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --section-pad: clamp(64px, 8vw, 120px);
  --container: 1200px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

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

/* ── Typography ── */
.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section__eyebrow--center {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 720px;
}

.section__title--accent {
  border-left: 3px solid var(--teal);
  padding-left: 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--navy);
  color: var(--bg-white);
}

.btn--primary:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  background: var(--navy);
  color: var(--bg-white);
}

.btn--teal {
  background: var(--teal);
  color: var(--navy);
}

.btn--teal:hover {
  background: var(--teal-mint);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--bg-white);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
}

.logo--icon {
  width: 36px;
  height: 36px;
}

.logo--icon-sm {
  width: 22px;
  height: 22px;
}

.logo--icon-lg {
  width: 44px;
  height: 44px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup--center {
  justify-content: center;
  margin-bottom: 28px;
}

.brand-lockup--sm {
  gap: 8px;
  margin-left: 8px;
}

.brand-lockup--sm .brand-lockup__text {
  font-size: 0.8125rem;
}

.brand-lockup__text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-lockup__text--lg {
  font-size: 1.375rem;
}

.brand-lockup__accent {
  color: var(--teal);
}

.brand-lockup--dark .brand-lockup__text {
  color: var(--bg-white);
}

.brand-lockup--dark .brand-lockup__accent {
  color: var(--teal-mint);
}

.nav__logo:focus-visible,
.footer__brand:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ── Hero ── */
.hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  background: var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subhead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__subhead em {
  font-style: italic;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Placeholder Images ── */
.placeholder-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.placeholder-img--payers {
  width: auto;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  border: none;
  box-shadow: none;
}

.problem__visual,
.solution__diagram,
.timeline__visual {
  margin: 0;
}

/* ── Hero Mockup ── */
.hero__mockup {
  position: relative;
  perspective: 1200px;
}

@media (min-width: 1024px) {
  .hero__mockup .mockup {
    transform: rotateY(-2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .hero-anim--scanning + .mockup,
  .hero__mockup .mockup:has(.hero-anim--scanning) {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 180, 216, 0.12);
  }
}

.mockup {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 0.4s ease, opacity 0.4s ease;
}

.hero-anim--reset {
  opacity: 0.6;
}

.mockup:has(.hero-anim--scanning) {
  box-shadow: var(--shadow-lg), 0 0 32px rgba(0, 180, 216, 0.15);
  border-color: rgba(0, 180, 216, 0.25);
}

.mockup__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.mockup__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.mockup__status--scanning {
  background: rgba(0, 180, 216, 0.15);
  color: var(--teal-mint);
}

.mockup__status--scanning .mockup__status-dot {
  background: var(--teal);
  animation: statusPulse 1s ease-in-out infinite;
}

.mockup__status--complete {
  background: rgba(0, 245, 212, 0.12);
  color: var(--teal-mint);
}

.mockup__status--complete .mockup__status-dot {
  background: var(--teal-mint);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup__dot:first-child { background: rgba(255, 255, 255, 0.35); }

.mockup__title {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mockup__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.mockup__note {
  position: relative;
  padding: 20px;
  border-right: 1px solid var(--border);
  background: #FAFBFC;
  overflow: hidden;
}

.mockup__note-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.mockup__note-text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 10px;
}

.mockup__note-text mark,
.mockup__note-text .hero-anim__highlight {
  background: rgba(0, 180, 216, 0.15);
  color: var(--navy);
  padding: 1px 3px;
  border-radius: 2px;
}

.mockup__alert {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup__alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.mockup__alert-icon {
  color: var(--teal);
  flex-shrink: 0;
}

.mockup__alert-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mockup__alert-item--resolved {
  border-color: rgba(0, 245, 212, 0.3);
  background: rgba(0, 245, 212, 0.06);
}

.mockup__check {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.mockup__check--mint {
  color: #00C9A7;
}

.mockup__alert-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.mockup__alert-fix {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--muted);
}

.mockup__scan-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}

.mockup__scan-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--teal);
  border-radius: 2px;
  transform-origin: left;
}

.mockup__scan-time {
  font-size: 0.6875rem;
  color: var(--teal);
  font-weight: 500;
  text-align: right;
}

/* Hero animation */
.hero-anim {
  --anim-cycle: 5s;
}

.hero-anim__scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--teal-mint), transparent);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.45);
  opacity: 0;
  top: 0;
  animation: scanSweep var(--anim-cycle) ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.hero-anim__highlight {
  animation: highlightPulse var(--anim-cycle) ease-in-out infinite;
}

.hero-anim__item {
  opacity: 0;
  transform: translateY(6px);
  animation-duration: var(--anim-cycle);
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.hero-anim__item--1,
.hero-anim__item--2,
.hero-anim__item--3,
.hero-anim__item--4 {
  animation-name: fadeSlideInEarly;
}

.hero-anim__item--5,
.hero-anim__item--6,
.hero-anim__item--7,
.hero-anim__item--8,
.hero-anim__item--9 {
  animation-name: fadeSlideInLate;
}

.hero-anim__item--1 { animation-delay: calc(var(--anim-cycle) * 0.02); }
.hero-anim__item--2 { animation-delay: calc(var(--anim-cycle) * 0.06); }
.hero-anim__item--3 { animation-delay: calc(var(--anim-cycle) * 0.10); }
.hero-anim__item--4 { animation-delay: calc(var(--anim-cycle) * 0.14); }
.hero-anim__item--5 { animation-delay: calc(var(--anim-cycle) * 0.48); }
.hero-anim__item--6 { animation-delay: calc(var(--anim-cycle) * 0.54); }
.hero-anim__item--7 { animation-delay: calc(var(--anim-cycle) * 0.62); }
.hero-anim__item--8 { animation-delay: calc(var(--anim-cycle) * 0.70); }
.hero-anim__item--9 { animation-delay: calc(var(--anim-cycle) * 0.76); }

.hero-anim__progress {
  transform: scaleX(0);
  animation: progressFill var(--anim-cycle) ease-out infinite;
  animation-delay: calc(var(--anim-cycle) * 0.70);
}

@keyframes scanSweep {
  0%, 18% { opacity: 0; top: 0; }
  22% { opacity: 1; }
  48% { opacity: 1; top: calc(100% - 2px); }
  52%, 100% { opacity: 0; top: calc(100% - 2px); }
}

@keyframes highlightPulse {
  0%, 20% { background: rgba(0, 180, 216, 0.15); }
  28%, 48% { background: rgba(0, 180, 216, 0.35); box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2); }
  55%, 100% { background: rgba(0, 180, 216, 0.15); box-shadow: none; }
}

@keyframes fadeSlideInEarly {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  5%, 85% { opacity: 1; transform: translateY(0); }
  92% { opacity: 0; transform: translateY(-4px); }
}

@keyframes fadeSlideInLate {
  0%, 44% { opacity: 0; transform: translateY(8px); }
  50%, 85% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes progressFill {
  0%, 68% { transform: scaleX(0); }
  78%, 88% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim__scan-beam,
  .hero-anim__highlight,
  .hero-anim__item,
  .hero-anim__progress {
    animation: none !important;
  }

  .hero-anim__item {
    opacity: 1;
    transform: none;
  }

  .hero-anim__scan-beam {
    display: none;
  }

  .hero-anim__progress {
    transform: scaleX(1);
  }
}

/* ── Trust Banner ── */
.trust {
  padding: 24px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.trust__payers {
  max-width: 720px;
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.trust__badge svg {
  color: var(--muted);
  flex-shrink: 0;
}

.trust__divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ── Problem ── */
.problem {
  background: var(--bg-white);
}

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

.problem__body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
  margin-top: 24px;
}

/* ── Stats ── */
.stats {
  background: var(--bg);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card__value {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.stat-card__label {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 360px;
}

/* ── Solution ── */
.solution {
  background: var(--bg-white);
}

.solution__intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
  margin: 24px 0 32px;
}

.solution__diagram {
  margin-bottom: 48px;
  max-width: 1000px;
}

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

.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--teal);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Workflow / Timeline ── */
.workflow {
  background: var(--bg);
}

.workflow__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}

.timeline__step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.timeline__step.is-active {
  opacity: 1;
}

.timeline__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
}

.timeline__marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.timeline__step.is-active .timeline__marker {
  border-color: var(--teal);
  background: rgba(0, 180, 216, 0.08);
}

.timeline__number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.4s ease;
}

.timeline__step.is-active .timeline__number {
  color: var(--teal);
}

.timeline__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color 0.4s ease;
}

.timeline__step.is-active .timeline__title {
  color: var(--navy);
}

.timeline__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  transition: color 0.4s ease;
}

.timeline__step.is-active .timeline__text {
  color: var(--text);
}

/* ── Security ── */
.security {
  background: var(--bg-white);
}

.security__intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
  margin: 24px 0 48px;
}

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

.security-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.security-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  margin-bottom: 20px;
}

.security-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.security-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--navy);
  padding: clamp(64px, 8vw, 100px) 0;
}

.cta-band__inner {
  text-align: center;
  max-width: 720px;
}

.cta-band__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-band__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__links a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__copy {
  width: 100%;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__mockup {
    max-width: 560px;
  }

  .hero__subhead {
    max-width: none;
  }

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

  .features,
  .security__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .logo--icon {
    width: 32px;
    height: 32px;
  }

  .brand-lockup__text {
    font-size: 1rem;
  }

  .brand-lockup--center {
    margin-bottom: 24px;
  }

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

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

  .mockup__body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mockup__note {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .trust__divider {
    display: none;
  }

  .trust__inner {
    flex-direction: column;
    gap: 16px;
  }

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

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .problem__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

@media (min-width: 768px) {
  .timeline__body {
    grid-template-columns: 1fr min(280px, 40%);
    align-items: start;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .features,
  .security__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features .feature-card:last-child,
  .security__grid .security-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

/* ── Demo Page ── */
.demo-page {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px);
  background: var(--bg-white);
}

.demo-page__inner {
  max-width: 520px;
  margin: 0 auto;
}

.demo-page__intro {
  text-align: center;
  margin-bottom: 40px;
}

.demo-page__intro .section__title {
  max-width: none;
  margin: 0 auto;
}

.demo__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.75;
  margin-top: 16px;
}

.demo__trust {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.demo__trust li {
  font-size: 0.9375rem;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.demo__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: 20px;
}

.form__group:last-of-type {
  margin-bottom: 28px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form__required {
  color: var(--teal);
}

.form__optional {
  font-weight: 400;
  color: var(--muted);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form__input--error,
.form__select--error {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 19, 43, 0.08);
}

.form__textarea {
  resize: vertical;
  min-height: 88px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.form__checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.form__checkbox a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__checkbox a:hover {
  color: var(--navy);
}

.form__checkbox--error {
  color: #5A6472;
}

.form__error {
  font-size: 0.8125rem;
  color: #5A6472;
  margin-top: 6px;
  min-height: 1.25em;
}

.form__submit {
  width: 100%;
}

.form__success {
  text-align: center;
  padding: 24px 8px;
}

.form__success-icon {
  color: var(--teal);
  margin: 0 auto 20px;
}

.form__success-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.form__success-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Legal Pages ── */
.legal {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px);
  background: var(--bg-white);
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal__disclaimer {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
}

.legal p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal ul {
  margin: 0 0 16px 24px;
}

.legal li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--navy);
}
