/* ═══════════════════════════════════════════════════════════════
   Ringlead Automotive — Marketing CSS
   Design System: "Confident Authority"
   Typography: Sora (display) + Plus Jakarta Sans (body)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Core palette ── */
  --rl-navy: #00184b;
  --rl-blue: #013480;
  --rl-orange: #ff9b00;
  --rl-orange-200: #ffc451;
  --rl-text: #0a0a0a;
  --rl-bg: #ffffff;
  --rl-muted: #e5e7eb;

  /* ── Depth palette ── */
  --rl-navy-deep: #000c2d;
  --rl-navy-light: #0a2a6b;
  --rl-surface-dark: #071235;
  --rl-surface-warm: #faf8f5;
  --rl-surface-cool: #f4f6fa;
  --rl-accent-glow: rgba(255, 155, 0, 0.15);

  /* ── Typography ── */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* ── Shadows ── */
  --rl-shadow: 0 20px 45px rgba(0, 24, 75, 0.18);
  --rl-shadow-soft: 0 4px 24px rgba(0, 24, 75, 0.08);
  --rl-shadow-glow: 0 0 40px rgba(255, 155, 0, 0.2);
  --rl-shadow-lift: 0 20px 60px rgba(0, 24, 75, 0.12);

  /* ── Radius ── */
  --rl-radius: 16px;
  --rl-radius-sm: 10px;

  /* ── Transitions ── */
  --rl-transition: 200ms ease;
  --rl-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout ── */
  --layout-width: min(1180px, calc(100% - 3rem));
  --header-height: 96px;
}

/* ── Reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--rl-text);
  background-color: var(--rl-bg);
  line-height: 1.6;
}

h1, h2, h3, .metric-card strong, .timeline-step__number, .guarantee-band__headline {
  font-family: var(--font-display);
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { opacity: 0.8; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rl-orange);
  outline-offset: 3px;
}

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

.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; top: 0.5rem; left: 0.5rem;
  background: var(--rl-orange); color: var(--rl-navy);
  padding: 0.5rem 1rem; border-radius: 999px;
  transform: translateY(-200%); transition: transform var(--rl-transition);
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* ── Grain texture overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

header.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--rl-navy); color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.site-header__inner {
  width: var(--layout-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: var(--header-height);
}

.site-brand {
  display: inline-flex; align-items: center; gap: 0;
}
.site-brand img {
  height: 72px; width: auto;
}
.site-brand__text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-nav {
  display: flex; align-items: center; gap: 1.5rem;
  margin-left: auto; min-height: var(--header-height);
}

.site-nav__list {
  display: flex; gap: 0; align-items: center;
  list-style: none; margin: 0; padding: 0;
}

.site-nav__link {
  color: rgba(255,255,255,0.92); font-weight: 500;
  margin: 0 0.75rem; transition: opacity var(--rl-transition);
}
.site-nav__link:hover, .site-nav__link:focus-visible { opacity: 0.7; }

.site-nav__login {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--rl-transition);
}
.site-nav__login:hover, .site-nav__login:focus-visible {
  color: #fff;
  opacity: 1;
}

.site-nav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.25rem; border-radius: 999px;
  background: var(--rl-orange); color: var(--rl-navy);
  font-weight: 600; border: 2px solid transparent;
  transition: background-color var(--rl-transition), transform var(--rl-transition);
}
.site-nav__cta:hover, .site-nav__cta:focus-visible {
  background: var(--rl-orange-200); transform: translateY(-1px);
}

.nav-toggle {
  display: none; background: transparent; border: 0;
  color: #fff; font-size: 1.75rem; cursor: pointer;
}

main { display: block; }


/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.8rem; border-radius: 999px;
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--rl-ease-out), background-color var(--rl-transition),
              color var(--rl-transition), border-color var(--rl-transition),
              box-shadow 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--rl-orange); color: var(--rl-navy);
  box-shadow: 0 4px 14px rgba(255,155,0,0.25);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--rl-orange-200);
  box-shadow: var(--rl-shadow-glow);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(1px); }

.btn--secondary {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.btn--large { padding: 1.1rem 2.25rem; font-size: 1.1rem; }


/* ═══════════════════════════════════════════════════════════════
   HERO — Animated Mesh Gradient
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: clamp(6rem, 14vw, 10rem) 0 5rem;
  color: #fff;
  background: var(--rl-navy-deep);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(1,52,128,0.8) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,155,0,0.28) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(1,52,128,0.6) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,180,200,0.12) 0%, transparent 50%);
  animation: mesh-drift 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes mesh-drift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.05) translate(-2%, 1%); }
  66% { transform: scale(0.98) translate(2%, -1%); }
}

.hero__content {
  position: relative; z-index: 2;
  width: var(--layout-width); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
}

.hero__copy {
  max-width: 780px; text-align: center;
}

.hero__headline {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__subcopy {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 680px;
  width: 100%;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.75rem 1.25rem;
  border-radius: var(--rl-radius);
  transition: transform 0.3s var(--rl-ease-out), border-color 0.3s ease;
}
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,155,0,0.3);
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--rl-orange);
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.metric-card span {
  color: rgba(255,255,255,0.9); font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   INTEGRATION BAR — Animated Marquee
   ═══════════════════════════════════════════════════════════════ */

.integration-bar {
  background: var(--rl-surface-warm);
  padding: 2rem 0;
  text-align: center;
}

.integration-bar__heading {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  color: rgba(10,10,10,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.integration-bar__track-wrapper {
  overflow: hidden;
  width: 100%;
}

.integration-bar__track {
  display: flex; gap: 3rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.integration-bar__track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.integration-bar__item {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600;
  color: var(--rl-navy);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.integration-bar__item:hover { opacity: 1; }

.integration-bar__subline {
  font-size: 0.9rem;
  color: rgba(10,10,10,0.45);
  margin-top: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════════
   PROBLEM SECTION — Dark Cinematic
   ═══════════════════════════════════════════════════════════════ */

.problem-section {
  background: var(--rl-surface-dark);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 2rem;
  position: relative;
  overflow: hidden;
}

/* Watermark "?" behind the content */
.problem-section::before {
  content: '?';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 24rem);
  font-weight: 800;
  color: rgba(255,255,255,0.045);
  pointer-events: none;
  line-height: 1;
}

/* Radial glow behind the question area */
.problem-section::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,155,0,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.problem-section__body {
  max-width: 700px; margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}

.problem-section .section__heading {
  color: #fff;
}

.problem-section__body p {
  font-size: 1.2rem; line-height: 1.85;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
}

.problem-section__intro {
  margin-bottom: 3rem;
}

/* Question strips — numbered, left-aligned glass cards with icons */
.problem-questions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: left;
  counter-reset: problem-counter;
}

.problem-questions__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--rl-orange);
  border-radius: 0 var(--rl-radius-sm) var(--rl-radius-sm) 0;
  padding: 1.5rem 1.75rem;
  margin: 0;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  counter-increment: problem-counter;
}

.problem-questions__item:nth-child(even) {
  margin-left: 0;
}

.problem-questions__item::before {
  content: counter(problem-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rl-orange);
  opacity: 0.4;
  flex-shrink: 0;
  padding-top: 0.15rem;
  letter-spacing: 0.05em;
}

.problem-questions__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--rl-orange);
  opacity: 0.88;
  margin-top: 0.1rem;
}

.problem-questions__item:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--rl-orange-200);
  transform: translateX(4px);
}

.problem-questions__item:hover .problem-questions__icon {
  opacity: 1;
}

.problem-questions__item span {
  color: rgba(255,255,255,0.9);
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Bridge callout — emotional pivot between questions and CTA */
.problem-section__bridge {
  max-width: 560px;
  margin: 3rem auto 0;
  padding: 2rem 2.5rem;
  background: none;
  border-left: none;
  border-radius: 0;
  text-align: center;
}

.problem-section__bridge p {
  color: rgba(255,255,255,0.55) !important;
  font-size: 1.15rem !important;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 0 !important;
}

.problem-section__body .problem-section__cta-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
  text-shadow: 0 0 40px rgba(255,155,0,0.15);
}

.problem-section__subtext {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════════
   THREE PILLARS — Cards with Gradient Borders
   ═══════════════════════════════════════════════════════════════ */

.pillars {
  padding: clamp(4rem, 10vw, 7rem) 2rem;
  background: #fff;
}

.pillars .section__heading {
  color: var(--rl-navy);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pillar-card {
  position: relative;
  background: #fff;
  border-radius: var(--rl-radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0,24,75,0.08);
  transition: transform 0.4s var(--rl-ease-out), box-shadow 0.4s var(--rl-ease-out),
              border-color 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,155,0,0.25);
  box-shadow: 0 20px 60px rgba(0,24,75,0.10), 0 0 30px rgba(255,155,0,0.06);
}

.pillar-card__icon {
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
  color: var(--rl-orange);
  transition: color 0.3s ease;
}
.pillar-card:hover .pillar-card__icon { color: var(--rl-blue); }

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--rl-navy);
  margin: 0 0 1rem;
}

.pillar-card p {
  color: rgba(10,10,10,0.7);
  line-height: 1.75;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS — Connected Horizontal Timeline
   ═══════════════════════════════════════════════════════════════ */

.how-it-works {
  background: var(--rl-surface-cool);
  padding: clamp(4rem, 10vw, 7rem) 2rem;
}

.how-it-works .section__heading {
  color: var(--rl-navy);
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: calc(3rem + 28px);
  left: 56px; right: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--rl-orange), var(--rl-blue), var(--rl-orange));
  opacity: 0.3;
}

.timeline-step {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative;
  padding: 0 1.5rem;
}

.timeline-step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rl-navy); color: var(--rl-orange);
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--rl-surface-cool), 0 0 20px rgba(255,155,0,0.15);
}

.timeline-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--rl-navy);
  margin: 0 0 0.75rem;
}

.timeline-step__desc {
  color: rgba(10,10,10,0.65);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════════════════════
   STORY TEASE — Dark, Typographic "42"
   ═══════════════════════════════════════════════════════════════ */

.story-section {
  background: var(--rl-surface-dark);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 2rem;
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: '42';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(10rem, 25vw, 20rem);
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.story-section .section__heading {
  color: #fff;
}

.story-card {
  max-width: 700px;
  margin: 0 auto;
  position: relative; z-index: 1;
  border-left: 3px solid var(--rl-orange);
  padding-left: 2rem;
}

.story-card__quote {
  margin: 0;
}

.story-card__quote p {
  font-size: 1.15rem; line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1rem;
}

.story-card__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--rl-orange);
  margin-top: 2rem;
}

.story-card__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--rl-transition);
}
.story-card__cta:hover { color: var(--rl-orange); opacity: 1; }


/* ═══════════════════════════════════════════════════════════════
   GUARANTEE BAND
   ═══════════════════════════════════════════════════════════════ */

.guarantee-band {
  background: linear-gradient(135deg, var(--rl-navy) 0%, var(--rl-blue) 100%);
  color: #fff;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
}

.guarantee-band::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 80px;
  background: radial-gradient(ellipse, var(--rl-accent-glow), transparent 70%);
  pointer-events: none;
}

.guarantee-band__headline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.guarantee-band__check {
  color: var(--rl-orange);
  margin-right: 0.35rem;
}

.guarantee-band__subline {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   SPEED AUDIT — Cal.com Embed
   ═══════════════════════════════════════════════════════════════ */

.speed-audit {
  padding: clamp(4rem, 10vw, 7rem) 2rem;
  background: #fff;
}

.speed-audit .section__heading {
  color: var(--rl-navy);
  text-align: left;
}

.audit-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.audit-copy p {
  color: rgba(10,10,10,0.7);
  font-size: 1.1rem; line-height: 1.75;
}

.cal-embed-container {
  min-height: 520px;
  max-height: 680px;
  border-radius: var(--rl-radius);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--rl-surface-cool);
  border: 1px solid rgba(0,24,75,0.08);
}

.cal-fallback {
  padding: 2rem;
  text-align: center;
  color: rgba(10,10,10,0.6);
}

.cal-fallback a {
  color: var(--rl-blue);
  font-weight: 600;
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.section__inner {
  width: var(--layout-width);
  margin: 0 auto;
}

.section__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--rl-navy);
}


/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */

.faq-section {
  background: var(--rl-surface-cool);
  padding: clamp(4rem, 10vw, 7rem) 2rem;
}

.faq-section .section__heading {
  color: var(--rl-navy);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 24, 75, 0.06);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item__question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rl-navy);
  padding-left: 1.25rem;
  border-left: 3px solid var(--rl-orange);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--rl-transition);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rl-orange);
  flex-shrink: 0;
  transition: transform 0.3s var(--rl-ease-out);
}

.faq-item[open] > .faq-item__question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-item__question:hover {
  color: var(--rl-blue);
}

.faq-item__answer {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.7);
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer.site-footer {
  background: var(--rl-navy-deep);
  color: #fff;
  padding: 2.5rem 0;
}

.site-footer__inner {
  width: var(--layout-width); margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__links {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}

.site-footer__links a {
  color: rgba(255,255,255,0.85);
  transition: opacity var(--rl-transition);
}
.site-footer__links a:hover, .site-footer__links a:focus-visible { opacity: 0.7; }


/* ═══════════════════════════════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-backdrop.open { display: flex; }

.modal-backdrop .modal {
  background: #0b1b3f; color: #fff;
  border-radius: 14px;
  width: min(920px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}

.modal-backdrop .modal header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-backdrop .modal header button {
  background: transparent; color: #fff; border: 0;
  font-weight: 800; font-size: 1.1rem; cursor: pointer;
}

.modal-backdrop .modal video {
  width: 100%; height: auto; display: block;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE CTA (sticky bottom)
   ═══════════════════════════════════════════════════════════════ */

.mobile-cta { display: none; }


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--rl-ease-out), transform 0.7s var(--rl-ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

/* Problem section per-line stagger reveal */
.reveal-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--rl-ease-out), transform 0.6s var(--rl-ease-out);
}
.reveal-line.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    inset: var(--header-height) 0 auto 0;
    background: var(--rl-navy);
    flex-direction: column;
    padding: 1.5rem; gap: 1.5rem;
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform var(--rl-transition), opacity var(--rl-transition), visibility var(--rl-transition);
  }
  .site-nav.is-open {
    transform: translateY(0); opacity: 1; visibility: visible;
  }
  .site-nav__list { flex-direction: column; width: 100%; gap: 1rem; }
  .site-nav__link { margin: 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav__cta { width: 100%; }
  .site-header__inner { position: relative; }
}

@media (max-width: 980px) {
  :root { --header-height: 88px; }
  .site-brand img { height: 60px; }
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column; gap: 2.5rem; padding-top: 0;
  }
  .timeline::before {
    top: 0; bottom: 0; left: 28px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--rl-orange), var(--rl-blue), var(--rl-orange));
  }
  .timeline-step {
    flex-direction: row; text-align: left;
    align-items: flex-start; gap: 1.25rem; padding: 0;
  }
  .timeline-step__number {
    flex-shrink: 0; margin-bottom: 0;
    box-shadow: 0 0 0 6px var(--rl-surface-cool), 0 0 20px rgba(255,155,0,0.15);
  }

  .audit-content { grid-template-columns: 1fr; }
  .cal-embed-container { min-height: 600px; }
  .speed-audit .section__heading { text-align: center; }

  .modal-backdrop {
    padding: 1rem; align-items: flex-start; padding-top: 10vh;
  }
  .modal-backdrop .modal {
    width: 100%; max-height: 80vh; border-radius: 10px;
  }
  .modal-backdrop .modal header { padding: 0.5rem 0.75rem; }
  .modal-backdrop .modal header h2 { font-size: 0.95rem; }
  .modal-backdrop .modal video {
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
  }

  .story-card { padding-left: 1.5rem; }
}

@media (max-width: 640px) {
  :root { --layout-width: calc(100% - 2rem); }

  .hero { padding: 4.5rem 0 4rem; }
  .hero__headline { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  .hero__metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 320px;
  }
  .metric-card { padding: 1.25rem 1rem; }

  .problem-questions__item { padding: 1.25rem 1.25rem; }

  .mobile-cta {
    position: sticky; bottom: 1.5rem;
    display: none; justify-content: center;
    z-index: 850;
  }
  .mobile-cta.is-visible { display: flex; }
  .mobile-cta .btn {
    width: min(320px, calc(100% - 2rem));
    box-shadow: 0 25px 40px rgba(255,155,0,0.35);
  }

  /* Hide Cal.com floating button on mobile — custom .mobile-cta is shown instead */
  cal-floating-button { display: none !important; }
}

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