:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f4ef;
  color: #20231f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

button {
  min-height: 40px;
  border: 1px solid #2f5b4c;
  border-radius: 6px;
  background: #2f5b4c;
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
}

a {
  color: #2f5b4c;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 48px);
  background: #102620;
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-link {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 10px 14px;
}

.topbar h1,
.panel h2,
.session-card h3 {
  margin: 0;
  line-height: 1.15;
}

.topbar h1 {
  font-size: 24px;
}

.marketing-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.brand-link img {
  border-radius: 10px;
}

.marketing-hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  background: #102620 url("/equiscore-logo.png") right 8vw center / 440px no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero-inner h1 {
  max-width: 650px;
  margin: 12px 0 16px;
  font-size: 64px;
  line-height: 0.98;
}

.hero-inner > p {
  max-width: 580px;
  margin: 0;
  color: #f4efe4;
  font-size: 20px;
  line-height: 1.45;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

.primary-link {
  background: #d9b35a;
  color: #102620;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.marketing-section,
.marketing-band {
  width: min(1180px, calc(100vw - 32px));
  margin: 28px auto;
}

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

.feature-grid article,
.marketing-band > div {
  border: 1px solid #ded8ce;
  border-radius: 8px;
  background: #fffdfa;
  padding: 18px;
}

.feature-grid h2,
.marketing-band h2 {
  margin: 6px 0 10px;
  line-height: 1.12;
}

.feature-grid p,
.marketing-band p {
  color: #5f665f;
  line-height: 1.5;
  margin-bottom: 0;
}

.marketing-band > div {
  border-color: #d9b35a;
  background: #fbf4e2;
}

.eyebrow,
.label,
.muted {
  margin: 0;
}

.eyebrow,
.label {
  color: #6ba38d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.policy-shell {
  width: min(860px, calc(100vw - 32px));
}

.grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.4fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid #ded8ce;
  border-radius: 8px;
  background: #fffdfa;
  padding: 18px;
}

.policy-panel {
  font-size: 16px;
  line-height: 1.62;
}

.policy-panel h2 {
  margin: 28px 0 8px;
  line-height: 1.2;
}

.policy-panel h3 {
  margin: 22px 0 6px;
  line-height: 1.25;
}

.policy-panel p,
.policy-panel ul {
  margin: 10px 0;
}

.policy-panel li + li {
  margin-top: 5px;
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status-panel p:last-child {
  max-width: 620px;
  margin: 0;
  color: #5f665f;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head button {
  background: transparent;
  color: #2f5b4c;
}

.session-list,
.details {
  min-width: 0;
}

.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e6e0d6;
  border-radius: 8px;
  padding: 14px;
}

.session-card + .session-card {
  margin-top: 10px;
}

.session-card.active {
  border-color: #2f5b4c;
  background: #eef5f0;
}

.session-card span {
  border-radius: 999px;
  background: #d8eee4;
  color: #214b3f;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.muted {
  color: #68716a;
  font-size: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.score-grid div {
  border: 1px solid #e6e0d6;
  border-radius: 8px;
  padding: 12px;
}

.score-grid dt {
  color: #68716a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-grid dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 850;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-top: 1px solid #e7e1d8;
  padding: 11px 8px;
  text-align: left;
}

th {
  color: #5e675f;
  font-size: 12px;
  text-transform: uppercase;
}

.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: -24px auto 42px;
  color: #68716a;
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.support-panel > .muted {
  font-size: 16px;
}

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

.support-grid div {
  border: 1px solid #e6e0d6;
  border-radius: 8px;
  background: #f8f5ee;
  padding: 14px;
}

.support-grid h3 {
  margin-top: 0;
}

.support-grid p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .marketing-hero {
    min-height: auto;
    background: #102620 url("/equiscore-logo.png") right -70px bottom -64px / 210px no-repeat;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .hero-inner h1 {
    font-size: 42px;
  }

  .hero-inner > p {
    font-size: 17px;
  }

  .topbar,
  .status-panel,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-link {
    text-align: center;
  }

  .grid,
  .score-grid,
  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}
