@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Permanent Marker';
  src: url('../fonts/PermanentMarker-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #f8a82d;
  --color-primary-dark: #e0941c;
  --color-secondary: #333333;
  --color-background: #ffffff;
  --color-surface: #f7f7f8;
  --color-text: #333333;
  --color-muted: #767676;
  --color-border: #e7e7e9;
  --color-success: #1e8e5a;
  --color-warning: #c0392b;
  --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --container-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main {
  flex: 1 0 auto;
}
body > footer.site-footer {
  flex-shrink: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top ticker ---------- */
.ticker {
  background: var(--color-primary);
  flex-shrink: 0;
}
.ticker__clip {
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  padding: 9px 0;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1c1c1c;
  white-space: nowrap;
}
.ticker__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1c1c1c;
  color: var(--color-primary);
  font-size: 9px;
  flex-shrink: 0;
}
.ticker__dot { color: rgba(28,28,28,0.45); font-weight: 700; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-secondary);
}
.brand__dot { color: var(--color-primary); }
.site-nav { display: flex; gap: 24px; font-weight: 500; font-size: 15px; color: var(--color-muted); }
.site-nav a:hover { color: var(--color-secondary); }

/* ---------- Hero / Search ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 320px at 12% -10%, rgba(248,168,45,0.20), transparent 70%),
    radial-gradient(520px 360px at 88% 0%, rgba(248,168,45,0.16), transparent 70%),
    radial-gradient(600px 300px at 50% 110%, rgba(248,168,45,0.10), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  background: #fff1dc;
  color: #a15c00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 70px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-accent {
  font-family: 'Permanent Marker', cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--color-primary);
}
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline__mark {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -6px;
  width: 104%;
  height: 0.22em;
  z-index: -1;
}
@media (max-width: 560px) {
  .hero-underline__mark { bottom: -3px; }
}
.hero p.subtitle {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 auto 36px;
  max-width: 620px;
}

.hero__eyebrow, .hero h1, .hero p.subtitle, .search-box, .popular-searches, .hero-stats {
  animation: hero-fade-up .6s ease both;
}
.hero h1 { animation-delay: .05s; }
.hero p.subtitle { animation-delay: .1s; }
.search-box { animation-delay: .15s; }
.popular-searches { animation-delay: .2s; }
.hero-stats { animation-delay: .25s; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero h1, .hero p.subtitle, .search-box, .popular-searches, .hero-stats { animation: none; }
}

.search-box {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 9px 9px 22px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.search-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(248,168,45,0.18), var(--shadow-md);
}
.search-box__field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.search-box__icon { flex-shrink: 0; color: var(--color-muted); }
.search-box input[type="text"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
}
.search-box input[type="text"]::placeholder { color: var(--color-muted); }
.search-box .btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 14px;
    gap: 12px;
  }
  .search-box__field { padding: 4px 2px; }
  .search-box .btn { width: 100%; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, transform .1s ease;
}
.btn-primary { background: var(--color-primary); color: #1c1c1c; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: #1e1e1e; }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-secondary); }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

.error-banner {
  max-width: 720px;
  margin: 0 auto 20px;
  background: #fdecea;
  border: 1px solid #f5c6c1;
  color: var(--color-warning);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
}

.popular-searches { margin-top: 24px; display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.popular-searches__label { font-size: 13px; color: var(--color-muted); font-weight: 600; margin-right: 2px; }
.chip {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-stats {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats__item { display: flex; flex-direction: column; gap: 2px; }
.hero-stats__item strong { font-size: 17px; font-weight: 700; color: var(--color-secondary); }
.hero-stats__item span { font-size: 12.5px; color: var(--color-muted); }
.hero-stats__divider { width: 1px; height: 30px; background: var(--color-border); }
@media (max-width: 560px) {
  .hero-stats { gap: 20px; }
  .hero-stats__divider { display: none; }
}

/* ---------- How it works ---------- */
.how-it-works { padding: 60px 0 80px; background: var(--color-surface); }
.section-title { text-align: center; font-size: 28px; font-weight: 700; color: var(--color-secondary); margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.step__number { font-size: 13px; font-weight: 700; color: var(--color-primary); margin-bottom: 10px; }
.step__title { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--color-secondary); }
.step__desc { font-size: 14px; color: var(--color-muted); margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 29px; }
}

/* ---------- Search results ---------- */
.results-header { padding: 32px 0 8px; }
.results-header__eyebrow { color: var(--color-primary); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.results-header h1 { font-size: 26px; margin: 0 0 6px; color: var(--color-secondary); }
.results-header__meta { color: var(--color-muted); font-size: 14px; }

.ai-panel {
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff8ec, #ffffff);
  padding: 24px;
}
.ai-panel__badge {
  display: inline-block;
  background: var(--color-primary);
  color: #1c1c1c;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.ai-panel__title { font-size: 20px; font-weight: 700; color: var(--color-secondary); margin: 0 0 4px; }
.ai-panel__price { font-size: 24px; font-weight: 700; color: var(--color-secondary); margin: 4px 0; }
.ai-panel__store { color: var(--color-muted); font-size: 14px; margin-bottom: 14px; }
.ai-panel__reason { font-size: 15px; color: var(--color-text); margin-bottom: 16px; line-height: 1.6; }
.ai-panel__actions { display: flex; gap: 12px; }
.ai-panel__disclaimer { font-size: 12px; color: var(--color-muted); margin: 14px 0 0; line-height: 1.5; }
.ai-panel__layout { display: flex; gap: 24px; align-items: flex-start; }
.ai-panel__image {
  width: 160px; height: 160px; object-fit: contain; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius); flex-shrink: 0; padding: 8px;
}
.ai-panel__body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .ai-panel__layout { flex-direction: column; }
  .ai-panel__image { width: 120px; height: 120px; }
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-price { background: #e8f6ee; color: var(--color-success); }
.badge-overall { background: #fff1dc; color: #a15c00; }
.badge-rated { background: #eaf1ff; color: #2255b3; }
.badge-delivery { background: #f1eaff; color: #6a2eb3; }
.badge-sponsored { background: #efefef; color: var(--color-muted); }

/* Comparison table (desktop) */
.comparison-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--color-border); border-radius: var(--radius); }
table.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
table.comparison-table th {
  text-align: left; background: var(--color-surface); color: var(--color-muted);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 12px 14px; border-bottom: 1px solid var(--color-border);
}
table.comparison-table td { padding: 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
table.comparison-table tr:last-child td { border-bottom: none; }
.store-cell strong { display: block; color: var(--color-secondary); }
.store-cell span { color: var(--color-muted); font-size: 12px; }
.price-cell strong { font-size: 16px; color: var(--color-secondary); }
.freshness { color: var(--color-muted); font-size: 12px; margin-top: 2px; }
.stock-in { color: var(--color-success); font-weight: 600; }
.stock-limited { color: #a15c00; font-weight: 600; }
.stock-out { color: var(--color-warning); font-weight: 600; }
.stock-unknown { color: var(--color-muted); }

/* Mobile offer cards */
.offer-cards { display: none; flex-direction: column; gap: 14px; margin: 20px 0; }
.offer-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; background: #fff; }
.offer-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.offer-card__store { font-weight: 600; color: var(--color-secondary); }
.offer-card__price { font-size: 20px; font-weight: 700; color: var(--color-secondary); margin: 6px 0; }
.offer-card__meta { font-size: 13px; color: var(--color-muted); margin-bottom: 4px; }

@media (max-width: 860px) {
  .comparison-table-wrap { display: none; }
  .offer-cards { display: flex; }
}

.source-note { font-size: 12px; color: var(--color-muted); margin-top: 24px; }

/* ---------- Loading / research progress ---------- */
.research-progress { max-width: 560px; margin: 60px auto; }
.research-progress h2 { text-align: center; font-size: 22px; color: var(--color-secondary); margin-bottom: 28px; }
.progress-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  color: var(--color-muted); font-size: 15px; border-bottom: 1px solid var(--color-border);
}
.progress-step:last-child { border-bottom: none; }
.progress-step__icon {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--color-border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.progress-step.done { color: var(--color-secondary); }
.progress-step.done .progress-step__icon { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.progress-step.active { color: var(--color-secondary); font-weight: 600; }
.progress-step.active .progress-step__icon { border-color: var(--color-primary); }

.empty-state { max-width: 520px; margin: 60px auto; text-align: center; }
.empty-state h2 { font-size: 22px; color: var(--color-secondary); }
.empty-state p { color: var(--color-muted); }

/* ---------- Product page ---------- */
.product-hero { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 36px 0; }
.product-hero img { border: 1px solid var(--color-border); border-radius: var(--radius); }
.product-hero h1 { font-size: 26px; color: var(--color-secondary); margin: 0 0 8px; }
.verdict { font-size: 14px; color: var(--color-success); font-weight: 600; margin-bottom: 16px; }
@media (max-width: 700px) { .product-hero { grid-template-columns: 1fr; } }

footer.site-footer { background: var(--color-secondary); padding: 28px 0; margin-top: 60px; color: #b8b8b8; font-size: 13px; }
.site-footer__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer__brand { flex-shrink: 0; display: flex; }
.site-footer p { margin: 0; }
@media (max-width: 640px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Homepage SEO content ---------- */
.seo-content { padding: 64px 0; }
.seo-content__inner { max-width: 820px; }
.seo-content h2 { font-size: 24px; color: var(--color-secondary); margin: 48px 0 16px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { font-size: 16px; color: var(--color-text); line-height: 1.75; margin: 0 0 16px; }
.seo-list { padding-left: 20px; margin: 0 0 16px; }
.seo-list li { font-size: 16px; color: var(--color-text); line-height: 1.7; margin-bottom: 10px; }

.seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 32px; }
.seo-grid__item { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px 18px; background: var(--color-surface); }
.seo-grid__item strong { display: block; color: var(--color-secondary); font-size: 15px; margin-bottom: 4px; }
.seo-grid__item span { color: var(--color-muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 620px) { .seo-grid { grid-template-columns: 1fr; } }

.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 16px; color: var(--color-secondary); margin: 0 0 6px; }
.faq-item p { margin: 0; font-size: 15px; }
