:root {
  --ink: #17120f;
  --muted: #675c57;
  --border: #eadfdb;
  --panel: #fffaf8;
  --unavailable: #a92b2b;
  --retrogressed: #6d1f1c;
  --watch: #bd740f;
  --advance: #3f7d20;
  --current: #22a987;
  --recent: #c7811a;
  --older: #d05b32;
  --stale: #6d1f1c;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8f8f7;
  color: var(--ink);
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 34px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.eyebrow,
.filters h2,
.alerts h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.month-picker {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select,
button {
  font: inherit;
}

select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 10px 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-body {
  background: #f6f5f3;
}

.landing-frame {
  max-width: 1360px;
  margin: 0 auto;
  padding: 38px;
}

.landing-card {
  overflow: hidden;
  border: 1px solid #ded9d5;
  border-radius: 28px;
  background: #fffdfb;
  box-shadow: 0 24px 80px rgba(23, 18, 15, 0.06);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid #e5dfdc;
  padding: 26px 44px;
}

.brand,
.nav-links,
.hero-actions,
.signup-form {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  color: #080706;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span span,
.landing-eyebrow,
.audience-card a,
.live-alert a {
  color: #124f9d;
}

.brand-mark,
.feature-icon,
.audience-card h2 span,
.alert-icon {
  display: inline-block;
  border: 3px solid #124f9d;
  background: #fffdfb;
}

.brand-mark {
  width: 25px;
  height: 25px;
}

.nav-links {
  gap: 36px;
  color: #4b4440;
  font-size: 23px;
  font-weight: 560;
}

.nav-links a,
.button,
.audience-card a,
.live-alert a {
  text-decoration: none;
}

.nav-links a {
  color: inherit;
}

.landing-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #090807;
  border-radius: 14px;
  background: #090807;
  padding: 16px 34px;
  color: white;
  font: inherit;
  font-size: 24px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

.landing-card .button-small {
  padding: 14px 24px;
  font-size: 22px;
}

.landing-card .button-secondary {
  border-color: #d1cbc7;
  background: white;
  color: #514945;
}

.landing-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 78px 28px 46px;
  text-align: center;
}

.landing-eyebrow {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.dashboard-shell {
  padding: 58px 44px 34px;
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #e5dfdc;
  padding-bottom: 32px;
  margin-bottom: 24px;
}

.dashboard-hero .landing-eyebrow {
  margin-bottom: 22px;
}

.dashboard-hero h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.dashboard-hero .subtitle {
  max-width: 760px;
  margin-top: 18px;
  color: #524b47;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
}

.dashboard-hero .month-picker {
  min-width: 190px;
  margin-bottom: 6px;
}

.dashboard-hero select {
  border-color: #ded9d5;
  border-radius: 11px;
  padding: 13px 14px;
  color: #090807;
  font-size: 18px;
}

.landing-subtitle {
  margin: 26px auto 42px;
  color: #524b47;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.45;
}

.hero-actions {
  justify-content: center;
  gap: 20px;
}

.live-alert,
.dashboard-preview,
.feature-grid,
.audiences,
.founder-note,
.signup-card {
  margin-right: 44px;
  margin-left: 44px;
}

.live-alert {
  display: flex;
  gap: 26px;
  align-items: center;
  border: 1px solid #ff7777;
  border-radius: 15px;
  background: #f8d4d2;
  padding: 20px 27px;
  color: #9c1f1f;
}

.live-alert p {
  margin: 0;
  font-size: 23px;
  line-height: 1.5;
}

.live-alert a {
  color: inherit;
}

.alert-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-color: #9c1f1f;
}

.dashboard-preview {
  border: 1px solid #ded9d5;
  border-radius: 14px;
  background: #fffdfb;
  padding: 30px;
  margin-top: 44px;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.preview-tabs span {
  border: 1px solid #ded9d5;
  border-radius: 999px;
  background: white;
  padding: 9px 20px;
  color: #5e5651;
  font-size: 20px;
  line-height: 1;
}

.preview-tabs .active {
  border-color: #090807;
  background: #090807;
  color: white;
  font-weight: 760;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.preview-cell {
  border: 1px solid #ded9d5;
  border-radius: 12px;
  background: white;
  padding: 20px;
}

.preview-cell.danger {
  border-color: #ff7777;
}

.preview-cell p,
.preview-cell strong,
.preview-cell span {
  display: block;
}

.preview-cell p {
  margin: 0 0 9px;
  color: #817872;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-cell strong {
  color: #a12525;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 24px;
  font-weight: 700;
}

.preview-cell span {
  margin-top: 5px;
  color: #9c1f1f;
  font-size: 17px;
}

.preview-cell .positive {
  color: #06720e;
}

.preview-note {
  margin: 24px 0 0;
  color: #8a837e;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
}

.feature-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid {
  margin-top: 54px;
}

.feature-card {
  border-radius: 14px;
  background: #fdfbf9;
  padding: 30px 28px;
}

.feature-icon,
.audience-card h2 span {
  width: 23px;
  height: 23px;
}

.feature-card h2,
.audience-card h2,
.signup-card h2 {
  margin: 18px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.feature-card p,
.audience-card p,
.founder-note p,
.signup-card p {
  margin: 0;
  color: #524b47;
  font-size: 22px;
  line-height: 1.45;
}

.audiences {
  margin-top: 52px;
}

.section-kicker {
  margin: 0 0 20px;
  color: #8a837e;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-card {
  border: 1px solid #ded9d5;
  border-radius: 13px;
  background: #fffdfb;
  padding: 26px;
}

.audience-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.audience-card a {
  display: inline-block;
  margin-top: 20px;
  font-size: 22px;
  font-weight: 650;
}

.founder-note {
  display: flex;
  align-items: center;
  gap: 28px;
  border-radius: 14px;
  background: #fdfbf9;
  padding: 36px 30px;
  margin-top: 54px;
}

.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #cfe5ff;
  color: #124f9d;
  font-size: 25px;
  font-weight: 650;
}

.founder-note strong {
  color: #090807;
}

.signup-card {
  border: 1px solid #c9c4c0;
  border-radius: 13px;
  padding: 38px 28px;
  margin-top: 54px;
  text-align: center;
}

.signup-card h2 {
  margin-top: 0;
  font-size: 29px;
}

.signup-form {
  justify-content: center;
  gap: 14px;
  max-width: 700px;
  margin: 28px auto 0;
}

.signup-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ded9d5;
  border-radius: 11px;
  background: white;
  padding: 16px 20px;
  color: #090807;
  font: inherit;
  font-size: 28px;
}

.signup-form input::placeholder {
  color: #191615;
}

.signup-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.signup-message {
  min-height: 1.4em;
  max-width: 700px;
  margin: 16px auto 0;
  color: #675c57;
  font-size: 18px;
  line-height: 1.4;
}

.signup-message.success {
  color: #3f7d20;
}

.signup-message.error {
  color: #a92b2b;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 18, 15, 0.42);
  padding: 24px;
}

.signup-modal {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid #ded9d5;
  border-radius: 20px;
  background: #fffdfb;
  padding: 38px;
  box-shadow: 0 24px 80px rgba(23, 18, 15, 0.2);
  color: #090807;
  text-align: center;
}

.signup-modal:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #ded9d5;
  border-radius: 999px;
  background: white;
  width: 38px;
  height: 38px;
  color: #514945;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 12px;
  color: #124f9d;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signup-modal h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.signup-modal p:last-of-type {
  margin: 16px 0 0;
  color: #675c57;
  font-size: 19px;
  line-height: 1.5;
}

.modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #090807;
  border-radius: 14px;
  background: #090807;
  padding: 14px 28px;
  margin-top: 26px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #e5dfdc;
  padding: 28px 44px;
  margin-top: 48px;
}

.landing-footer p {
  margin: 0;
  color: #8a837e;
  font-size: 18px;
  line-height: 1.25;
}

.alerts {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 20px 22px 18px;
  margin-bottom: 28px;
}

.alerts-list {
  display: grid;
  gap: 10px;
}

.alert-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 14px;
  align-items: start;
  border-left: 4px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  line-height: 1.5;
}

.alert-item > span:last-child {
  padding-top: 4px;
}

.alert-item.UNAVAILABLE { border-left-color: var(--unavailable); background: #f8e6e5; }
.alert-item.RETROGRESSED { border-left-color: var(--retrogressed); background: #f8e6e5; }
.alert-item.WATCH { border-left-color: var(--watch); background: #fff1db; }
.alert-item.ADVANCE { border-left-color: var(--advance); background: #e8f3dc; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 10px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.badge.UNAVAILABLE { background: var(--unavailable); }
.badge.RETROGRESSED { background: var(--retrogressed); }
.badge.WATCH { background: var(--watch); }
.badge.ADVANCE { background: var(--advance); }

.filters {
  display: grid;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 9px 13px;
  color: #161312;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.segmented button:hover {
  border-color: #d9cdc8;
  background: #fff3ee;
  box-shadow: 0 4px 12px rgba(23, 18, 15, 0.08);
  transform: translateY(-1px);
}

.segmented button:focus-visible {
  outline: 2px solid #17120f;
  outline-offset: 2px;
}

.segmented button.active {
  border-color: #17120f;
  background: #17120f;
  color: white;
}

.segmented button.active:hover {
  background: #2a211d;
  box-shadow: 0 5px 14px rgba(23, 18, 15, 0.18);
}

.explainer {
  border: 1px solid #17120f;
  background: white;
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.55;
}

.explainer strong {
  font-weight: 800;
}

.cards {
  display: grid;
  gap: 14px;
}

.cards[aria-busy="true"] {
  opacity: 0.65;
}

.card {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) 180px minmax(300px, 1.7fr);
  gap: 0;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 0;
}

.card > * {
  padding: 0 26px;
  min-width: 0;
}

.card > * + * {
  border-left: 1px solid var(--border);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-code {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
}

.card-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.date-stack {
  align-items: center;
  gap: 8px;
  text-align: center;
}

.date-chip {
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 130px;
  text-align: center;
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
}

.date-chip.current { background: #e8f3dc; color: var(--advance); }
.date-chip.recent { background: #fff1db; color: var(--watch); }
.date-chip.older { background: #f9e7df; color: #64251d; }
.date-chip.stale { background: #f8e6e5; color: var(--stale); }

.behind {
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}

.behind.current { color: var(--advance); }
.behind.recent { color: var(--watch); }
.behind.older { color: #64251d; }
.behind.stale { color: var(--stale); }

.trend {
  color: #1d1715;
  font-size: 14px;
}

.trend-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-tag {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.trend-tag.ADVANCING,
.trend-tag.ADVANCE { background: #e8f3dc; color: var(--advance); }
.trend-tag.RETROGRESSED,
.trend-tag.UNAVAILABLE { background: #f8e6e5; color: var(--retrogressed); }
.trend-tag.HOLDING { background: #eeebe9; color: #57504d; }

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trend-cell {
  min-width: 0;
}

.trend-month {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ring {
  flex: none;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--stale);
  border-radius: 50%;
}

.ring.current { border-color: var(--advance); }
.ring.recent { border-color: var(--watch); }
.ring.older { border-color: var(--older); }
.ring.stale { border-color: var(--stale); }

.footer {
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding-top: 18px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: -2px;
}

.dot.current { background: var(--current); }
.dot.recent { background: var(--recent); }
.dot.older { background: var(--older); }
.dot.stale { background: var(--stale); }

.footer p {
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: #0068d6;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .shell {
    padding: 18px 16px;
  }

  .landing-frame {
    padding: 14px;
  }

  .landing-card {
    border-radius: 18px;
  }

  .landing-nav,
  .nav-links,
  .hero-actions,
  .signup-form,
  .landing-footer,
  .founder-note {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav {
    padding: 20px;
  }

  .brand {
    font-size: 24px;
  }

  .nav-links {
    gap: 12px;
    font-size: 17px;
  }

  .nav-links a:not(.button) {
    padding: 6px 0;
  }

  .landing-card .button,
  .landing-card .button-small {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
  }

  .landing-hero {
    padding: 48px 20px 34px;
  }

  .dashboard-shell {
    padding: 36px 20px 24px;
  }

  .dashboard-hero {
    display: grid;
    align-items: start;
    gap: 24px;
    padding-bottom: 26px;
  }

  .dashboard-hero .landing-eyebrow {
    margin-bottom: 16px;
  }

  .dashboard-hero .subtitle {
    font-size: 20px;
  }

  .dashboard-hero .month-picker {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }

  .landing-eyebrow {
    font-size: 14px;
  }

  .landing-subtitle {
    font-size: 20px;
  }

  .live-alert,
  .dashboard-preview,
  .feature-grid,
  .audiences,
  .founder-note,
  .signup-card {
    margin-right: 20px;
    margin-left: 20px;
  }

  .live-alert {
    align-items: flex-start;
    padding: 16px;
  }

  .live-alert p,
  .feature-card p,
  .audience-card p,
  .founder-note p,
  .signup-card p,
  .audience-card a {
    font-size: 17px;
  }

  .preview-grid,
  .feature-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    padding: 18px;
  }

  .preview-tabs span {
    font-size: 15px;
  }

  .preview-cell strong {
    font-size: 21px;
  }

  .preview-note,
  .section-kicker,
  .landing-footer p {
    font-size: 15px;
  }

  .feature-card h2,
  .audience-card h2 {
    font-size: 21px;
  }

  .founder-note {
    gap: 18px;
  }

  .signup-card h2 {
    font-size: 24px;
  }

  .signup-form input {
    width: 100%;
    font-size: 20px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 16px;
  }

  .signup-modal {
    padding: 32px 22px 24px;
  }

  .signup-modal h2 {
    font-size: 26px;
  }

  .signup-modal p:last-of-type {
    font-size: 17px;
  }

  .landing-footer {
    padding: 22px 20px;
  }

  .hero {
    display: grid;
    align-items: start;
  }

  .card {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .card > * {
    padding: 0 18px;
  }

  .card > * + * {
    border-left: none;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
  }

  .date-stack {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
  }

  .alert-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .alert-item .badge {
    width: max-content;
  }
}
