/* moonbonuscodes.com — single stylesheet, no framework */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --bg: #090b0d;
  --bg-elev: #0e1114;
  --fg: #ffffff;
  --muted: #a4a9b2;
  --muted-2: #7a808a;
  --lav: #cdbdff;
  --lav-2: #d9cdff;
  --lime: #c6ff3d;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.34);
  --ink: #0f1013;
  --ink-soft: #3a3550;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 4px; }
.on-lav :focus-visible, .banner :focus-visible { outline-color: var(--ink); }

.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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lav); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Text primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }
.micro {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); line-height: 1.6;
}
.h-xl { font-size: clamp(42px, 5.1vw, 74px); }
.h-lg { font-size: clamp(34px, 3.4vw, 50px); letter-spacing: -0.03em; line-height: 1.02; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--fg);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c1e24; border-color: #1c1e24; }
.btn-lg { height: 60px; padding: 0 40px; font-size: 16px; }
.btn-lg svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.86); transition: color 0.15s ease; }
.nav a:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-cta { display: inline-flex; }
.nav .nav-cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; min-height: 470px; display: grid; grid-template-columns: minmax(0, 600px) 1fr; align-items: center; padding-top: 24px; padding-bottom: 8px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { max-width: 12ch; }
.br-wide { display: inline; }
.hero-copy .lead { margin-top: 22px; max-width: 420px; font-size: 18px; }
.hero-caption { display: inline-flex; align-items: center; gap: 14px; margin-top: 54px; }
.hero-caption::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }

.hero-art {
  position: absolute; top: 0; bottom: 0; right: calc(50% - var(--container) / 2 - 90px);
  width: clamp(560px, 60vw, 880px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-art figcaption { position: absolute; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hero-art figcaption::after, .hero-art figcaption::before { content: ""; width: 34px; height: 1px; background: var(--line-strong); }
.hero-art figcaption::before { display: none; }
.hero-art .cap-tr { right: 8px; top: 56px; }
.hero-art .cap-bl { left: 10%; bottom: 46px; }
.hero-art .cap-br { right: 8px; bottom: 34px; }
.hero-art .cap-bl::after, .hero-art .cap-br::after { display: none; }
.hero-art .cap-bl::before, .hero-art .cap-br::before { display: block; }
.hero-art figcaption span { display: block; }
@media (max-width: 1240px) { .hero-art { right: 0; } }

/* ---------- Lavender banners ---------- */
.banner {
  --bleed: 28px;
  position: relative;
  margin: 0 calc(var(--bleed) * -1);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #d7cbff 0%, #cdbdff 55%, #c9b9ff 100%);
  color: var(--ink);
  z-index: 3;
}
@media (max-width: 1320px) { .banner { --bleed: 0px; } }
.code-banner { display: grid; grid-template-columns: auto 1px 1fr auto; align-items: center; gap: 0 40px; padding: 22px 34px 22px 34px; min-height: 124px; }
.code-banner .divider { width: 1px; height: 70px; background: rgba(15, 16, 19, 0.22); }
.code-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }
.code-value { display: block; font-size: clamp(44px, 5vw, 66px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 4px; color: var(--ink); }
.copy-btn { justify-self: center; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; color: var(--ink); transition: background-color 0.15s ease; }
.copy-btn svg { width: 22px; height: 22px; }
.copy-btn:hover { background: rgba(15, 16, 19, 0.07); }
.copy-btn.is-copied { font-weight: 600; }
.code-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.code-note p + p { margin-top: 6px; }

/* ---------- Steps ---------- */
.steps { padding: 56px 0 0; }
.steps h2 { margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: end; padding: 0 20px 0 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 32px; }
.step-num { display: inline-flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 600; letter-spacing: -0.04em; color: var(--lav); line-height: 1; }
.step-num::after { content: ""; width: 30px; height: 1px; background: var(--line-strong); }
.step h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: 18px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 215px; }
.step-text { align-self: center; }
.step-art { width: clamp(120px, 11vw, 156px); aspect-ratio: 1 / 1; display: flex; align-items: end; justify-content: center; }
.step-art img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Section frame ---------- */
.section { border-top: 1px solid var(--line); margin-top: 48px; }
.split { display: grid; grid-template-columns: 37% 1fr; }
.split-intro { padding: 44px 40px 44px 0; border-right: 1px solid var(--line); }
.split-intro .eyebrow { margin-bottom: 24px; }
.split-intro .lead { margin-top: 22px; max-width: 380px; }
.split-body { padding: 24px 0 24px 40px; }

.check-list li { display: grid; grid-template-columns: 24px 210px 1fr; column-gap: 26px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { width: 24px; height: 24px; color: var(--lav); }
.check-list h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.check-list p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Troubleshooting ---------- */
.trouble { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 0; }
.trouble .container { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; align-items: center; }
.trouble-art { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; pointer-events: none; overflow: hidden; }
.trouble-art img { position: absolute; right: 2%; top: -36%; width: min(60vw, 860px); max-width: none; height: auto; aspect-ratio: 1132 / 1111; }
.trouble-body { grid-column: 2; padding: 36px 0 36px 8px; }
.trouble-body .eyebrow { margin-bottom: 18px; }
.trouble-body .lead { margin-top: 16px; }
.trouble-body .check-list { margin-top: 18px; }
.trouble-body .check-list li { grid-template-columns: 24px 190px 1fr; padding: 16px 0; }
.trouble-body .check-list p strong { color: #fff; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 36px 0 40px; }
.faq .split { grid-template-columns: 37% 1fr; }
.faq .split-intro { border-right: 0; padding: 12px 40px 12px 0; }
.faq .split-intro .lead { margin-top: 18px; font-size: 16px; }
.faq .split-body { padding: 0 0 0 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px 16px 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--lav-2); }
.faq-item .faq-answer { padding: 0 32px 18px 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 640px; }

/* ---------- Bottom CTA ---------- */
.cta-banner { display: grid; grid-template-columns: auto 1px 1fr auto; align-items: center; gap: 0 32px; padding: 16px 28px; min-height: 82px; margin-top: 8px; }
.cta-banner .divider { width: 1px; height: 36px; background: rgba(15, 16, 19, 0.22); }
.cta-banner h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.cta-code { display: inline-flex; align-items: center; gap: 22px; justify-self: center; }
.cta-code .code-label { font-size: 10px; letter-spacing: 0.26em; }
.code-badge { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1.5px solid rgba(15, 16, 19, 0.7); border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.cta-banner .btn { height: 48px; padding: 0 44px; }

/* ---------- Footer ---------- */
.site-footer { padding: 34px 0 40px; }
.site-footer .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-brand .brand { font-size: 19px; }
.footer-brand .micro { margin-top: 10px; padding-left: 40px; }
.footer-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-legal { font-size: 12px; line-height: 1.55; color: var(--muted); }

/* ---------- Simple pages ---------- */
.page { padding: 40px 0 72px; max-width: 720px; }
.page .eyebrow { margin-bottom: 20px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); }
.page h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 40px; }
.page p, .page li { color: var(--muted); font-size: 16px; line-height: 1.6; }
.page p { margin-top: 14px; }
.page ul { margin-top: 12px; list-style: disc; padding-left: 20px; }
.page li + li { margin-top: 6px; }
.page a:not(.btn) { color: var(--lav); text-decoration: underline; text-underline-offset: 3px; }
.page .btn { margin-top: 28px; }
.page-meta { font-size: 13px; color: var(--muted-2); margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-links { gap: 22px; }
  .hero-art figcaption { display: none; }
  .hero .container { grid-template-columns: minmax(0, 480px) 1fr; }
  .hero-art { width: 54vw; }
  .check-list li { grid-template-columns: 24px 180px 1fr; }
  .trouble-body .check-list li { grid-template-columns: 24px 170px 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { display: block; padding: 14px var(--gutter); font-size: 16px; }
  .nav .nav-cta { display: block; margin: 12px var(--gutter) 0; }
  .nav .nav-cta .btn { display: flex; width: 100%; padding: 0 20px; }

  .cta-banner { grid-template-columns: 1fr auto; gap: 16px 24px; padding: 20px 24px; }
  .cta-banner .divider { display: none; }
  .cta-code { justify-self: end; }
  .cta-banner .btn { grid-column: 1 / -1; }

  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 0; }
  .hero-copy .lead { max-width: 520px; }
  .hero-caption { margin-top: 36px; }
  .hero-art {
    position: relative; right: auto; top: auto; bottom: auto; width: calc(100% + var(--gutter) * 2); margin: 12px calc(var(--gutter) * -1) 0;
    aspect-ratio: 3 / 2; max-height: 440px;
    -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%);
  }
  .hero-art img { object-position: 50% 50%; }

  .steps { padding-top: 48px; }
  .steps h2 { margin-bottom: 28px; }
  .section { margin-top: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { padding: 22px 0; border-top: 1px solid var(--line); }
  .step:last-child { padding-bottom: 8px; }
  .step h3 { margin-top: 12px; }
  .step + .step { border-left: 0; padding-left: 0; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step p { max-width: 380px; }

  .split, .faq .split { grid-template-columns: 1fr; }
  .split-intro, .faq .split-intro { border-right: 0; padding: 40px 0 0; }
  .split-body { padding: 16px 0 24px; }
  .faq .split-body { padding: 8px 0 0; }
  .check-list li { grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; align-items: start; }
  .check-list svg { grid-row: 1 / span 2; margin-top: 1px; }
  .check-list p { grid-column: 2; }

  .trouble .container { grid-template-columns: 1fr; min-height: 0; }
  .trouble-art { position: relative; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); height: 200px; overflow: hidden; grid-column: 1; grid-row: 1; }
  .trouble-art img { left: 50%; top: 8%; transform: translateX(-50%); width: min(140vw, 720px); }
  .trouble-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, var(--bg) 100%); }
  .trouble-body { grid-column: 1; grid-row: 2; padding: 8px 0 32px; }
  .trouble-body .check-list li { grid-template-columns: 24px 1fr; }

  .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-content: flex-start; gap: 20px 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .br-wide { display: none; }
  .h-xl { font-size: clamp(40px, 11.6vw, 60px); }
  .h-lg { font-size: clamp(32px, 9vw, 42px); }
  .hero-copy .lead { font-size: 16px; }

  .code-banner { grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 22px 20px 20px; }
  .code-banner .code-block { grid-column: 1 / -1; }
  .code-banner .divider { display: none; }
  .code-banner .copy-btn { justify-self: stretch; grid-column: 1; height: 52px; padding: 0 10px; border: 1px solid rgba(15, 16, 19, 0.35); font-size: 15px; gap: 8px; }
  .code-banner .btn-lg { grid-column: 2; height: 52px; padding: 0 12px; font-size: 15px; }
  .code-value { font-size: clamp(48px, 15vw, 60px); }
  .code-note { font-size: 12.5px; }

  .cta-banner { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; text-align: left; }
  .cta-banner .divider { display: none; }
  .cta-code { justify-self: start; }
  .cta-banner .btn { width: 100%; }

  .step-art { width: 112px; }
  .faq-item summary { font-size: 15px; }
  .faq-item .faq-answer { padding-right: 8px; }
  .footer-brand .micro { padding-left: 0; }
}

@media (max-width: 400px) {
  .code-banner { grid-template-columns: 1fr; }
  .code-banner .copy-btn, .code-banner .btn-lg { grid-column: 1; }
}
