:root {
  --ink: #2f3b4c;
  --muted: #6b7686;
  --accent: #2563eb;
  --green: #3d9970;
  --amber: #b07d2b;
  --card: #f6f8fb;
  --line: #e2e8f0;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: #fff;
}
/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.brand-mark { width: 26px; height: 26px; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.topbar nav a:hover { color: var(--accent); }
/* hero */
.hero { max-width: 1080px; margin: 0 auto; padding: 56px 20px 8px; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 18px; font-weight: 850; }
.hero .sub { font-size: 18.5px; color: #44506a; max-width: 720px; margin: 0 0 30px; }
.hero-flow { width: 100%; max-width: 720px; height: auto; display: block; margin: 6px 0 34px; }
.search-wrap { max-width: 640px; }
#company-search {
  width: 100%; font-size: 17px; padding: 15px 18px;
  border: 2px solid var(--line); border-radius: 12px; outline: none; color: var(--ink);
  transition: border-color .15s;
}
#company-search:focus { border-color: var(--accent); }
.search-count { font-size: 13.5px; color: var(--muted); margin-top: 8px; min-height: 18px; }
/* activity strip */
.strip {
  max-width: 1080px; margin: 26px auto 0; padding: 14px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: #44506a;
}
.strip-item { display: flex; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 9px; flex: none; }
.dot-green { background: var(--green); } .dot-amber { background: var(--amber); } .dot-blue { background: var(--accent); }
/* layout + sections */
main { max-width: 1080px; margin: 0 auto; padding: 10px 20px 30px; }
section { margin-top: 52px; }
h2 { font-size: 28px; letter-spacing: -0.6px; margin: 0 0 8px; }
.section-sub { color: var(--muted); max-width: 720px; margin: 0 0 24px; font-size: 16px; }
/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.tile:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 8px 22px rgba(47,59,76,0.08); }
.tile-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ticker { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; }
.chip-coming-soon { background: #e8edf3; color: var(--muted); }
.chip-template-ready { background: #dcefe5; color: #256048; }
.chip-live { background: #dcefe5; color: #256048; }
.chip-draft-in-review { background: #f7ead9; color: #8a6a38; }
.chip-reporting-soon { background: #dbe7fd; color: #1d4fb8; }
.tile-name { font-size: 15.5px; font-weight: 650; }
.tile-sector { color: var(--muted); font-size: 13.5px; }
.tile-quarter { color: var(--muted); font-size: 13px; margin-top: 8px; min-height: 16px; }
.no-results { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }
/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: #44506a; font-size: 15px; }
/* digest */
.digest {
  background: var(--ink); color: #eef2f7; border-radius: 18px; padding: 30px 32px;
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
}
.digest h2 { color: #fff; margin-bottom: 6px; }
.digest p { margin: 0; max-width: 560px; color: #c8d2e0; font-size: 15.5px; }
.digest a { color: #9db9e8; }
.digest-form { display: flex; gap: 10px; }
.digest-form input {
  font-size: 15.5px; padding: 12px 14px; border-radius: 10px; border: 1px solid #4b5a70;
  background: #3a4759; color: #aebacd; width: 230px;
}
.digest-form button {
  font-size: 15.5px; font-weight: 700; padding: 12px 18px; border-radius: 10px; border: 0;
  background: #54657c; color: #dbe3ee; cursor: not-allowed;
}
footer { max-width: 1080px; margin: 0 auto; padding: 34px 20px 46px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 38px; }
  .topbar nav { gap: 13px; }
  .topbar nav a { font-size: 13.5px; }
  .digest-form { width: 100%; }
  .digest-form input { flex: 1; width: auto; }
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.2; }
.topbar .brand-url { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: 0.2px; margin-top: 1px; }
.brand-url:hover { color: var(--accent); text-decoration: underline; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fbtn { font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line, #d7dee8); background: #fff; color: var(--ink); cursor: pointer; }
.fbtn:hover { border-color: var(--accent); color: var(--accent); }
.fbtn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.fbtn .fcount { font-weight: 500; opacity: 0.75; font-size: 12.5px; }
