/* Deal Hunter landing page. Mobile first; breakpoints at 640, 860 and 1024px. */

:root {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-deep: #312e81;
  --accent-soft: #eef2ff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, 0.35);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: 600 0.95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.6); }
.btn--secondary { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn--secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn__icon { transition: transform 0.15s ease; }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.1rem var(--font-head); letter-spacing: -0.02em; }
.brand--light { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: color 0.15s ease, background-color 0.15s ease; }
.nav__links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.pill { display: inline-block; padding: 6px 14px; margin-bottom: 22px; font-size: 0.82rem; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid #c7d2fe; border-radius: 999px; }

.hero h1 { font-size: clamp(2.4rem, 1.4rem + 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 16ch; }
.hero__lead { max-width: 60ch; margin-top: 22px; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

.hero__inner > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: 0.05s; }
.hero__inner > :nth-child(3) { animation-delay: 0.1s; }
.hero__inner > :nth-child(4) { animation-delay: 0.15s; }
.hero__inner > :nth-child(5) { animation-delay: 0.2s; }
.hero__inner > :nth-child(6) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Product preview */
.mock { width: 100%; max-width: 760px; margin-top: clamp(36px, 6vw, 64px); text-align: left; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f5f9; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock__bar b { margin-left: 10px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.mock__body { padding: clamp(16px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.mock__deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mock__title { font-weight: 600; font-size: 1.02rem; }
.mock__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.mock__stats > div { padding: 12px 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; }
.mock__stats dt { font-size: 0.75rem; color: var(--muted); }
.mock__stats dd { font: 700 1.35rem var(--font-head); letter-spacing: -0.02em; }
.mock__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mock figcaption { margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.text-ok { color: var(--ok); }
.badge { display: inline-block; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; border-radius: 999px; }
.badge--ok { color: var(--ok); background: var(--ok-soft); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p:not(.eyebrow) { margin-top: 14px; font-size: 1.1rem; color: var(--muted); }
.eyebrow { margin-bottom: 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7d2fe; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 16px; font: 700 0.95rem var(--font-head); color: var(--accent-deep); background: var(--accent-soft); border-radius: 10px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

/* Bento grid */
.bento { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7d2fe; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card__foot { margin-top: auto; padding-top: 8px; font-size: 0.8rem !important; }

.bars { display: grid; gap: 12px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 112px 1fr 44px; align-items: center; gap: 12px; font-size: 0.85rem; }
.bar__label { color: var(--muted); }
.bar__track { height: 10px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, var(--accent)); border-radius: 999px; transform-origin: left; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.bar__value { font-weight: 600; text-align: right; }
.w-85 { width: 85%; } .w-87 { width: 87%; } .w-88 { width: 88%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { padding: 6px 12px; font-size: 0.85rem; font-weight: 500; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid #c7d2fe; border-radius: 999px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 4px; font: 600 1.05rem var(--font-head); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 4px 22px; max-width: 68ch; color: var(--muted); }

/* Footer */
.footer { padding-top: clamp(48px, 6vw, 72px); color: #94a3b8; background: #0b1020; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; max-width: 340px; }
.footer__brand p { margin-top: 14px; }
.footer__heading { margin-bottom: 14px; font: 600 0.85rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.footer li + li { margin-top: 10px; }
.footer a:not(.brand) { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; }
.footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: #a5b4fc; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-block: 24px; border-top: 1px solid #1e293b; font-size: 0.85rem; }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .bar__fill { transform: scaleX(0); }
.js .is-visible .bar__fill { transform: scaleX(1); }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .mock__stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 2fr repeat(2, 1fr); }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 2; }
  .card--tall { grid-row: span 2; }
}

@media (max-width: 860px) {
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .bar { grid-template-columns: 92px 1fr 40px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bar__fill { transform: none; }
}
