:root {
  --bg: #fafafa;
  --text: #111827;
  --ink: #0a0a0a;
  --btn: #171717;
  --muted: #525252;
  --border: #e5e7eb;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-900: #78350f;
  --ok: #047857;
  --err: #b91c1c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: #facc15; color: #000; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem;
  background: #fff; color: #000; border-radius: .5rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }

.container { max-width: 64rem; margin-inline: auto; padding-inline: 1.5rem; }

/* Buttons / links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-weight: 600; text-decoration: none;
  background: var(--btn); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: #000; }
.btn--lg { padding: .875rem 2rem; font-size: .875rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f5f5f5; }
.btn--lg:hover { transform: scale(1.02); }
.btn--lg:active { transform: scale(.98); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding-block: .5rem;
}
.brand {
  font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: #000; text-decoration: none; transition: opacity .2s;
}
.brand:hover { opacity: .8; }

/* Hero */
.hero { padding-top: 4rem; padding-bottom: 3rem; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem;
  margin-bottom: 1.5rem; border-radius: 9999px; background: var(--amber-50);
  border: 1px solid rgba(253,230,138,.7); color: var(--amber-900);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.pill__dot { width: .375rem; height: .375rem; border-radius: 50%; background: var(--amber-500); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero__title {
  font-size: 1.875rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.25;
  color: #0a0a0a; margin-bottom: 1.25rem;
}
.hero__lead { max-width: 36rem; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.625; color: var(--muted); }

/* Coupons */
.coupons { padding-block: 2.5rem; scroll-margin-top: 6rem; }
.coupon-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
.card {
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 1.5rem;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,.06); transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 8px 30px -4px rgba(0,0,0,.09); }
.card__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
.card__media {
  width: 100%; height: 280px; margin-bottom: 1.5rem; padding: .75rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,251,235,.4); border: 1px solid #f5f5f5; border-radius: 1rem;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.badge {
  display: inline-block; margin-bottom: .5rem; padding: .125rem .625rem; border-radius: .375rem;
  background: rgba(254,243,199,.7); color: var(--amber-900);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.375; color: #0a0a0a; margin-bottom: .25rem; }
.card__text { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: 1.5rem; }

.code-box {
  width: 100%; max-width: 24rem; margin: 0 auto .5rem; padding: .625rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: rgba(255,251,235,.7); border: 2px dashed var(--amber-300); border-radius: .75rem;
}
.code-box__meta { display: flex; flex-direction: column; text-align: left; padding-left: .25rem; }
.code-box__label { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--amber-900); }
.code-box__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem; font-weight: 900; letter-spacing: .1em; color: #0a0a0a; user-select: all;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 2.5rem; min-width: 5.5rem;
  justify-content: center; padding: .5rem .875rem; border: 0; border-radius: .5rem;
  background: var(--btn); color: #fff; font: 600 .75rem/1 var(--font); letter-spacing: .025em;
  cursor: pointer; transition: background-color .2s, transform .1s;
}
.copy-btn:hover { background: #000; }
.copy-btn:active { transform: scale(.95); }
.copy-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn .icon-done { display: none; }
.copy-btn[data-state="copied"] { background: var(--ok); }
.copy-btn[data-state="error"] { background: var(--err); }
.copy-btn[data-state="copied"] .icon-copy,
.copy-btn[data-state="error"] .icon-copy { display: none; }
.copy-btn[data-state="copied"] .icon-done { display: block; }

.copy-btn--header { flex-direction: column; gap: .2rem; min-width: 0; padding: .4rem .6rem; font-size: .7rem; line-height: 1.1; }
.copy-btn--header svg { display: none !important; }
.copy-btn__code {
  padding: .15rem .5rem; border: 2px dashed var(--amber-300); border-radius: .5rem;
  background: var(--amber-50); color: #0a0a0a; line-height: 1.2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem; font-weight: 900; letter-spacing: .1em;
}
.copy-feedback { min-height: 1.25rem; margin-top: .375rem; font-size: .75rem; font-weight: 500; text-align: center; }
.copy-feedback[data-type="success"] { color: var(--ok); }
.copy-feedback[data-type="error"] { color: var(--err); }

.store-link {
  display: inline-flex; align-items: center; gap: .25rem; margin-top: .25rem;
  font-size: .75rem; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-decoration-color: #d4d4d4; text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.store-link:hover { color: #000; text-decoration-color: #000; }
.store-link svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta-wrap { padding-block: 3rem; }
.cta {
  padding: 2rem; text-align: center; color: #fff; background: #0a0a0a;
  border: 1px solid #262626; border-radius: 1.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.cta__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: .75rem; }
.cta__text { max-width: 28rem; margin: 0 auto 2rem; font-size: .875rem; line-height: 1.625; color: #d4d4d4; }

/* Footer */
.site-footer { margin-top: auto; padding-block: 2rem; background: #fff; border-top: 1px solid var(--border); font-size: .75rem; color: #525252; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer__name { font-weight: 500; color: #404040; }
.site-footer a { font-weight: 600; text-underline-offset: 4px; }
.site-footer a:hover { color: #000; text-decoration: underline; }

main { flex: 1 0 auto; }

@media (min-width: 480px) {
  .brand { font-size: 1.125rem; }
  .copy-btn--header { flex-direction: row; gap: .5rem; padding: .5rem .75rem; font-size: .75rem; }
  .copy-btn--header svg { display: block !important; }
  .copy-btn--header .icon-done { display: none !important; }
  .copy-btn--header[data-state="copied"] .icon-done { display: block !important; }
  .copy-btn--header[data-state="copied"] .icon-copy,
  .copy-btn--header[data-state="error"] .icon-copy { display: none !important; }
}
@media (min-width: 640px) {
  .hero__title { font-size: 2.25rem; }
  .hero__lead { font-size: 1.125rem; }
  .card__body { padding: 2rem; }
  .card__media { height: 300px; }
  .card__title { font-size: 1.375rem; }
  .cta { padding: 3rem; }
  .cta__title { font-size: 2rem; }
  .cta__text { font-size: 1rem; }
  .site-footer__inner { flex-direction: row; }
}
@media (min-width: 768px) {
  .brand { font-size: 1.25rem; }
  .hero__title { font-size: 2.75rem; line-height: 1.15; }
  .coupon-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 3.5rem; }
}
@media (min-width: 1024px) {
  .coupon-grid { gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
