:root {
  --bg: #f4efe5;
  --bg-2: #e9f0e8;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --surface-dark: #111821;
  --surface-dark-2: #19232d;
  --ink: #101820;
  --muted: rgba(16, 24, 32, 0.66);
  --line: rgba(16, 24, 32, 0.12);
  --line-strong: rgba(16, 24, 32, 0.18);
  --emerald: #0f6b53;
  --emerald-2: #0d4f3d;
  --gold: #be862e;
  --gold-soft: rgba(190, 134, 46, 0.16);
  --blue: #214d73;
  --rose: #b24b47;
  --shadow: 0 24px 80px rgba(14, 18, 24, 0.14);
  --shadow-soft: 0 10px 30px rgba(14, 18, 24, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --page-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 107, 83, 0.16), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(190, 134, 46, 0.2), transparent 26%),
    radial-gradient(circle at 58% 88%, rgba(33, 77, 115, 0.1), transparent 24%),
    linear-gradient(180deg, #f5f0e7 0%, #edf2ec 44%, #eef2ee 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(115deg, rgba(16, 24, 32, 0.03), transparent 28%, transparent 72%, rgba(16, 24, 32, 0.04));
  mix-blend-mode: multiply;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(15, 107, 83, 0.18);
  color: var(--ink);
}

.shell {
  width: min(var(--page-width), calc(100% - 40px));
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

.bg-orb-a {
  top: 90px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(15, 107, 83, 0.18), transparent 66%);
}

.bg-orb-b {
  right: -100px;
  top: 240px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(190, 134, 46, 0.18), transparent 64%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0f1720, #243341);
  color: #f6f1e8;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.topnav a {
  transition: color 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-small {
  padding: 11px 16px;
  font-size: 0.92rem;
}

.button-primary {
  padding: 15px 22px;
  color: #fefefe;
  background: linear-gradient(135deg, var(--emerald), #145d4e 55%, #1a7480);
  box-shadow:
    0 14px 30px rgba(15, 107, 83, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    0 18px 38px rgba(15, 107, 83, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-secondary {
  padding: 15px 22px;
  color: var(--ink);
  border-color: rgba(16, 24, 32, 0.14);
  background: rgba(255, 255, 255, 0.68);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(16, 24, 32, 0.22);
  background: rgba(255, 255, 255, 0.84);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.97fr);
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 28px;
}

.hero-copy h1,
.section-heading h2,
.pricing-copy h2,
.signin-copy h2,
.blog-hero h1,
.article-header h1,
.auth-card h1 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 6.8vw, 6.3rem);
  line-height: 0.94;
}

.hero-lede,
.hero-panel-top p,
.hero-panel-footer p,
.section-copy,
.price-lede,
.signin-copy p,
.auth-card p,
.blog-card p,
.article-body p,
.article-body li,
.footer-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 64ch;
  margin: 20px 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-pills,
.signin-pills,
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills {
  margin-top: 22px;
}

.hero-pills span,
.signin-pills span,
.blog-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-disclaimer {
  margin: 14px 0 0;
  max-width: 60ch;
  color: rgba(16, 24, 32, 0.62);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-panel {
  display: flex;
  min-height: 100%;
}

.hero-panel-card,
.sheet-shell,
.pricing-strip,
.signin-card,
.blog-hero,
.blog-card,
.article-shell,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-panel-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(17, 24, 33, 0.96), rgba(17, 24, 33, 0.9)),
    linear-gradient(145deg, rgba(15, 107, 83, 0.18), rgba(190, 134, 46, 0.12));
  color: #f6f1e8;
  box-shadow: 0 26px 90px rgba(10, 16, 22, 0.28);
}

.hero-panel-card::before,
.hero-panel-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel-card::before {
  top: -20px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(190, 134, 46, 0.26), transparent 70%);
}

.hero-panel-card::after {
  left: -20px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(15, 107, 83, 0.18), transparent 70%);
}

.hero-panel-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}

.panel-kicker {
  margin: 0 0 10px;
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-panel-top h2 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-panel-top p {
  max-width: 34ch;
  margin: 10px 0 0;
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.95rem;
}

.market-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.market-tabs.compact {
  padding: 4px;
  gap: 6px;
}

.market-tabs.board-tabs {
  margin-left: auto;
}

.market-tab {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.market-tabs.compact .market-tab {
  padding: 9px 13px;
  font-size: 0.83rem;
}

.market-tabs.board-tabs .market-tab {
  padding: 12px 18px;
}

.market-tab:hover,
.market-tab:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
}

.market-tab.active {
  background: linear-gradient(135deg, var(--surface-dark), #263544);
  color: #f7f2e8;
  box-shadow: 0 10px 24px rgba(17, 24, 33, 0.22);
}

.hero-mini-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-row.open {
  background: rgba(255, 255, 255, 0.1);
}

.mini-row.locked {
  opacity: 0.82;
}

.mini-row strong {
  display: block;
  color: #f6f1e8;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
}

.mini-row span {
  display: block;
  color: rgba(246, 241, 232, 0.7);
  font-size: 0.82rem;
}

.mini-price {
  color: #f6f1e8;
  font-weight: 700;
  white-space: nowrap;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.mini-status-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(246, 241, 232, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-status-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-panel-footer {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-footer-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 241, 232, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-footer strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  color: #f6f1e8;
}

.hero-panel-footer p {
  color: rgba(246, 241, 232, 0.72);
}

.board-section,
.insight-section,
.pricing-section,
.signin-section {
  padding-top: 26px;
  scroll-margin-top: 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.board-toolbar h2 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.board-toolbar > p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.section-copy {
  max-width: 58ch;
  margin: 12px 0 0;
}

.sheet-shell {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-xl);
}

.sheet-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
  background: rgba(255, 255, 255, 0.96);
}

.market-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.market-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  background: rgba(243, 239, 230, 0.96);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  text-align: left;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  padding: 14px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sort-button.is-active {
  color: var(--ink);
}

.sort-indicator {
  font-size: 0.78rem;
  opacity: 0.8;
}

.market-table tbody tr:nth-child(even) {
  background: rgba(16, 24, 32, 0.02);
}

.market-table tbody tr:hover {
  background: rgba(15, 107, 83, 0.05);
}

.market-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.07);
  vertical-align: middle;
}

.market-table td strong {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.company-cell strong {
  font-size: 1.02rem;
}

.gap-cell {
  color: var(--emerald);
  font-weight: 700;
}

.gap-cell.is-negative {
  color: #a13d2d;
}

.sheet-cell {
  width: 138px;
}

.sheet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  min-width: 94px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.sheet-link:hover,
.sheet-link:focus-visible {
  transform: translateY(-1px);
}

.sheet-link.is-open {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), #186a7a);
  box-shadow: 0 12px 24px rgba(15, 107, 83, 0.18);
}

.sheet-link.is-locked {
  color: rgba(16, 24, 32, 0.7);
  background: rgba(16, 24, 32, 0.07);
  border: 1px solid rgba(16, 24, 32, 0.08);
}

.sheet-link:disabled {
  color: rgba(16, 24, 32, 0.42);
  cursor: default;
  opacity: 0.72;
}

.sheet-link:disabled:hover {
  transform: none;
}

.sheet-icon {
  font-size: 0.92rem;
}

.pricing-box .offer-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #2b1b00;
  background: #f4ca6a;
  border: 1px solid #ffdc8e;
  box-shadow: 0 8px 24px rgba(244, 202, 106, 0.18);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pricing-box .price-anchor {
  color: rgba(246, 241, 232, 0.68);
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-stack strong small {
  font-size: 0.48em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pricing-box > span:not(.offer-badge):not(.price-anchor) {
  color: rgba(246, 241, 232, 0.82);
}

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

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

.insight-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, rgba(15, 107, 83, 0.12), rgba(190, 134, 46, 0.14));
  color: var(--emerald);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.insight-card h3,
.blog-card h2,
.article-body h2,
.article-body h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.04em;
}

.insight-card h3 {
  font-size: 1.42rem;
}

.insight-card p {
  margin: 10px 0 0;
}

.model-caution {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(190, 134, 46, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(190, 134, 46, 0.13), rgba(255, 255, 255, 0.68));
}

.model-caution strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.model-caution p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.pricing-copy h2,
.signin-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.subscription-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.subscription-benefits li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.subscription-benefits li:last-child {
  grid-column: 1 / -1;
}

.benefit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 107, 83, 0.16);
}

.subscription-benefits strong,
.subscription-benefits small {
  display: block;
}

.subscription-benefits strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.subscription-benefits small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pricing-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.96), rgba(17, 24, 33, 0.9));
  color: #f6f1e8;
}

.pricing-box strong {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.pricing-box span {
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.94rem;
  line-height: 1.6;
}

.pricing-box .button {
  margin-top: 6px;
}

.signin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.signin-copy p {
  margin: 10px 0 0;
}

.signin-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.auth-state {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.auth-email {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.signin-message,
.legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.signin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.access-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 23, 0.66);
  backdrop-filter: blur(10px);
}

.access-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(250, 248, 242, 0.97);
  box-shadow: 0 30px 100px rgba(7, 12, 17, 0.36);
}

.access-dialog h2 {
  max-width: 12ch;
  margin: 4px 0 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.access-dialog-copy {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.access-dialog .auth-email,
.access-dialog .signin-message {
  margin-bottom: 12px;
}

.access-dialog .legal-note {
  margin-top: 16px;
}

.access-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.footer {
  padding: 34px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.65fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 24, 32, 0.1);
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-blurb {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}

.footer-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-page .topbar,
.article-page .topbar,
.auth-page .topbar {
  position: sticky;
}

.blog-hero {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.blog-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.94;
}

.blog-hero p {
  max-width: 66ch;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.topic-section {
  margin-top: 34px;
}

.topic-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.topic-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.topic-heading p {
  max-width: 52ch;
  margin: 0;
  text-align: right;
}

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

.blog-grid.is-dense .blog-card h3 {
  font-size: 1.38rem;
  line-height: 1.08;
}

.blog-grid.is-dense .blog-card {
  display: flex;
  flex-direction: column;
}

.blog-grid.is-dense .blog-card > a:last-child {
  margin-top: auto;
  padding-top: 16px;
  color: var(--emerald);
  font-weight: 800;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--emerald);
  font-weight: 700;
}

.answer-box {
  padding: 20px 22px;
  border-left: 4px solid var(--emerald);
  border-radius: 0 20px 20px 0;
  background: rgba(15, 107, 83, 0.08);
}

.answer-box h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-box p {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.article-byline a,
.article-body a,
.trust-shell a {
  color: var(--emerald);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body .button-primary {
  color: #fff;
  text-decoration: none;
}

.article-body .button-secondary {
  color: var(--ink);
  text-decoration: none;
}

.related-reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-reading a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
}

.trust-shell {
  max-width: 900px;
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.trust-shell h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
}

.trust-content {
  display: grid;
  gap: 18px;
  max-width: 72ch;
  margin-top: 28px;
}

.trust-content h2 {
  margin-top: 12px;
  font-size: 1.75rem;
}

.blog-card {
  padding: 24px;
  border-radius: 24px;
}

.blog-card h2 {
  font-size: 1.72rem;
}

.blog-card p {
  margin-top: 10px;
}

.blog-card .button {
  margin-top: 16px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-shell {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.article-header {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.article-header h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
}

.article-header p {
  max-width: 74ch;
  margin: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-body {
  display: grid;
  gap: 18px;
  max-width: 72ch;
}

.article-body h2 {
  font-size: 1.82rem;
  line-height: 1.04;
  margin-top: 10px;
}

.article-body h3 {
  font-size: 1.35rem;
}

.article-body ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.article-body li + li {
  margin-top: 10px;
}

.article-callout {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(15, 107, 83, 0.08);
  border: 1px solid rgba(15, 107, 83, 0.16);
  color: var(--ink);
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.auth-page main {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 36px 0 48px;
}

.auth-card {
  width: min(100%, 560px);
  padding: 28px;
  border-radius: var(--radius-xl);
  text-align: left;
}

.auth-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald), #186a7a);
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(15, 107, 83, 0.24);
}

.auth-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.auth-card p {
  margin: 10px 0 0;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button:focus-visible,
.market-tab:focus-visible,
.sort-button:focus-visible,
.sheet-link:focus-visible,
.topnav a:focus-visible,
.footer-links a:focus-visible,
.signin-panel button:focus-visible,
.access-dialog button:focus-visible,
.auth-actions a:focus-visible,
.auth-actions button:focus-visible,
.blog-card .button:focus-visible {
  outline: 2px solid rgba(15, 107, 83, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero,
  .pricing-strip,
  .signin-card,
  .footer-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .board-toolbar {
    align-items: start;
    flex-direction: column;
    justify-content: stretch;
  }

  .board-toolbar > p {
    text-align: left;
  }

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

  .market-tabs.board-tabs {
    margin-left: 0;
  }

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

@media (max-width: 860px) {
  .topbar-inner {
    border-radius: 24px;
  }

  .topnav {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: start;
  }

  .hero-panel-top {
    flex-direction: column;
    align-items: start;
  }

  .market-tabs,
  .market-tabs.board-tabs,
  .market-tabs.compact {
    width: 100%;
  }

  .market-tab {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--page-width), calc(100% - 20px));
  }

  .topbar {
    padding-top: 10px;
  }

  .topbar-inner {
    padding: 12px 14px;
  }

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

  .button-primary,
  .button-secondary,
  .button-small,
  .market-tabs,
  .market-tab {
    width: 100%;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .hero-panel-card,
  .sheet-shell,
  .pricing-strip,
  .signin-card,
  .blog-hero,
  .blog-card,
  .article-shell,
  .auth-card {
    padding: 16px;
  }

  .mini-row {
    grid-template-columns: 1fr auto;
  }

  .mini-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .market-table {
    min-width: 820px;
  }

  .sheet-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .blog-grid.is-dense,
  .related-reading {
    grid-template-columns: 1fr;
  }

  .topic-heading {
    align-items: start;
    flex-direction: column;
  }

  .topic-heading p {
    text-align: left;
  }

  .sheet-cell {
    width: 1%;
    white-space: nowrap;
  }

  .hero-panel-footer strong {
    font-size: 1.2rem;
  }

  .pricing-box strong {
    font-size: 1.7rem;
  }

  .subscription-benefits {
    grid-template-columns: 1fr;
  }

  .subscription-benefits li:last-child {
    grid-column: auto;
  }

  .auth-actions,
  .signin-actions,
  .hero-actions {
    gap: 10px;
  }

  .insight-grid.value-grid,
  .model-caution {
    grid-template-columns: 1fr;
  }

  .access-modal {
    align-items: end;
    padding: 10px;
  }

  .access-dialog {
    padding: 26px 20px 20px;
    border-radius: 24px;
  }

  .access-dialog .button {
    width: 100%;
  }
}
