/* ============================================================================
   "See it in action" — landing-page product showcase.
   Alternating image/text rows with browser- and phone-framed real screenshots,
   plus a dependency-free click-to-zoom lightbox (js/showcase.js). Inherits the
   page design tokens (teal, dark mode, reveal-on-scroll) from main.css.
   ============================================================================ */

.showcase-rows {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

/* One capability per row: framed shot on one side, the pitch on the other. */
.showcase-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
/* Zig-zag: even rows flip the art to the right. */
.showcase-row:nth-child(even) .showcase-media { order: 2; }

/* ---------- Text column ---------- */
.showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.showcase-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.85;
}
.showcase-title {
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin-bottom: 14px;
}
.showcase-text p {
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.62;
  max-width: 48ch;
}
.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
/* The "go" arrow + its hover glide now come from the shared .cta-arrow utility. */

/* ---------- Media / frames ---------- */
.showcase-media {
  position: relative;
  cursor: zoom-in;
}
.showcase-media:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

/* Browser-chrome frame */
.frame-browser {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.showcase-media:hover .frame-browser { transform: translateY(-3px); }
.frame-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.frame-dots { display: flex; gap: 7px; flex: none; }
.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.frame-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 21px;
  padding: 0 12px;
  max-width: 290px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-url svg { flex: none; opacity: 0.85; }
.frame-browser img,
.frame-browser video {
  display: block;
  width: 100%;
  height: auto;
}

/* Phone frame (for the mobile shot) */
.showcase-media.is-phone {
  display: flex;
  justify-content: center;
}
.frame-phone {
  position: relative;
  width: 300px;
  max-width: 80%;
  padding: 10px;
  border-radius: 42px;
  background: #0b0d12;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
}
.showcase-media:hover .frame-phone { transform: translateY(-3px); }
.frame-phone::before { /* notch */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  background: #0b0d12;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.frame-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* Zoom-hint badge (appears on hover/focus) */
.frame-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  border: 1px solid var(--border);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 3;
}
.is-phone .frame-zoom { top: 20px; right: 18px; }
.showcase-media:hover .frame-zoom,
.showcase-media:focus-visible .frame-zoom { opacity: 1; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  background: rgba(2, 6, 12, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lb.open { opacity: 1; }
.lb img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.97);
  transition: transform 0.2s ease;
}
.lb.open img { transform: scale(1); }
.lb-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Lightbox video ---------- */
.lb-video {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  background: #000;
  transform: scale(0.97);
  transition: transform 0.2s ease;
}
.lb.open .lb-video { transform: scale(1); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .showcase-rows { gap: 56px; }
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  /* Always art-first on a phone, regardless of the desktop zig-zag. */
  .showcase-row:nth-child(even) .showcase-media { order: 0; }
  .showcase-text p { max-width: none; }
  .frame-phone { width: 244px; }
}

/* ============================================================================
   "Redact or anonymize?" — the AI-prep fork band (index.html #ai-fork).
   Two intent cards routing to the redact-for-ai / anonymize-for-ai landings,
   placed below the showcase. Teal (--primary) = permanent + certificate;
   indigo = reversible tokens. Inherits the page tokens; the indigo accents are
   the only non-token colors, kept in sync with anonymize-for-ai.html.
   ============================================================================ */

.ai-fork-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-fork-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.ai-fork-card {
  --fork: var(--primary); /* per-door accent; overridden for anonymize below */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ai-fork-card--anon { --fork: #6366f1; }
html[data-theme="dark"] .ai-fork-card--anon { --fork: #818cf8; }

.ai-fork-card:hover {
  transform: translateY(-2px);
  border-color: var(--fork);
  box-shadow: var(--shadow-lg);
}
.ai-fork-card:focus-visible {
  outline: 2px solid var(--fork);
  outline-offset: 3px;
}
.ai-fork-card:hover .cta-arrow { transform: translateX(4px); }

.ai-fork-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 13px;
  color: var(--fork);
  background: color-mix(in srgb, var(--fork) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fork) 26%, transparent);
}

.ai-fork-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ai-fork-lede {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}
.ai-fork-card > p:not(.ai-fork-lede) {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-fork-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  white-space: nowrap;
}
html[data-theme="dark"] .ai-fork-token { color: #c7d2fe; }

.ai-fork-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  color: var(--fork);
}

@media (max-width: 860px) {
  .ai-fork-grid { grid-template-columns: 1fr; gap: 18px; }
  .ai-fork-card { padding: 24px 22px; }
}
