/* HomePicksLab.com — core styles (mobile-first, no frameworks). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.08);

  /* “Amazon x Luxe”: Amazon-like link color + premium gold accent + warm CTA. */
  --link: #007185;
  --gold: #b88b00;
  --cta: #ffa41c;
  --cta-text: #111827;

  /* Dark “Amazon night blue” header/footer */
  --amazon-navy: #232f3e;
  --amazon-navy-border: rgba(255, 255, 255, 0.18);
  --amazon-navy-text: rgba(255, 255, 255, 0.94);
  --amazon-navy-muted: rgba(255, 255, 255, 0.76);

  --radius: 18px;
  --radius-sm: 14px;
  --radius-pill: 10px;
  --container: 1040px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.14em;
}

a:hover {
  text-decoration: underline;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.95em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 133, 0.45);
  outline-offset: 2px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: 18px;
}

.stack--tight {
  gap: 6px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.92rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--amazon-navy);
  border-bottom: 1px solid var(--amazon-navy-border);
  color: var(--amazon-navy-text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 156px;
  height: auto;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav__links a {
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--amazon-navy-text);
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-select label {
  font-size: 0.92rem;
  color: var(--amazon-navy-muted);
}

select {
  font: inherit;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.site-header select {
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--amazon-navy-text);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}

.site-header select:hover {
  background: rgba(255, 255, 255, 0.06);
}

.site-header select option {
  color: var(--text);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

.site-header .icon-btn {
  border-color: var(--amazon-navy-border);
  background: rgba(255, 255, 255, 0.10);
  color: var(--amazon-navy-text);
}

.site-header .icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: none;
  z-index: 1100;
}

.drawer[aria-hidden="false"] {
  display: block;
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer__nav {
  display: grid;
  gap: 6px;
}

.drawer__nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface);
}

.drawer__nav a:hover {
  background: rgba(255, 164, 28, 0.12);
  border-color: rgba(255, 164, 28, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(184, 139, 0, 0.10);
  border: 1px solid rgba(184, 139, 0, 0.22);
  color: #5a4500;
  font-size: 0.92rem;
  width: fit-content;
}

/* Main blocks */
main {
  padding: 18px 0 30px;
}

.hero {
  border: 1px solid var(--border);
  background:
    radial-gradient(1200px 400px at 12% 0%, rgba(255, 164, 28, 0.18), transparent 65%),
    radial-gradient(900px 380px at 95% 20%, rgba(0, 113, 133, 0.14), transparent 55%),
    linear-gradient(180deg, var(--surface), #ffffff);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero .badge {
  margin-inline: auto;
}

.hero .chip-row {
  justify-content: center;
}

.hero .search {
  max-width: 760px;
  margin-inline: auto;
}

.hero--media {
  display: grid;
  gap: 18px;
  align-items: center;
}

.hero__content {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hero__media {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
  box-shadow: var(--shadow-sm);
  overflow: clip;
}

.hero__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__media--square img {
  aspect-ratio: 1 / 1;
}

.hero__media--wide img {
  aspect-ratio: 16 / 9;
}

.hero__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  padding: 10px;
}

.hero__mosaic img {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
}

.hero__mosaic > img {
  aspect-ratio: 1 / 1;
}

.hero__mosaic-stack {
  display: grid;
  gap: 10px;
}

.hero__mosaic-stack img {
  aspect-ratio: 1 / 1;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

input[type="search"],
input[type="text"] {
  font: inherit;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.btn {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

.btn--primary {
  background: linear-gradient(180deg, #ffbf61, var(--cta));
  border-color: rgba(255, 164, 28, 0.45);
  color: var(--cta-text);
  box-shadow: 0 14px 28px rgba(255, 164, 28, 0.22);
}

.btn--primary:hover {
  filter: brightness(0.98);
}

.btn--ghost {
  background: transparent;
}

.btn--small {
  padding: 8px 10px;
  border-radius: 12px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card > .product__cta-row {
  margin-top: auto;
}

.card__media {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
  overflow: clip;
  margin-bottom: 12px;
}

.card__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card__media--wide img {
  aspect-ratio: 16 / 9;
}

.card__media--square img {
  aspect-ratio: 1 / 1;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
}

.pill--gold {
  border-color: rgba(184, 139, 0, 0.22);
  background: rgba(184, 139, 0, 0.10);
  color: #5a4500;
}

.filters {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.filters__row {
  display: grid;
  gap: 8px;
}

.filters__row legend {
  font-weight: 700;
  font-size: 0.98rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  background: var(--surface-2);
  cursor: pointer;
  user-select: none;
}

.chip input {
  width: 18px;
  height: 18px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs__sep {
  opacity: 0.6;
}

/* Product blocks */
.product-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 86px;
}

.product-section#p1 {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.product {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  background: #fff;
  overflow: clip;
}

.product__head {
  padding: 16px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(900px 260px at 15% 0%, rgba(255, 164, 28, 0.10), transparent 60%),
    radial-gradient(900px 260px at 90% 20%, rgba(0, 113, 133, 0.08), transparent 55%);
}

.product__intro {
  display: grid;
  gap: 14px;
  align-items: start;
}

@media (min-width: 840px) {
  .product__intro {
    grid-template-columns: 1fr 220px;
    gap: 18px;
  }
}

.product__thumb {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  overflow: clip;
  display: grid;
  place-items: center;
  padding: 8px;
  margin-inline: auto;
}

@media (min-width: 840px) {
  .product__thumb {
    margin-inline: 0;
    justify-self: end;
  }
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.micro-note {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Carousel (scroll-snap based; mobile swipe by default) */
.carousel {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  background: var(--surface);
  padding: 14px 14px 10px;
}

.carousel__controls {
  display: none;
}

.carousel__viewport {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  border-radius: 16px;
}

.carousel__viewport::-webkit-scrollbar {
  height: 10px;
}

.carousel__viewport::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

.carousel__slide {
  flex: 0 0 88%;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: clip;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 10px;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 0;
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  background: rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.carousel__dots button[aria-current="true"] {
  background: rgba(0, 113, 133, 0.90);
  border-color: rgba(0, 113, 133, 0.90);
}

/* Video embed */
.video {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background: #fff;
  overflow: clip;
}

.video__ratio {
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
  display: grid;
  place-items: center;
}

.video__placeholder {
  padding: 14px;
  text-align: center;
  color: #fff;
  max-width: 60ch;
}

.video__placeholder strong {
  display: block;
  margin-bottom: 6px;
}

.video__actions {
  margin-top: 10px;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 113, 133, 0.25);
  background: rgba(0, 113, 133, 0.08);
  color: #024d5c;
  font-size: 0.92rem;
}

.prose {
  font-size: 1.02rem;
  max-width: 74ch;
  margin-inline: auto;
}

/* Wider FAQ card on comparison pages */
section.stack#faq .card.prose {
  max-width: 92ch;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-top: 2px;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.faq-item > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "▾";
  opacity: 0.9;
  transition: transform 160ms ease;
  font-size: 0.95em;
  flex: 0 0 auto;
}

.faq-item[open] > summary::after {
  transform: rotate(180deg);
}

.faq-item > summary:hover {
  text-decoration: underline;
}

.faq-item__body {
  padding: 0 0 14px;
}

.faq-item__body > :first-child {
  margin-top: 0;
}

.faq-item__body > :last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h2 {
  margin-top: 26px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px;
  vertical-align: top;
}

.prose th {
  background: rgba(15, 23, 42, 0.04);
  text-align: left;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  max-width: 100%;
  margin-inline: auto;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 28px;
  }

  .toc li {
    break-inside: avoid;
  }
}

/* Collapsible blocks (comparison pages) */
.collapsible {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 100%;
  overflow: clip;
}

.collapsible > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collapsible > summary::-webkit-details-marker {
  display: none;
}

.collapsible > summary::after {
  content: "▾";
  opacity: 0.9;
  transition: transform 160ms ease;
}

.collapsible[open] > summary::after {
  transform: rotate(180deg);
}

.collapsible > summary:hover {
  background: rgba(15, 23, 42, 0.04);
}

.collapsible[open] > summary {
  border-bottom: 1px solid var(--border);
}

.collapsible__body {
  padding: 14px;
}

.collapsible .prose {
  max-width: 92ch;
}

.ad-placeholder {
  border: 2px dashed rgba(15, 23, 42, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  background: rgba(15, 23, 42, 0.03);
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--amazon-navy-border);
  background: var(--amazon-navy);
  padding: 24px 0 30px;
  color: var(--amazon-navy-text);
}

.site-footer .muted {
  color: var(--amazon-navy-muted);
}

.footer-grid {
  display: grid;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-links button {
  color: var(--amazon-navy-text);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 6px 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
}

.footer-links a:hover,
.footer-links button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cookie banner + modal */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.cookie-banner__inner {
  display: grid;
  gap: 10px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  background: rgba(15, 23, 42, 0.52);
  padding: 18px;
}

.modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.modal__panel {
  width: min(720px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: clip;
}

.modal__head {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 164, 28, 0.18), rgba(255, 255, 255, 0.0));
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.modal__body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.toggle {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: var(--surface);
}

.toggle__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (min-width: 760px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 30px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero--media {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: left;
  }

  .hero--media .badge {
    margin-inline: 0;
  }

  .hero--media .chip-row {
    justify-content: flex-start;
  }

  .hero--media .search {
    margin-inline: 0;
    max-width: 720px;
  }

  .hero__content {
    max-width: 60ch;
  }

  .carousel__slide {
    flex-basis: 54%;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .nav__links {
    display: flex;
  }

  .nav__burger {
    display: none;
  }

  .carousel__slide {
    flex-basis: 38%;
  }
}
