/* coupon-deals — bright consumer deal discovery (coral + mint) */
:root {
  --bg: #fff8f6;
  --surface: #ffffff;
  --text: #1a1a2e;
  --muted: #5c5c7a;
  --border: #ffd6cc;
  --primary: #ff6b6b;
  --primary-dark: #e04545;
  --accent: #3ddc97;
  --accent-dark: #2bb87a;
  --mint: #e8faf3;
  --coral-light: #ffe8e4;
  --max: 1040px;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(255, 107, 107, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-underline-offset: 2px; }
a:hover { color: var(--primary); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-main { padding-bottom: 3rem; }

.site-header { background: var(--surface); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; min-height: 3.75rem; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--primary); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.nav-toggle { display: none; border: 2px solid var(--border); background: var(--surface); border-radius: 10px; padding: 0.5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

.demo-banner { background: var(--coral-light); border-bottom: 1px solid var(--border); padding: 0.65rem 0; font-size: 0.88rem; color: var(--muted); }

.hero-deals { background: linear-gradient(135deg, var(--coral-light) 0%, var(--mint) 100%); padding: 2.5rem 0; }
.hero-deals-inner { display: grid; gap: 1.5rem; }
.hero-deals h1 { margin: 0.25rem 0 0.75rem; font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.15; font-weight: 800; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; max-width: 38rem; }
.deal-search { display: flex; gap: 0.5rem; margin-top: 1.25rem; max-width: 28rem; }
.deal-search input { flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 999px; font: inherit; background: var(--surface); }
.deal-search button { padding: 0.75rem 1.25rem; border: none; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }
.hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge { background: var(--accent); color: #0d3d2a; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge.outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

.section-block { padding: 2.5rem 0; }
.section-block.alt-band { background: var(--mint); }
.section-head h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.section-sub { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.95rem; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.deal-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.deal-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.deal-tag { display: inline-block; background: var(--coral-light); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 4px; margin-bottom: 0.5rem; }
.deal-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.deal-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.category-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { background: var(--surface); border: 2px solid var(--accent); color: var(--accent-dark); padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.15s; }
.pill:hover { background: var(--accent); color: #0d3d2a; }

.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-row li { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--border); counter-increment: step; }
.steps-row li strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.steps-row li strong::before { content: counter(step) ". "; color: var(--primary); }
.steps-row li span { color: var(--muted); font-size: 0.9rem; }

.page-hero { background: linear-gradient(135deg, var(--coral-light), var(--mint)); padding: 2.5rem 0; border-bottom: 2px solid var(--border); }
.page-hero h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.content-section { padding: 2rem 0; }

.prose h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.25rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin: 1rem 0 0.25rem; }
.contact-card h2:first-child { margin-top: 0; }
.muted-card { background: var(--mint); }
.text-link { font-weight: 600; }

.site-footer { background: var(--text); color: #ccc; margin-top: 2rem; }
.footer-inner { padding: 2rem 0; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-brand p { margin: 0.35rem 0 0; font-size: 0.88rem; color: #aaa; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1rem 0; }
.footer-links a { color: #bbb; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin: 0; font-size: 0.82rem; color: #888; }
.muted { color: var(--muted); }

.hero-copy { max-width: 36rem; }
.section-head { margin-bottom: 0.5rem; }
.text-link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { color: var(--primary); }
.footer-inner { padding: 2rem 0; }
.footer-brand strong { color: inherit; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.deal-search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2); }
.deal-card:focus-within { border-color: var(--primary); }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.contact-card p { margin: 0; color: var(--text); }
.prose a { color: var(--primary-dark); font-weight: 500; }
.prose strong { color: var(--text); }

@media (min-width: 721px) {
  .hero-deals-inner { grid-template-columns: 1fr auto; align-items: end; }
  .header-inner { flex-wrap: nowrap; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 0; }
  .deal-search { flex-direction: column; }
  .hero-deals { padding: 1.75rem 0; }
  .section-block { padding: 1.75rem 0; }
  .page-hero { padding: 1.75rem 0; }
  .deal-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { transition: none; }
}

/* Shared utilities & a11y enhancements */
.site-main { min-height: 50vh; }
.header-inner.wrap, .footer-inner.wrap { padding-left: 0; padding-right: 0; }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.demo-banner strong { font-weight: 700; }
.content-section .prose { max-width: 42rem; }
.page-hero .eyebrow + h1 { margin-top: 0.35rem; }
.contact-grid .contact-card h2 + p { line-height: 1.5; }

@media (prefers-contrast: more) {
  :root { --border: currentColor; }
  .site-header, .site-footer, .contact-card, .deal-card, .saas-card, .catalog-card, .stat-card, .panel, .mod, .link-row { border-width: 2px; }
}

@media print {
  .skip-link, .nav-toggle, .demo-banner, .site-nav { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
