/* Filing Ahoy public pages: the landing page, privacy.html and terms.html.
   Tokens and rules follow phase1/filing-ahoy-design-direction.md. The app pages keep
   base.css and app.css. Contrast: the 13D/13G tag color passes only on --surface, so tags
   always sit inside a card. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* IBM Plex Mono, subset. "Plex" is a Reserved Font Name under its OFL, so the modified
   files are named FA Mono. */
@font-face {
  font-family: "FA Mono";
  src: url("/fonts/fa-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FA Mono";
  src: url("/fonts/fa-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Fallbacks sized to the web fonts (average width of English text, hhea ascent and descent),
   so nothing moves when the fonts arrive. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 107.48%;
  ascent-override: 90.14%;
  descent-override: 22.44%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 600;
  size-adjust: 85.41%;
  ascent-override: 121.30%;
  descent-override: 39.22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT");
  size-adjust: 99.98%;
  ascent-override: 102.52%;
  descent-override: 27.50%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --text: #14263f;
  --muted: #5b6168;
  --border: #ddd8cf;
  --accent: #1d7a4c;
  --accent-ink: #ffffff;
  --tag-13d: #2f6fd6;
  --tag-8k: #a8461a;
  --focus: #2f6fd6;
  --shadow: 0 1px 2px rgb(20 38 63 / 0.06), 0 8px 24px rgb(20 38 63 / 0.06);
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, "Times New Roman", serif;
  --mono: "FA Mono", "Mono Fallback", ui-monospace, "Courier New", monospace;
  --max: 1160px;
  --header: 68px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a2b;
    --surface: #14263f;
    --text: #e8edf3;
    --muted: #a9b4c2;
    --border: #24395a;
    --accent: #5fd39a;
    --accent-ink: #0e1a2b;
    --tag-13d: #7fb0ff;
    --tag-8k: #ff9a5c;
    --focus: #7fb0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchors and focused elements stay clear of the sticky header. */
  scroll-padding-top: calc(var(--header) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip {
  position: absolute; left: 12px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--muted); }
.btn-secondary:hover { border-color: var(--text); text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px; min-height: var(--header); flex-wrap: wrap;
}
.logo-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 8px; }
.logo { width: 172px; height: auto; color: var(--text); }
.logo .lg-acc { fill: var(--accent); }
.logo .lg-ink, .logo .lg-tube { fill: currentColor; }
.logo .lg-lens { fill: #ffffff; stroke: currentColor; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 999px;
}
.site-nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.header-actions .signin:hover { text-decoration: underline; }
.menu-toggle { display: none; }

/* Small screens. Without JS the links show as a second row; with JS a menu button opens them. */
@media (max-width: 879px) {
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { padding: 0 0 8px; margin-left: -12px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
    background: transparent; color: var(--text); border: 1px solid var(--muted);
    font: 500 16px/1 var(--sans); cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav.open ul { flex-direction: column; gap: 0; margin: 0; padding: 4px 0 12px; }
  .js .site-nav.open a { width: 100%; padding: 0 4px; font-size: 18px; }
  .header-actions .signin { display: none; }
}
@media (max-width: 479px) {
  .site-header .wrap { gap: 10px; }
  .logo { width: 140px; }
  .menu-word { display: none; }
  .js .menu-toggle { padding: 0; }
}
@media (max-width: 379px) {
  .site-header .wrap { padding: 0 14px; }
  .logo { width: 118px; }
  .header-actions .btn { padding: 10px 14px; font-size: 15px; }
}

/* Sections */
main > section { padding: 88px 0; }
main > section + section { border-top: 1px solid var(--border); }
.eyebrow {
  font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; }
.prose { max-width: 62ch; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; }
}
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 52ch; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero .note { font-size: 15px; color: var(--muted); margin: 0; }

/* Sample alert card */
.alert-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; min-width: 0;
}
.alert-card .card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.sample-label { font-size: 14px; color: var(--muted); margin: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--muted); }
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  opacity: 0;
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.tabs[hidden] { display: none; }
.js .tabs[hidden] { display: flex; }
.tab {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font: 500 14px/1 var(--mono); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--text); color: var(--surface); }
.tab:hover:not([aria-selected="true"]) { color: var(--text); }
.panel h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.35; margin: 10px 0 8px; }
.panel p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.panel .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.company { font-weight: 600; }
.figures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px;
  background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.figures div { background: var(--surface); padding: 10px 12px; min-width: 0; }
.figures dt { font-size: 13px; color: var(--muted); }
.figures dd { margin: 2px 0 0; font: 500 17px/1.3 var(--mono); }
.source { font-size: 14px; color: var(--muted); margin: 0; }
.panel[hidden] { display: none; }

/* Tags: always on --surface. Text label plus a border in the tag color. */
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid currentColor; font: 500 13px/1.2 var(--mono); white-space: nowrap;
}
.tag-4 { color: var(--accent); }
.tag-13d { color: var(--tag-13d); }
.tag-8k { color: var(--tag-8k); }

/* Card grids */
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; min-width: 0;
}
.card h3 { font-size: 23px; line-height: 1.2; margin: 14px 0 10px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 500 15px/1 var(--mono);
}
.card-list { margin: 0; padding: 0; list-style: none; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan .plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan h3 { margin: 0; }
.soon {
  font: 500 13px/1.2 var(--mono); color: var(--muted); border: 1px solid var(--muted);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font: 500 40px/1 var(--mono); letter-spacing: -0.02em; color: var(--text); }
.price .per { color: var(--muted); font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { padding: 10px 0; border-top: 1px solid var(--border); }
.plan li:last-child { border-bottom: 1px solid var(--border); }
.plan .plan-foot { margin-top: auto; }
.plan .plan-foot p { font-size: 15px; color: var(--muted); margin: 0; }
.plan-free { border-color: var(--accent); }
.pricing-note { color: var(--muted); font-size: 15px; margin: 24px 0 0; max-width: 62ch; }

/* Trust */
.trust h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin: 0 0 8px; }

/* FAQ */
.faq-list { max-width: 820px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font: 400 24px/1 var(--mono); color: var(--accent); flex: none;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .answer { padding: 0 0 20px; max-width: 62ch; color: var(--muted); }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* Closing call to action */
.closing { text-align: center; }
.closing h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin-bottom: 14px; }
.closing p { color: var(--muted); margin: 0 auto 28px; max-width: 52ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; font-size: 15px; color: var(--muted); }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 820px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr; } }
.site-footer .logo { width: 150px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.site-footer p { margin: 0 0 8px; max-width: 70ch; }
.site-footer .disclaimer { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin-bottom: 12px; }
.legal h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { font-weight: 600; }

/* Motion: opacity and transform only, 150 to 250ms, and none at all with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .alert-card, .tab { transition: transform 200ms ease, opacity 200ms ease; }
  .card:hover { transform: translateY(-3px); }
  .btn:active { transform: translateY(1px); }
  .dot::after { animation: pulse 2s ease-out infinite; }
  .faq-list details[open] .answer { animation: fade-up 200ms ease-out; }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 599px) {
  main > section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .card { padding: 22px; }
  .alert-card { padding: 16px; }
}
.figures.figures-1 { grid-template-columns: minmax(0, 1fr); }
.figures.figures-1 dd { font: 500 15px/1.4 var(--sans); }
@media print {
  .reveal { animation: none !important; }
  .site-header { position: static; }
}
