/* ═══════════════════════════════
   ProofLens — Custom styles
   (Tailwind handles the bulk)
   ═══════════════════════════════ */

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: #4F8CF7;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════
   PHONE MOCKUP
   ═══════════════════════════════ */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 260px;
  background: #1A1A24;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.phone-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.phone-notch {
  width: 80px;
  height: 22px;
  background: #1A1A24;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  display: block;
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .phone-mockup { max-width: 220px; border-radius: 30px; padding: 10px; }
  .phone-screen { border-radius: 20px; }
  .phone-notch  { width: 68px; height: 18px; border-radius: 0 0 10px 10px; }
}
@media (max-width: 480px) {
  .phone-mockup { max-width: 180px; border-radius: 26px; padding: 8px; }
  .phone-screen { border-radius: 18px; }
}

/* ═══════════════════════════════
   BROWSER FRAME
   ═══════════════════════════════ */
.browser-frame {
  max-width: 272px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.browser-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1a1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28c840; }
.browser-url {
  margin-left: 10px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-content {
  background: #1e1e22;
  line-height: 0;
}
.browser-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════
   PROOF PREVIEW (Hero)
   ═══════════════════════════════ */
.proof-preview {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

/* ═══════════════════════════════
   COMPARISON SLIDER
   ═══════════════════════════════ */
.comparison-slider {
  position: relative;
  max-width: 560px;
  width: 100%;
  aspect-ratio: 1024 / 670;
  overflow: hidden;
  border-radius: 16px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.comparison-base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.comparison-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.comparison-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 3;
}
.comparison-label--left {
  left: 16px;
  background: rgba(232, 69, 124, 0.15);
  color: #E8457C;
  border: 1px solid rgba(232, 69, 124, 0.25);
}
.comparison-label--right {
  right: 16px;
  background: rgba(79, 140, 247, 0.15);
  color: #4F8CF7;
  border: 1px solid rgba(79, 140, 247, 0.25);
}
.comparison-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}
.comparison-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
}
.comparison-handle-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1C1C24;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.comparison-handle-circle svg {
  width: 18px;
  height: 18px;
  stroke: #E8E8ED;
  opacity: 0.9;
}
.comparison-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 14px;
  border-radius: 100px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease;
}
.comparison-hint.hidden { opacity: 0; }

@media (max-width: 768px) {
  .comparison-slider { max-width: 100%; }
  .comparison-handle-circle { width: 36px; height: 36px; }
  .comparison-handle-circle svg { width: 16px; height: 16px; }
}

/* ═══════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════ */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-answer > p {
  overflow: hidden;
}
.faq-item[data-open] .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item[data-open] .faq-answer > p {
  padding-bottom: 8px;
}
.faq-item[data-open] .faq-icon-plus { display: none; }
.faq-item[data-open] .faq-icon-minus { display: block; }
.faq-item:not([data-open]) .faq-icon-minus { display: none; }

.faq-question {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-question:hover { color: #4F8CF7; }