/* ==========================================================================
   Complimentary AI Search Audit funnel (Phase 1)
   Used ONLY by /ai-search-audit and /ai-search-audit/thank-you.
   Loaded after css/style.css; every rule is namespaced .aud-* so nothing here
   can affect any existing page. Tokens (colors, radius, fonts) come from
   style.css :root.
   ========================================================================== */

/* ── Minimal header (logo only, no navigation exits) ── */
.aud-nav { justify-content: flex-start; }
.aud-nav .nav-logo { display: inline-flex; align-items: center; }

/* ── Skip link ── */
.aud-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--periwinkle);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.aud-skip:focus { top: 0.75rem; }

/* ── Focus visibility (buttons / links on dark + pale backgrounds) ── */
.aud-page .btn:focus-visible,
.aud-page a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── Hero ── */
.aud-hero.hero {
  min-height: auto;
  align-items: flex-start;
  padding: 7.5rem 0 5rem;
}

.aud-hero .hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 4.5rem;
  align-items: center;
}

.aud-hero .hero__eyebrow { margin-bottom: 1.4rem; }

.aud-hero .hero__title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.aud-hero__copy p {
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 1.1rem;
}

.aud-hero__copy .aud-emphasis {
  margin-top: 1.75rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--periwinkle);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 460px;
  font-size: 1.2rem;
}

/* ── Right column: report mockup + Apollo form ── */
.aud-hero__right {
  position: relative;
  min-width: 0;
}

/* Report preview — pure HTML/CSS, scales with its own width via container
   query units, so there's no raster asset to maintain. */
.aud-report {
  position: relative;
  height: 425px;
  perspective: 1500px;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.aud-report__sheet {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 78%;
  max-width: 330px;
  aspect-ratio: 8.5 / 11;
  border-radius: 3px;
  background: #fff;
  transform-origin: 50% 0;
}

.aud-report__sheet--back {
  background: #dfe3f3;
  transform: translateX(-46%) rotate(4deg) translateY(-4px);
  box-shadow: 0 18px 40px rgba(5, 8, 24, 0.45);
  opacity: 0.85;
}

.aud-report__sheet--front {
  container-type: inline-size;
  transform: translateX(-52%) rotateY(-7deg) rotateX(2deg) rotate(-1.5deg);
  box-shadow:
    0 30px 60px rgba(5, 8, 24, 0.55),
    0 8px 18px rgba(5, 8, 24, 0.35);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  overflow: hidden;
}

.aud-r-body { padding: 6.5cqw 8cqw; }

.aud-r-brand {
  font-family: 'Playfair Display', serif;
  font-size: 4.2cqw;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--navy);
}

.aud-r-cat {
  margin-top: 1.2cqw;
  font-size: 2.3cqw;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--periwinkle);
}

.aud-r-title {
  margin-top: 4.5cqw;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 9.4cqw;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.aud-r-title span {
  display: block;
  margin-top: 1.4cqw;
  font-size: 5.6cqw;
  letter-spacing: 0.06em;
  color: var(--periwinkle);
}

.aud-r-sub {
  margin-top: 3.5cqw;
  max-width: 82%;
  font-size: 2.9cqw;
  line-height: 1.5;
  color: #4A5080;
}

.aud-r-rule {
  height: 0.35cqw;
  width: 9cqw;
  margin: 3.5cqw 0 3cqw;
  background: var(--periwinkle);
}

.aud-r-label {
  font-size: 2.2cqw;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--navy-light);
  margin-bottom: 1.6cqw;
}

/* Abstract search-result stand-in: neutral bars only, no real names/claims */
.aud-r-result {
  background: #F3F4FA;
  border-radius: 1.2cqw;
  padding: 2.4cqw;
  margin-bottom: 3cqw;
}
.aud-r-bar {
  display: block;
  height: 1.7cqw;
  border-radius: 1cqw;
  background: #CDD2EA;
  margin-bottom: 1.6cqw;
}
.aud-r-bar:last-child { margin-bottom: 0; }
.aud-r-bar--title { width: 58%; height: 2.3cqw; background: #A9B3E0; }
.aud-r-bar--url { width: 34%; height: 1.3cqw; }
.aud-r-bar--w90 { width: 92%; }
.aud-r-bar--w70 { width: 74%; }

.aud-r-working {
  display: flex;
  align-items: flex-start;
  gap: 2cqw;
  font-size: 2.9cqw;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 3cqw;
}
.aud-r-working b {
  color: var(--teal);
  font-weight: 700;
}

.aud-r-prio {
  display: flex;
  align-items: baseline;
  gap: 3cqw;
  font-size: 2.9cqw;
  line-height: 1.4;
  color: var(--navy);
  padding: 1.2cqw 0;
  border-top: 0.25cqw solid #E3E6F3;
}
.aud-r-prio b {
  font-family: 'Playfair Display', serif;
  font-size: 4cqw;
  font-weight: 500;
  color: var(--periwinkle);
}

.aud-r-foot {
  margin-top: 3cqw;
  font-size: 2.2cqw;
  letter-spacing: 0.04em;
  color: #6c739f;
}

/* Form card — sits over the faded lower edge of the report */
.aud-form-card {
  position: relative;
  z-index: 2;
  margin-top: -2.75rem;
  background: var(--navy-mid);
  border: 1.5px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(5, 8, 24, 0.45);
  scroll-margin-top: 6.5rem;
}
.aud-form-card:focus { outline: none; }
.aud-form-card:focus-within { border-color: var(--teal); }

/* Reserve space so the page doesn't jump while Apollo's script loads */
.aud-form { min-height: 300px; }
.aud-form-noscript {
  font-size: 0.9rem;
  color: var(--periwinkle-soft);
}

/* ── Section scaffolding ── */
.aud-section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.aud-section-head .section-label { margin-bottom: 0.9rem; }
.aud-section-head p { margin-top: 1.25rem; }

.aud-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.aud-steps .card { padding: 2rem 1.75rem; }
.aud-steps .step-number { font-size: 3rem; color: rgba(107,127,212,0.45); }
.aud-steps h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--white); }
.aud-steps p { font-size: 0.95rem; }

.aud-support-line {
  text-align: center;
  margin: 2.75rem auto 1.75rem;
  font-weight: 500;
  color: var(--white);
  max-width: 640px;
}

.aud-cta-wrap { text-align: center; }
.aud-cta-wrap .btn { text-align: center; line-height: 1.5; }
.aud-cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--periwinkle-soft);
}

/* ── Proof ── */
.aud-proof {
  max-width: 760px;
  margin: 0 auto;
}
.aud-proof figure.card {
  margin: 0;
  padding: 2.5rem 2.5rem 2rem;
  transform: none;
  border-color: var(--border);
}
.aud-proof figure.card:hover { transform: none; border-color: var(--border); }
.aud-proof blockquote { margin: 0 0 1.75rem; }
.aud-proof blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--white);
}
.aud-stars {
  display: block;
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.aud-proof figcaption { font-size: 0.92rem; color: var(--text-muted); }
.aud-proof figcaption strong { color: var(--white); font-weight: 600; }
.aud-proof-statement {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
}

/* ── Objection (pale band) ── */
.aud-objection {
  max-width: 700px;
  margin: 0 auto;
}
.aud-objection h2 { margin-bottom: 1.5rem; }
.aud-objection p { font-size: 1.05rem; margin-bottom: 1.1rem; }
.aud-objection p:last-child { margin-bottom: 0; }

/* ── Final CTA ── */
.aud-final {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.aud-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 50%, rgba(107,127,212,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.aud-final .container { position: relative; }
.aud-final h2 { max-width: 760px; margin: 0 auto 1.25rem; }
.aud-final__line {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--periwinkle-soft);
  margin-bottom: 2.25rem;
}

/* ── Simplified footer ── */
.aud-footer {
  padding: 3rem 0 2rem;
  text-align: center;
}
.aud-footer .nav-logo { display: inline-block; margin-bottom: 1rem; }
.aud-footer__tag {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--periwinkle-soft);
  margin-bottom: 0.25rem;
}
.aud-footer__loc { font-size: 0.85rem; color: var(--text-muted); }
.aud-footer__copy {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(107,127,212,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── Thank-you page ── */
.aud-ty {
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.aud-ty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 20%, rgba(107,127,212,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.aud-ty .container { position: relative; max-width: 760px; text-align: center; }
.aud-ty__check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: rgba(107,127,212,0.15);
  border: 2px solid var(--periwinkle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}
.aud-ty h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.25rem; }
.aud-ty__lead { font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.aud-delivery {
  margin: 2.5rem auto 0;
  text-align: left;
  background: var(--navy-mid);
  border: 1.5px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.aud-delivery__main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
}
.aud-delivery__main strong { color: var(--periwinkle-soft); font-weight: 500; }
.aud-delivery p { font-size: 0.98rem; margin: 0; }
.aud-delivery .aud-delivery__main { margin-bottom: 1rem; font-size: clamp(1.15rem, 2.3vw, 1.4rem); }

.aud-next { margin-top: 3.5rem; text-align: left; }
.aud-next h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); text-align: center; margin-bottom: 1.75rem; }
.aud-next ol { list-style: none; display: grid; gap: 1rem; counter-reset: aud; }
.aud-next li {
  counter-increment: aud;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: var(--navy-mid);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.aud-next li::before {
  content: '0' counter(aud);
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--periwinkle);
}
.aud-next li strong { display: block; color: var(--white); font-weight: 500; margin-bottom: 0.15rem; }
.aud-next li span { font-size: 0.95rem; color: var(--periwinkle-soft); }

.aud-video { margin-top: 3.5rem; text-align: center; }
.aud-video h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 1.5rem; }
.aud-video .video-frame { max-width: 720px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .aud-hero.hero { padding: 6.5rem 0 3.5rem; }
  .aud-hero .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .aud-hero__copy p, .aud-hero__copy .aud-emphasis { max-width: none; }
  .aud-hero__right { max-width: 520px; width: 100%; margin: 0 auto; }
  .aud-steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .aud-hero .hero__title { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .aud-report { height: 340px; }
  .aud-report__sheet { width: 74%; }
  .aud-form-card { margin-top: -1.5rem; padding: 1rem; }
  .aud-form { min-height: 280px; }
  .aud-proof figure.card { padding: 1.75rem 1.4rem 1.5rem; }
  .aud-cta-wrap .btn { display: block; width: 100%; padding-left: 1.25rem; padding-right: 1.25rem; }
  .aud-delivery { padding: 1.4rem 1.25rem; }
  .aud-next li { grid-template-columns: 2.25rem 1fr; padding: 1.1rem 1.1rem; }
  .aud-ty { padding: 6.5rem 0 3rem; }
}

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

/* ── Thank-you: closing + safeguards ── */
.aud-video[hidden] { display: none !important; }
.aud-delivery__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 0.75rem;
}
.aud-ty .aud-delivery { margin-top: 2.5rem; }
.aud-ty .aud-delivery p { font-size: 0.98rem; margin-bottom: 0; }
.aud-ty .aud-delivery .aud-delivery__eyebrow { font-size: 0.72rem; margin-bottom: 0.75rem; }
.aud-ty .aud-delivery .aud-delivery__main { margin-bottom: 1rem; }
.aud-closing { margin-top: 2.5rem; text-align: left; }
.aud-closing__line { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.5rem; }
.aud-closing__sig { font-size: 0.98rem; line-height: 1.6; }
.aud-closing__sig strong { color: var(--white); font-weight: 500; }
.aud-ty h1, .aud-ty__lead { text-wrap: balance; }
