:root {
  color-scheme: dark;
  --ink: #eeeeee;
  --muted: #a2a3a7;
  --line: #33363c;
  --soft: #1e2025;
  --soft-2: #2a2d33;
  --bg: #111215;
  --blue: #3e6ae1;
  --blue-hover: #5a80ea;
  --red: #e82127;
  --radius: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding: 12px 16px 0;
  background: rgba(17, 18, 21, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-bottom: 10px;
}

/* Tabs: own row on phones (scrolls sideways if it ever overflows), inline on desktop */
.tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  margin: 0 -4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 10px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
@media (min-width: 720px) {
  .site-header { flex-wrap: nowrap; padding: 0 24px; }
  .brand { padding: 16px 0; }
  .tabs { width: auto; margin: 0; }
  .tabs a { padding: 18px 12px 16px; }
}

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Landing hero */
.hero {
  text-align: center;
  padding: 48px 8px 28px;
}
.hero h1 {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.hero p {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--muted);
  font-size: 16px;
}

/* Two big landing buttons */
.choices {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 720px) {
  .choices { grid-template-columns: 1fr 1fr; }
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--soft);
  border-radius: 12px;
  padding: 28px 20px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.choice { box-shadow: inset 0 0 0 1px var(--line); }
.choice:hover { transform: translateY(-2px); background: var(--soft-2); }
.choice:active { transform: scale(0.99); }

.choice svg, .choice img { width: min(220px, 70%); height: auto; margin-bottom: 18px; }

.choice h2 { font-size: 24px; font-weight: 500; margin: 0 0 4px; }
.choice p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: var(--soft-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.choice .btn-primary { pointer-events: none; }

/* Home page */
.home-hero { text-align: center; padding: 44px 8px 28px; }
.home-hero h1 {
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.home-hero h1 span { color: var(--blue-hover); }
.home-hero p { margin: 0 auto; max-width: 36ch; color: var(--muted); font-size: 17px; }

.section-label, .section h2.section-label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.why svg { flex: none; width: 22px; height: 22px; color: var(--blue-hover); margin-top: 1px; }
.why strong { display: block; font-weight: 600; font-size: 15px; }
.why span { color: var(--muted); font-size: 14px; }

.minis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 14px 10px 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini:hover { background: var(--soft-2); }
.mini img { width: 56px; height: 56px; flex: none; }
.mini div { flex: 1; min-width: 0; }
.mini strong { display: block; font-weight: 600; font-size: 15px; }
.mini small { color: var(--muted); font-size: 13px; }
.mini .arrow { color: var(--muted); font-size: 18px; }

/* Responsive 16:9 video embed */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--soft); margin-bottom: 10px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Ranked list page */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rank-card {
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 18px 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rank-card.featured { box-shadow: inset 0 0 0 2px var(--blue); }
.rank-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.rank-num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rank-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--soft-2);
  color: var(--ink);
}
.pill-price { background: rgba(46, 157, 91, 0.18); color: #6fd39a; }
.pill-best { background: rgba(62, 106, 225, 0.22); color: #9db5f5; }
.rank-card dl { margin: 0 0 14px; display: grid; gap: 8px; }
.rank-card dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rank-card dd { margin: 0; font-size: 15px; }
.rank-card .btn { max-width: none; }
.rank-card .cta-note { margin-top: 8px; }

.calc { background: var(--soft); border-radius: 12px; padding: 18px; display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.calc input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
.calc input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.calc-result { border-top: 1px solid var(--line); padding-top: 14px; }
.calc-result strong { display: block; font-size: 28px; font-weight: 600; }
.calc-result span { color: var(--muted); font-size: 14px; }
.calc-error { color: #f08a8a; font-size: 14px; margin: 0; }

/* Phones: side-by-side art and text so both buttons fit on one screen */
@media (max-width: 719px) {
  .hero { padding: 32px 8px 20px; }
  .choice {
    display: grid;
    grid-template-columns: 104px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    align-items: center;
    text-align: left;
    padding: 16px;
  }
  .choice img { grid-row: 1 / 3; width: 104px; margin: 0; }
  .choice h2 { font-size: 21px; align-self: end; }
  .choice p { margin: 0; font-size: 14px; align-self: start; }
  .choice .btn { grid-column: 1 / -1; max-width: none; margin-top: 14px; min-height: 48px; font-size: 16px; }
}
.choice:hover .btn-primary { background: var(--blue-hover); }

/* Product page */
.back {
  display: inline-block;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }

.product-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 16px 0 32px;
}
@media (min-width: 720px) {
  .product-hero { grid-template-columns: 1fr 1fr; padding-top: 28px; }
}

.product-art {
  background: var(--soft);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  justify-content: center;
}
.product-art svg { width: min(280px, 80%); height: auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.product-hero h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 500; margin: 0 0 10px; line-height: 1.15; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 20px; }

.facts { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { text-align: right; font-weight: 500; }

.cta-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* Phones use the sticky buy bar instead */
.desktop-only { display: none; }
@media (min-width: 720px) { .desktop-only { display: block; } }

/* Color picker */
.swatches { display: flex; gap: 10px; margin: 0 0 6px; }
.swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.swatch[aria-pressed="true"] { outline-color: var(--blue); }
.swatch-label { font-size: 14px; margin: 0 0 18px; }
.swatch-label strong { font-weight: 500; }

/* Sections */
.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 22px; font-weight: 500; margin: 0 0 16px; }

.split { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }

.card { background: var(--soft); border-radius: 12px; padding: 18px 20px; }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card li + li { margin-top: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-good { background: #2e9d5b; }
.dot-warn { background: var(--red); }

.callout {
  border-left: 3px solid var(--blue);
  background: rgba(62, 106, 225, 0.14);
  padding: 14px 16px;
  font-size: 15px;
  margin: 0 0 16px;
}
.callout strong { font-weight: 600; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.size {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.size:hover { background: var(--soft); }
.size[aria-pressed="true"] { background: rgba(62, 106, 225, 0.18); box-shadow: inset 0 0 0 2px var(--blue); }

/* Guide steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px; top: 36px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.steps h3 { font-size: 16px; font-weight: 600; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps p + p, .steps ul + p { margin-top: 8px; }
.steps ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.steps ul li { padding: 0; counter-increment: none; }
.steps ul li::before, .steps ul li::after { content: none; }
.steps ul li + li { margin-top: 6px; }
.steps ul strong { color: var(--ink); font-weight: 600; }

.tip { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  background: var(--soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.next small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.next span { font-size: 18px; font-weight: 500; }
.next:hover { background: var(--soft-2); }
.steps a, .callout a { color: #8aa8f5; }

/* Sticky buy bar on phones */
.buy-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(17, 18, 21, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.buy-bar .btn { max-width: 480px; }
@media (min-width: 720px) { .buy-bar { display: none; } }

/* Footer */
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0 0 4px; }
