:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #edf2f7;
  --ink: #151c18;
  --muted: #5f6a61;
  --line: #d8dee8;
  --accent: #0f766e;
  --accent-dark: #155e57;
  --gold: #b7791f;
  --blue: #315f7b;
  --dark: #20262c;
  --shadow: 0 16px 42px rgba(21, 28, 24, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.brand,
.nav-actions,
.button-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 860;
}

.nav-actions,
.button-row {
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

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

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: var(--surface-2);
}

main {
  padding: 0 0 44px;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 790px);
  gap: 26px;
  align-content: center;
  align-items: start;
  min-height: min(540px, calc(100vh - 164px));
  padding: clamp(34px, 6vw, 78px) clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 248, 250, 0.99) 0%, rgba(247, 248, 250, 0.97) 48%, rgba(247, 248, 250, 0.72) 76%, rgba(247, 248, 250, 0.36) 100%),
    url("assets/chargebackpacket-home.png") right 16px top / min(820px, 60vw) auto no-repeat,
    var(--bg);
}

.opening-copy {
  display: grid;
  align-content: center;
  max-width: 760px;
  padding: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.92;
}

.lead {
  max-width: 690px;
  margin: 18px 0 0;
  color: #26322c;
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: break-word;
}

.opening-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 900px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(216, 222, 232, 0.88);
  box-shadow: 0 18px 42px rgba(21, 28, 24, 0.12);
  backdrop-filter: blur(12px);
}

.opening-metrics div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 104px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.9);
}

.opening-metrics strong {
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.opening-metrics span {
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin: 22px clamp(14px, 3vw, 42px) 0;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.product-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #dbe3df;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.product-body h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.product-body p {
  margin: 10px 0 0;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 22px;
}

.checks li::before {
  position: absolute;
  left: 0;
  color: var(--blue);
  content: "✓";
  font-weight: 900;
}

.conversion-notes {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #f8fbfa;
}

.conversion-notes div {
  display: grid;
  gap: 3px;
}

.conversion-notes strong {
  color: var(--ink);
  font-size: 13px;
}

.conversion-notes span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.resource-directory,
.standards {
  margin-top: 28px;
  padding: 0 clamp(14px, 3vw, 42px);
}

.section-title p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.08;
}

.directory-grid,
.standard-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

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

.directory-grid article,
.standard-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(21, 28, 24, 0.06);
}

.standard-grid article {
  min-height: 176px;
}

.directory-grid h3,
.standard-grid h3 {
  margin: 0;
  font-size: 18px;
}

.directory-grid ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.directory-grid a {
  color: var(--ink);
  text-decoration-color: rgba(15, 118, 110, 0.34);
  text-underline-offset: 3px;
}

.directory-grid a:hover {
  text-decoration-color: var(--accent);
}

.standard-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

@media (max-width: 980px) {
  .opening,
  .standard-grid {
    grid-template-columns: 1fr;
  }

  .opening {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(247, 248, 250, 0.98), rgba(247, 248, 250, 0.88)),
      url("assets/chargebackpacket-home.png") right top / 760px auto no-repeat,
      var(--bg);
  }

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

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row {
    width: 100%;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-actions .button.primary:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .button {
    width: 100%;
  }

  .opening {
    background:
      linear-gradient(180deg, rgba(247, 248, 250, 0.99), rgba(247, 248, 250, 0.96)),
      var(--bg);
  }

  .opening-copy {
    overflow: hidden;
  }

  h1 {
    font-size: 48px;
  }

  .lead {
    max-width: 100%;
    font-size: 17px;
  }

  .opening-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .opening-metrics div {
    min-height: 78px;
    grid-template-columns: minmax(max-content, 0.42fr) minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(21, 28, 24, 0.06);
  }

  .opening-metrics strong {
    font-size: 25px;
    white-space: nowrap;
  }

  .opening-metrics span {
    font-size: 13px;
  }

  .product-body {
    padding: 16px;
  }
}
