/* Bridge AI — Lead Gen Landing
   Page-level styles. Built entirely on the locked design-system tokens
   (see styles/tokens/tokens.css). No values are invented here: every
   colour, radius and family resolves through a var(). */

/* The design-system stylesheets assume a border-box reset (the Claude Design
   canvas runtime supplies one). A standalone page has to bring its own —
   without it, .card's 32px padding is added on top of width:100% and the
   opportunity card overflows its column on narrow viewports. */
*,
*::before,
*::after { box-sizing: border-box; }

body { margin: 0; }

.page {
  background: var(--color-paper-white);
  color: var(--color-ink);
  overflow-x: hidden;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-ash-border);
}
a:hover { text-decoration-color: var(--color-ink); }
a.btn { text-decoration: none; }

img { max-width: 100%; }

/* Skip link — visible only on keyboard focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-ink);
  color: var(--color-paper-white);
  padding: var(--spacing-12) var(--spacing-16);
  border-radius: var(--radius-button);
  text-decoration: none;
}
.skip-link:focus { left: var(--spacing-16); top: var(--spacing-16); }

:where(a, button, video):focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
.bridge-dark :where(a, button, video):focus-visible,
.nav-cta:focus-visible {
  outline-color: currentColor;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 249, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-ash-border);
}
.nav-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-cta {
  font-size: clamp(12px, 3vw, 14px);
  padding: 9px clamp(10px, 3vw, 16px);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(32px, 6vw, 56px) 0 clamp(24px, 4vw, 32px); }
.hero-inner {
  gap: var(--spacing-20);
  align-items: center;
  text-align: center;
  max-width: 720px;
}
.hero-title {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-light);
  margin: 0;
}
.hero-stat {
  align-items: center;
  padding: var(--spacing-8) 0;
}
.hero-stat .stat-value { font-size: clamp(36px, 6vw, 48px); }
.hero-lede {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--color-graphite);
  max-width: 560px;
  margin: 0;
}
.cta-lg {
  padding: var(--spacing-12) 28px;
  font-size: var(--text-body);
}
.hero-note {
  font-size: 13px;
  color: var(--color-fog);
  margin: 0;
}

/* ── Shared section rhythm ────────────────────────────────────────────── */
.section-tight {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.section-inner {
  gap: var(--spacing-32);
  align-items: center;
  text-align: center;
}

/* ── Proof / video ────────────────────────────────────────────────────── */
.proof-title {
  font-size: clamp(20px, 3.4vw, 32px);
  margin: 0;
  max-width: 520px;
}
.proof-media { width: 100%; max-width: 640px; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-dark-raised);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.proof-caption {
  font-size: 14px;
  color: #c9c7c2;
  margin: var(--spacing-12) 0 0;
}
.proof-caption span { color: var(--color-fog); }

/* The page-wide link colour is Ink, which would be invisible on the black
   section. Inherit the caption's own colour instead, with a hairline underline. */
.proof-caption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-fog);
  text-underline-offset: 2px;
}
.proof-caption a:hover,
.proof-caption a:focus-visible {
  color: var(--color-pure-white);
  text-decoration-color: currentColor;
}

/* Sound affordance. Covers the whole frame so a tap anywhere works, but the
   button itself sits bottom-right — clear of Karim's face and clear of the
   burned-in subtitles running along the bottom-centre. */
.video-sound {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.video-sound[hidden] { display: none; }

/* Overlay button sitting on live footage — needs its own dark fill to stay
   legible against whatever frame is behind it. */
.video-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: rgba(0, 0, 0, 0.72);
  color: var(--color-pure-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-button);
  padding: 10px 18px;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.video-btn:hover { border-color: var(--color-pure-white); }
.video-btn-icon { font-size: 15px; }

/* Flush into the bottom-right corner — no inset. Only the top-left corner is
   rounded so it reads as anchored to the frame rather than floating near it;
   the frame's own overflow:hidden clips it to the 6px card radius. */
.video-sound-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-button) 0 0 0;
  border-right: 0;
  border-bottom: 0;
}

/* End of the clip: a plain black field with a single way forward. Solid, not
   translucent — the last video frame shouldn't show through. */
/* Autoplay-refused fallback: native controls are visible in this state, so the
   corner is no longer free. Centre the button instead of sitting it on the
   control bar — and it reads as "Tap to play" here, which wants prominence. */
.video-sound.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-sound.is-fallback .video-sound-btn {
  position: static;
  border-radius: var(--radius-button);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.video-replay {
  position: absolute;
  inset: 0;
  background: var(--color-obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-replay[hidden] { display: none; }
.video-replay .btn { gap: var(--spacing-8); }

@media (max-width: 560px) {
  .video-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ── Mechanism ────────────────────────────────────────────────────────── */
.mechanism-title {
  font-size: clamp(18px, 2.8vw, 32px);
  margin: 0;
  max-width: 560px;
}
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-16);
  flex-wrap: wrap;
  width: 100%;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
  flex-wrap: wrap;
  justify-content: center;
}
.flow-card {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  text-align: left;
}
.flow-card .caption { color: var(--color-fog); }
.flow-card .card-body {
  margin: var(--spacing-8) 0 0;
  font-size: 14px;
}
.flow-arrow {
  color: var(--color-fog);
  font-size: 22px;
  line-height: 1;
}
.mechanism-note {
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

/* ── Opportunity card ─────────────────────────────────────────────────── */
.opportunity-title {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0;
  text-align: center;
  max-width: 600px;
}
.opportunity-card {
  background: var(--color-ink);
  color: var(--color-paper-white);
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  text-align: left;
}
.opportunity-card .caption { color: var(--color-fog); }
.opportunity-card .rule {
  border-color: var(--color-dark-border);
  margin: 0;
}
.field { gap: var(--spacing-4); }
.field-value { font-size: 15px; }
.field-value-sm {
  font-size: 13px;
  color: #c9c7c2;
}
.opportunity-actions {
  display: flex;
  gap: var(--spacing-12);
  margin-top: var(--spacing-4);
  flex-wrap: wrap;
}
.opportunity-actions .btn {
  flex: 1;
  min-width: 100px;
}
.opportunity-actions .btn-primary {
  background: var(--color-pure-white);
  color: var(--color-obsidian);
}
.opportunity-actions .btn-secondary {
  border-color: var(--color-dark-border);
  color: var(--color-pure-white);
}

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final-cta {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(48px, 7vw, 72px);
}
.final-cta-inner {
  gap: var(--spacing-24);
  align-items: center;
  text-align: center;
}
.final-cta-title {
  font-size: clamp(28px, 4.5vw, 38px);
  margin: 0;
  max-width: 600px;
  font-weight: var(--font-weight-light);
}
.final-cta .btn-primary {
  background: var(--color-pure-white);
  color: var(--color-obsidian);
}
.final-cta-note {
  font-size: 13px;
  color: var(--color-fog);
  max-width: 460px;
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--color-ash-border); }
.footer-inner {
  padding: var(--spacing-24) clamp(16px, 4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
}
.footer-logo {
  height: 16px;
  width: auto;
  display: block;
  opacity: 0.7;
}
.footer-link {
  font-size: 13px;
  color: var(--color-fog);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Full-width section rule between Mechanism and Opportunity. */
.page-rule {
  max-width: var(--page-max-width);
  margin: 0 auto;
}
