:root {
  --navy: #0B1E38;
  --navy-deep: #06142A;
  --gold: #E8BF3E;
  --gold-press: #D4AB28;
  --cream: #FFF8E6;
  --cream-2: #F7ECD0;
  --white: #FFFFFF;
  --ink: #12233C;
  --muted: #5A6A80;
  --line: #E4D8B8;
  --save: #B42318;
  --save-bg: #FDECEC;
  --ok: #0F6B4C;
  --shadow: 0 8px 24px rgba(11, 30, 56, 0.10);
  --radius: 20px;
  --tap: 52px;
  --max: 430px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); font-weight: 700; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--cream);
  padding: calc(12px + var(--safe-top)) 16px 14px;
  box-shadow: 0 4px 16px rgba(6, 20, 42, 0.28);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.brand-tag {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.back {
  color: var(--gold);
  text-decoration: none;
  font-size: 1rem;
  margin-right: 8px;
  padding: 6px 0;
}

.search-wrap { display: block; }

#search {
  width: 100%;
  height: var(--tap);
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}
#search::placeholder { color: var(--muted); }
#search:focus { box-shadow: 0 0 0 3px var(--gold); }

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.preview-banner {
  background: #FFF3BF;
  color: #5C4D00;
  border: 2px dashed #E8BF3E;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.disclosure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.disclosure a { display: inline-block; margin-top: 4px; }

.top-pick {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.top-pick-label {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 0 12px 0;
}
.top-pick img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-2);
}
.top-pick-body { padding: 14px 16px 18px; }
.top-pick h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.top-pick .example-tag { margin-bottom: 10px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 14px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}
.chip[aria-selected="true"],
.chip.is-on {
  background: var(--navy);
  color: var(--cream);
}
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.feed-heading {
  margin: 4px 0 2px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.feed-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 30, 56, 0.06);
}
.card-img {
  position: relative;
  background: var(--cream-2);
}
.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.badge-save {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--save);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
}
.card-body { padding: 14px 16px 16px; }
.store {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.store-amazon { background: #FFE8CC; color: #7A3E00; }
.store-walmart { background: #D6ECFF; color: #034F8C; }
.store-temu { background: #F3D9FF; color: #6B1B8A; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.example-tag {
  display: inline-block;
  background: #FFF3BF;
  color: #5C4D00;
  border: 1px dashed #C9A227;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.price {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.was {
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: line-through;
}
.verified {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.btn-deal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 14px;
  border: 0;
  box-shadow: 0 3px 0 #B89620;
}
.btn-deal:active { background: var(--gold-press); transform: translateY(1px); }
.btn-deal:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.empty {
  text-align: center;
  padding: 32px 12px;
  color: var(--muted);
  font-weight: 700;
}

.footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 8px 16px calc(28px + var(--safe-bottom));
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.footer p { margin: 0 0 8px; }

.install-tip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}

.article h1 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.article h2 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}
.article .lede { font-size: 1.1rem; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.text-link {
  display: inline-block;
  margin-top: 16px;
  min-height: 44px;
  padding-top: 10px;
}

.noscript {
  width: min(100%, var(--max));
  margin: 16px auto;
  padding: 16px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.tm {
  font-size: 0.5em;
  font-weight: 800;
  font-style: normal;
  color: #E8BF3E;
  margin-left: 2px;
  vertical-align: super;
}

.top-pick .price { color: var(--gold); }
.top-pick .was { color: #C9D4E3; }
.top-pick .verified { color: #D7E0EA; }
.top-pick .store-amazon,
.top-pick .store-walmart,
.top-pick .store-temu { background: var(--cream); }
