/* Index landing — canonical layout (frontend/index.html) */

/* Overrides shared landing.css hero to match index */
.hero-section {
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero-headline {
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.22;
  max-width: none;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: none;
}
.hero-ctas {
  gap: 12px;
  margin-top: 28px;
}

.eyebrow {
  font-family: var(--f-dot);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.h3,
h3.h3 {
  font-family: var(--f-dot);
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.sec-label {
  font-family: var(--f-dot);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Watch timeline */
.wt-frame {
  border: 1px solid var(--border);
  background: var(--surface);
}
.wt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.wt-head-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.wt-head-title,
.wt-head-meta {
  font-family: var(--f-dot);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-legal);
}
.wt-head-meta { color: var(--muted); }
.wt-replay-btn {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.wt-replay-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}
.wt-row {
  display: grid;
  grid-template-columns: 52px 18px 1fr;
  gap: 12px;
  padding: 14px 16px;
  align-items: start;
}
.wt-row + .wt-row { border-top: 1px solid var(--border); }
.wt-row.gate { background: var(--a-dim); }
.wt-time {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--muted-legal);
  padding-top: 3px;
}
.wt-led {
  width: 8px;
  height: 8px;
  background: var(--dim);
  margin-top: 4px;
}
.wt-main {
  font-size: var(--t-body-sm);
  color: var(--text);
  line-height: 1.5;
}
.wt-sub {
  font-size: var(--t-label);
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  display: block;
}
.wt-row.gate .wt-main { color: var(--amber); }
.wt-row.deliver .wt-sub { color: var(--orange); }

/* Grids & cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
}
.card.card-accent {
  border-color: var(--orange);
}

/* Mechanism — delivery pipeline (from index-old, RegVision tokens) */
.mech-pipeline {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.mech-pipeline-intro {
  margin-bottom: 28px;
}
.mech-pipeline-sub {
  font-size: var(--t-body);
  color: var(--muted);
  line-height: 1.65;
  max-width: none;
}
.pipeline-loop {
  width: 100%;
}
.pipeline-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 8px 0 0;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pipeline-cycle {
  flex: 1;
  min-width: 0;
  position: relative;
  padding-bottom: 4px;
}
.pipeline-cycle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}
.pipeline-return-label {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-family: var(--f-dot);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-legal);
}
.pipeline-node--production {
  flex-shrink: 0;
}
.pipeline-arrow--pass {
  flex-shrink: 0;
  color: var(--green);
  opacity: 0.75;
}
.pipeline-circle--ship {
  border-color: rgba(61, 204, 71, 0.35);
  background: var(--g-dim);
}
.pipeline-note {
  font-family: var(--f-body);
  font-size: var(--t-label);
  color: var(--green);
  text-transform: none;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.35;
  max-width: 96px;
}
.pipeline-hint {
  margin-top: 14px;
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
}
.pipeline-return-rail {
  box-sizing: border-box;
  height: 22px;
  margin: 6px 28px 0;
  border-left: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
}
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pipeline-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.pipeline-circle.active {
  border-color: var(--orange);
  box-shadow: 0 0 14px var(--o-glow);
  background: var(--o-dim);
}
.pipeline-label {
  font-family: var(--f-dot);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-legal);
  text-align: center;
  white-space: nowrap;
}
.pipeline-node:has(.pipeline-circle.active) .pipeline-label {
  color: var(--orange);
}
.pipeline-arrow {
  font-size: 24px;
  color: var(--muted-legal);
  padding: 0 12px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 16px;
  opacity: 0.5;
  line-height: 1;
}

@media (max-width: 768px) {
  .pipeline-track {
    min-width: 560px;
  }
  .pipeline-cycle {
    min-width: 400px;
  }
}
.card p {
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.65;
}
.card-caption {
  font-size: var(--t-body-sm);
  color: var(--muted);
  font-style: italic;
  margin-top: 18px;
}

/* Watch agents — chessboard: Reg (white outline · white headers) · Vision (orange outline · orange headers) */
.agent-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px;
}
.agent-card .h3 {
  margin-bottom: 10px;
}
.agent-tag {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--muted-legal);
  border: 1px solid var(--border);
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 12px;
}
.agent-card p {
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.65;
}
.agent-tests {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.agent-test {
  font-family: var(--f-dot);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-legal);
  border: 1px solid var(--border);
  padding: 3px 8px;
}

.watch-grid {
  gap: 12px;
}

/* 2-column chessboard: light · accent / accent · light */
@media (min-width: 769px) {
  .watch-grid .agent-card:nth-child(4n + 1),
  .watch-grid .agent-card:nth-child(4n + 4) {
    background: var(--raised);
    border-color: var(--border-x);
  }
  .watch-grid .agent-card:nth-child(4n + 1) .h3,
  .watch-grid .agent-card:nth-child(4n + 4) .h3 {
    color: var(--text);
  }
  .watch-grid .agent-card:nth-child(4n + 1) .agent-tag,
  .watch-grid .agent-card:nth-child(4n + 4) .agent-tag {
    color: var(--text);
    border-color: var(--border-s);
  }

  .watch-grid .agent-card:nth-child(4n + 2),
  .watch-grid .agent-card:nth-child(4n + 3) {
    background: var(--card);
    border-color: var(--orange);
  }
  .watch-grid .agent-card:nth-child(4n + 2) .h3,
  .watch-grid .agent-card:nth-child(4n + 3) .h3 {
    color: var(--orange);
  }
  .watch-grid .agent-card:nth-child(4n + 2) .agent-tag,
  .watch-grid .agent-card:nth-child(4n + 3) .agent-tag {
    color: var(--orange);
    border-color: var(--orange);
  }
  .watch-grid .agent-card:nth-child(4n + 2) .agent-test,
  .watch-grid .agent-card:nth-child(4n + 3) .agent-test {
    border-color: rgba(237, 123, 28, 0.45);
  }
}

/* Single column: alternate down the stack */
@media (max-width: 768px) {
  .watch-grid .agent-card:nth-child(odd) {
    background: var(--raised);
    border-color: var(--border-x);
  }
  .watch-grid .agent-card:nth-child(odd) .h3 {
    color: var(--text);
  }
  .watch-grid .agent-card:nth-child(odd) .agent-tag {
    color: var(--text);
    border-color: var(--border-s);
  }

  .watch-grid .agent-card:nth-child(even) {
    background: var(--card);
    border-color: var(--orange);
  }
  .watch-grid .agent-card:nth-child(even) .h3 {
    color: var(--orange);
  }
  .watch-grid .agent-card:nth-child(even) .agent-tag {
    color: var(--orange);
    border-color: var(--orange);
  }
  .watch-grid .agent-card:nth-child(even) .agent-test {
    border-color: rgba(237, 123, 28, 0.45);
  }
}

/* Trust */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.trust-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
}
.trust-item .h3,
.trust-item h3.h3 { font-size: var(--t-h3); }
.trust-item p {
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* Teardown (index layout) */
.teardown-wrap { max-width: 620px; }
.note-box {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--raised);
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}
.drop-zone {
  padding: 36px 20px;
}
.drop-title {
  font-size: var(--t-h3);
  letter-spacing: 0.06em;
}
.drop-sub {
  font-size: var(--t-body-sm);
  margin-bottom: 16px;
}
.drop-fmt {
  font-size: var(--t-label);
  padding: 4px 9px;
}
.score-board {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  margin-top: 8px;
}
.score-line {
  font-family: var(--f-dot);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.score-line .pass { color: var(--green); }
.score-anchor {
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.6;
}
.crit-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.crit-pill {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  padding: 5px 10px;
  border: 1px solid var(--border);
}
.crit-pill.c {
  color: var(--red);
  border-color: rgba(255, 77, 46, 0.3);
}
.crit-pill.m {
  color: var(--amber);
  border-color: rgba(255, 176, 0, 0.3);
}
.crit-pill.l {
  color: var(--green);
  border-color: rgba(61, 204, 71, 0.3);
}
.legal-fine {
  font-size: var(--t-label);
  color: var(--muted-legal);
  line-height: 1.6;
  margin-top: 14px;
}

/* Regulatory feed — always visible on index (landing.css hides until .visible from marketing JS) */
.feed-line {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-body);
  font-size: var(--t-body-sm);
  opacity: 1;
  transform: none;
}
.feed-date {
  color: var(--muted-legal);
  flex-shrink: 0;
}
.feed-body { color: var(--muted); }
.feed-tag { color: var(--orange); }

/* Security */
.sec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sec-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px 20px;
}
.sec-item .sec-k {
  font-family: var(--f-dot);
  font-size: var(--t-body-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sec-item .sec-v {
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.6;
}
.sec-item.wip .sec-k { color: var(--amber); }

/* Founder (index sizing) */
.founder-block {
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
}
.founder-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.founder-name {
  font-size: var(--t-h3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.founder-bio {
  font-size: var(--t-body-sm);
  color: var(--muted);
  line-height: 1.65;
}

/* Roadmap */
.roadmap-tier { padding: 24px; }
.tier-label {
  font-size: var(--t-body-sm);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.roadmap-tier p {
  font-size: var(--t-body-sm);
  line-height: 1.65;
}

/* Footer (index sizing) */
.site-footer { padding: 48px 24px 64px; }
.footer-pitch {
  font-size: var(--t-body);
  max-width: none;
  margin-bottom: 24px;
  line-height: 1.7;
}
.footer-links { font-size: var(--t-body-sm); }

/* Utilities */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.section-no-border { border-bottom: none; }
.teardown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.teardown-book-link {
  display: inline-flex;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .trust-row,
  .sec-list {
    grid-template-columns: 1fr;
  }
  .wt-row {
    grid-template-columns: 44px 16px 1fr;
    gap: 10px;
  }
}
