/* =========================================================
   pages.css — shared visual components for standalone pages
   (/features, /pricing, /privacy, /faq). Layered on top of
   style.css. Keeps the index minimal and the standalones
   visually rich without duplicating tokens.
   ========================================================= */

/* -- Reveal-on-scroll (CSS half; the JS lives in each page head) -- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -- Page hero with floating visual accent -- */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero-glow::before,
.page-hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.page-hero-glow::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.6), transparent 70%);
  top: -80px; right: -60px;
  animation: float-glow 12s ease-in-out infinite;
}
.page-hero-glow::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
  bottom: -100px; left: 10%;
  animation: float-glow 14s ease-in-out infinite reverse;
}
@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -10px) scale(1.05); }
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

/* -- Hotkey chip badge for page hero corners -- */
.page-hero-chord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.32);
  font-size: 12px;
  color: rgb(196, 181, 253);
  margin-bottom: 18px;
}
.page-hero-chord kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 1px 5px;
}

/* =========================================================
   Flow blocks — used on /features for each of the 5 flows.
   Pairs a tall colored icon card on the left with rich text
   + a feature bullet list on the right. Alternates side per
   block via :nth-child(even).
   ========================================================= */
.flow-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.flow-block:last-child { border-bottom: none; }
.flow-block:nth-child(even) {
  grid-template-columns: 1fr 280px;
}
.flow-block:nth-child(even) .flow-visual { order: 2; }
.flow-block:nth-child(even) .flow-text { order: 1; }
@media (max-width: 880px) {
  .flow-block,
  .flow-block:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
  .flow-block:nth-child(even) .flow-visual { order: 0; }
  .flow-block:nth-child(even) .flow-text { order: 1; }
}

.flow-visual {
  position: relative;
  border-radius: 18px;
  padding: 32px 24px;
  min-height: 200px;
  background: linear-gradient(160deg, var(--flow-c1, rgba(124, 58, 237, 0.18)) 0%, var(--flow-c2, rgba(37, 99, 235, 0.10)) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.flow-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}
.flow-visual-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative; z-index: 1;
}
.flow-visual-icon svg { width: 22px; height: 22px; }
.flow-visual-chord {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative; z-index: 1;
}
.flow-visual-chord kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.40);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.flow-visual-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative; z-index: 1;
}

.flow-text { max-width: 560px; }
.flow-text .flow-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.flow-text .flow-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.2;
}
.flow-text .flow-lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.flow-text .flow-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-text .flow-points li {
  padding-left: 30px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.flow-text .flow-points li strong { color: var(--text); }
.flow-text .flow-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.42);
}
.flow-text .flow-points li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 8px; height: 4px;
  border-left: 1.5px solid rgb(196, 181, 253);
  border-bottom: 1.5px solid rgb(196, 181, 253);
  transform: rotate(-45deg);
}

/* =========================================================
   Long-tail grid — used at the bottom of /features. 8 small
   compact cards in a 4-up / 2-up / 1-up responsive grid.
   ========================================================= */
.tail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 980px) { .tail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tail-grid { grid-template-columns: 1fr; } }
.tail-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.tail-card:hover {
  border-color: rgba(124, 58, 237, 0.42);
  transform: translateY(-2px);
}
.tail-card-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.14);
  color: rgb(196, 181, 253);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.tail-card-icon svg { width: 16px; height: 16px; }
.tail-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.tail-card-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   Numbered detail blocks — used on /privacy for the "in detail"
   sections. Pairs a big number badge with the explanation.
   ========================================================= */
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.detail-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.detail-row:hover {
  border-color: rgba(124, 58, 237, 0.35);
}
@media (max-width: 640px) {
  .detail-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
}
.detail-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.45), rgba(37, 99, 235, 0.30));
  border: 1px solid rgba(124, 58, 237, 0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.detail-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}
.detail-body p,
.detail-body li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.detail-body p { margin: 0 0 10px; }
.detail-body ul {
  margin: 0 0 8px;
  padding-left: 22px;
}
.detail-body li { margin-bottom: 6px; }
.detail-body strong { color: var(--text); }
.detail-body a {
  color: rgb(167, 139, 250);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.35);
}
.detail-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* =========================================================
   FAQ accent — group headers with a colored bar so the four
   FAQ sections feel distinct instead of an endless wall.
   ========================================================= */
.faq-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 60px 0 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.faq-group-bar {
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, rgb(167, 139, 250), rgb(96, 165, 250));
  border-radius: 2px;
  flex-shrink: 0;
}
.faq-group-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.faq-group-count {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   Pricing extras — a comparison strip + a "What's included"
   trio under the cards so the page feels like a pricing
   page, not just three cards stacked.
   ========================================================= */
.pricing-trust {
  margin-top: 64px;
  text-align: center;
}
.pricing-trust-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.pricing-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-trust-row .trust-item {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-trust-row .trust-item svg {
  width: 18px; height: 18px;
  color: rgb(167, 139, 250);
  flex-shrink: 0;
}
