/* page-extras.css — components for richer pages: steps, faq, timeline, integrations, comparison tables */

/* ---------- prose ---------- */
.prose p { margin-bottom: var(--sp-4); color: var(--text); line-height: var(--lh-relaxed); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); }

/* ---------- numbered steps ---------- */
.steps {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.step-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast) var(--ease);
}
.step-card:hover { border-color: var(--accent); }
.step-num {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--gradient-accent);
  color: var(--accent-on);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  box-shadow: var(--shadow-glow);
}
.step-body h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
  color: var(--text-strong);
}
.step-body p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-3);
}
.step-detail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.step-detail li {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-left: var(--sp-4);
  position: relative;
}
.step-detail li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.cmp-table th {
  background: var(--bg-card);
  padding: var(--sp-4);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-strong);
}
.cmp-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.cmp-table td:first-child { font-weight: 700; color: var(--text-strong); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table tr:hover td { background: var(--bg-card-hover); }
.cmp-table .cell-before { color: var(--text-muted); font-style: italic; }
.cmp-table .cell-after { color: var(--accent); font-weight: 600; }
.cmp-table small { color: var(--text-faint); font-weight: 400; }

/* deep comparison (more cols) */
.cmp-deep th, .cmp-deep td { font-size: var(--fs-xs); padding: var(--sp-3); }
.cmp-deep th:first-child, .cmp-deep td:first-child { min-width: 200px; }

/* ---------- integrations ---------- */
.integ-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.integ-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.integ-cat {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.integ-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.integ-pill {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.integ-pill:hover {
  color: var(--text-strong);
  border-color: var(--accent);
  background: var(--bg-card);
}

/* ---------- timeline / roadmap ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-accent);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: var(--sp-6);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-when {
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--gradient-accent);
  color: var(--accent-on);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xs);
  box-shadow: 0 0 0 4px var(--bg-elev);
}
.timeline-content h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}
.timeline-content p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.faq-item[open] {
  border-color: var(--accent);
}
.faq-item summary {
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--sp-10);
  font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: var(--sp-5);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: var(--fs-lg);
  transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.faq-answer p { margin-bottom: var(--sp-3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- detailed case cards ---------- */
.case-card {
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast) var(--ease);
}
.case-card:hover { border-color: var(--accent); }
.case-card .eyebrow { margin-bottom: var(--sp-2); }
.case-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
  color: var(--text-strong);
}
.case-card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-3);
}
.case-card p:last-child { margin-bottom: 0; }

/* ---------- pull quote ---------- */
.pullquote {
  border: 0;
  padding: var(--sp-6);
  margin: 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: var(--lh-snug);
  color: var(--text-strong);
  margin-bottom: var(--sp-4);
  font-style: italic;
}
.pullquote p::before { content: "“"; color: var(--accent); margin-right: 4px; }
.pullquote p::after  { content: "”"; color: var(--accent); margin-left: 4px; }
.pullquote cite {
  font-style: normal;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ========================================================
   Video embed (custom minimal YouTube player, lazy-load)
   ======================================================== */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}
.video-embed__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.video-embed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.video-embed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.08) 0%, rgba(6, 13, 26, 0.55) 100%);
  transition: background 300ms ease;
}
.video-embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: transform 300ms cubic-bezier(.2, .7, .2, 1.6), background 300ms ease;
}
.video-embed__play svg { margin-left: 4px; }
.video-embed__btn:hover .video-embed__poster { transform: scale(1.04); }
.video-embed__btn:hover .video-embed__overlay { background: linear-gradient(180deg, rgba(6, 13, 26, 0.04) 0%, rgba(6, 13, 26, 0.40) 100%); }
.video-embed__btn:hover .video-embed__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-hover); }
.video-embed__btn:focus-visible { outline: none; }
.video-embed:focus-within { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--accent); }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .video-embed__play { width: 64px; height: 64px; }
  .video-embed__play svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-embed__poster,
  .video-embed__overlay,
  .video-embed__play { transition: none; }
}
