/* =====================================================================
   AI DISCOVERY — $1bn POLISH LAYER
   Editorial × Stripe × Apple. Layered on top of discovery-2027.css.
   Adds: motion tokens, hero source-card sequence, AI signal map,
   pricing card polish (ribbon, lift, glow), FAQ polish, final CTA cinema,
   scorecard scanning phases.
   ===================================================================== */

/* MOTION TOKENS — confident, slow, expensive */
:root {
  --pol-ease: cubic-bezier(0.22, 0.61, 0.36, 1);          /* confident out */
  --pol-ease-in: cubic-bezier(0.65, 0, 0.35, 1);          /* even */
  --pol-ease-soft: cubic-bezier(0.16, 1, 0.3, 1);         /* very soft */
  --pol-dur-fast: 240ms;
  --pol-dur: 520ms;
  --pol-dur-slow: 900ms;
  --pol-coral: #E63E48;
  --pol-coral-soft: rgba(230,62,72,0.08);
  --pol-ink: #1A1613;
  --pol-cream: #F7F2E8;
  --pol-cream-2: #F4EFE3;
}

/* Refine scroll reveal — softer, longer, more confident */
.d-reveal { transition: opacity var(--pol-dur-slow) var(--pol-ease-soft), transform var(--pol-dur-slow) var(--pol-ease-soft); }

/* ---------------------------------------------------------------------
   HERO — source-card cinematic sequence layered on the typing demo
   --------------------------------------------------------------------- */
.aid-hero { position: relative; isolation: isolate; }
.aid-hero::before {
  content: "";
  position: absolute; inset: -10% -5% auto auto;
  width: 60vmin; height: 60vmin;
  background: radial-gradient(circle, rgba(230,62,72,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.aid-hero__wrap > * { position: relative; z-index: 1; }

/* Source card row inside the AI demo — cinematic source pickup */
.pol-sources {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.pol-source {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(26,22,19,0.12);
  border-radius: 999px;
  background: #fff;
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #76706A;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--pol-dur) var(--pol-ease-soft), transform var(--pol-dur) var(--pol-ease-soft), border-color var(--pol-dur) var(--pol-ease), color var(--pol-dur) var(--pol-ease);
}
.pol-source.is-in { opacity: 1; transform: translateY(0); }
.pol-source.is-cited {
  border-color: var(--pol-coral);
  color: var(--pol-ink);
  box-shadow: 0 0 0 4px rgba(230,62,72,0.10);
}
.pol-source__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #C9C2B8;
  transition: background var(--pol-dur) var(--pol-ease);
}
.pol-source.is-cited .pol-source__dot { background: var(--pol-coral); }
.pol-source--glow {
  background: linear-gradient(135deg, #1A1613 0%, #2A2320 100%);
  color: #F7F2E8; border-color: #1A1613;
}
.pol-source--glow .pol-source__dot { background: #F7F2E8; }
.pol-source--glow.is-cited {
  box-shadow: 0 6px 24px rgba(230,62,72,0.35), 0 0 0 4px rgba(230,62,72,0.15);
}

/* Verdict pill that appears at the end of the hero sequence */
.pol-verdict {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--pol-coral); color: #fff;
  font: 600 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  opacity: 0; transform: translateY(8px) scale(0.96);
  transition: opacity var(--pol-dur) var(--pol-ease-soft) 200ms, transform var(--pol-dur) var(--pol-ease-soft) 200ms;
}
.pol-verdict.is-in { opacity: 1; transform: translateY(0) scale(1); }
.pol-verdict__check {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff; color: var(--pol-coral);
  font-size: 9px; font-weight: 700;
}

/* ---------------------------------------------------------------------
   AI SIGNAL MAP — the signature visual
   "Make invisible discovery visible"
   --------------------------------------------------------------------- */
.pol-signal {
  background: linear-gradient(180deg, #F4EFE3 0%, #EBE3D2 100%);
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-top: 1px solid rgba(26,22,19,0.06);
  border-bottom: 1px solid rgba(26,22,19,0.06);
  position: relative; overflow: hidden;
}
.pol-signal::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(230,62,72,0.04) 0%, transparent 40%),
    radial-gradient(circle at 82% 70%, rgba(26,22,19,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.pol-signal__wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.pol-signal__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.pol-signal__eyebrow {
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pol-coral); margin: 0 0 14px;
}
.pol-signal__h2 {
  font: 300 clamp(2rem, 4.5vw, 3.4rem)/1.05 var(--font-display, "Canela", serif);
  letter-spacing: -0.02em; color: var(--pol-ink); margin: 0 0 14px;
}
.pol-signal__h2 em { font-style: italic; color: var(--pol-coral); }
.pol-signal__sub {
  font: 400 clamp(1rem, 1.4vw, 1.125rem)/1.5 var(--font-body, Inter, sans-serif);
  color: #4A433D; margin: 0;
}

/* Three-column flow: Sources → AI engines → Outcomes */
.pol-flow {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  position: relative;
}
@media (min-width: 920px) {
  .pol-flow { grid-template-columns: 1fr 1.1fr 1fr; gap: 2rem; }
}

.pol-col {
  background: #fff;
  border: 1px solid rgba(26,22,19,0.08);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  position: relative;
}
.pol-col__title {
  font: 500 10px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #76706A; margin: 0 0 1rem;
  display: flex; align-items: center; gap: 8px;
}
.pol-col__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%; background: var(--pol-ink); color: var(--pol-cream);
  font-size: 9px; letter-spacing: 0;
}
.pol-col--centre { background: var(--pol-ink); color: var(--pol-cream); }
.pol-col--centre .pol-col__title { color: rgba(247,242,232,0.65); }
.pol-col--centre .pol-col__num { background: var(--pol-coral); color: #fff; }

.pol-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  margin: 6px 0;
  background: var(--pol-cream); border-radius: 10px;
  font: 500 13px/1.2 var(--font-body, Inter, sans-serif);
  color: var(--pol-ink);
  opacity: 0; transform: translateX(-8px);
  transition: opacity var(--pol-dur) var(--pol-ease-soft), transform var(--pol-dur) var(--pol-ease-soft), background var(--pol-dur) var(--pol-ease);
}
.is-in .pol-chip { opacity: 1; transform: translateX(0); }
.is-in .pol-chip:nth-child(2) { transition-delay: 60ms; }
.is-in .pol-chip:nth-child(3) { transition-delay: 120ms; }
.is-in .pol-chip:nth-child(4) { transition-delay: 180ms; }
.is-in .pol-chip:nth-child(5) { transition-delay: 240ms; }
.is-in .pol-chip:nth-child(6) { transition-delay: 300ms; }
.is-in .pol-chip:nth-child(7) { transition-delay: 360ms; }
.is-in .pol-chip:nth-child(8) { transition-delay: 420ms; }

.pol-col--centre .pol-chip {
  background: rgba(247,242,232,0.06);
  color: var(--pol-cream);
  border: 1px solid rgba(247,242,232,0.10);
}
.pol-col--centre .pol-chip strong { color: #fff; }

.pol-chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pol-coral);
  box-shadow: 0 0 0 3px rgba(230,62,72,0.12);
  flex-shrink: 0;
}
.pol-col--centre .pol-chip__dot { background: var(--pol-coral); box-shadow: 0 0 0 3px rgba(230,62,72,0.25); }
.pol-col--right .pol-chip__dot { background: #1A1613; box-shadow: 0 0 0 3px rgba(26,22,19,0.10); }

/* Connecting line between columns (desktop) */
.pol-flow__line {
  display: none;
}
@media (min-width: 920px) {
  .pol-flow__line {
    display: block;
    position: absolute; top: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,62,72,0.5), transparent);
    pointer-events: none; transform: translateY(-50%);
    z-index: 0;
  }
  .pol-flow__line--left { left: calc(33% - 18px); right: calc(67% + 18px); }
  .pol-flow__line--right { left: calc(67% + 18px); right: calc(33% - 18px); }
  /* dot drift along line */
  .pol-flow__line::after {
    content: ""; position: absolute; top: -2px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--pol-coral);
    box-shadow: 0 0 12px var(--pol-coral);
    animation: polDrift 3.6s linear infinite;
  }
  .pol-flow__line--right::after { animation-delay: 1.8s; }
}
@keyframes polDrift {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.pol-signal__caption {
  text-align: center; max-width: 700px; margin: 2.5rem auto 0;
  font: 400 14px/1.5 var(--font-body, Inter, sans-serif);
  color: #4A433D;
}
.pol-signal__caption em { font-style: italic; color: var(--pol-ink); }

/* ---------------------------------------------------------------------
   PRICING — most-chosen ribbon, hover lift, glow on Featured
   --------------------------------------------------------------------- */
.aid-tier {
  transition: transform var(--pol-dur) var(--pol-ease-soft),
              box-shadow var(--pol-dur) var(--pol-ease-soft),
              border-color var(--pol-dur) var(--pol-ease);
  position: relative;
}
.aid-tier:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(26,22,19,0.12), 0 8px 16px -8px rgba(26,22,19,0.08);
}
.aid-tier--featured {
  position: relative;
  border-color: rgba(230,62,72,0.35) !important;
  box-shadow: 0 18px 40px -12px rgba(230,62,72,0.18), 0 6px 14px -6px rgba(230,62,72,0.08);
}
.aid-tier--featured::before {
  content: "Most chosen";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--pol-coral); color: #fff;
  font: 600 10px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(230,62,72,0.30);
  z-index: 2;
  white-space: nowrap;
}
.aid-tier--featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 56px -16px rgba(230,62,72,0.28), 0 10px 20px -8px rgba(230,62,72,0.12);
}
.aid-tier__cta { transition: transform var(--pol-dur-fast) var(--pol-ease), background var(--pol-dur-fast) var(--pol-ease), color var(--pol-dur-fast) var(--pol-ease); }
.aid-tier__cta:hover { transform: translateX(4px); }

/* Tier microcopy line */
.aid-tier__micro {
  font: italic 400 13px/1.4 var(--font-display, "Canela", serif);
  color: #76706A;
  margin: -4px 0 14px;
  border-left: 2px solid var(--pol-coral);
  padding-left: 10px;
}

/* ---------------------------------------------------------------------
   FAQ — smoother accordion, plus → minus rotation, coral line on open
   --------------------------------------------------------------------- */
.d-faq-item {
  position: relative;
  transition: background var(--pol-dur) var(--pol-ease);
}
.d-faq-item::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px; background: var(--pol-coral);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--pol-dur) var(--pol-ease-soft);
  border-radius: 1px;
}
.d-faq-item:has(.d-faq-q[aria-expanded="true"])::before { transform: scaleY(1); }
.d-faq-q__icon {
  display: inline-block; transition: transform var(--pol-dur) var(--pol-ease-soft), color var(--pol-dur) var(--pol-ease);
  transform-origin: center; font-weight: 300;
}
.d-faq-q[aria-expanded="true"] .d-faq-q__icon { transform: rotate(45deg); color: var(--pol-coral); }
.d-faq-a { transition: max-height var(--pol-dur-slow) var(--pol-ease-soft); }

/* ---------------------------------------------------------------------
   FINAL CTA — cinematic signal-line backdrop, soft radial glow
   --------------------------------------------------------------------- */
.d-cta-final { position: relative; isolation: isolate; overflow: hidden; }
.d-cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.15) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
.d-cta-final::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%, transparent 100%);
  background-size: 200% 100%;
  animation: polShine 8s linear infinite;
  pointer-events: none; z-index: 0;
}
@keyframes polShine {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
.d-cta-final__inner { position: relative; z-index: 1; }

/* Mini diagram inside the final CTA: customer → AI → Glow → booking */
.pol-cta-mini {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 1.5rem auto 0; flex-wrap: wrap; max-width: 760px;
  opacity: 0.85;
}
.pol-cta-mini__step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pol-cta-mini__arrow {
  color: rgba(255,255,255,0.45); font: 400 14px/1 var(--font-body, Inter, sans-serif);
}

/* ---------------------------------------------------------------------
   SCORECARD — scanning phases, axis label glow on fill
   --------------------------------------------------------------------- */
.pol-scan {
  margin: 0 0 1rem;
  display: flex; gap: 10px; flex-wrap: wrap;
  min-height: 28px; align-items: center;
}
.pol-scan__item {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #BFB7AC;
  transition: color var(--pol-dur) var(--pol-ease);
}
.pol-scan__item.is-active { color: var(--pol-ink); }
.pol-scan__item.is-done   { color: #76706A; }
.pol-scan__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.45;
}
.pol-scan__item.is-active .pol-scan__dot {
  background: var(--pol-coral); opacity: 1;
  box-shadow: 0 0 0 3px rgba(230,62,72,0.20);
  animation: polPulse 1.1s var(--pol-ease) infinite;
}
.pol-scan__item.is-done .pol-scan__dot { background: #BFB7AC; opacity: 1; }
@keyframes polPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230,62,72,0.20); }
  50%      { box-shadow: 0 0 0 6px rgba(230,62,72,0.04); }
}

.d-score__bar-fill {
  transition: width 1.2s var(--pol-ease-soft);
  background: linear-gradient(90deg, var(--pol-coral) 0%, #FF7A6E 100%) !important;
}

/* ---------------------------------------------------------------------
   COMPARE CARDS — animate from crossed-out to verified on reveal
   --------------------------------------------------------------------- */
.aid-compare-card ul li {
  position: relative;
  transition: color var(--pol-dur) var(--pol-ease);
}
.aid-compare-card--bad ul li::before {
  content: "✕"; display: inline-block; width: 14px;
  margin-right: 8px; color: rgba(230,62,72,0.6);
  font: 700 11px/1 var(--font-body, Inter, sans-serif);
}
.aid-compare-card--good ul li::before {
  content: "✓"; display: inline-block; width: 14px;
  margin-right: 8px; color: var(--pol-coral);
  font: 700 11px/1 var(--font-body, Inter, sans-serif);
}

/* ---------------------------------------------------------------------
   BUTTONS — subtle premium hover
   --------------------------------------------------------------------- */
.aid-hero__btn, .d-btn {
  transition: transform var(--pol-dur-fast) var(--pol-ease),
              box-shadow var(--pol-dur-fast) var(--pol-ease),
              background var(--pol-dur-fast) var(--pol-ease);
}
.aid-hero__btn--solid:hover, .d-btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(230,62,72,0.35);
}
.aid-hero__btn--ghost:hover, .d-btn--ghost:hover {
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   PROOF — Live editorial rankings (the AI-cite-able layer)
   --------------------------------------------------------------------- */
.pol-proof {
  background: var(--pol-cream);
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-top: 1px solid rgba(26,22,19,0.06);
}
.pol-proof__wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.pol-proof__head { max-width: 760px; margin: 0 0 2.5rem; }
.pol-proof__eyebrow {
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pol-coral); margin: 0 0 14px;
}
.pol-proof__h2 {
  font: 300 clamp(2rem, 4.5vw, 3.4rem)/1.05 var(--font-display, "Canela", serif);
  letter-spacing: -0.02em; color: var(--pol-ink); margin: 0 0 14px;
}
.pol-proof__h2 em { font-style: italic; color: var(--pol-coral); }
.pol-proof__sub {
  font: 400 clamp(1rem, 1.4vw, 1.125rem)/1.55 var(--font-body, Inter, sans-serif);
  color: #4A433D; margin: 0;
}
.pol-proof__sub a {
  color: var(--pol-ink);
  border-bottom: 1px solid var(--pol-coral);
  text-decoration: none;
}

.pol-proof__cluster { margin-top: 2.5rem; }
.pol-proof__cluster-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(26,22,19,0.10);
}
.pol-proof__cluster-h3 {
  font: italic 400 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--font-display, "Canela", serif);
  color: var(--pol-ink); margin: 0;
}
.pol-proof__cluster-h3 strong {
  font-style: normal; font-weight: 500;
  color: var(--pol-coral);
}
.pol-proof__cluster-count {
  font: 500 10px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #76706A;
}

.pol-proof__grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: rgba(26,22,19,0.08);
  border: 1px solid rgba(26,22,19,0.08);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 640px)  { .pol-proof__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .pol-proof__grid { grid-template-columns: 1fr 1fr 1fr; } }

.pol-proof__card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  background: #fff;
  text-decoration: none;
  color: var(--pol-ink);
  transition: background var(--pol-dur-fast) var(--pol-ease),
              transform var(--pol-dur-fast) var(--pol-ease);
}
.pol-proof__card:hover {
  background: #FBF7EE;
}
.pol-proof__card-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #76706A;
}
.pol-proof__card-eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--pol-coral);
}
.pol-proof__card-h4 {
  font: 400 clamp(1.05rem, 1.5vw, 1.18rem)/1.25 var(--font-display, "Canela", serif);
  color: var(--pol-ink); margin: 0;
  letter-spacing: -0.01em;
}
.pol-proof__card-h4 em { font-style: italic; color: var(--pol-coral); }
.pol-proof__card-meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #76706A;
  padding-top: 8px;
}
.pol-proof__card-arrow {
  color: var(--pol-coral);
  font-size: 13px;
  transition: transform var(--pol-dur-fast) var(--pol-ease);
}
.pol-proof__card:hover .pol-proof__card-arrow { transform: translateX(4px); }

.pol-proof__foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26,22,19,0.10);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.pol-proof__foot-line {
  font: italic 400 clamp(0.95rem, 1.2vw, 1.05rem)/1.4 var(--font-display, "Canela", serif);
  color: #4A433D; margin: 0; max-width: 640px;
}
.pol-proof__foot-cta {
  font: 500 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pol-ink);
  border-bottom: 1px solid var(--pol-coral);
  padding-bottom: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.pol-proof__foot-cta:hover { color: var(--pol-coral); }

/* ---------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pol-source, .pol-chip, .pol-verdict { transition: none; opacity: 1; transform: none; }
  .pol-flow__line::after { animation: none; }
  .d-cta-final::after { animation: none; }
  .pol-scan__item.is-active .pol-scan__dot { animation: none; }
}
