@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg-a: #f2f2f0;
  --bg-b: #ebebea;
  --surface: #ebebea;
  --panel: rgba(250, 250, 248, 0.96);
  --line: #d0d0ce;
  --line-2: #c4c4c2;
  --text: #141414;
  --ink-2: #2f2f2c;
  --muted: #3f3f3c;
  --cta: #0d2b22;
  --cta-2: #1a4535;
  --cta-text: #fafaf8;
  --accent: #0d2b22;
  --accent-soft: #e8ede9;
  --gold: #8a7340;
  --warning: #7a4c49;
  --white: #fafaf8;
  --display-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "Manrope", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(211, 223, 217, 0.96), rgba(211, 223, 217, 0) 34%),
    radial-gradient(circle at 88% 22%, rgba(240, 229, 211, 0.95), rgba(240, 229, 211, 0) 36%),
    linear-gradient(110deg, #d8e2dd 0%, #f5f4ef 48%, #efe6d7 100%);
  background-attachment: fixed;
  letter-spacing: 0;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.research-page {
  min-height: 100vh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 48px 44px;
  display: grid;
  gap: 22px;
}

.top-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 74px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 4px;
}

.top-shell-brand {
  min-width: 0;
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: min(330px, 100%);
  height: auto;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-shell-brand h1 {
  margin: 0 0 6px;
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.2vw, 1.78rem);
  line-height: 0.96;
  font-weight: 700;
}

.top-brand-proofline {
  margin: 0;
  color: var(--gold);
  font-size: 0.64rem;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 800;
  text-transform: uppercase;
}

.top-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.follow-block {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.follow-block p {
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-row a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cta);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.referral-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--cta);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.top-shell-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.top-shell-nav a,
.range-btn,
.btn.btn-secondary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.top-shell-nav a:hover,
.range-btn:hover,
.btn.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.top-shell-account {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}

.top-brand-supportline {
  grid-column: 2;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: right;
  font-weight: 800;
}

.top-brand-supportline a {
  color: var(--ink-2);
  text-decoration: none;
}

.top-brand-supportline a:hover {
  text-decoration: underline;
}

.google-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--cta);
  color: var(--cta-text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.referral-pill:hover,
.google-btn:hover {
  filter: brightness(1.03);
}

.google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.top-login-btn {
  min-height: 42px;
  min-width: 112px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 900;
}

.google-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.account-menu {
  position: relative;
}

.account-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 750;
}

.account-trigger::-webkit-details-marker {
  display: none;
}

.account-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--cta-2);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.account-email {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.account-link {
  display: block;
  padding: 9px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.quant-style-hero {
  display: grid;
  justify-items: center;
  padding: 28px 0 36px;
  text-align: center;
}

.quant-style-hero h2 {
  margin: 0;
  font-family: var(--display-font);
  color: #111111;
  font-size: clamp(5.4rem, 14vw, 11.5rem);
  line-height: 0.78;
  font-weight: 700;
}

.hero-subtitle {
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 900;
}

.hero-description {
  width: min(1800px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.38rem);
  line-height: 1.52;
  font-weight: 500;
}

.testimonial-rail {
  width: min(1680px, 92%);
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: hidden;
}

.testimonial-rail article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid rgba(208, 208, 206, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.testimonial-rail p {
  color: var(--ink-2);
  font-size: clamp(0.96rem, 1.25vw, 1.18rem);
  line-height: 1.35;
  font-style: italic;
  font-weight: 650;
}

.testimonial-rail strong {
  margin-top: 18px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.browser-ledger {
  width: min(1320px, 72vw);
  min-width: 920px;
  margin-top: 40px;
  border: 1px solid #bfc5bf;
  border-radius: 0 0 14px 14px;
  background: var(--white);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.09);
  text-align: left;
}

.browser-top {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-bottom: 1px solid #c7ccc7;
  background: rgba(232, 237, 233, 0.76);
}

.browser-top span {
  width: 13px;
  height: 13px;
  border: 1px solid #b7bdb8;
  border-radius: 50%;
  background: #d7ddd8;
}

.ledger-content {
  padding: 38px 36px 34px;
}

.ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.ledger-head h3 {
  margin: 0;
  font-family: var(--display-font);
  color: #111111;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.95;
  font-weight: 700;
}

.ledger-head p {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr 1.25fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.ledger-cell {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-right: 1px solid var(--line);
  color: var(--cta);
  text-decoration: none;
  background: rgba(250, 250, 248, 0.72);
}

.ledger-cell:last-child {
  border-right: 0;
}

.ledger-cell span {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-cell strong {
  color: #111111;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  font-weight: 900;
}

.ledger-cell small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 750;
}

.demo-cell {
  justify-items: center;
  text-align: center;
}

.demo-cell strong {
  color: var(--cta);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.15;
}

.eye-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--cta) !important;
  font-size: 1.35rem !important;
}

.hero-primary-cta {
  min-width: 235px;
  min-height: 82px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--cta-text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(13, 43, 34, 0.18);
}

.hero-terms {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 700;
}

.hero-terms a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.landing-hero,
.landing-section,
.landing-cta-panel,
.panel,
.report-hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
}

.thesis-hero {
  min-height: 470px;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 6px 6px 2px;
}

.landing-hero-copy h2,
.report-hero h2,
.billing-hero h2,
.terms-panel h2 {
  margin: 0;
  max-width: 980px;
  font-family: var(--display-font);
  font-size: clamp(2.45rem, 6vw, 5.9rem);
  line-height: 0.9;
  font-weight: 700;
}

.landing-hero-text {
  margin: 20px 0 0;
  max-width: 840px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.72;
}

.landing-note-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.landing-note-strip span,
.landing-note-highlight {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 650;
}

.landing-note-highlight {
  border-color: #c8d8cc;
  background: var(--accent-soft);
  color: var(--cta-2) !important;
  font-weight: 800;
}

.hero-action-row {
  margin-top: 24px;
  flex-wrap: wrap;
}

.landing-shell-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-proof-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  display: grid;
  align-content: center;
  gap: 16px;
}

.landing-proof-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.landing-proof-grid {
  display: grid;
  gap: 10px;
}

.thesis-proof-grid {
  grid-template-columns: 1fr;
}

.summary-card,
.report-card,
.product-card,
.flow-card,
.billing-plan-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: none;
}

.summary-card {
  padding: 18px;
}

.landing-proof-metric {
  padding: 14px;
}

.summary-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  margin: 7px 0 3px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
  font-weight: 700;
}

.summary-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.landing-proof-note,
.subtext,
.section-copy,
.landing-method-copy,
.landing-cta-copy,
.landing-terms-copy {
  color: var(--ink-2);
  line-height: 1.65;
}

.landing-proof-note {
  font-size: 0.88rem;
}

.landing-section {
  scroll-margin-top: 22px;
  padding: 26px;
  background: var(--surface);
}

.landing-section-head {
  margin-bottom: 18px;
}

.landing-section-head h3,
.landing-cta-panel h3,
.paywall-panel h3,
.billing-section-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
  font-weight: 700;
}

.section-copy {
  margin: 10px 0 0;
  max-width: 920px;
  font-size: 0.98rem;
}

.landing-method-grid,
.products-grid,
.report-grid,
.access-flow,
.research-section-grid,
.research-columns,
.scorecard-grid,
.dashboard-overview-grid {
  display: grid;
  gap: 14px;
}

.landing-method-grid,
.products-grid,
.access-flow,
.research-section-grid,
.research-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.report-card,
.product-card,
.billing-plan-card {
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.report-card-top,
.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-ticker,
.product-name {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.9;
  font-weight: 700;
}

.report-company {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #c8d8cc;
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--cta-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.locked {
  border-color: #d9c9aa;
  background: #f2eadb;
  color: var(--gold);
}

.product-summary {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.62;
}

.report-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.locked-card {
  background:
    linear-gradient(135deg, rgba(232, 237, 233, 0.9), rgba(250, 250, 248, 0.96)),
    var(--white);
}

.flow-card {
  display: grid;
  gap: 8px;
}

.flow-card span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--cta-2);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-card {
  min-height: 100%;
}

.product-cta {
  padding-top: 2px;
}

.product-current {
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 700;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: end;
}

.ticker-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ticker-search-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 13px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-weight: 650;
}

.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;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: start;
  padding: 30px;
  background: var(--white);
}

.report-hero:not(.report-locked) {
  grid-template-columns: 1fr;
}

.paywall-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.dashboard-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-metric-grid {
  padding: 0;
}

.thesis-copy {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.thesis-copy p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.85;
}

.report-memo-section {
  overflow: hidden;
}

.report-memo {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--ink-2);
  font-family: var(--body-font);
}

.report-memo-brand {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-memo-title {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.report-memo-publish {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.report-memo-subtitle {
  margin: 12px 0 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-memo-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.report-memo-section-title {
  margin: 30px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 43, 34, 0.12);
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 700;
  line-height: 1.1;
}

.report-memo-line {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.72;
  text-align: justify;
  text-justify: inter-word;
}

.report-memo-table-wrap {
  width: 100%;
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.74);
  overflow-x: auto;
}

.report-memo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  tab-size: 2;
}

.report-memo-table th,
.report-memo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.report-memo-table th {
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
}

.report-memo-table tr:last-child th,
.report-memo-table tr:last-child td {
  border-bottom: 0;
}

.scorecard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scorecard-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.scorecard-grade {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c8d8cc;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--cta-2);
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
}

.research-note-card {
  background: var(--white);
}

.research-columns {
  align-items: start;
}

.research-columns article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 22px;
}

.detail-list,
.research-list,
.billing-plan-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.58;
}

.detail-list li + li,
.research-list li + li,
.billing-plan-list li + li {
  margin-top: 7px;
}

.landing-cta-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: center;
}

.landing-cta-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.panel {
  padding: 30px;
}

.billing-panel {
  display: grid;
  gap: 26px;
}

.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.billing-status-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 18px;
}

.billing-status-label,
.billing-group-kicker,
.billing-plan-badge,
.billing-invoice-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-status-value,
.billing-plan-name,
.billing-plan-price,
.billing-invoice-title {
  margin-top: 6px;
  font-family: var(--display-font);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.billing-status-meta,
.billing-plan-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.billing-group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.billing-plan-featured {
  border-color: #c8d8cc;
  background: linear-gradient(180deg, var(--white), var(--accent-soft));
}

.billing-plan-price span {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 0.9rem;
}

.billing-plan-actions {
  margin-top: 4px;
}

.billing-invoice-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.billing-invoice-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.billing-invoice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 14px;
}

.logout-link {
  color: var(--ink-2);
}

.terms-panel {
  display: grid;
  gap: 18px;
}

.terms-copy {
  max-width: 980px;
  display: grid;
  gap: 10px;
}

.terms-copy h3 {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.terms-copy p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.72;
}

.warning-strip {
  border: 1px solid #d9b9b6;
  border-radius: 16px;
  background: #f5e7e4;
  color: var(--warning);
  padding: 14px 16px;
}

@media (max-width: 1180px) {
  .top-shell {
    grid-template-columns: 1fr auto;
  }

  .top-shell-actions {
    flex-wrap: wrap;
  }

  .top-brand-supportline {
    grid-column: 1 / -1;
  }

  .browser-ledger {
    width: 100%;
    min-width: 0;
  }

  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .ledger-cell:nth-child(2n) {
    border-right: 0;
  }

  .ledger-cell:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .landing-hero,
  .report-hero,
  .archive-hero,
  .billing-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-overview-grid,
  .scorecard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .landing-method-grid,
  .products-grid,
  .report-grid,
  .access-flow,
  .research-section-grid,
  .research-columns,
  .billing-plans {
    grid-template-columns: 1fr;
  }

  .landing-cta-panel {
    grid-template-columns: 1fr;
  }

  .landing-cta-actions {
    justify-items: start;
  }

  .testimonial-rail {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .follow-block {
    display: none;
  }
}

@media (max-width: 700px) {
  .research-page {
    padding: 12px;
    gap: 12px;
  }

  .top-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .top-brand-supportline {
    text-align: left;
    justify-self: start;
  }

  .top-shell-brand {
    width: 100%;
  }

  .brand-logo {
    width: min(330px, 100%);
    height: auto;
  }

  .top-shell-actions {
    width: 100%;
    justify-content: stretch;
  }

  .referral-pill,
  .top-login-btn {
    flex: 1 1 150px;
    min-width: 0;
  }

  .landing-hero,
  .landing-section,
  .report-hero,
  .panel,
  .landing-cta-panel {
    border-radius: 18px;
    padding: 18px;
  }

  .landing-hero-copy h2,
  .report-hero h2,
  .billing-hero h2,
  .terms-panel h2 {
    font-size: clamp(2.3rem, 14vw, 4rem);
  }

  .quant-style-hero h2 {
    font-size: clamp(4.6rem, 24vw, 7rem);
  }

  .browser-ledger {
    border-radius: 0 0 12px 12px;
  }

  .ledger-content {
    padding: 24px 18px;
  }

  .ledger-head {
    display: grid;
  }

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

  .ledger-cell,
  .ledger-cell:nth-child(2n) {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-cell:last-child {
    border-bottom: 0;
  }

  .hero-primary-cta {
    width: 100%;
    min-height: 64px;
  }

  .dashboard-overview-grid,
  .scorecard-grid {
    grid-template-columns: 1fr;
  }

  .ticker-search-form,
  .scorecard-item {
    grid-template-columns: 1fr;
  }

  .landing-shell-action-row,
  .hero-action-row,
  .billing-invoice-card {
    align-items: stretch;
    flex-direction: column;
  }

  .google-btn,
  .range-btn,
  .btn.btn-secondary,
  .ticker-search-form button {
    width: 100%;
  }

  .account-dropdown {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 44px));
  }
}

/* Quant reference alignment */
body.landing-body {
  background:
    radial-gradient(circle at 18% 8%, rgba(13, 43, 34, 0.2), transparent 27rem),
    radial-gradient(circle at 88% 18%, rgba(138, 115, 64, 0.2), transparent 29rem),
    linear-gradient(135deg, #dce7df 0%, #f2f2f0 48%, #efe8d7 100%);
  background-attachment: fixed;
}

.research-page {
  width: min(calc(100% - 28px), 1180px);
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 30px;
  display: grid;
  gap: 4px;
}

.top-shell {
  min-height: 62px;
  border: 1px solid rgba(250, 250, 248, 0.48);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(250, 250, 248, 0.66);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto max-content;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.top-shell-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo-frame {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
}

.top-shell-brand .brand-logo {
  width: 177px;
  max-width: none;
  height: 46px;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.brand-logo-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.brand-title {
  color: var(--text);
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.top-brand-proofline {
  display: block;
  margin: 0;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.follow-block {
  justify-self: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.follow-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.social-row a,
.referral-pill,
.top-login-btn,
.account-trigger {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.social-row a {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--cta);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.social-row a:hover {
  border-color: var(--cta);
  background: var(--accent-soft);
  color: var(--cta);
  transform: translateY(-1px);
}

.social-icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-shell-actions {
  justify-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
}

.top-shell-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-shell-action-row .referral-pill,
.top-shell-action-row .top-login-btn {
  flex: 0 0 auto;
}

.top-login-btn {
  min-width: 92px;
  margin: 0;
  border-color: var(--cta);
  background: var(--cta);
  color: var(--cta-text);
}

.top-login-btn:hover,
.top-login-btn:focus-visible {
  border-color: var(--cta);
  background: var(--cta-2);
  color: var(--cta-text);
}

.account-trigger {
  gap: 8px;
  list-style: none;
}

.account-badge {
  background: var(--accent-soft);
  color: var(--cta-2);
}

.top-brand-supportline {
  max-width: none;
  margin: 0;
  grid-column: auto;
  justify-self: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.referral-hover {
  position: relative;
  z-index: 20;
}

.referral-pill {
  width: auto;
  margin: 0;
  cursor: pointer;
  color: var(--cta);
}

.referral-pill:hover,
.referral-pill:focus-visible {
  border-color: var(--cta);
  background: var(--accent-soft);
  color: var(--cta);
  filter: none;
}

.referral-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(250, 250, 248, 0.98);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.referral-hover:hover .referral-popover,
.referral-hover:focus-within .referral-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.referral-popover h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 0.92rem;
  line-height: 1.25;
}

.referral-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.quant-style-hero {
  position: relative;
  min-height: min(610px, calc(100vh - 118px));
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto;
  align-items: start;
  justify-items: stretch;
  gap: 0;
  padding: clamp(2px, 1.2vw, 12px) 0 clamp(20px, 3vw, 34px);
  text-align: center;
}

.quant-style-hero .landing-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  display: block;
  text-align: center;
}

.landing-hero-top {
  display: block;
}

.quant-style-hero .landing-product-title {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(4rem, 9vw, 7.7rem);
  line-height: 0.82;
  font-weight: 700;
}

.landing-hero-tagline {
  margin: 18px auto 0;
  max-width: 780px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.55;
  font-weight: 700;
}

.quant-style-hero .landing-hero-text {
  margin: 8px auto 0;
  max-width: 1040px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
  white-space: normal;
}

.landing-review-marquee {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 248, 0.58);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.42);
  backdrop-filter: blur(10px);
}

.landing-review-marquee::before,
.landing-review-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 84px;
  pointer-events: none;
}

.landing-review-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(232, 238, 233, 0.96), rgba(232, 238, 233, 0));
}

.landing-review-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(241, 238, 229, 0.96), rgba(241, 238, 229, 0));
}

.landing-review-track {
  width: max-content;
  display: flex;
  gap: 10px;
  padding: 8px;
  animation: landing-review-scroll 82s linear infinite;
}

.landing-review-marquee:hover .landing-review-track,
.landing-review-marquee:focus-within .landing-review-track {
  animation-play-state: paused;
}

.landing-review-card {
  width: clamp(430px, 38vw, 490px);
  min-height: 108px;
  border: 1px solid rgba(13, 43, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px 14px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  text-align: left;
}

.landing-review-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.34;
}

.landing-review-card footer {
  color: var(--text);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.landing-review-card footer span {
  display: inline;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

@keyframes landing-review-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }
}

.landing-proof-card {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  height: auto;
  margin: 24px auto 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.08);
  overflow: visible;
  display: block;
  text-align: left;
}

.landing-window-bar {
  height: 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8f8f6, #e8ede9);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.landing-window-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #b8beb8;
  border-radius: 50%;
  background: #d8ddd8;
}

.landing-ledger {
  padding: 22px;
}

.landing-ledger-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.landing-ledger-title-row h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.1;
}

.landing-snapshot {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.landing-ledger-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 142px 1fr 1fr 1fr 142px;
  background: var(--white);
}

.landing-ledger-demo,
.landing-ledger-metric,
.landing-ledger-top-performer,
.landing-ledger-history {
  min-height: 106px;
  border-right: 1px solid var(--line);
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.landing-ledger-history {
  border-right: 0;
}

.landing-ledger-demo:hover,
.landing-ledger-metric:hover,
.landing-ledger-top-performer:hover,
.landing-ledger-history:hover {
  background: rgba(232, 237, 233, 0.58);
}

.landing-ledger-metric > span,
.landing-ledger-top-performer > span,
.sample-ledger-cell > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-top-symbol {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.sample-ledger-cell small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.landing-history-trigger {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--cta);
  text-align: center;
}

.landing-history-trigger span {
  max-width: 100px;
  color: var(--cta);
  font-size: 0.72rem;
  line-height: 1.25;
}

.landing-eye-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.landing-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.landing-hero-cta .google-btn {
  width: auto;
  min-height: 50px;
  margin: 0;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--cta);
  color: var(--cta-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.landing-hero-terms {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.landing-hero-terms a {
  color: var(--ink-2);
  font-weight: 800;
  text-decoration: none;
}

.landing-hero-terms a:hover,
.landing-hero-terms a:focus-visible {
  text-decoration: underline;
}

.landing-products-section {
  padding: 18px;
  border: 1px solid rgba(250, 250, 248, 0.62);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.5);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.thesis-essay-section {
  margin: 10px 0 8px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(250, 250, 248, 0.62);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.58);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.thesis-essay-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.thesis-essay-heading {
  position: sticky;
  top: 18px;
}

.thesis-essay-heading h2 {
  margin: 5px 0 0;
  max-width: 520px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  font-weight: 700;
  line-height: 0.92;
}

.thesis-essay-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.thesis-essay-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.78;
}

.thesis-essay-section .landing-section-head,
.landing-products-section .landing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13, 43, 34, 0.12);
}

.landing-products-tab {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  padding: 0;
  backdrop-filter: none;
}

.landing-products-tab h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1;
}

.landing-products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-products-section .product-card {
  min-height: 100%;
  border: 1px solid rgba(250, 250, 248, 0.62);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.72);
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.landing-products-section .product-name {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 2.05rem;
  line-height: 0.95;
}

.landing-products-section .status-badge {
  color: var(--cta-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid #c8d8cc;
  background: var(--accent-soft);
}

.landing-products-section .product-summary {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-products-section .detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

.landing-products-section .detail-list li + li {
  margin-top: 4px;
}

.landing-products-section .product-current {
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .landing-review-track {
    width: auto;
    overflow-x: auto;
    animation: none;
  }
}

@media (max-width: 1120px) {
  .top-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .top-shell-brand,
  .top-shell-actions {
    justify-self: center;
  }

  .top-shell-actions {
    align-items: center;
  }

  .top-brand-supportline {
    max-width: min(680px, 100%);
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 980px) {
  .quant-style-hero .landing-hero-text {
    max-width: 760px;
    white-space: normal;
  }
}

@media (max-width: 880px) {
  .thesis-essay-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .thesis-essay-heading {
    position: static;
  }

  .quant-style-hero {
    min-height: auto;
    padding: 12px 16px 28px;
  }

  .landing-ledger-grid {
    grid-template-columns: 1fr;
  }

  .landing-ledger-metric,
  .landing-ledger-demo,
  .landing-ledger-top-performer,
  .landing-ledger-history {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landing-ledger-history {
    border-bottom: 0;
  }

  .landing-products-section .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  body.landing-body {
    background-attachment: scroll;
  }

  .research-page {
    width: min(100% - 16px, 1180px);
    padding-top: 8px;
    padding-bottom: 18px;
    gap: 8px;
  }

  .top-shell {
    padding: 12px 10px;
    gap: 12px;
  }

  .top-shell-brand {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .brand-logo-frame {
    width: 40px;
    height: 40px;
  }

  .top-shell-brand .brand-logo {
    width: 154px;
    height: 40px;
  }

  .brand-title {
    font-size: 1.16rem;
  }

  .top-brand-proofline {
    max-width: 260px;
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .follow-block,
  .top-shell-actions {
    width: 100%;
  }

  .top-shell-action-row {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .referral-pill,
  .top-login-btn,
  .account-trigger {
    width: auto;
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.7rem;
  }

  .top-login-btn {
    min-width: 82px;
  }

  .top-brand-supportline {
    max-width: 300px;
    font-size: 0.62rem;
    line-height: 1.4;
  }

  .referral-popover {
    left: 50%;
    right: auto;
    transform: translate(-50%, -6px);
  }

  .referral-hover:hover .referral-popover,
  .referral-hover:focus-within .referral-popover {
    transform: translate(-50%, 0);
  }

  .quant-style-hero .landing-product-title {
    font-size: clamp(3.25rem, 18vw, 3.8rem);
  }

  .landing-hero-tagline {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .quant-style-hero .landing-hero-text {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .landing-review-marquee {
    width: 100%;
  }

  .landing-review-card {
    width: min(360px, calc(100vw - 72px));
  }

  .landing-proof-card {
    margin-top: 18px;
  }

  .landing-ledger {
    padding: 16px;
  }

  .landing-ledger-title-row {
    display: grid;
    gap: 6px;
  }

  .landing-snapshot {
    text-align: left;
  }

  .landing-products-section {
    padding: 14px;
  }

  .thesis-essay-section {
    margin-top: 8px;
    padding: 24px;
  }

  .thesis-essay-heading h2 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .thesis-essay-copy p {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .landing-products-section .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .report-memo-title {
    font-size: 1.85rem;
  }

  .report-memo-section-title {
    margin-top: 24px;
    padding-top: 14px;
  }

  .report-memo-line,
  .report-memo-meta {
    font-size: 0.88rem;
  }
}

/* Quant repo parity overrides */
body.landing-body {
  background: var(--bg-a);
  background-attachment: fixed;
}

.research-page {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px;
  gap: 22px;
}

.top-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backdrop-filter: none;
}

.top-shell-brand {
  flex: 1 1 420px;
}

.brand-logo-frame {
  width: 38px;
  height: 38px;
}

.top-shell-brand .brand-logo {
  width: 146px;
  height: 38px;
}

.follow-block {
  flex: 0 0 auto;
}

.top-shell-actions {
  flex: 1 1 420px;
}

.brand-title {
  font-size: clamp(1.28rem, 1.9vw, 1.55rem);
  line-height: 1.05;
}

.top-brand-proofline {
  margin: 1px 0 0;
  color: var(--gold);
  font-size: 0.66rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.top-brand-supportline {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.social-row a,
.referral-pill,
.top-login-btn,
.account-trigger {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink-2);
  box-shadow: none;
}

.top-login-btn {
  border-color: var(--cta);
  background: var(--cta);
  color: var(--cta-text);
}

.thesis-essay-section,
.landing-products-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.thesis-essay-section {
  margin: 0;
}

.thesis-essay-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.thesis-essay-heading {
  position: static;
}

.thesis-essay-heading h2 {
  margin: 0;
  max-width: 420px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.thesis-essay-copy {
  max-width: none;
  gap: 14px;
}

.thesis-essay-copy p {
  color: var(--ink-2);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.7;
}

.landing-products-section .landing-section-head {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

.landing-products-tab h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

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

.landing-products-section .product-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 22px;
  gap: 16px;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-products-section .product-summary {
  color: var(--ink-2);
}

.landing-products-section .btn.btn-secondary,
.btn.btn-secondary {
  border-color: var(--accent);
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
}

.landing-products-section .btn.btn-secondary:hover,
.btn.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 1050px) {
  .research-page {
    padding: 14px;
  }

  .top-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .top-shell-brand {
    flex-basis: auto;
    justify-content: center;
    text-align: center;
  }

  .follow-block,
  .top-shell-actions {
    flex-basis: auto;
    align-items: center;
  }

  .top-brand-supportline {
    text-align: center;
    white-space: normal;
  }

  .thesis-essay-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .research-page {
    width: 100%;
    padding: 10px;
    gap: 16px;
  }

  .top-shell {
    border-radius: 18px;
    padding: 14px 12px;
  }

  .top-shell-action-row {
    flex-wrap: wrap;
  }

  .thesis-essay-section,
  .landing-products-section {
    border-radius: 18px;
    padding: 18px 14px;
  }

  .thesis-essay-heading h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .thesis-essay-copy p {
    font-size: 0.94rem;
  }

  .landing-products-section .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Live Quant glass styling from https://quant.theblackwillow.com/static/styles.css?v=20260711g */
body.landing-body {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(13, 43, 34, 0.2), transparent 27rem),
    radial-gradient(circle at 88% 18%, rgba(138, 115, 64, 0.2), transparent 29rem),
    linear-gradient(135deg, #dce7df 0%, #f2f2f0 48%, #efe8d7 100%);
  background-attachment: fixed;
  letter-spacing: 0;
}

.research-page {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 4px;
  padding: 18px 0 30px;
}

.top-shell {
  min-height: 62px;
  border: 1px solid rgba(250, 250, 248, 0.48);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.66);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) max-content;
  align-items: center;
  gap: 16px;
  padding: 9px 12px;
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.top-shell-brand {
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: initial;
}

.brand-logo-frame {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}

.top-shell-brand .brand-logo {
  width: 46px;
  height: 46px;
  max-width: none;
  display: block;
  object-fit: contain;
}

.brand-logo-copy {
  min-width: 0;
  display: grid;
  gap: 0;
}

.brand-title {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.top-brand-proofline {
  display: block;
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.follow-block {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  gap: 8px;
  min-width: 0;
  flex: initial;
}

.follow-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.social-row a,
.referral-pill,
.top-login-btn,
.account-trigger {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.social-row a {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--cta);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.social-row a:hover {
  border-color: var(--cta);
  background: var(--accent-soft);
  color: var(--cta);
  transform: translateY(-1px);
}

.top-shell-actions {
  justify-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 6px;
  flex: initial;
}

.top-shell-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.referral-hover {
  position: relative;
  z-index: 20;
}

.referral-pill {
  width: auto;
  margin: 0;
  cursor: pointer;
  color: var(--cta);
}

.referral-pill:hover,
.referral-pill:focus-visible {
  border-color: var(--cta);
  background: var(--accent-soft);
  color: var(--cta);
  filter: none;
}

.referral-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(250, 250, 248, 0.98);
  box-shadow: 0 18px 42px rgba(20, 20, 20, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  visibility: visible;
  transition: opacity 160ms ease, transform 160ms ease;
}

.referral-hover:hover .referral-popover,
.referral-hover:focus-within .referral-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.referral-popover h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.25;
}

.referral-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.top-login-btn {
  width: auto;
  min-width: 92px;
  margin: 0;
  border-color: var(--cta);
  background: var(--cta);
  color: var(--cta-text);
}

.top-login-btn:hover,
.top-login-btn:focus-visible {
  border-color: var(--cta);
  background: var(--cta-2);
  color: var(--cta-text);
}

.top-brand-supportline {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.top-brand-supportline a {
  color: var(--ink-2);
  text-decoration: none;
}

.top-brand-supportline a:hover {
  text-decoration: underline;
}

.thesis-essay-section,
.landing-products-section {
  padding: 18px;
  border: 1px solid rgba(250, 250, 248, 0.62);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.5);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.thesis-essay-section {
  margin: 14px 0;
}

.thesis-essay-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.thesis-essay-heading {
  position: static;
}

.thesis-essay-heading h2 {
  margin: 0;
  max-width: 430px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}

.thesis-essay-copy {
  display: grid;
  gap: 12px;
  max-width: none;
  width: 100%;
}

.thesis-essay-copy p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.thesis-essay-section .landing-section-head,
.landing-products-section .landing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13, 43, 34, 0.12);
}

.landing-products-tab {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  padding: 0;
  backdrop-filter: none;
}

.landing-products-tab h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}

.landing-products-tab h2.thesis-label {
  color: var(--gold);
  font-family: var(--body-font);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-products-section .product-card {
  min-height: 100%;
  border: 1px solid rgba(250, 250, 248, 0.62);
  border-radius: 8px;
  background: rgba(250, 250, 248, 0.72);
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.landing-products-section .product-name {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 0.95;
}

.landing-products-section .status-badge {
  color: var(--cta-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid #c8d8cc;
  background: var(--accent-soft);
}

.landing-products-section .product-summary {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-products-section .detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

.landing-products-section .detail-list li + li {
  margin-top: 4px;
}

.landing-products-section .btn.btn-secondary,
.btn.btn-secondary {
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
}

.landing-products-section .btn.btn-secondary:hover,
.btn.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 1120px) {
  .top-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .top-shell-brand,
  .top-shell-actions {
    justify-self: center;
  }

  .top-shell-brand {
    justify-content: center;
  }

  .top-shell-actions {
    align-items: center;
  }

  .top-brand-supportline {
    max-width: min(680px, 100%);
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .thesis-essay-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .landing-products-section .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  body.landing-body {
    background-attachment: scroll;
  }

  .research-page {
    width: min(100% - 16px, 1180px);
    padding-top: 8px;
    padding-bottom: 18px;
    gap: 8px;
  }

  .top-shell {
    padding: 12px 10px;
    gap: 12px;
  }

  .top-shell-brand {
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .brand-logo-frame,
  .top-shell-brand .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 1.16rem;
  }

  .top-brand-proofline {
    max-width: 260px;
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .follow-block {
    width: 100%;
    justify-content: center;
  }

  .top-shell-action-row {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .referral-pill,
  .top-login-btn {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.7rem;
  }

  .top-login-btn {
    min-width: 82px;
  }

  .top-brand-supportline {
    max-width: 300px;
    font-size: 0.62rem;
    line-height: 1.4;
  }

  .referral-popover {
    left: 50%;
    right: auto;
    transform: translate(-50%, -6px);
  }

  .referral-hover:hover .referral-popover,
  .referral-hover:focus-within .referral-popover {
    transform: translate(-50%, 0);
  }

  .thesis-essay-section,
  .landing-products-section {
    padding: 14px;
  }

  .thesis-essay-heading h2 {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .landing-products-section .products-grid {
    grid-template-columns: 1fr;
  }
}
