/* home.css — Relay homepage page-specific styles
   Requires relay.css for shared foundation         */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.eyebrow {
  font-family: var(--font-code);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}

.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 40px;
}
.section-label .slash { color: var(--accent); font-family: var(--font-code); font-size: 14px; }
.section-label h2 {
  font-family: var(--font-sans); font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}


/* ─── HERO ───────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 80px) 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,217,200,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 15px; line-height: 1.75;
  color: var(--text-2); max-width: 460px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-descriptor {
  margin-top: 48px;
  font-family: var(--font-code);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-3); text-transform: uppercase;
}
.hero-descriptor span { color: var(--accent); }

/* PIN Demo visual */
.pin-demo {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--font-code);
}
.pin-demo-bar {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 24px;
}
.pin-dot { width: 6px; height: 6px; border-radius: 50%; }
.pin-dot.r { background: #ef4444; }
.pin-dot.y { background: #f59e0b; }
.pin-dot.g { background: #22c55e; }
.pin-demo-label {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-left: 6px;
}
.pin-step {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pin-step-label {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.pin-step-line {
  font-size: 11px; color: var(--text-2); line-height: 1.8;
}
.pin-step-line .acc { color: var(--accent); }
.pin-step-line .dim { color: var(--text-3); }
.pin-display {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 20px 0;
}
.pin-char {
  width: 44px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,217,200,0.25);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code);
  font-size: 22px; font-weight: 500;
  color: var(--accent);
}
.pin-char.blank { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--border-hi); }
.pin-meta {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); text-align: center; margin-top: 8px;
}
.pin-claim {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pin-claim-line { font-size: 11px; color: var(--text-2); line-height: 1.8; }
.pin-claim-line .acc { color: var(--accent); }
.pin-claim-line .cursor {
  display: inline-block; width: 7px; height: 12px;
  background: var(--accent); vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 960px) {
  .hero { min-height: unset; padding: calc(var(--nav-h) + 40px) 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-descriptor { margin-top: 20px; }
  .pin-demo { display: none; }
}

/* ─── PIPE SECTION ───────────────────────────────────── */
.pipe-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.pipe-intro {
  text-align: center; max-width: 640px; margin: 0 auto 56px;
}
.pipe-intro h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--text);
  margin-bottom: 16px;
}
.pipe-intro p { font-size: 15px; line-height: 1.75; color: var(--text-2); }
.pipe-grid {
  display: grid; grid-template-columns: 1fr 200px 1fr;
  gap: 0; align-items: stretch;
}
.pipe-col {
  padding: 40px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pipe-col-tag {
  font-family: var(--font-code);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.pipe-col-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.pipe-col-tag.source::before { background: var(--purple); }
.pipe-col-tag.source { color: var(--purple); }
.pipe-col.source-col { border-left: 3px solid var(--purple); }
.pipe-col.share-col  { border-right: 3px solid var(--accent); }
.pipe-col-heading {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700; letter-spacing: -0.018em;
  color: var(--text); margin-bottom: 14px; line-height: 1.2;
}
.pipe-col-body { font-size: 14px; line-height: 1.75; color: var(--text-2); margin-bottom: 28px; }
.pipe-col-cue {
  font-family: var(--font-code);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  border-left: 2px solid var(--border-hi);
  padding-left: 12px;
}
/* Center flow card */
.pipe-center {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative; padding: 24px 16px;
}
.pipe-center::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--border); z-index: 0;
}
.pipe-flow-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-code);
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.pf-row { display: flex; align-items: center; gap: 5px; padding: 5px 0; }
.pf-fn  { color: var(--accent); }
.pf-fn.source-fn { color: var(--purple); }
.pf-arrow { color: var(--text-3); font-size: 13px; }
.pf-divider { border-top: 1px solid var(--border); margin: 6px 0; }
.pf-pin {
  text-align: center; padding: 7px 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--text-2);
}
.pf-pin-val { color: var(--accent); }
.pf-pin-label { font-size: 9px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; display: block; margin-top: 2px; }
@media (max-width: 768px) {
  .pipe-grid { grid-template-columns: 1fr; gap: 2px; }
  .pipe-center { display: none; }
  .pipe-col { padding: 28px 24px; border-radius: var(--radius); }
  .pipe-col.source-col { border-left: 3px solid var(--purple); }
  .pipe-col.share-col  { border-left: 3px solid var(--accent); border-right: none; }
}

/* ─── HERO VISUALIZER (V1-style relay graphic) ───────── */
.hero-viz { width: 100%; }
.visualizer {
  width: 100%; height: 320px;
  position: relative;
}
.viz-session {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 152px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 14px;
  font-family: var(--font-code);
}
.viz-session.left  { left: 0; }
.viz-session.right { right: 0; }
.viz-session-bar {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 8px;
}
.viz-dot { width: 6px; height: 6px; border-radius: 50%; }
.viz-dot.red    { background: #ef4444; }
.viz-dot.yellow { background: #f59e0b; }
.viz-dot.green  { background: #22c55e; }
.viz-session-label {
  font-size: 8px; letter-spacing: 0.1em; color: var(--text-3);
  text-transform: uppercase; margin-bottom: 6px;
}
.viz-line { font-size: 9px; line-height: 1.9; color: var(--text-3); }
.viz-line .hl  { color: var(--accent); }
.viz-line .hl2 { color: var(--text-2); }
.viz-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.viz-badge {
  font-family: var(--font-code);
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(0,217,200,0.2);
  padding: 2px 7px; border-radius: 3px;
  animation: badge-blink 2s ease-in-out infinite;
}
@keyframes badge-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.viz-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2;
}
.relay-mark {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); position: relative;
}
.relay-mark::before {
  content: ''; position: absolute;
  width: 70px; height: 70px; border-radius: 50%;
  border: 1px solid rgba(0,217,200,0.18);
  animation: ring-expand 4s ease-out infinite;
}
.relay-mark::after {
  content: ''; position: absolute;
  width: 90px; height: 90px; border-radius: 50%;
  border: 1px solid rgba(0,217,200,0.07);
  animation: ring-expand 4s ease-out infinite 1.4s;
}
@keyframes ring-expand {
  0%   { opacity: 0.8; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.2); }
}
.relay-mark-word { font-family: var(--font-sans); font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.viz-center-label { font-family: var(--font-code); font-size: 8px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }
@media (max-width: 960px) {
  .hero-viz { display: block; margin-top: 12px; }
  .visualizer { height: 260px; }
  .viz-session { width: 128px; padding: 12px 10px; }
  .viz-line { font-size: 8px; }
  .viz-session-label { font-size: 7px; }
  .pipe-section { padding: 44px 0 56px; }
  .pipe-intro { margin-bottom: 32px; }
}
@media (max-width: 480px) {
  .visualizer { height: 230px; }
  .viz-session { width: 110px; padding: 10px 8px; }
  .viz-line { font-size: 7.5px; line-height: 1.75; }
}

/* ─── SECTION BASE ───────────────────────────────────── */
.section { padding: 100px 0; border-top: 1px solid var(--border); }

/* ─── HOW IT WORKS ───────────────────────────────────── */
.hiw-steps {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.hiw-step {
  display: flex; flex-direction: column; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-header {
  display: flex; align-items: flex-start; gap: 16px;
  width: 100%;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
}
.hiw-step-header:hover { background: var(--surface-hi); }
.step-num {
  font-family: var(--font-code);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0; padding-top: 2px;
  min-width: 28px;
}
.hiw-step-titles { flex: 1; }
.step-title {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.018em; color: var(--text);
  line-height: 1.3; margin-bottom: 2px;
}
.step-summary {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
}
.step-chevron {
  flex-shrink: 0; padding-top: 4px;
  font-size: 11px; color: var(--text-3);
  transition: transform 0.25s;
}
.hiw-step.open .step-chevron { transform: rotate(90deg); }
.hiw-step-body {
  display: none;
  padding: 0 28px 24px 72px;
  font-size: 13px; line-height: 1.75;
  color: var(--text-2);
}
.hiw-step.open .hiw-step-body { display: block; }

/* Animated progress indicator */
.hiw-progress {
  display: flex; gap: 6px; margin-bottom: 24px;
}
.hiw-pip {
  height: 2px; flex: 1;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}
.hiw-pip.active { background: var(--accent); }

.hiw-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hiw-cta-text { font-size: 13px; color: var(--text-3); }
.hiw-cta-text strong { color: var(--text-2); font-weight: 500; }

/* ─── USE CASES ──────────────────────────────────────── */
.uc-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.uc-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.uc-item:last-child { border-bottom: none; }
.uc-item-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
}
.uc-item-header:hover { background: var(--surface-hi); }
.uc-tag {
  font-family: var(--font-code);
  font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  flex-shrink: 0;
}
.uc-tag.source { color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(0,217,200,0.2); }
.uc-tag.share  { color: var(--purple); background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); }
.uc-tag.operators { color: var(--text-3); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.uc-item-titles { flex: 1; }
.uc-title {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.018em; color: var(--text);
  margin-bottom: 2px; line-height: 1.3;
}
.uc-lead { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.uc-link {
  display: inline-flex; align-items: center;
  opacity: 0; flex-shrink: 0;
  margin-right: 2px;
  color: var(--text-3);
  transition: opacity 0.15s, color 0.15s;
  text-decoration: none !important;
}
.uc-item-header:hover .uc-link { opacity: 1; }
.uc-link:hover { color: var(--accent); }
.uc-chevron {
  flex-shrink: 0;
  font-size: 11px; color: var(--text-3);
  transition: transform 0.25s;
}
.uc-item.open .uc-chevron { transform: rotate(90deg); }
.uc-item-body {
  display: none;
  padding: 0 28px 24px;
  padding-left: calc(28px + 8px + 44px + 16px); /* align with title */
}
.uc-item.open .uc-item-body { display: block; }
.uc-body { font-size: 13px; line-height: 1.75; color: var(--text-2); margin-bottom: 12px; }
.uc-cue {
  font-family: var(--font-code);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); border-left: 2px solid var(--border-hi); padding-left: 10px;
}

/* ─── PRINCIPLES / HOW IT'S BUILT ────────────────────── */
/* Pipe diagram */
.pipe-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 40px;
  font-family: var(--font-code);
  overflow-x: auto;
}
.pipe-diagram-row {
  display: flex; align-items: center; gap: 0;
  font-size: 11px; color: var(--text-3);
  white-space: nowrap;
  flex-wrap: wrap;
}
.pd-node {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.pd-node-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.pd-node-name { font-size: 12px; color: var(--text-2); font-weight: 500; }
.pd-node.relay { border-color: rgba(0,217,200,0.3); background: var(--accent-dim); }
.pd-node.relay .pd-node-name { color: var(--accent); }
.pd-arrow {
  padding: 0 12px; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.pd-arrow-fn { font-size: 8px; letter-spacing: 0.06em; color: var(--accent); }
.pd-arrow-line { font-size: 14px; color: var(--border-hi); }
.pipe-diagram-caption {
  margin-top: 16px;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--text-3); line-height: 1.7;
}
/* Bidirectional pipe diagram */
.pd-biflow { display: flex; align-items: center; gap: 0; }
.pd-biflow-arrows { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.pd-biflow-row { display: flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.pd-biflow-row.rev { opacity: 0.55; }
.pd-biflow-line {
  flex: 1;
  min-width: 48px;
  height: 1px;
  background: var(--border-hi);
  position: relative;
  align-self: center;
}
.pd-biflow-row:not(.rev) .pd-biflow-line::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3.5px;
  border: 4px solid transparent;
  border-left-color: var(--border-hi);
  border-right: none;
}
.pd-biflow-row.rev .pd-biflow-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -3.5px;
  border: 4px solid transparent;
  border-right-color: var(--border-hi);
  border-left: none;
}
.pd-biflow-fn { font-size: 8.5px; color: var(--accent); letter-spacing: 0.04em; }
.pd-biflow-tag {
  font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1px 5px; border-radius: 2px;
}
.pd-biflow-tag.share { color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(0,217,200,0.2); }
.pd-biflow-tag.source { color: var(--purple); background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); }
@media (max-width: 640px) {
  .pipe-diagram-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pd-arrow { flex-direction: row; padding: 4px 0; }
  .pd-biflow { flex-direction: column; align-items: stretch; gap: 0; }
  .pd-biflow-arrows {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
  }
  .pd-biflow-row { flex: 0 0 auto; }
  .pd-biflow-line { display: none; }
  .pd-node { width: 100%; text-align: center; }
}
.principles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.principle {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.principle:last-child { border-right: none; }
.principle-icon { font-family: var(--font-code); font-size: 18px; color: var(--accent); margin-bottom: 14px; opacity: 0.8; }
.principle-title {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.015em; color: var(--text); margin-bottom: 8px;
}
.principle-body { font-size: 12px; line-height: 1.7; color: var(--text-2); }
.principles-cta { text-align: center; }
@media (max-width: 768px) {
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-right: none; }
  .principle { border-bottom: 1px solid var(--border); }
  .principle:nth-child(3), .principle:nth-child(4) { border-bottom: none; }
  .principle:nth-child(3) { border-right: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-right: none; border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: none; }
}

/* ─── FAQ LEAD ────────────────────────────────────────── */
.faq-lead {
  margin-top: 60px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.faq-lead-text h3 {
  font-family: var(--font-sans); font-size: 18px; font-weight: 600;
  letter-spacing: -0.016em; color: var(--text); margin-bottom: 4px;
}
.faq-lead-text p { font-size: 13px; color: var(--text-3); }
@media (max-width: 600px) {
  .faq-lead { flex-direction: column; align-items: flex-start; }
}

/* ─── PLATFORM PREVIEW ───────────────────────────────── */
.platform-intro { max-width: 560px; margin-bottom: 48px; }
.platform-intro h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.018em;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.platform-intro p { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.platform-note {
  margin-top: 12px;
  font-family: var(--font-code);
  font-size: 11px; color: var(--accent); letter-spacing: 0.06em;
}
/* ─── CONDENSED PLAN TABLE ───────────────────────────── */
.plan-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.plan-table thead tr {
  background: var(--surface-hi);
  border-bottom: 1px solid var(--border);
}
.plan-table th {
  padding: 14px 16px;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-align: left;
  border-right: 1px solid var(--border);
}
.plan-table th:last-child { border-right: none; }
.plan-table th:not(:first-child) { text-align: center; }
.plan-table th.col-free,
.plan-table td.col-free {
  background: rgba(0,217,200,0.04);
  border-left: 1px solid rgba(0,217,200,0.18);
  border-right: 1px solid rgba(0,217,200,0.18);
}
.plan-table th.col-free { color: var(--accent); }
.th-plan-link {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; transition: opacity 0.15s;
}
.th-plan-link:hover { opacity: 0.8; }
.th-plan-name {
  font-size: 12px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; display: block;
}
.th-plan-name.accent { color: var(--accent); }
.th-plan-price {
  font-size: 10px; color: var(--text-3);
  font-weight: 400; letter-spacing: 0.02em; display: block;
}
.th-plan-price s { color: var(--text-3); text-decoration: line-through; margin-right: 3px; }
.th-beta { color: var(--accent); font-size: 9px; letter-spacing: 0.06em; }
.plan-table tbody tr {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.12s;
}
.plan-table tbody tr:last-child { border-bottom: none; }
.plan-table tbody tr:hover td { background: var(--surface-hi); }
.plan-table tbody tr:hover td.col-free { background: rgba(0,217,200,0.07); }
.plan-table td {
  padding: 11px 16px;
  color: var(--text-2);
  border-right: 1px solid var(--border);
  vertical-align: middle;
}
.plan-table td:last-child { border-right: none; }
.plan-table td:not(:first-child) { text-align: center; }
.feat-name { color: var(--text); font-size: 13px; font-weight: 500; }
.feat-sub { font-size: 11px; color: var(--text-3); font-family: var(--font-code); margin-top: 2px; }
.check { color: var(--accent); font-size: 15px; }
.dash  { color: var(--border-hi); font-size: 14px; }
.val   { font-family: var(--font-code); font-size: 11px; color: var(--text-2); font-weight: 500; }
.val.hi { color: var(--text); }
.table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px; margin-bottom: 28px;
}
.table-note {
  font-family: var(--font-code); font-size: 10px; color: var(--text-3);
}
.table-link {
  font-family: var(--font-code); font-size: 11px; letter-spacing: 0.04em;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap 0.15s;
}
.table-link:hover { gap: 9px; }
/* Light mode: full contrast pass — small mono needs --text not --text-2 */
[data-theme="light"] .plan-table td  { color: var(--text); }
[data-theme="light"] .feat-name      { color: var(--text); font-weight: 600; }
[data-theme="light"] .feat-sub       { color: var(--text-2); }
[data-theme="light"] .val            { color: var(--text); font-size: 12px; font-weight: 600; }
[data-theme="light"] .val.hi         { color: var(--text); }
[data-theme="light"] .dash           { color: var(--text-3); }
[data-theme="light"] .check          { color: var(--accent); filter: brightness(0.7); }
[data-theme="light"] .table-note     { color: var(--text-2); }
[data-theme="light"] .th-plan-price  { color: var(--text-2); }
[data-theme="light"] .th-plan-price s { color: var(--text-2); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .plan-table td  { color: var(--text); }
  :root:not([data-theme]) .feat-name      { color: var(--text); font-weight: 600; }
  :root:not([data-theme]) .feat-sub       { color: var(--text-2); }
  :root:not([data-theme]) .val            { color: var(--text); font-size: 12px; font-weight: 600; }
  :root:not([data-theme]) .val.hi         { color: var(--text); }
  :root:not([data-theme]) .dash           { color: var(--text-3); }
  :root:not([data-theme]) .check          { color: var(--accent); filter: brightness(0.7); }
  :root:not([data-theme]) .table-note     { color: var(--text-2); }
  :root:not([data-theme]) .th-plan-price  { color: var(--text-2); }
  :root:not([data-theme]) .th-plan-price s { color: var(--text-2); }
}
@media (max-width: 768px) {
  .plan-table th, .plan-table td { padding: 10px 10px; }
  .plan-table th:nth-child(4), .plan-table td:nth-child(4),
  .plan-table th:nth-child(5), .plan-table td:nth-child(5) { display: none; }
}

/* ─── WAITLIST ────────────────────────────────────────── */
.waitlist-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}
.waitlist-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.waitlist-heading {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--text);
  margin-bottom: 16px;
}
.waitlist-heading em { font-style: normal; color: var(--accent); }
.waitlist-sub { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.waitlist-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-code); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.form-input, .form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select { background: var(--bg); border-color: var(--border); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .form-input,
  :root:not([data-theme]) .form-select { background: var(--bg); border-color: var(--border); }
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-select { appearance: none; cursor: pointer; color: var(--text-2); }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 11px; color: var(--text-3); font-family: var(--font-code); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.form-consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.form-consent-label { font-size: 12px; color: var(--text-2); line-height: 1.6; cursor: pointer; }
@media (max-width: 900px) {
  .waitlist-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── CTA BAND ───────────────────────────────────────── */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band-text h3 {
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 600; letter-spacing: -0.016em;
  color: var(--text); margin-bottom: 4px;
}
.cta-band-text p { font-size: 13px; color: var(--text-3); }
.cta-band-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }


/* ─── Animations / Utility ───────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fade-in-up 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

/* Step active animation */
@keyframes step-light {
  0%, 100% { color: var(--text-3); }
  25% { color: var(--accent); }
}

/* ─── Use cases 2-col + visual panel ─────────────────── */
@media (min-width: 920px) {
  .uc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
  .uc-visual-panel { position: sticky; top: calc(var(--nav-h) + 50px); }
}
@media (max-width: 919px) {
  .uc-visual-panel { display: none; }
}
.uc-vis { display: none; }
.uc-vis.active { display: block; }
.uc-vis-card {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-code);
  font-size: 11px;
  line-height: 1.8;
  overflow: hidden;
}
.uc-vis-label {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.uc-vis-label::before { content: '●'; color: var(--accent); font-size: 7px; }
.uc-vis-line { color: var(--text-3); }
.uc-vis-line .acc { color: var(--accent); }
.uc-vis-line .pur { color: var(--purple); }
.uc-vis-line .dim { color: var(--text-3); }
.uc-vis-line .val { color: var(--text-2); }
.uc-vis-line .ok  { color: #22c55e; }
.uc-vis-spacer { height: 6px; }
.uc-vis-divider { border-top: 1px solid var(--border); margin: 10px 0; }
.uc-vis-pin {
  background: var(--accent-dim);
  border: 1px solid rgba(0,217,200,0.2);
  border-radius: var(--radius);
  padding: 10px 14px; margin: 10px 0;
  text-align: center;
}
.uc-vis-pin .pin-big { font-size: 22px; font-weight: 600; color: var(--accent); letter-spacing: 0.15em; }
.uc-vis-pin .pin-sub { font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.uc-vis-cursor { display: inline-block; width: 7px; height: 11px; background: var(--accent); vertical-align: middle; animation: blink 1s step-end infinite; }
.uc-vis-agent-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.uc-vis-agent-row:last-child { border-bottom: none; }
.uc-vis-agent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.uc-vis-agent-dot.pur { background: var(--purple); }
.uc-vis-agent-name { color: var(--text-2); flex: 1; }
.uc-vis-agent-status { color: var(--text-3); font-size: 9px; }
.uc-vis-agent-status.live { color: #22c55e; }

/* Enhanced principles ───────────────────────────────── */
.principles-intro {
  font-size: 15px; line-height: 1.75; color: var(--text-2);
  max-width: 580px; margin-bottom: 40px;
}
.principle-icon {
  font-size: 28px !important; /* override old 18px */
  margin-bottom: 16px;
  opacity: 1 !important;
  display: block;
}
.principle-highlight {
  font-family: var(--font-code); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-top: 12px;
  border-top: 1px solid var(--border); padding-top: 10px;
}

/* ─── Jump nav ───────────────────────────────────────── */

/* ─── Jump Nav (scroll-activated) ───────────────────────── */
.page-jumpnav {
  border-bottom: 1px solid var(--border);
  background: rgba(9,11,20,0.96);
  backdrop-filter: blur(10px);
  position: sticky; top: var(--nav-h); z-index: 50;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
[data-theme="light"] .page-jumpnav { background: rgba(244,245,247,0.96); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .page-jumpnav { background: rgba(244,245,247,0.96); } }
.page-jumpnav.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.jumpnav-inner {
  display: flex; align-items: center; gap: 4px;
  padding: 0; height: 38px;
  overflow-x: auto; scrollbar-width: none;
}
.jumpnav-inner::-webkit-scrollbar { display: none; }
.jumpnav-inner a {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--text-3); padding: 4px 10px; border-radius: 4px;
  white-space: nowrap; transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.jumpnav-inner a:hover, .jumpnav-inner a.jnav-active { color: var(--text); background: var(--surface-hi); }
.jumpnav-sep { color: var(--border-hi); font-size: 10px; flex-shrink: 0; user-select: none; }
@media (max-width: 768px) { .page-jumpnav { display: none; } }

/* Theme auto indicator */
.theme-toggle { position: relative; }
.theme-auto-dot {
  display: none; position: absolute; bottom: 3px; right: 3px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.theme-toggle.is-auto .theme-auto-dot { display: block; }


/* ─── TIER CARDS (home page — minimal) ──────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.18s;
}
.tier-card:hover { border-color: var(--border-hi); }
.tier-card.featured {
  border-color: rgba(0,217,200,0.35);
  background: rgba(0,217,200,0.03);
}
.tier-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-code); font-size: 8px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,217,200,0.2);
  padding: 3px 8px; border-radius: 3px;
  align-self: flex-start; margin-bottom: 12px;
}
.tier-beta-tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-code); font-size: 8px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,217,200,0.2);
  padding: 3px 8px; border-radius: 3px;
  align-self: flex-start; margin-bottom: 12px;
}
.tier-name {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.tier-price {
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
}
.tier-price span { font-size: 12px; font-weight: 400; color: var(--text-3); }
.tier-price-strike {
  font-size: 14px; font-weight: 400;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.2);
}
.tier-price-beta {
  font-family: var(--font-code); font-size: 9px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.06em;
}
.tier-desc {
  font-size: 12px; line-height: 1.6;
  color: var(--text-2); flex: 1;
  margin-bottom: 0;
}
/* responsive */
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 540px) {
  .tier-grid { grid-template-columns: 1fr; gap: 10px; }
  .tier-card  { padding: 18px 16px; }
  .tier-price { font-size: 18px; }
}
/* light mode */
[data-theme=light] .tier-desc { color: var(--text); }
[data-theme=light] .tier-price span { color: var(--text-2); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .tier-desc  { color: var(--text); }
  :root:not([data-theme]) .tier-price span { color: var(--text-2); }
}

/* Tier CTA */
.tier-cta { margin-top: 14px; }
.tier-cta a {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 0.15s;
}
.tier-cta a:hover { opacity: 0.75; }

/* Proto banner */
