/* Nightwatch — night-sky theme, mobile-first. Dark is default; light via [data-theme="light"]. */
:root {
  --bg: #05070f;
  --bg2: #0a0e1c;
  --card: #0d1326;
  --line: #1c2540;
  --text: #e8ecf7;
  --muted: #9aa4c4;
  --accent: #7cc4ff;
  --gold: #ffd479;
  --glow: #0b1230;
  --header-bg: rgba(5,7,15,.85);
  --btn-bg: #ffd479;
  --btn-text: #1a1405;
  --ok: #6fdc8c;
}
:root[data-theme="light"] {
  --bg: #fbfbfe;
  --bg2: #f1f4f9;
  --card: #ffffff;
  --line: #d9dfe9;
  --text: #14171c;
  --muted: #52525b;
  --accent: #0a58c4;
  --gold: #8a5a00;
  --glow: #dbe7ff;
  --header-bg: rgba(251,251,254,.88);
  --btn-bg: #047857;
  --btn-text: #ffffff;
  --ok: #047857;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, var(--glow) 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
a { color: var(--accent); }

/* header */
header { border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .5rem 1.1rem; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.02rem; color: var(--text); text-decoration: none; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .5rem; }
.logo img { width: 28px; height: 28px; border-radius: 7px; display: block; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav a:hover { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: 1rem 0 1.4rem; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.muted { color: var(--muted); }

/* compare */
.compare-selects { display: grid; gap: .7rem; margin: 1.2rem 0; }
@media (min-width: 720px) { .compare-selects { grid-template-columns: repeat(3, 1fr); } }
.compare-selects label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.compare-selects select { width: 100%; padding: .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: .95rem; }
.compare-wrap { overflow-x: auto; margin: 1.2rem 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 620px; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; font-size: .9rem; }
table.compare thead th { background: var(--card); }
table.compare th.rowlabel { color: var(--muted); font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--bg); z-index: 1; }
table.compare td ul { margin: .15rem 0; }
.diff-toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--muted); cursor: pointer; }
.diff-toggle input { accent-color: var(--accent); }

/* compare tray */
.cardwrap { position: relative; }
.cmp-add { position: absolute; top: .5rem; right: .5rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: .22rem .5rem; cursor: pointer; }
.cmp-add input { accent-color: var(--accent); margin: 0; }
.cmp-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; display: none; align-items: center; gap: .7rem; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: .9rem; }
.cmp-tray.show { display: inline-flex; }
.cmp-clear { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: .15rem .5rem; }
.cmp-clear:hover { color: var(--text); border-color: var(--accent); }

/* finder */
.finder-filters { display: grid; gap: .9rem; margin: 1.4rem 0 .6rem; }
@media (min-width: 720px) { .finder-filters { grid-template-columns: repeat(4, 1fr); align-items: end; } }
.finder-filters label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.finder-filters select { width: 100%; padding: .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: .95rem; }
.finder-filters input[type="range"] { width: 100%; accent-color: var(--accent); }
.finder-filters label.check { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--text); cursor: pointer; margin: 0; }
.finder-filters label.check input { accent-color: var(--accent); }
h3.spech { font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin: 1.6rem 0 .5rem; }

/* hero */
.hero { padding: 3.2rem 0 2rem; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 .6rem; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .8rem; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 44rem; }
h2 { font-size: 1.3rem; margin: 2.4rem 0 1rem; }

/* cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } h1 { font-size: 2.6rem; } }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.2rem; text-decoration: none; color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: .3rem 0 .4rem; font-size: 1.1rem; }
.tagline { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.tagline.big { font-size: 1.15rem; }
.price { color: var(--gold); font-weight: 700; margin: .4rem 0; }
.price.big { font-size: 1.3rem; }
.cta { color: var(--accent); font-size: .9rem; font-weight: 600; }

/* product page */
.crumb { color: var(--muted); font-size: .85rem; margin: 1.6rem 0 .4rem; }
.crumb a { color: var(--muted); }
.buybox { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin: 1.6rem 0; }
.buybox h2 { margin-top: 0; }
.buyrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.buyrow:first-of-type { border-top: none; }
.buyrow p { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-text); font-weight: 700;
  padding: .6rem 1.1rem; border-radius: 10px; text-decoration: none; white-space: nowrap; border: none; cursor: pointer; font-size: 1rem;
}
.btn.disabled { background: var(--line); color: var(--muted); cursor: default; }
.cols { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; } }
ul.pros, ul.cons { padding-left: 1.2rem; }
ul.pros li::marker { content: "✓ "; color: var(--ok); }
ul.cons li::marker { content: "– "; color: var(--gold); }
table.specs { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
table.specs th, table.specs td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.specs th { color: var(--muted); font-weight: 600; width: 38%; }

/* how / footer */
.how p { color: var(--muted); max-width: 44rem; }
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 2.5rem; }
footer .brand { font-weight: 700; }
footer .brand span { color: var(--muted); font-weight: 400; }
.disc { color: var(--muted); font-size: .85rem; max-width: 52rem; }
.fine { color: var(--muted); font-size: .85rem; }
.fine a { color: var(--muted); }

/* tonight's sky (daily auto-update) */
.tonight { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin: 1.6rem 0; }
.tonight h2 { margin: 0 0 .6rem; }
.tonight .date { color: var(--muted); font-size: .9rem; font-weight: 400; }
.tonight .moon { font-size: 1.1rem; margin: .4rem 0; }
.tonight .tip { color: var(--muted); margin: .4rem 0 0; }

.newsletter { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; margin: 2rem 0 0; }
.newsletter h2 { margin-top: 0; }
.nl-form { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.nl-form input[type="email"] { flex: 1 1 220px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; color: var(--text); font-size: 1rem; }
.nl-soon { color: var(--muted); font-size: .9rem; }
.nl-compact { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1rem; }
.rank { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin: 1.2rem 0; }
.rank .kicker { margin-bottom: .2rem; }
.rank h3 { margin: .2rem 0 .5rem; }
.rank h3 a { color: var(--text); text-decoration: none; }
.rank .price { font-size: .9rem; }
.verdict { font-size: 1.02rem; margin: .4rem 0; }
.rank .cons { color: var(--muted); font-size: .9rem; }

/* theme toggle — icon-only, Lucide style */
.theme-toggle { background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; padding: .42rem; display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
nav { align-items: center; }
