/* ─────────────────────────────────────────────────────────────────
   Deal Detector — landing page
   Vanilla CSS · 1 file · ~ 8 KB
   ───────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --bg:     #fafbff;
  --surface:#ffffff;
  --text:   #0f172a;
  --text-2: #334155;
  --muted:  #64748b;
  --border: #e2e8f0;
  --grad:   linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 22px 50px rgba(99, 102, 241, .18);
  --radius: 14px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; text-align: center; }
h3 { font-size: 18px; font-weight: 700; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 14px auto 36px;
  font-size: 17px;
}

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.nav-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.nav-links a:hover { color: var(--indigo); }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); transition: .15s; }
@media (max-width: 700px) {
  .nav { padding: 12px 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s cubic-bezier(.22, 1, .36, 1);
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(99, 102, 241, .45); text-decoration: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); text-decoration: none; }
.btn.full { display: flex; width: 100%; }
.btn.big { padding: 16px 32px; font-size: 16px; }

/* "Add to Chrome" CTA — round Google logo + bold label */
.chrome-btn { gap: 12px; }
.chrome-btn svg { flex-shrink: 0; }

/* "Available on Chrome Web Store" trust badge in hero */
.cws-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.cws-badge:hover {
  border-color: var(--indigo);
  box-shadow: 0 6px 18px rgba(99, 102, 241, .15);
  transform: translateY(-1px);
  text-decoration: none;
}
.cws-badge b { color: var(--text); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}
.hero-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; }
.hero-sub { font-size: 19px; color: var(--text-2); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hero-trust span { white-space: nowrap; }

.hero-visual { position: relative; height: 420px; }
.card-mock {
  position: absolute;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  top: 30px;
  left: 0;
  transform: rotate(-3deg);
  transition: transform .3s;
}
.card-mock:hover { transform: rotate(-3deg) translateY(-4px); }
.card-mock--re {
  top: 130px;
  left: 90px;
  transform: rotate(3deg);
  z-index: 2;
}
.card-mock--re:hover { transform: rotate(3deg) translateY(-4px); }
.card-mock-img {
  height: 130px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.card-mock-body { padding: 14px 16px; }
.card-mock-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.card-mock-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.card-mock-price { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 20px; font-weight: 800; color: #10b981; }
.price-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card-mock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 40px; }
  .hero-visual { height: 380px; max-width: 420px; margin: 0 auto; }
}

/* ── FEATURES ────────────────────────────────────────────────── */
.features {
  max-width: 1180px;
  margin: 60px auto;
  padding: 0 32px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.feat {
  background: var(--surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* ── DEMO ────────────────────────────────────────────────────── */
.demo {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 32px;
}
.demo-frame {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 36px;
}
.demo-toolbar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; }
.demo-dot--r { background: #ef4444; }
.demo-dot--y { background: #f59e0b; }
.demo-dot--g { background: #10b981; }
.demo-url {
  margin-left: 14px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}
.demo-body { padding: 24px; background: var(--bg); }
.demo-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.demo-tab {
  padding: 11px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-tab--active { color: var(--indigo); border-bottom-color: var(--indigo); }
.demo-count {
  background: #e2e8f0;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.demo-tab--active .demo-count { background: var(--grad); color: #fff; }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: relative;
}
.demo-card-img {
  height: 90px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 10px;
}
.demo-card-discount {
  position: absolute;
  top: 22px;
  left: 22px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.demo-card-title { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.demo-card-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.demo-card-prices { font-size: 14px; font-weight: 700; color: #10b981; }
.demo-card-prices s { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.demo-card-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  background: rgba(99, 102, 241, .1);
  color: var(--indigo);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* ── PRICING ─────────────────────────────────────────────────── */
.pricing {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 32px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px 26px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card--featured {
  border-color: var(--indigo);
  background: linear-gradient(180deg, rgba(99, 102, 241, .04), transparent);
  transform: scale(1.03);
}
.price-card--featured:hover { transform: scale(1.03) translateY(-3px); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}
.price-badge--save  { background: linear-gradient(135deg, #10b981, #059669); }
.price-badge--life  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.price-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 4px; }
.price-num { font-size: 42px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.price-unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.price-feats { list-style: none; padding: 18px 0; margin: 0 0 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; }
.price-feats li { padding: 5px 0; font-size: 14px; color: var(--text-2); }
.price-feats li.muted { color: var(--muted); }

/* ── INSTALL ─────────────────────────────────────────────────── */
.install {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 32px;
  text-align: center;
}
.install-steps {
  text-align: left;
  margin: 30px auto 30px;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px 22px 50px;
  list-style-position: outside;
}
.install-steps li { margin-bottom: 6px; }
.install-steps code {
  background: rgba(99, 102, 241, .1);
  color: var(--indigo);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13.5px;
}
.install-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 32px;
}
.faq h2 { margin-bottom: 36px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  margin-left: 12px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  background: var(--surface);
  margin-top: 80px;
}
.footer-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); }
