/* BreadCrumb fake door (DOOR-01). Full-height ledger composition, open-row treatment. Rules in docs/DESIGN_SPEC.md. */

:root {
  --bg: #0b0b0f;
  --surface: #121218;
  --surface-hover: #16161d;
  --text: #ececf1;
  --text-soft: #c4c4cd;
  --muted: #9a9aa6;
  --accent: #6f9e7f;
  --accent-hover: #669175; /* accent darkened 8 percent */
  --accent-text: #0b0b0f;
  --rule: #26262e;
  --grid-line: rgba(38, 38, 46, 0.25);
  --form4: #7da7d9;
  --congress: #d9b36a;
  --market: #a58fd0;
  --form4-rule: rgba(125, 167, 217, 0.6);
  --congress-rule: rgba(217, 179, 106, 0.6);
  --market-rule: rgba(165, 143, 208, 0.6);
  --form4-text: rgba(125, 167, 217, 0.8);
  --congress-text: rgba(217, 179, 106, 0.8);
  --market-text: rgba(165, 143, 208, 0.8);
  --top-light: rgba(255, 255, 255, 0.04);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --header-h: 56px;
  --ledger-w: 340px;
  --ledger-pad: 24px;
  --gutter: 48px;
}

* { box-sizing: border-box; }

/* Page-wide faint grid: full strength over the hero, half strength below */

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(#000 0, #000 70vh, rgba(0, 0, 0, 0.5) 110vh, rgba(0, 0, 0, 0.5) 100%);
  mask-image: linear-gradient(#000 0, #000 70vh, rgba(0, 0, 0, 0.5) 110vh, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

/* Containers */

.wrap {
  max-width: 1104px;
  margin-inline: auto;
  padding-inline: 20px;
}

.content {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow { max-width: 680px; }

/* Type */

h1 {
  max-width: 640px;
  font-size: 44px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
}

h3 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  margin: 0 0 8px;
}

p { margin: 0; }
p + p { margin-top: 16px; }

.small {
  font-size: 14px;
  line-height: 20px;
}

.muted { color: var(--muted); }

.mono {
  font-family: var(--mono);
  font-size: 0.94em;
  color: var(--text);
}

.label {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: var(--accent-hover); }

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
  line-height: 20px;
}

/* Header */

.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 32px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-out;
}

.site-header.scrolled { border-bottom-color: var(--rule); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.brand:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

body.plain::before { display: none; }

.wordmark {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.tagline {
  display: none;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav > a:not(.btn) {
  display: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-decoration: none;
}

.nav > a:not(.btn):hover { color: var(--text); }

.nav > a:not(.btn):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Hero region */

.hero-region {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.hero-region::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(111, 158, 127, 0.06), transparent);
  pointer-events: none;
}

.hero-region { border-bottom: 1px solid var(--rule); }

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 48px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.hero-top .kicker { margin-bottom: 0; }

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.beside {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.hero .lede {
  max-width: 620px;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 16px;
}

.hero .fine { margin-top: 16px; }

/* Ledger: open rows under the hero copy below 1024px, a fixed column above */

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 var(--top-light);
}

.ledger-right {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ledger-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.panel-label {
  padding: 6px 0 0;
  font-size: 10px;
  line-height: 16px;
  font-style: italic;
  color: var(--muted);
  text-align: right;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 12px;
  padding: 14px 0 14px 12px;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  transition: background-color 0.15s ease-out, border-left-color 0.15s ease-out;
}

.feed-row:hover { background: var(--surface); }

.src-form4 { border-left-color: var(--form4-rule); }
.src-congress { border-left-color: var(--congress-rule); }
.src-market { border-left-color: var(--market-rule); }

.src-form4:hover { border-left-color: var(--form4); }
.src-congress:hover { border-left-color: var(--congress); }
.src-market:hover { border-left-color: var(--market); }

.src-form4 .feed-meta span:first-child { color: var(--form4-text); }
.src-congress .feed-meta span:first-child { color: var(--congress-text); }
.src-market .feed-meta span:first-child { color: var(--market-text); }

.feed-row:nth-child(n + 6) { display: none; }

.feed-time {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  color: var(--muted);
}

.feed-name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}

.feed-name .mono {
  font-size: 13px;
  font-weight: 500;
}

.feed-detail {
  font-size: 12px;
  line-height: 17px;
  color: var(--muted);
}

.feed-detail .mono { color: inherit; }

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}

.feed-meta span + span::before {
  content: "\00b7";
  margin-right: 6px;
}

/* Sections */

.section { padding-block: 36px; }

.section + .section { border-top: 1px solid var(--rule); }

/* What you get: open columns */

.cols { display: grid; }

.col {
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}

.col:first-child {
  padding-top: 0;
  border-top: 0;
}

.cols { counter-reset: col; }

.col-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent);
}

.col-index::before {
  counter-increment: col;
  content: counter(col, decimal-leading-zero);
}

.col-index::after {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.col:nth-child(1) .col-index { color: var(--form4); }
.col:nth-child(2) .col-index { color: var(--congress); }
.col:nth-child(3) .col-index { color: var(--market); }

.col p { margin-bottom: 16px; }

.explore {
  display: inline-block;
  font-size: 15px;
  line-height: 22px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(111, 158, 127, 0.5);
}

.explore::after {
  content: "\2192";
  margin-left: 8px;
  text-decoration: none;
  display: inline-block;
}

.explore:hover { text-decoration-color: var(--accent); }

.explore:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Pull-quote */

.quote-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.pull {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 48px;
  color: var(--text-soft);
  max-width: 560px;
}

.quote-label {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* How it works: open two-column grid */

.steps { display: grid; }

.step {
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}

.step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

/* Pricing */

#pricing,
#faq { scroll-margin-top: var(--header-h); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.section-head h2 { margin-bottom: 0; }

.head-note {
  margin-left: auto;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px;
  box-shadow: inset 0 1px 0 var(--top-light);
  transition: border-color 0.15s ease-out;
}

.plan:hover { border-color: var(--accent); }

.plan h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.price {
  font-family: var(--mono);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-sub {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.features li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text);
}

.features li + li { margin-top: 8px; }

.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 6px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

.price .small {
  font-family: var(--sans);
  font-weight: 400;
  margin-left: 6px;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* FAQ: accordion rows, details/summary, no script */

.faq .qa { border-top: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.faq h3 {
  font-size: 17px;
  line-height: 26px;
  margin: 0;
}

.qa-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease-out;
}

.qa-toggle::before,
.qa-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--muted);
  transform: translate(-50%, -50%);
}

.qa-toggle::before {
  width: 16px;
  height: 2px;
}

.qa-toggle::after {
  width: 2px;
  height: 16px;
}

.faq details[open] .qa-toggle { transform: rotate(45deg); }

.faq .qa p {
  color: var(--muted);
  padding-bottom: 24px;
}

/* Embedded form (Tally iframe) */

.embed { margin-top: 24px; }

.embed iframe {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0;
  border: 0;
}

.embed-waitlist iframe { min-height: 260px; }
.embed-thanks iframe { min-height: 600px; }

.privacy { margin-top: 16px; }

/* Footer */

footer {
  margin-top: 12px;
  padding-block: 48px;
  border-top: 1px solid var(--rule);
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

footer .tagline { display: inline-block; }

@media (max-width: 599px) {
  footer .tagline {
    padding-left: 0;
    border-left: 0;
    white-space: normal;
  }
}

.contact {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  text-decoration: none;
}

.contact:hover { color: var(--text); }

.contact:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

footer p {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

/* Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .feed-row {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.4s ease-out forwards;
}

.js .feed-row:nth-child(2) { animation-delay: 80ms; }
.js .feed-row:nth-child(3) { animation-delay: 160ms; }
.js .feed-row:nth-child(4) { animation-delay: 240ms; }
.js .feed-row:nth-child(5) { animation-delay: 320ms; }
.js .feed-row:nth-child(6) { animation-delay: 400ms; }
.js .feed-row:nth-child(7) { animation-delay: 480ms; }
.js .feed-row:nth-child(8) { animation-delay: 560ms; }
.js .feed-row:nth-child(9) { animation-delay: 640ms; }
.js .feed-row:nth-child(10) { animation-delay: 720ms; }
.js .feed-row:nth-child(11) { animation-delay: 800ms; }
.js .feed-row:nth-child(12) { animation-delay: 880ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .feed-row {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .site-header,
  .plan,
  .feed-row,
  .qa-toggle {
    transition: none;
  }

  .feed-row { transition: none; }
}

@media (min-width: 600px) {
  .nav > a:not(.btn) { display: inline; }
}

/* Wide viewport */

@media (min-width: 900px) {
  .wrap { padding-inline: 32px; }

  h1 {
    font-size: 64px;
    line-height: 68px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 88px);
    padding-bottom: 88px;
  }

  .section { padding-block: 48px; }

  .cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .col {
    padding-block: 0;
    padding-inline: 32px;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .col:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .col:last-child { padding-right: 0; }

  .steps { column-gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }

  .step:nth-child(-n + 2) {
    padding-top: 0;
    border-top: 0;
  }

  .plans { grid-template-columns: 1fr 1fr; }

  footer { margin-top: 24px; }
}

/* Ledger column */

@media (min-width: 1024px) {
  .content {
    max-width: calc(720px + 32px);
    margin-left: calc(var(--ledger-w) + var(--gutter));
    margin-right: 0;
    padding-inline: 0 32px;
  }

  .bar { padding-inline: 24px 32px; }

  .site-header .tagline { display: inline-block; }


  .hero-grid { grid-template-columns: 1fr; }

  .ledger {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    z-index: 10;
    width: var(--ledger-w);
    padding: 24px 0 0;
    border-right: 1px solid var(--rule);
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
  }

  .ledger::-webkit-scrollbar { display: none; }

  .ledger-head { padding-inline: var(--ledger-pad); }

  .feed-row { padding-inline: calc(var(--ledger-pad) - 2px) var(--ledger-pad); }

  .feed-row:nth-child(n + 6) { display: grid; }

  .panel-label { padding-inline: var(--ledger-pad); }
}

/* Narrow content column beside the ledger */

@media (min-width: 1024px) and (max-width: 1119px) {
  .cols { grid-template-columns: 1fr; }

  .col {
    padding-inline: 0;
    padding-block: 24px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .col:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

/* Large viewport */

@media (min-width: 1200px) {
  h1 {
    font-size: 96px;
    line-height: 96px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 56px;
  }

  .section { padding-block: 40px; }
}

@media (max-width: 899px) {
  .pull {
    font-size: 30px;
    line-height: 38px;
  }

  .quote-row {
    flex-direction: column;
    gap: 16px;
  }

  .quote-label { text-align: left; }
}
