:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #56635a;
  --line: #d9e2dc;
  --paper: #ffffff;
  --wash: #f4f8f5;
  --leaf: #16734a;
  --leaf-dark: #0c5033;
  --sky: #1176a6;
  --berry: #7f3d91;
  --sun: #e9b949;
  --danger: #a53838;
  --shadow: 0 12px 32px rgba(24, 52, 37, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(217, 226, 220, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 6px; }
.desktop-nav { display: flex; align-items: center; gap: 20px; }
.desktop-nav a, .mobile-nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--leaf); }

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
}

.mobile-nav { display: none; padding: 0 16px 16px; }
.mobile-nav[data-open] { display: grid; gap: 12px; }

.hero {
  min-height: min(500px, 62vh);
  display: flex;
  align-items: end;
  background-color: #17201b;
  background-position: center;
  background-size: cover;
  color: white;
  position: relative;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(10, 22, 15, 0.64);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 86px 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #c6f2d8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 7vw, 72px); }
h2 { margin: 0 0 16px; font-size: clamp(27px, 4vw, 40px); }
h3 { margin: 0 0 8px; font-size: 20px; }

.hero-lead { max-width: 660px; margin: 18px 0 0; color: #f0f5f1; font-size: 18px; }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--leaf-dark); }
.button-secondary { border-color: rgba(255,255,255,0.65); background: rgba(12, 30, 20, 0.45); }
.button-light { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--wash); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--wash); }
.trust-grid { min-height: 74px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 22px; }
.trust-item { font-size: 14px; color: var(--muted); }
.trust-item strong { display: block; color: var(--ink); font-size: 15px; }

.section { padding-block: 70px; }
.codes-section { padding-top: 48px; }
.section-tinted { background: var(--wash); }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading p { margin: 0; color: var(--muted); }

.codes-list { display: grid; gap: 12px; }
.code-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 2fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--leaf);
  border-radius: 6px;
  padding: 18px;
  background: var(--paper);
}

.code-value { color: var(--leaf-dark); font: 800 17px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.code-reward { color: var(--ink); font-weight: 700; }
.code-note { margin-top: 3px; color: var(--muted); font-size: 13px; }
.status-badge {
  width: fit-content;
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e2f4e9;
  color: var(--leaf-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-expired { background: #f7e5e5; color: var(--danger); }
.code-row-expired { border-left-color: var(--danger); }

.notice {
  margin-top: 18px;
  border-left: 4px solid var(--sun);
  padding: 12px 16px;
  background: #fff9e7;
  color: #4c421f;
  font-size: 14px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 22px;
  background: var(--wash);
}
.empty-state p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--paper); }
.feature-card p { margin: 0 0 16px; color: var(--muted); }
.feature-card a { color: var(--leaf); font-weight: 800; text-decoration: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 46px; }
.split img { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; box-shadow: var(--shadow); }
.plain-list { padding-left: 22px; }
.plain-list li + li { margin-top: 10px; }

.ad-band { border-block: 1px solid var(--line); padding-block: 24px; background: #f8faf9; text-align: center; }
.ad-script-slot { width: 0; height: 0; overflow: visible; }
.ad-placeholder { min-height: 90px; display: grid; place-items: center; color: #7a857d; font-size: 12px; }

.page-hero { padding-block: 70px 46px; border-bottom: 1px solid var(--line); background: var(--wash); }
.page-hero h1 { color: var(--ink); font-size: clamp(34px, 6vw, 58px); }
.page-hero .eyebrow { color: var(--leaf); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--leaf); }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 64px; align-items: start; }
.article-section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.article-section:first-child { padding-top: 0; }
.article-section p { color: #34423a; }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 42px; padding-left: 52px; }
.steps li + li { margin-top: 18px; }
.steps li::before {
  position: absolute;
  left: 0;
  top: -4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: white;
  content: counter(steps);
  counter-increment: steps;
  font-weight: 800;
}

.aside-panel { position: sticky; top: 88px; border-left: 3px solid var(--sky); padding-left: 18px; }
.aside-panel p { color: var(--muted); font-size: 14px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding-block: 18px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 17px; }
.faq-item p { margin: 0; color: var(--muted); }

.sources { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.sources a { color: var(--sky); font-size: 14px; font-weight: 700; }

.site-footer { padding-block: 40px; background: #15241b; color: #dbe8df; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.footer-grid p { max-width: 640px; color: #b8c9bd; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 18px; }
.footer-links a { color: white; font-size: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid #31473a; color: #9fb2a5; font-size: 12px; }

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 18px; gap: 12px; }
  .feature-grid, .split, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .article-layout { gap: 36px; }
  .aside-panel { position: static; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { min-height: 520px; }
  .hero-content { padding-block: 64px 44px; }
  .code-row { grid-template-columns: 1fr; gap: 10px; }
  .code-row .button { width: 100%; }
  .section { padding-block: 50px; }
}
