/* How it works / How it scores — cream band (.gh-section--scores) */

.gh-section--scores {
  --gh-bg: #f8f2ec;
  --gh-ink: #0a101b;
  --gh-gold: #d8b14a;
  --gh-gold-soft: #f0ce6b;
  --gh-gold-dk: #a77014;
  --gh-gold-mid: #b4903a;
  --gh-pill: rgba(216, 177, 74, 0.2);
  --gh-muted: rgba(10, 16, 27, 0.6);
  background: var(--gh-bg);
  color: var(--gh-ink);
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 88px);
  border-top: 0;
  border-bottom: 0;
}

.gh-section--scores .container {
  max-width: var(--max-w, 1280px);
}

.gh-section--scores .gh-header {
  text-align: left;
  max-width: 825px;
  margin: 0 0 28px;
}

.gh-section--scores .gh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gh-gold-mid);
}

.gh-section--scores .gh-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(180, 144, 58, 0.6);
}

.gh-section--scores .gh-title {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--gh-ink);
  letter-spacing: 0.01em;
}

.gh-section--scores .gh-title__accent {
  color: var(--gh-gold);
}

.gh-section--scores .gh-sub {
  margin: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gh-muted);
}

/* ── Tier cards ──────────────────────────────────────────────── */

.gh-section--scores .gh-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}

@media (max-width: 900px) {
  .gh-section--scores .gh-tiers {
    grid-template-columns: 1fr;
  }
}

.gh-section--scores .gh-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 252px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(10, 16, 27, 0.1);
  box-shadow: none;
  color: var(--gh-ink);
  overflow: visible;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.gh-section--scores .gh-tier::before,
.gh-section--scores .gh-tier::after {
  display: none !important;
  content: none !important;
}

.gh-section--scores .gh-tier:hover {
  transform: translateY(-2px);
  border-color: var(--gh-gold);
  box-shadow: 0 10px 28px rgba(10, 16, 27, 0.06), 0 0 0 1px rgba(216, 177, 74, 0.28);
}

.gh-section--scores .gh-tier__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--gh-ink);
  color: var(--gh-gold-soft);
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.gh-section--scores .gh-tier__num--gold,
.gh-section--scores .gh-tier__num--emerald {
  background: var(--gh-ink);
  color: var(--gh-gold-soft);
  border: 0;
}

.gh-section--scores .gh-tier__head {
  display: none;
}

.gh-section--scores .gh-tier__icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.gh-section--scores .gh-tier__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: #f8f3eb;
  overflow: hidden;
}

.gh-section--scores .gh-tier__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.gh-section--scores .gh-tier__name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gh-ink);
  flex: 1;
  min-width: 0;
}

.gh-section--scores .gh-tier__cadence,
.gh-section--scores .gh-tier__text,
.gh-section--scores .gh-tier__mul {
  margin-left: 0;
}

.gh-section--scores .gh-tier__cadence {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Fixed dark ink: the tier cards stay white even on the phone's dark
     stage, where the section's own muted tones turn cream. */
  color: rgba(10, 16, 27, 0.64);
  line-height: 1.4;
}

.gh-section--scores .gh-tier__cadence strong {
  color: inherit;
  font-weight: inherit;
}

.gh-section--scores .gh-tier__text {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 16, 27, 0.65);
  flex: 1;
}

.gh-section--scores .gh-tier__mul {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--gh-pill);
  color: var(--gh-gold-dk);
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gh-section--scores .gh-tier__mul::before {
  display: none;
}

.gh-section--scores .gh-tier__mul--base,
.gh-section--scores .gh-tier__mul--gold,
.gh-section--scores .gh-tier__mul--emerald {
  background: var(--gh-pill);
  color: var(--gh-gold-dk);
}

/* ── Scoring table ───────────────────────────────────────────── */

.gh-section--scores .gh-scoring {
  margin: 0 0 12px;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(10, 16, 27, 0.1);
  border-radius: 24px;
  overflow: hidden;
}

.gh-section--scores .gh-scoring__head {
  display: none;
}

.gh-section--scores .gh-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.gh-section--scores .gh-table thead th {
  padding: 14px 20px;
  background: rgba(10, 16, 27, 0.03);
  border-bottom: 1px solid rgba(10, 16, 27, 0.1);
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 16, 27, 0.89);
  text-align: left;
  vertical-align: middle;
}

.gh-section--scores .gh-table__th-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 6px;
  vertical-align: -1px;
  object-fit: contain;
}

.gh-section--scores .gh-table tbody th,
.gh-section--scores .gh-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(10, 16, 27, 0.07);
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
}

.gh-section--scores .gh-table tbody tr:last-child th,
.gh-section--scores .gh-table tbody tr:last-child td {
  border-bottom: 0;
}

.gh-section--scores .gh-table__row-th {
  font-weight: 700;
  color: var(--gh-ink);
}

.gh-section--scores .gh-table__result {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.gh-section--scores .gh-table__result-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.gh-section--scores .gh-table__result-icon .gh-table__result-ring {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
}

.gh-section--scores .gh-table__result-icon .gh-table__result-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.gh-section--scores .gh-table__td {
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  color: rgba(10, 16, 27, 0.7);
  font-weight: 500;
}

.gh-section--scores .gh-table__td--gold,
.gh-section--scores .gh-table__td--emerald {
  color: var(--gh-gold-mid);
  font-weight: 700;
}

/* Callout pills under table */
.gh-section--scores .gh-callouts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.25fr);
  gap: 8px;
  align-items: start;
  margin: 0 0 28px;
  padding: 0 8px;
}

.gh-section--scores .gh-callouts__spacer {
  min-height: 1px;
}

.gh-section--scores .gh-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.gh-section--scores .gh-callout__arrow {
  width: 12px;
  height: 20px;
  margin-left: 18px;
  object-fit: contain;
  display: block;
}

.gh-section--scores .gh-callout__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gh-pill);
  color: #434343;
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gh-section--scores .gh-callout--featured .gh-callout__pill {
  color: var(--gh-gold-dk);
}

/* ── CTAs ────────────────────────────────────────────────────── */

.gh-section--scores .gh-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin: 0;
}

.gh-section--scores .gh-cta__or {
  display: none;
}

.gh-section--scores .gh-cta__primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: var(--gh-ink);
  color: var(--gh-gold-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}

.gh-section--scores .gh-cta__primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: var(--gh-gold-soft);
}

.gh-section--scores .gh-cta__zap-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.gh-section--scores .gh-cta__zap-wrap img:first-child {
  width: 28px;
  height: 28px;
  display: block;
}

.gh-section--scores .gh-cta__zap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.gh-section--scores .gh-cta__arrow {
  width: 16px;
  height: 16px;
  display: block;
}

.gh-section--scores .gh-cta__fate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gh-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.gh-section--scores .gh-cta__fate:hover {
  color: var(--gh-ink);
}

.gh-section--scores .gh-cta__fate img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .gh-section--scores .gh-callouts {
    display: none;
  }
  .gh-section--scores .gh-table {
    min-width: 0;
  }
  .gh-section--scores .gh-scoring {
    overflow-x: visible;
  }
}

@media (max-width: 560px) {
  .gh-section--scores .gh-tier__cadence,
  .gh-section--scores .gh-tier__text,
  .gh-section--scores .gh-tier__mul {
    margin-left: 0;
  }

  .gh-section--scores .gh-cta__primary {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile — layout dark stage + compact type/padding */
@media (max-width: 700px) {
  .gh-section--scores {
    --gh-bg: #05070c;
    --gh-ink: #0a101b;
    --gh-muted: rgba(245, 242, 234, 0.72);
    background: #05070c;
    color: #f5f2ea;
    padding: 36px 0 44px;
  }

  .gh-section--scores .gh-header {
    margin: 0 0 18px;
    text-align: left;
  }

  .gh-section--scores .gh-kicker {
    color: rgba(216, 177, 74, 0.85);
    font-size: 9px;
    margin-bottom: 10px;
  }
  .gh-section--scores .gh-kicker::before,
  .gh-section--scores .gh-kicker::after {
    background: rgba(216, 177, 74, 0.55);
  }

  .gh-section--scores .gh-title {
    font-size: 26px;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 8px;
  }
  .gh-section--scores .gh-title__accent {
    color: var(--gh-gold);
  }

  .gh-section--scores .gh-sub {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(245, 242, 234, 0.7);
  }

  .gh-section--scores .gh-tiers {
    gap: 12px;
    margin-bottom: 18px;
  }

  .gh-section--scores .gh-tier {
    min-height: 0;
    padding: 16px 14px 14px;
    border-radius: 16px;
    gap: 6px;
  }

  .gh-section--scores .gh-tier__num {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 12px;
  }

  .gh-section--scores .gh-tier__name {
    font-size: 16px;
  }

  .gh-section--scores .gh-tier__cadence {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-left: 0;
  }

  .gh-section--scores .gh-tier__text {
    font-size: 12px;
    line-height: 1.4;
    margin-left: 0;
  }

  .gh-section--scores .gh-tier__mul {
    font-size: 11px;
    padding: 5px 10px;
    margin-top: 4px;
    margin-left: 0;
  }

  .gh-section--scores .gh-scoring {
    border-radius: 16px;
    margin-bottom: 8px;
  }

  .gh-section--scores .gh-table thead th {
    padding: 10px 8px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .gh-section--scores .gh-table tbody th,
  .gh-section--scores .gh-table tbody td {
    padding: 11px 8px;
    font-size: 12px;
  }

  .gh-section--scores .gh-table__result {
    gap: 8px;
  }

  .gh-section--scores .gh-table__result-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .gh-section--scores .gh-table__th-icon {
    display: none;
  }

  /* Drop 4th column on narrow phones so headers don’t truncate/overlap */
  .gh-section--scores .gh-table colgroup col:nth-child(4),
  .gh-section--scores .gh-table thead th:nth-child(4),
  .gh-section--scores .gh-table tbody td:nth-child(4) {
    display: none;
  }

  .gh-section--scores .gh-cta {
    gap: 12px;
    margin-top: 16px;
  }

  .gh-section--scores .gh-cta__primary {
    font-size: 13px;
    padding: 12px 16px;
  }

  .gh-section--scores .gh-cta__fate {
    font-size: 12px;
  }
}
