:root {
  color-scheme: dark;
  --canvas: #070f1d;
  --canvas-deep: #050b15;
  --surface: #101a2e;
  --surface-strong: rgba(12, 20, 36, 0.96);
  --surface-soft: rgba(16, 26, 46, 0.9);
  --glass-card: rgba(16, 26, 46, 0.94);
  --glass-border: rgba(255, 255, 255, 0.16);
  --control-border: #8090aa;
  --text: #f8fbff;
  --text-soft: #cbd5e1;
  --muted: #aebbd0;
  --mint: #8fffc1;
  --mint-solid: #49e394;
  --gold: #f5c45a;
  --danger: #ff9a91;
  --warning: #f5d27b;
  --radius: 18px;
  --radius-small: 12px;
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --header-offset: 64px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 20px);
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--canvas);
  background-image:
    linear-gradient(
      180deg,
      rgba(7, 16, 31, 0.38) 0,
      rgba(7, 16, 31, 0.48) 48vh,
      rgba(7, 16, 31, 0.82) 95vh,
      var(--canvas) 1320px
    ),
    url("/assets/brand/image01.jpg");
  background-position: top center, top center;
  background-repeat: no-repeat;
  background-size: 100% 1320px, min(100%, 1400px) auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--mint);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

main {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
  padding-bottom: 88px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--mint);
  color: #06130c;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #06130c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-offset);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 15, 29, 0.82);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.brand {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand span {
  color: var(--mint);
}

.header-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(5, 11, 21, 0.42);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-current > span {
  background: var(--mint-solid);
  box-shadow: 0 0 0 4px rgba(73, 227, 148, 0.14);
}

.status-warning > span {
  background: var(--warning);
}

.status-stale > span {
  background: var(--danger);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: rgba(143, 255, 193, 0.12);
  color: var(--mint);
}

.hero {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  scroll-margin-top: var(--header-offset);
}

.hero-copy {
  width: min(100%, 720px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: rgba(7, 16, 31, 0.72);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  animation: hero-in 420ms ease-out both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 5.5vw, 4.5rem);
  font-weight: 780;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow):not(.hero-trust-line),
.page-intro > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.14rem);
}

.hero-cta {
  min-height: 52px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 18px;
  border: 1px solid var(--mint-solid);
  border-radius: 12px;
  background: var(--mint-solid);
  color: #06130c;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(73, 227, 148, 0.18);
  transition: transform 160ms ease, background-color 160ms ease;
}

.hero-cta:hover {
  background: var(--mint);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.hero-trust-line > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint-solid);
  box-shadow: 0 0 0 4px rgba(73, 227, 148, 0.12);
}

.freshness-banner {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(280px, 1.28fr);
  gap: 12px 24px;
  align-items: center;
  margin: 20px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--mint-solid);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.freshness-banner div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.freshness-banner strong {
  font-size: 0.9rem;
}

.freshness-banner span,
.freshness-banner p {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.freshness-banner p {
  margin: 0;
}

.freshness-warning {
  border-left-color: var(--warning);
}

.freshness-stale {
  border-left-color: var(--danger);
}

.deal-view-tabs {
  width: fit-content;
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(7, 15, 29, 0.74);
}

.deal-view-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 750;
}

.deal-view-tab:hover {
  color: var(--text);
}

.deal-view-tab.active,
.deal-view-tab[aria-pressed="true"] {
  border-color: rgba(143, 255, 193, 0.32);
  background: rgba(143, 255, 193, 0.12);
  color: var(--mint);
}

.deal-view-tab span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: currentColor;
  font-size: 0.74rem;
}

.explorer {
  min-height: 80vh;
  padding: 78px 0 20px;
  scroll-margin-top: var(--header-offset);
}

.explorer-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.explorer-head h2,
.trust-grid h2 {
  margin: 0;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.7rem);
  line-height: 1.1;
}

.explorer-note {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--text-soft);
}

.result-summary {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-summary strong {
  color: var(--text);
  font-size: 1.25rem;
}

.results-controls {
  position: sticky;
  top: calc(var(--header-offset) + 8px);
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(7, 15, 29, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.search-field {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--control-border);
  border-radius: 11px;
  background: rgba(16, 26, 46, 0.82);
}

.search-field:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(143, 255, 193, 0.12);
}

.search-icon {
  color: var(--mint);
  font-size: 1.25rem;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.96rem;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field input:focus-visible,
.sort-control select:focus-visible {
  outline: 0;
  box-shadow: none;
}

.control-button,
.sort-control,
.clear-filters,
.applied-list button,
.button-secondary,
.load-more,
.icon-action,
.text-action,
.dialog-close,
.dialog-reset {
  border: 1px solid var(--control-border);
  background: rgba(16, 26, 46, 0.9);
  color: var(--text-soft);
}

.control-button,
.sort-control {
  min-height: 48px;
  border-radius: 11px;
}

.control-button {
  min-width: 122px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 750;
}

.control-button:hover {
  border-color: var(--mint);
}

.filter-count {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--mint-solid);
  color: #06130c;
  font-size: 0.75rem;
}

.sort-control {
  min-width: 212px;
  display: flex;
  align-items: center;
  padding-inline: 8px;
}

.sort-control:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(143, 255, 193, 0.12);
}

.sort-control select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  color-scheme: light;
  font-size: 0.9rem;
  font-weight: 700;
}

.sort-control select option {
  background: #ffffff;
  color: #07101f;
}

.filter-dialog {
  width: min(440px, 92vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.filter-dialog[open] {
  animation: drawer-in 210ms ease-out both;
}

.filter-dialog::backdrop {
  background: rgba(2, 7, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: backdrop-in 150ms ease-out both;
}

.filter-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface-strong);
  box-shadow: -24px 0 54px rgba(0, 0, 0, 0.36);
}

.filter-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.filter-dialog-head .eyebrow {
  margin-bottom: 4px;
}

.filter-dialog-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.dialog-close {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.filter-dialog-body {
  overflow-y: auto;
  padding: 8px 22px 28px;
  overscroll-behavior: contain;
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.filter-options {
  display: grid;
  gap: 7px;
}

.filter-options label {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-soft);
  cursor: pointer;
}

.filter-options label:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.filter-options label:has(input:checked) {
  border-color: rgba(143, 255, 193, 0.48);
  background: rgba(143, 255, 193, 0.1);
  color: var(--text);
}

.filter-options label > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 650;
}

.filter-options input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--mint-solid);
}

.filter-options small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.filter-dialog-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 22px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  background: rgba(12, 20, 36, 0.98);
}

.dialog-reset,
.dialog-apply {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 800;
}

.dialog-apply {
  border: 1px solid var(--mint-solid);
  background: var(--mint-solid);
  color: #06130c;
}

.dialog-apply.no-results {
  border-color: var(--control-border);
  background: var(--surface);
  color: var(--text-soft);
}

.applied-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.applied-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.applied-list button,
.clear-filters {
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.applied-list button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.clear-filters {
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
  color: var(--mint);
}

.results-heading {
  min-height: 28px;
  margin: 18px 0 10px;
}

.results-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 650;
}

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

.deal {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-card);
  box-shadow: var(--glass-shadow);
  scroll-margin-top: calc(var(--header-offset) + 82px);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .deal {
    background: rgba(16, 26, 46, 0.66);
    backdrop-filter: blur(18px) saturate(112%);
    -webkit-backdrop-filter: blur(18px) saturate(112%);
  }
}

.deal:hover {
  border-color: rgba(143, 255, 193, 0.44);
  transform: translateY(-1px);
}

.deal-highlight {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(143, 255, 193, 0.18), var(--glass-shadow);
}

.deal-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.deal-identity {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.chain {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.chain-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chain, var(--mint-solid));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chain, var(--mint-solid)) 18%, transparent);
}

.valid {
  max-width: 48%;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 750;
  text-align: right;
}

.valid-urgent {
  color: var(--gold);
}

.valid-stale {
  color: var(--danger);
}

.deal-value {
  margin: 2px 0 0;
  color: var(--gold);
  font-size: clamp(1.7rem, 1.48rem + 0.7vw, 2.2rem);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.deal-title {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 670;
  line-height: 1.38;
}

.deal-support {
  display: grid;
  gap: 3px;
}

.deal-support p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 570;
}

.deal-details {
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 0.87rem;
}

.deal-details summary {
  min-height: 42px;
  width: fit-content;
  display: flex;
  align-items: center;
  color: var(--mint);
  font-weight: 750;
  cursor: pointer;
}

.deal-details-body {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(5, 11, 21, 0.68);
}

.deal-details-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.text-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
}

.deal-actions {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  gap: 9px;
  margin-top: auto;
  padding-top: 3px;
}

.icon-action {
  min-width: 84px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 750;
}

.icon-action > [aria-hidden="true"] {
  font-size: 1.08rem;
  line-height: 1;
}

.icon-action:hover,
.icon-action.active {
  border-color: var(--mint);
  color: var(--mint);
}

.icon-action .action-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.deal-cta,
.button-primary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid var(--mint-solid);
  border-radius: 11px;
  background: var(--mint-solid);
  color: #06130c;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.deal-cta:hover,
.button-primary:hover {
  border-color: var(--mint);
  background: var(--mint);
  text-decoration: none;
}

.load-more,
.button-secondary {
  min-height: 50px;
  padding: 10px 17px;
  border-radius: 11px;
  font-weight: 800;
}

.load-more {
  width: min(100%, 340px);
  display: block;
  margin: 24px auto 0;
}

.load-more:hover,
.button-secondary:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.empty-state {
  padding: 34px 20px;
  border: 1px dashed var(--control-border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
}

.empty-state p {
  max-width: 52ch;
  margin: 8px auto 18px;
  color: var(--text-soft);
}

.static-empty {
  margin: 22px 0 0;
}

.noscript-note {
  margin: 18px 0 0;
  color: var(--warning);
  font-size: 0.88rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 72px 0 0;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.trust-grid p:not(.eyebrow) {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--text-soft);
}

.trust-grid > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.breadcrumbs {
  margin: 28px 0 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: var(--control-border);
}

.breadcrumbs a {
  color: var(--text-soft);
}

.page-intro {
  max-width: 850px;
  padding: 54px 0 34px;
}

.page-intro h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
}

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

.resource-grid article,
.prose-section,
.eligibility-note {
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--glass-shadow);
}

.resource-step {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-grid h2 {
  margin: 0;
  font-size: 1.24rem;
}

.resource-grid p:not(.resource-step) {
  min-height: 5.4em;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.resource-grid .button-primary {
  width: 100%;
}

.eligibility-note {
  margin-top: 16px;
  border-left: 4px solid var(--mint-solid);
}

.eligibility-note p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.prose-section {
  max-width: 900px;
  margin-top: 18px;
  scroll-margin-top: calc(var(--header-offset) + 20px);
}

.prose-section h2 {
  margin: 0;
  font-size: 1.4rem;
}

.prose-section p {
  max-width: 66ch;
  color: var(--text-soft);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

caption {
  padding-bottom: 8px;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

thead th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-state {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.source-ok {
  background: rgba(73, 227, 148, 0.14);
  color: var(--mint);
}

.source-failed {
  background: rgba(255, 154, 145, 0.14);
  color: var(--danger);
}

.site-footer {
  width: min(100% - 40px, var(--content));
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.3fr auto;
  gap: 26px;
  margin: 0 auto;
  padding: 38px 0 48px;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer strong {
  color: var(--text);
}

.footer-brand .brand {
  display: inline-block;
  margin-bottom: 5px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-footer nav a {
  color: var(--text-soft);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 999px) {
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .resource-grid p:not(.resource-step) {
    min-height: 0;
  }

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

@media (max-width: 760px) {
  :root {
    --header-offset: 62px;
  }

  body {
    background-size: 100% 1180px, auto 1040px;
  }

  main,
  .site-footer {
    width: min(100% - 28px, var(--content));
  }

  .site-header {
    gap: 9px;
    padding-inline: 14px;
  }

  .header-status {
    padding-inline: 7px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-offset));
    padding: 42px 0 56px;
  }

  .hero-copy {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .hero-cta {
    width: min(100%, 340px);
  }

  .explorer {
    padding-top: 58px;
  }

  .explorer-head {
    display: block;
  }

  .result-summary {
    margin-top: 12px;
  }

  .freshness-banner {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .results-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    top: calc(var(--header-offset) + 6px);
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .control-button {
    min-width: 0;
  }

  .sort-control {
    min-width: 0;
  }

  .applied-filters {
    align-items: start;
  }

  .applied-list {
    flex-wrap: nowrap;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .applied-list button {
    flex: 0 0 auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 56px;
  }

  .filter-dialog {
    width: 100%;
    height: min(90dvh, 760px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .filter-dialog[open] {
    animation-name: sheet-in;
  }

  .filter-shell {
    border-radius: inherit;
    overflow: hidden;
    box-shadow: 0 -24px 54px rgba(0, 0, 0, 0.36);
  }

  .filter-dialog-head {
    padding-top: 20px;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 599px) {
  /* Below this width the brand, the freshness pill and four nav links cannot
     share one row: the nav overflowed the header and pushed Merch, the last
     link, past the right edge while the page scrolled sideways. Give the nav a
     full-width second row instead, so every link stays reachable without
     hiding any of them. --header-offset covers both rows so the sticky header
     never overlaps content anchored beneath it. */
  :root {
    --header-offset: 104px;
  }

  .site-header {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-block: 8px 6px;
  }

  .brand {
    font-size: 1.28rem;
  }

  .header-status {
    margin-left: auto;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 2px;
  }

  .site-nav a {
    flex: 0 1 auto;
    justify-content: center;
    min-height: 40px;
  }

  .deal-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .deal {
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .site-nav a {
    padding-inline: 4px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .deal:hover,
  .hero-cta:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-copy,
  .site-header,
  .results-controls,
  .deal,
  .freshness-banner,
  .trust-grid,
  .resource-grid article,
  .prose-section,
  .eligibility-note {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .chain-dot,
  .header-status > span,
  .hero-trust-line > span {
    border: 1px solid CanvasText;
  }

  .deal-cta,
  .button-primary,
  .hero-cta,
  .dialog-apply {
    border: 2px solid LinkText;
  }
}
