/* BidSlam Promo Codes — editorial coupon resource
   Light bg, dark ink, premium green accents. System fonts only (fast, no CLS). */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --bg-sunk: #eef0f2;
  --ink: #10131a;
  --ink-2: #333a45;
  --ink-3: #5b6472;
  --muted: #7a828e;
  --line: #e5e8ec;
  --line-2: #d9dde2;

  --green: #0a7c46;
  --green-strong: #086637;
  --green-ink: #0a5e35;
  --green-50: #edf9f1;
  --green-100: #d6f1e0;
  --green-ring: rgba(10, 124, 70, 0.28);

  --amber-50: #fdf6e9;
  --amber-line: #f0e0bd;
  --amber-ink: #7a5a12;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.05);
  --shadow: 0 6px 24px -12px rgba(16, 19, 26, 0.18);
  --shadow-lg: 0 24px 60px -28px rgba(16, 19, 26, 0.30);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-decoration-color: var(--green-100); text-underline-offset: 2px; }
a:hover { color: var(--green-strong); text-decoration-color: var(--green); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 750; }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.45rem); font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: 0.3em 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #f4f6f8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green-ink); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }

.lede { font-size: clamp(1.06rem, 2vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green-ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-strong) 100%);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.brand-mark span { transform: translateY(-0.5px); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--green-ink); background: var(--green-50); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 0.97rem;
  padding: 12px 20px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1; text-align: center;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-strong); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.btn-ghost { background: transparent; color: var(--green-ink); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { color: var(--green-strong); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { max-width: 52ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 26px; color: var(--ink-3); font-size: 0.92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--green); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Coupon cards ---------- */
.coupon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 20px;
}
.coupon {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.coupon:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.coupon-top { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.coupon-status {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 6px; font-size: 0.78rem;
}
.badge-active {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  color: var(--green-ink); background: var(--green-50); border: 1px solid var(--green-100);
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.01em;
}
.badge-active .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.coupon-checked { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.coupon-offer { font-size: 2.05rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; margin: 2px 0 0; }
.coupon-offer small { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.coupon-desc { color: var(--ink-3); font-size: 0.92rem; margin: 6px 0 0; line-height: 1.5; }

.coupon-divider { position: relative; height: 22px; }
.coupon-divider::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 50%;
  border-top: 2px dashed var(--line-2);
}
.coupon-divider::after,
.coupon-divider .notch-r {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 50%; transform: translateY(-50%);
}
.coupon-divider::after { left: -11px; }
.coupon-divider .notch-r { right: -11px; }
/* On white sections the notch background should be white */
.on-white .coupon-divider::after,
.on-white .coupon-divider .notch-r { background: #fff; }

.coupon-bottom { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.code-row {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.code-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.06em; color: var(--ink); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  font-weight: 700; font-size: 0.82rem; color: var(--green-ink);
  background: #fff; border: 1px solid var(--green-100); border-radius: 8px;
  padding: 7px 11px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: var(--green-50); border-color: var(--green); }
.copy-btn.copied { background: var(--green); color: #fff; border-color: var(--green); }
.copy-btn svg { width: 14px; height: 14px; }
.coupon-actions { display: flex; gap: 10px; }
.coupon-actions .btn { flex: 1; padding: 11px 12px; font-size: 0.9rem; }

/* ---------- Generic cards / grids ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Steps / infographic ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-ink); font-weight: 800; font-size: 1.05rem;
  border: 1px solid var(--green-100); margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--ink-3); margin: 0; }

/* ---------- Strategy list ---------- */
.strategy { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.strategy:first-child { border-top: none; }
.strategy-num {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.strategy h3 { margin-bottom: 8px; }
.strategy p:last-child { margin-bottom: 0; }
.strategy.featured .strategy-num { background: var(--green); }

/* ---------- Callout / notice ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--amber-50); border: 1px solid var(--amber-line); border-radius: var(--radius);
  padding: 18px 20px; color: var(--amber-ink);
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--amber-ink); }
.notice strong { color: var(--amber-ink); }
.notice p { margin: 0; color: var(--amber-ink); font-size: 0.95rem; }

.callout-green {
  background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

/* ---------- Email capture ---------- */
.email-card {
  background: var(--ink); color: #f4f6f8; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.email-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(10,124,70,0.55), transparent 70%); pointer-events: none;
}
.email-card h2 { color: #fff; }
.email-card .lede { color: #c7ccd4; }
.email-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.email-form { position: relative; z-index: 1; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: #e6e9ee; }
.input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 15px;
}
.input::placeholder { color: var(--muted); }
.input:focus-visible { outline: 3px solid var(--green-ring); border-color: var(--green); }
.input[aria-invalid="true"] { border-color: #d64545; outline-color: rgba(214,69,69,0.3); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #b8bec7; line-height: 1.5; margin: 12px 0 16px; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--green); }
.consent a { color: #9be3b8; }
.form-msg { font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.error { color: #ff9d9d; }
.form-msg.success { color: #7fe3a6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) { .email-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 2px; position: relative;
  font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 24px; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-item summary:hover { color: var(--green-ink); }
.faq-answer { padding: 0 44px 22px 2px; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 16px 0 0; font-size: 0.86rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: 8px; margin: 0; }
.crumbs li::after { content: "/"; color: var(--line-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--green-ink); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Article / prose ---------- */
.page-head { padding: clamp(28px, 4vw, 44px) 0 0; }
.page-head h1 { margin-bottom: 14px; }
.updated { font-size: 0.86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.updated svg { width: 15px; height: 15px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--green); }
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 32px;
}
.toc h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { text-decoration: none; font-weight: 600; }

.related {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 20px;
}
.related a {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; color: var(--ink);
}
.related a:hover { border-color: var(--green-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.related .r-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--green-ink); font-weight: 700; }
.related .r-title { font-weight: 700; font-size: 1.05rem; margin: 6px 0 4px; letter-spacing: -0.01em; }
.related .r-desc { font-size: 0.88rem; color: var(--ink-3); margin: 0; }

/* ---------- Feature list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0; }
.check-list svg { width: 22px; height: 22px; color: var(--green); margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { max-width: 32ch; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-3); margin: 12px 0 0; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: var(--green-ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 0.83rem; color: var(--muted);
}
.footer-disclosure { max-width: 70ch; font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .coupon-actions { flex-direction: column; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -0.04em; color: var(--green); line-height: 1; margin: 0; }

/* utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 20px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
