/* Chrome and page furniture: the header, the footer, the mark, and the
 * surfaces the landing page is built out of. */

/* ------------------------------------------------------------------- mark */

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { flex: 0 0 auto; overflow: visible; }
.logo-mark .bar { fill: currentColor; opacity: 0.22; transform-box: fill-box; transform-origin: bottom; }
.logo-mark .trace { stroke: var(--accent); }
.logo-word {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
}

/* The mark plays once when the page opens: bars rise, then the line draws
 * through them. Nothing loops, so the eye is not pulled back to it. */
.logo-live .logo-mark .bar { animation: bar-rise 520ms var(--ease) both; }
.logo-live .logo-mark .bar-2 { animation-delay: 70ms; }
.logo-live .logo-mark .bar-3 { animation-delay: 140ms; }
.logo-live .logo-mark .bar-4 { animation-delay: 210ms; }
.logo-live .logo-mark .trace {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: trace-draw 700ms var(--ease) 260ms both;
}

@keyframes bar-rise { from { transform: scaleY(0.12); opacity: 0; } to { transform: scaleY(1); opacity: 0.22; } }
@keyframes trace-draw { to { stroke-dashoffset: 0; } }

.site-brand:hover .logo-mark .bar { opacity: 0.34; }
.site-brand .logo-mark .bar { transition: opacity var(--quick) var(--ease); }

/* ----------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 242, 236, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(150%) blur(10px);
  transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.site-head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.site-nav { display: flex; gap: 26px; margin-left: 12px; flex: 1 1 auto; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current='page'] { color: var(--text); border-bottom-color: var(--accent); }

.site-actions { display: flex; align-items: center; gap: 16px; }
.site-signin {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--quick) var(--ease);
}
.site-signin:hover { color: var(--text); }

.site-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease);
}
.site-burger:hover { border-color: var(--ink); }
.site-burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }

.site-drawer { border-top: 1px solid var(--line); background: var(--paper); }
.site-drawer nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 22px; }
.site-drawer a { padding: 12px 2px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-drawer a.btn { margin-top: 14px; border-bottom: 0; }

@media (max-width: 940px) {
  .site-nav, .site-actions { display: none; }
  .site-burger { display: inline-flex; margin-left: auto; }
}

/* ----------------------------------------------------------------- footer */

.site-foot {
  background: var(--ink);
  color: var(--text-on-ink-soft);
  padding: 72px 0 34px;
}
.site-foot .logo-word, .site-foot h4 { color: var(--text-on-ink); }
.site-foot .logo-mark .bar { fill: var(--text-on-ink); }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.foot-brand p { font-size: 15px; max-width: 42ch; margin-top: 18px; }
.foot-legal { font-size: 13px; }

.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col h4 { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.foot-col a {
  font-size: 15px;
  color: var(--text-on-ink-soft);
  transition: color var(--quick) var(--ease);
}
.foot-col a:hover { color: var(--accent); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 13px;
}
.site-foot .faint { color: rgba(168, 176, 171, 0.72); }

@media (max-width: 940px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 76px 0 90px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(229, 160, 13, 0.13) 0%, rgba(229, 160, 13, 0) 62%),
    linear-gradient(178deg, var(--paper) 0%, var(--paper-3) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-under { margin-top: 20px; font-size: 14px; color: var(--text-soft); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 48px 0 64px; }
}

/* ---------------------------------------------------------- filing ticker */

/* The live panel beside the headline: real filings, newest first, each one a
 * link to the document it was read from. */
.feed {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -32px rgba(16, 19, 18, 0.55);
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-on-ink);
  font-size: 13px;
  color: var(--text-on-ink-soft);
}
.feed-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.feed-list { list-style: none; margin: 0; padding: 0; max-height: 392px; overflow-y: auto; }
.feed-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-on-ink);
  transition: background var(--quick) var(--ease);
}
.feed-item:hover { background: rgba(242, 240, 234, 0.05); }
.feed-item:last-child { border-bottom: 0; }
.feed-side {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
}
.feed-side.buy { background: var(--up-wash); color: #4FD3A6; }
.feed-side.sell { background: var(--down-wash); color: #F0836C; }
.feed-who { font-size: 14px; font-weight: 500; line-height: 1.3; }
.feed-what { font-size: 13px; color: var(--text-on-ink-soft); margin-top: 2px; }
.feed-when { font-family: var(--mono); font-size: 12px; color: var(--text-on-ink-soft); white-space: nowrap; }

/* ------------------------------------------------------------------- tabs */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--quick) var(--ease), color var(--quick) var(--ease),
              border-color var(--quick) var(--ease);
}
.tab:hover { border-color: var(--ink); color: var(--text); }
.tab[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.on-ink .tab { border-color: var(--line-on-ink); color: var(--text-on-ink-soft); }
.on-ink .tab:hover { border-color: var(--text-on-ink); color: var(--text-on-ink); }
.on-ink .tab[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: #1A1200; }

.tab-panel[hidden] { display: none; }

/* ------------------------------------------------------------------ chart */

.chart { width: 100%; display: block; }
.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; margin-bottom: 14px; }
.chart-key { display: inline-flex; align-items: center; gap: 8px; }
.chart-swatch { width: 14px; height: 3px; border-radius: 2px; }

/* ------------------------------------------------------------------- plan */

.on-ink .on-ink 
.plan-split { height: 14px; border-radius: 7px; overflow: hidden; display: flex; background: var(--paper-3); }
.plan-split > span { flex: 0 0 auto; transition: width var(--calm) var(--ease); }
.plan-split-own { background: var(--ink); }
.on-ink .plan-split { background: rgba(242, 240, 234, 0.12); }
.on-ink .plan-split-own { background: var(--text-on-ink); }
.plan-split-grown { background: linear-gradient(90deg, var(--accent) 0%, #F5C860 100%); }
.plan-split-key { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; margin-top: 12px; }


/* ------------------------------------------------------------------ steps */

.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.on-ink .step { border-color: var(--line-on-ink); }
.step-n {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
  padding-top: 4px;
}
.on-ink .step-n { color: var(--accent); }
.step h3 { margin-bottom: 8px; }
@media (max-width: 620px) { .step { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.price-card-lead { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }
.price-card-lead h3 { color: var(--text-on-ink); }
.price-amount { font-family: var(--mono); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; margin: 12px 0 4px; }
.price-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.price-list li { padding-left: 20px; position: relative; }
.price-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}
.price-card .btn { margin-top: auto; }
@media (max-width: 760px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 500;
  position: relative;
  transition: color var(--quick) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 32px;
  width: 13px;
  height: 2px;
  background: var(--text-soft);
  transition: transform var(--calm) var(--ease);
}
.faq summary::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 32px;
  width: 13px;
  height: 2px;
  background: var(--text-soft);
  transform: rotate(90deg);
  transition: transform var(--calm) var(--ease), opacity var(--quick) var(--ease);
}
.faq details[open] summary::before { transform: rotate(0deg); opacity: 0; }
.faq-body { padding: 0 0 24px; max-width: var(--reading); color: var(--text-soft); }

/* --------------------------------------------------------- screen preview */


/* ------------------------------------------------------------- spotlight */

.spot { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.spot-text p { max-width: 46ch; }
.spot-text .btn { margin-top: 8px; }

.spot-chart { margin: 0; }
.spot-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}
.spot-readout b { font-size: 21px; font-weight: 600; color: var(--text); margin-right: 6px; }
.chart-swatch-dashed {
  background: transparent;
  height: 0;
  border-top: 3px dashed var(--text-faint);
}

/* The balance line draws itself once when the section comes into view. */
.chart-draw path:last-child { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); }
.chart-draw.shown path:last-child { animation: draw-line 1400ms var(--ease) forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

@media (max-width: 1000px) { .spot { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

/* --------------------------------------------------------------- screens */

/* One wide screen and four narrower ones. An even grid of identical tiles
 * says every screen matters the same, and they do not. */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.screen {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: box-shadow var(--calm) var(--ease), transform var(--calm) var(--ease),
              border-color var(--calm) var(--ease);
}
.screen img { width: 100%; display: block; }
.screen:hover {
  box-shadow: 0 22px 50px -30px rgba(16, 19, 18, 0.55);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.screen-wide { grid-column: span 4; }
.screen-half { grid-column: span 2; }

@media (max-width: 620px) {
  .screens { grid-template-columns: minmax(0, 1fr); }
  .screen-wide, .screen-half { grid-column: span 1; }
}

/* ------------------------------------------------------------ close band */

.close-band .lede { max-width: 54ch; }

/* ------------------------------------------------------------------- demo */

.demo-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 1000px) { .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.demo-slider { padding: 16px 0; border-bottom: 1px solid var(--line); }
.demo-slider:first-of-type { border-top: 1px solid var(--line); }
.demo-slider-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.demo-slider-name { font-weight: 600; font-size: 16px; }
.demo-slider-rate { font-family: var(--mono); font-size: 13px; }
.demo-slider-share { margin-left: auto; font-size: 15px; font-weight: 500; }

.demo-bar {
  display: flex;
  height: 16px;
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-3);
}
.demo-bar > span { flex: 0 0 auto; transition: width var(--calm) var(--ease); }
.demo-bar-cash { background: var(--paper-3); }

.demo-feed { border-top: 1px solid var(--line); }
.demo-feed table { font-size: 14px; }
