:root {
  --green: #0E6B4F;
  --green-dark: #0A5540;
  --green-light: #E7F3EF;
  --amber: #E8A13A;
  --amber-dark: #C9861F;
  --slate: #1F2933;
  --slate-soft: #52606D;
  --border: #E4E8EA;
  --bg: #FAFBFA;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.06), 0 4px 16px rgba(31, 41, 51, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.num, .price, .price-big {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--slate);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--green);
}

.header-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
}

.header-nav a {
  text-decoration: none;
  color: var(--slate-soft);
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--green);
}

/* ---------- Layout ---------- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.page-wide {
  max-width: 1040px;
}

/* ---------- Hero / search ---------- */
.hero {
  text-align: center;
  padding: 72px 16px 40px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hero p.tagline {
  color: var(--slate-soft);
  font-size: 1.05rem;
  margin: 0 0 36px;
}

.search-form {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--slate);
  background: transparent;
}

.search-form button {
  border: none;
  background: var(--green);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 28px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.search-form button:hover {
  background: var(--green-dark);
}

/* ---------- Omnibox-parity suggest dropdown ---------- */
.suggest-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.suggest-wrap .search-form {
  max-width: none;
}

.suggest-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.14);
  overflow: hidden;
  text-align: left;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--slate);
}

.suggest-item img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}

.suggest-item .s-glass {
  width: 22px;
  text-align: center;
  color: var(--slate-soft);
  flex-shrink: 0;
}

.suggest-item .s-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-item .s-ann {
  display: block;
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 400;
}

.suggest-item .s-web {
  font-size: 0.72rem;
  color: var(--slate-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.suggest-item:hover,
.suggest-item.active {
  background: var(--green-light);
}

.suggest-item.brand {
  background: rgba(14, 107, 79, 0.05);
}

.suggest-item.brand:hover,
.suggest-item.brand.active {
  background: var(--green-light);
}

.suggest-item.brand .s-main {
  font-weight: 600;
}

.suggest-foot {
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--slate-soft);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.suggest-foot a {
  color: var(--green-dark);
}

/* ---------- Omnibox demo (welcome + extension pages) ---------- */
.ob-demo {
  max-width: 560px;
  margin: 32px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  font-size: 0.92rem;
}

.ob-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--slate);
}

.ob-bar .ob-caret {
  width: 1.5px;
  height: 18px;
  background: var(--green);
  animation: ob-blink 1.1s step-end infinite;
}

@keyframes ob-blink { 50% { opacity: 0; } }

.ob-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--slate);
}

.ob-row .ob-glass {
  width: 22px;
  text-align: center;
  color: var(--slate-soft);
}

.ob-row img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.ob-row.ob-brand {
  background: var(--green-light);
}

.ob-row .ob-name {
  font-weight: 600;
}

.ob-row .ob-ann {
  font-size: 0.78rem;
  color: var(--green-dark);
}

.ob-row .ob-dim {
  color: var(--slate-soft);
}

/* ---------- Extension promo + page ---------- */
.ext-promo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 0;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.ext-promo img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}

.ext-promo-body {
  flex: 1;
  min-width: 0;
}

.ext-promo-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.ext-promo-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-soft);
}

.ext-promo .btn {
  flex-shrink: 0;
}

.ext-hero {
  text-align: center;
  padding: 64px 16px 8px;
}

.ext-hero img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0 auto 20px;
}

.ext-hero h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ext-hero p.lead {
  color: var(--slate-soft);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto;
}

.ext-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.ext-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.ext-feature .emoji {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}

.ext-feature h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.ext-feature p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--slate-soft);
}

.ext-install {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 24px;
}

.ext-install h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.ext-install ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
}

.ext-install li {
  margin-bottom: 9px;
}

.ext-install code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.85em;
}

.ext-store-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--slate-soft);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 40px;
}

@media (max-width: 620px) {
  .ext-promo {
    flex-wrap: wrap;
  }
}

/* ---------- Chips ---------- */
.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
  margin: 48px 0 18px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-light);
}

/* ---------- Watching strip ---------- */
.watch-strip {
  margin: 56px 0 0;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.watch-strip h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.watch-strip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-strip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
}

.watch-strip-item:hover {
  background: var(--green-light);
}

.watch-strip-item .num {
  color: var(--slate-soft);
}

/* ---------- Compare page ---------- */
.compare-header {
  padding: 40px 0 8px;
}

.compare-header .back-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--slate-soft);
  text-decoration: none;
  margin-bottom: 14px;
}

.compare-header .back-link:hover {
  color: var(--green);
}

.compare-header h1 {
  font-size: 1.7rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--green-light);
  border-radius: var(--radius);
  color: var(--green-dark);
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.summary-bar strong {
  font-weight: 700;
}

.summary-bar .save-badge {
  margin-left: auto;
  background: var(--amber);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.debug-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  margin-left: 10px;
}

.bing-links {
  display: flex;
  gap: 18px;
  margin: 18px 0 28px;
  font-size: 0.88rem;
}

.bing-links a {
  color: var(--slate-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}

.bing-links a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.offer-card:hover {
  box-shadow: var(--shadow);
  border-color: #D3DBD8;
}

.offer-card.best {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.offer-store {
  width: 96px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate);
}

.offer-best-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.offer-main {
  flex: 1;
  min-width: 0;
}

.offer-title {
  font-size: 0.94rem;
  font-weight: 500;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-meta {
  font-size: 0.82rem;
  color: var(--slate-soft);
  display: flex;
  gap: 10px;
}

.offer-price-block {
  text-align: right;
  flex-shrink: 0;
  width: 110px;
}

.price-big {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate);
}

.offer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 128px;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate);
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-watch {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.btn-watch:hover {
  background: var(--amber-dark);
}

.btn-watch.watched {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: var(--green);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-soft);
}

/* ---------- Watchlist page ---------- */
.watchlist-header {
  padding: 40px 0 20px;
}

.watchlist-header h1 {
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.watchlist-header p {
  color: var(--slate-soft);
  margin: 0;
}

.drop-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.drop-banner .tag {
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}

.drop-banner .old-price {
  text-decoration: line-through;
  color: var(--slate-soft);
}

.drop-banner .new-price {
  font-weight: 700;
  color: var(--green-dark);
}

.watch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.watch-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.watch-card-main {
  flex: 1;
  min-width: 0;
}

.watch-card-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 4px;
  text-transform: capitalize;
}

.watch-card-meta {
  font-size: 0.82rem;
  color: var(--slate-soft);
}

.watch-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-remove {
  background: var(--white);
  color: #B3261E;
  border-color: var(--border);
}

.btn-remove:hover {
  border-color: #B3261E;
  background: #FBEAEA;
}

/* ---------- Welcome page ---------- */
.welcome-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.welcome-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.welcome-wrap h1 {
  font-size: 1.9rem;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.welcome-wrap p.lead {
  color: var(--slate-soft);
  font-size: 1.05rem;
  margin: 0 0 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 40px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-body h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.step-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-soft);
}

.welcome-note {
  font-size: 0.85rem;
  color: var(--slate-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 28px 16px;
  color: var(--slate-soft);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

@media (max-width: 560px) {
  .offer-card {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  /* store + price on the first row, full-width title below, actions last */
  .offer-store {
    width: auto;
    order: 1;
  }
  .offer-price-block {
    width: auto;
    order: 2;
    margin-left: auto;
  }
  .offer-main {
    order: 3;
    flex: 1 1 100%;
  }
  .offer-title {
    white-space: normal;
  }
  .offer-actions {
    width: 100%;
    flex-direction: row;
    order: 4;
  }
  .summary-bar .save-badge {
    margin-left: 0;
  }
  .hero h1 { font-size: 1.9rem; }
  .search-form button { padding: 0 16px; font-size: 0.9rem; }
  /* 3 nav links no longer fit beside the brand at 375 — let the header wrap */
  .site-header { padding: 14px 16px; flex-wrap: wrap; gap: 6px 12px; }
  .header-nav { gap: 14px; font-size: 0.85rem; flex-wrap: wrap; }
  .bing-links { flex-wrap: wrap; gap: 8px 18px; }
  .bing-links a { white-space: nowrap; }
}

.btn-retry {
  display: inline-block;
  margin-left: 10px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-retry:hover { background: var(--green-dark); }

/* ---------- split dropdown: section labels + content thumbs ---------- */
.suggest-sec {
  padding: 9px 16px 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--slate-soft);
  border-top: 1px solid var(--border);
}

.suggest-item .s-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: #fff; flex-shrink: 0; }

/* ---------- web chips (in-app Bing searches) ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.web-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-soft);
  transition: border-color .15s, color .15s, transform .1s;
}

.web-chip::before { content: '⌕'; color: var(--green); font-weight: 700; }
.web-chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }

.explore-web {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 18px 0;
}

.explore-web h3 { margin: 0 0 4px; font-size: 1.05rem; }
.explore-web .explore-sub { margin: 0 0 14px; font-size: 0.85rem; color: var(--slate-soft); }

/* ---------- /web — in-app web results ---------- */
.web-page { max-width: 760px; }

.web-searchbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 18px;
}

.web-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-soft);
  margin-bottom: 16px;
}

.web-meta a { color: var(--green); font-weight: 600; }

.web-result { padding: 16px 0; border-bottom: 1px solid var(--border); }

.web-result.sponsored {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.wr-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 8px;
}

.wr-demo {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--slate-soft);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}

.wr-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--slate-soft);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-fav { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.wr-fav-dot { display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }

.wr-title {
  display: block;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--green);
  margin-bottom: 4px;
}

.wr-title:hover { text-decoration: underline; }

.wr-snippet { margin: 0; font-size: 0.9rem; color: var(--slate-soft); }

.related-title { margin: 28px 0 12px; font-size: 1.05rem; }
