/* Redesign 2026 — components for the new homepage and new pages.
   Builds on styles.css tokens (colors, spacing, radius) so dark/light themes keep working. */

/* ---------- Nav: Product dropdown ---------- */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 4px; }
.nav-item-dropdown > .nav-link svg { width: 12px; height: 12px; }
.nav-dropdown {
  position: absolute; top: 100%; left: -12px; min-width: 220px; padding: 8px;
  background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: all 0.15s ease; z-index: 50;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: var(--radius-md); color: var(--color-text-primary); font-size: 0.9rem; }
.nav-dropdown a span { display: block; color: var(--color-text-muted); font-size: 0.78rem; margin-top: 2px; }
.nav-dropdown a:hover { background: var(--color-bg-card-hover); }
@media (max-width: 1024px) {
  /* inherit, not visible: the cloned dropdowns live inside the hidden mobile menu and must stay untappable until it opens */
  .nav-dropdown { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .nav-item-dropdown > .nav-link svg { display: none; }
}

/* ---------- Shared section bits ---------- */
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-md);
}
.section-lede { max-width: 720px; margin: 0 auto; color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.6; }
.plan-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text-secondary);
}

/* ---------- Hero proof line ---------- */
.hero-proof { margin-top: var(--space-lg); font-size: 0.9rem; color: var(--color-text-muted); }
.hero-proof a { color: var(--color-primary); }

/* ---------- Problem cards ---------- */
.problem-card .card-title { font-size: 1.15rem; }
.problem-link { display: inline-flex; gap: 6px; align-items: center; margin-top: var(--space-2xl); color: var(--color-primary); font-weight: 500; }

/* ---------- See / Guide / Check / Know ---------- */
.chain { display: grid; gap: var(--space-3xl); }
.chain-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-3xl); align-items: center; }
.chain-row:nth-child(even) .chain-copy { order: 2; }
.chain-step { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-md); }
.chain-step-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  background: var(--color-primary-glow); color: var(--color-primary); border: 1px solid var(--color-primary);
}
.chain-step-word { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--color-primary); }
.chain-copy h3 { font-size: 1.75rem; line-height: 1.25; margin-bottom: var(--space-md); }
.chain-copy p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }
.chain-points { list-style: none; padding: 0; margin: 0 0 var(--space-md); display: grid; gap: 8px; }
.chain-points li { position: relative; padding-left: 22px; color: var(--color-text-secondary); font-size: 0.95rem; }
.chain-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.shot-placeholder {
  aspect-ratio: 16 / 10; border-radius: var(--radius-xl); border: 1px dashed var(--color-border);
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-darker) 100%);
  display: grid; place-items: center; text-align: center; padding: var(--space-xl); color: var(--color-text-muted); font-size: 0.9rem;
}
.shot-placeholder strong { display: block; color: var(--color-text-secondary); font-size: 1rem; margin-bottom: 6px; }

/* ---------- Product screenshots ---------- */
.product-shot { margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.product-shot img { display: block; width: 100%; height: auto; }
.product-shot figcaption { padding: 10px 16px; font-size: 0.85rem; color: #5a6478; background: #f7f8fb; border-top: 1px solid #dde2ec; }
.product-shot-wide { max-width: 1100px; margin: var(--space-3xl) auto 0; }

/* ---------- See: frame + AI draft step card ---------- */
.step-visual { position: relative; margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.step-visual img { display: block; width: 100%; height: auto; }
.step-card { position: absolute; left: 16px; bottom: 16px; width: min(58%, 420px); padding: 12px 14px; border-radius: var(--radius-lg);
  background: rgba(10,14,22,0.88); border: 1px solid rgba(0,188,212,0.35); backdrop-filter: blur(6px); color: #fff; }
.step-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.step-card-num { font-family: var(--font-mono); color: var(--color-primary); font-weight: 600; }
.step-card-time { font-family: var(--font-mono); color: #a0a8bb; }
.step-card-draft { flex-basis: 100%; color: #ffb74d; font-weight: 600; }
.step-card-text { margin: 0 0 6px; font-size: 0.9rem; line-height: 1.4; }
.step-card-focus { margin: 0; font-size: 0.82rem; color: #c3cad8; }
.step-card-focus strong { color: var(--color-primary); font-weight: 600; margin-right: 6px; }

/* ---------- Guide: animated voice-guided training session ---------- */
.voice-demo { border-radius: var(--radius-xl); border: 1px solid rgba(0,188,212,0.25); padding: 20px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(0,188,212,0.14), transparent 60%), linear-gradient(180deg, #0d1320, #070a10);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35); color: #fff; min-height: 340px; display: flex; flex-direction: column; gap: 12px; }
.voice-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.voice-demo-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); }
.voice-demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 0 rgba(0,188,212,0.6); animation: voice-live 1.8s ease-out infinite; }
@keyframes voice-live { 0% { box-shadow: 0 0 0 0 rgba(0,188,212,0.6); } 100% { box-shadow: 0 0 0 8px rgba(0,188,212,0); } }
.voice-demo-note { font-size: 0.72rem; color: #8b94a8; }
.voice-demo-step { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: 0.85rem; }
.voice-demo-sop { font-family: var(--font-sans); color: #8b94a8; font-size: 0.78rem; }
.voice-demo-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.voice-demo-bar span { display: block; height: 100%; width: 37.5%; background: var(--color-primary); transition: width 0.6s ease; }
.voice-demo-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 180px; }
.voice-line { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 0.92rem; line-height: 1.45; animation: voice-in 0.35s ease-out both; }
.voice-line.agent { align-self: flex-start; background: rgba(0,188,212,0.12); border: 1px solid rgba(0,188,212,0.3); }
.voice-line.op { align-self: flex-end; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); font-weight: 600; }
.voice-line .who { display: block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8b94a8; margin-bottom: 2px; font-weight: 600; }
@keyframes voice-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.voice-demo-wave { display: flex; align-items: center; gap: 4px; height: 22px; }
.voice-demo-wave i { width: 4px; height: 4px; border-radius: 2px; background: var(--color-primary); opacity: 0.35; transition: height 0.15s ease; }
.voice-demo.speaking .voice-demo-wave i { opacity: 1; animation: voice-wave 0.9s ease-in-out infinite; }
.voice-demo.speaking .voice-demo-wave i:nth-child(3n) { animation-delay: -0.3s; }
.voice-demo.speaking .voice-demo-wave i:nth-child(3n+1) { animation-delay: -0.6s; }
@keyframes voice-wave { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.voice-demo-foot { font-size: 0.78rem; color: #8b94a8; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .voice-line, .voice-demo-dot, .voice-demo.speaking .voice-demo-wave i { animation: none; }
}
@media (max-width: 768px) {
  .step-card { position: static; width: auto; border-radius: 0; border-width: 1px 0 0; }
  .step-card-draft { margin-left: 0; }
}

/* ---------- Proof matrix ---------- */
.proof-matrix { max-width: 960px; margin: 0 auto; border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--color-bg-card); }
.proof-matrix table { width: 100%; border-collapse: collapse; }
.proof-matrix th, .proof-matrix td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--color-border-light); }
.proof-matrix th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-bg-darker); }
.proof-matrix tr:last-child td { border-bottom: 0; }
.proof-matrix .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-text-secondary); }
.proof-cell {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border-radius: var(--radius-full);
  padding: 6px 14px; font-weight: 600; font-size: 0.85rem; border: 1px solid transparent; background: none; font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.proof-cell:hover, .proof-cell:focus-visible { transform: translateY(-1px); box-shadow: 0 0 0 3px var(--color-primary-glow); outline: none; }
.proof-cell svg { width: 14px; height: 14px; }
.proof-cell.verified { color: var(--color-success); border-color: rgba(76,175,80,0.45); background: rgba(76,175,80,0.1); }
.proof-cell.review { color: var(--color-warning); border-color: rgba(255,152,0,0.45); background: rgba(255,152,0,0.1); }
.proof-cell .play { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 8px; border-left: 1px solid currentColor; font-weight: 500; opacity: 0.9; }
.proof-cell .play svg { width: 14px; height: 14px; }
.proof-row { cursor: pointer; transition: background 0.15s ease; }
.proof-row:hover { background: var(--color-bg-card-hover); }
.proof-row:hover .proof-cell { transform: translateY(-1px); box-shadow: 0 0 0 3px var(--color-primary-glow); }
.proof-chevron { width: 32px; color: var(--color-text-muted); padding-left: 0 !important; }
.proof-chevron svg { width: 16px; height: 16px; display: block; transition: transform 0.15s ease, color 0.15s ease; }
.proof-row:hover .proof-chevron svg { transform: translateX(3px); color: var(--color-primary); }

/* Invitation to click: one staggered ripple when the matrix scrolls into view,
   then a slow pulse on the Verified result until the first click. */
.proof-cell { position: relative; }
.proof-cell::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; }
.proof-cell.verified::after { box-shadow: 0 0 0 0 rgba(76,175,80,0.55); }
.proof-cell.review::after { box-shadow: 0 0 0 0 rgba(255,152,0,0.55); }
.proof-matrix.sweep .proof-cell::after { animation: proof-ring 0.9s ease-out 1 both; animation-delay: calc(var(--i, 0) * 140ms); }
.proof-matrix.beckon .proof-cell.verified::after { animation: proof-ring 1.6s ease-out infinite; animation-delay: 0.4s; }
@keyframes proof-ring {
  0% { opacity: 1; box-shadow: 0 0 0 0 var(--ring, rgba(0,188,212,0.55)); }
  100% { opacity: 0; box-shadow: 0 0 0 10px rgba(0,0,0,0); }
}
.proof-cell.verified { --ring: rgba(76,175,80,0.6); }
.proof-cell.review { --ring: rgba(255,152,0,0.6); }

.proof-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto var(--space-md); font-size: 0.9rem; color: var(--color-primary); font-weight: 500; transition: opacity 0.3s ease; }
.proof-hint-hand { width: 22px; height: 22px; display: inline-block; transform: rotate(180deg); animation: proof-tap 1.6s ease-in-out infinite; }
.proof-hint-hand svg { width: 100%; height: 100%; }
/* The hand points down at the table and taps toward it. */
@keyframes proof-tap { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(-4px) scale(0.92); } }
.proof-hint.done { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .proof-hint-hand { transform: rotate(180deg); }
  .proof-matrix.sweep .proof-cell::after, .proof-matrix.beckon .proof-cell.verified::after, .proof-hint-hand { animation: none; }
}
.proof-note { max-width: 960px; margin: var(--space-md) auto 0; font-size: 0.85rem; color: var(--color-text-muted); text-align: center; }

.proof-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; background: rgba(0,0,0,0.7); overflow-y: auto; }
.proof-modal.open { display: flex; }
.proof-modal-card { width: min(880px, 100%); background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.proof-modal-label { padding: 12px 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); border-bottom: 1px solid var(--color-border); }
.proof-modal-video { height: min(56vh, 560px); background: #fff; }
.proof-modal-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.proof-modal-body { padding: var(--space-xl); display: grid; gap: var(--space-md); }
.proof-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); }
.proof-modal-head h3 { font-size: 1.35rem; margin: 0; }
.proof-modal-close { background: none; border: 0; color: var(--color-text-secondary); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.proof-stats { display: flex; flex-wrap: wrap; gap: var(--space-xl); }
.proof-stat-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; }
.proof-stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.proof-why { color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.6; }
.proof-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Standard (experts / AI / people) ---------- */
.standard { text-align: center; }
.standard h2 { max-width: 820px; margin: 0 auto var(--space-md); }
.standard-grid { margin-top: var(--space-3xl); text-align: left; }
.standard-grid .card-title { display: flex; align-items: center; gap: 10px; }

/* ---------- Strips (SOPs, Enterprise) ---------- */
.strip { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-3xl); align-items: center; }
.strip-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.strip-item { padding: var(--space-lg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.strip-item h4 { font-size: 1rem; margin-bottom: 6px; }
.strip-item p { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0; line-height: 1.55; }
.strip-copy p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: var(--space-lg); }

/* ---------- Pricing teaser ---------- */
.price-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.price-tile { padding: var(--space-xl); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-card); display: flex; flex-direction: column; gap: 8px; }
.price-tile.featured { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary-glow); }
.price-name { font-weight: 600; }
.price-amount { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; }
.price-amount small { font-size: 0.85rem; color: var(--color-text-muted); font-family: var(--font-sans); font-weight: 400; }
.price-desc { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.5; }

/* ---------- Content pages ---------- */
.page-hero { padding-top: 150px; }
.page-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.12; max-width: 900px; margin: 0 auto var(--space-lg); }
.chain-row .product-shot { box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.strip-copy a { color: var(--color-primary); }

/* ---------- Stub pages (next round) ---------- */
.stub { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 140px 16px 80px; }
.stub p { color: var(--color-text-secondary); max-width: 560px; margin: var(--space-md) auto 0; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .price-teaser { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .chain-row { grid-template-columns: 1fr; gap: var(--space-xl); }
  .chain-row:nth-child(even) .chain-copy { order: 0; }
  .strip-list { grid-template-columns: 1fr; }
  .price-teaser { grid-template-columns: 1fr; }
  .proof-matrix th:nth-child(3), .proof-matrix td:nth-child(3),
  .proof-matrix th:nth-child(4), .proof-matrix td:nth-child(4) { display: none; }
  .proof-matrix th, .proof-matrix td { padding: 12px; }
  .proof-cell { white-space: nowrap; padding: 6px 10px; }
  .proof-cell .play { display: none; }
  .proof-chevron { display: none; }
  .proof-modal { padding: 12px; }
  .proof-modal-video { height: 50vh; }
}
