@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap');
:root {
  --bg: #f8fafc; --surface: #ffffff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --brand: #4f46e5; --brand-2: #06b6d4; --brand-soft: #eef2ff; --good: #059669; --bad: #dc2626;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --surface: #121a2e; --text: #e5e7eb; --muted: #94a3b8; --line: #23304d;
    --brand: #818cf8; --brand-2: #22d3ee; --brand-soft: #1e2547; --good: #34d399; --bad: #f87171;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #121a2e; --text: #e5e7eb; --muted: #94a3b8; --line: #23304d;
  --brand: #818cf8; --brand-2: #22d3ee; --brand-soft: #1e2547; --good: #34d399; --bad: #f87171;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .2em 0 .4em; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.1rem; margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .8rem; }
.main-nav { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: .95rem; }
.main-nav > a { color: var(--text); }
.dropdown { position: relative; }
.dropdown summary { cursor: pointer; list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " ▾"; color: var(--muted); }
.dropdown-menu { position: absolute; right: 0; top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(480px, 92vw); }
.dropdown-menu a { color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.dropdown-menu a:hover { background: var(--brand-soft); text-decoration: none; }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 400px at 50% -10%, var(--brand-soft), transparent); text-align: center; }
.hero .lead { margin: 0 auto 28px; }
.search-box input { width: min(640px, 100%); padding: 16px 20px; font-size: 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); outline: none; }
.search-box input:focus { border-color: var(--brand); }

.section { padding: 24px 16px 8px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.cat-icon { font-size: 1.5rem; }
.cat-tile small { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.comp-card:hover { border-color: var(--brand); text-decoration: none; }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-top h3 a { color: var(--text); }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.price { color: var(--good); font-weight: 600; }
.link { font-weight: 600; }
.chip { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; width: fit-content; }
.mono { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; font-weight: 800; font-size: 1.2rem; }
.mono.sm { width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; }
.mono.lg { width: 64px; height: 64px; font-size: 1.7rem; border-radius: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem; }
.filter.active, .filter:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.empty { color: var(--muted); text-align: center; padding: 30px; }

/* buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2))); color: #fff; font-weight: 700; font-size: .92rem; white-space: nowrap; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }

/* article */
.article { max-width: 880px; padding-top: 24px; padding-bottom: 40px; }
.disclosure-bar { font-size: .82rem; color: var(--muted); padding-top: 14px; max-width: 880px; }
.winner { display: flex; align-items: center; gap: 18px; padding: 22px; margin: 26px 0; border-radius: var(--radius); border: 2px solid var(--brand); background: var(--brand-soft); flex-wrap: wrap; }
.winner h2 { margin: 2px 0; }
.winner p { margin: 0; }
.winner > div:nth-child(2) { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rank { font-weight: 800; color: var(--brand); }
.tname { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.badge { font-size: .8rem; font-weight: 600; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 22px 0; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.review-top { border: 2px solid var(--brand); }
.review-head { display: flex; gap: 16px; align-items: center; }
.review-head h2, .review-head h1 { margin: 0; }
.review-rank { margin: 0; font-weight: 700; color: var(--brand); font-size: .85rem; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.pros, .cons { border-radius: 12px; padding: 14px 18px; background: var(--bg); }
.pros h3 { color: var(--good); } .cons h3 { color: var(--bad); }
.pros ul, .cons ul { margin: 8px 0 0; padding-left: 18px; }
.review-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.facts small { color: var(--muted); }
.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.how { margin-top: 30px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 30px 0; background: var(--surface); }
.disclosure-small { font-size: .82rem; color: var(--muted); max-width: 900px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0; font-size: .9rem; }
.copy { color: var(--muted); font-size: .85rem; }

@media (max-width: 640px) {
  .pc, .facts { grid-template-columns: 1fr; }
  .main-nav { gap: 12px; font-size: .88rem; }
  .main-nav > a[href$="about.html"] { display: none; }
  .hero { padding: 40px 0 24px; }
  .winner-cta, .winner-cta .btn { width: 100%; text-align: center; }
  .dropdown-menu { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; grid-template-columns: 1fr; }
}

/* Theme C: Warm Editorial (magazine style) */
:root, :root:not([data-theme="light"]) {
  --bg: #faf6ef; --surface: #fffdf9; --text: #1c1917; --muted: #6b6259; --line: #e7dfd3;
  --brand: #ea580c; --brand-2: #f59e0b; --brand-soft: #fff1e6; --good: #15803d; --bad: #b91c1c;
  --radius: 6px; --shadow: none;
}
h1, h2, .logo { font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.01em; }
h1 { font-weight: 800; }
.grad { background: none; color: var(--brand); -webkit-text-fill-color: var(--brand); font-style: italic; }
.hero { background: none; text-align: left; border-bottom: 2px solid var(--text); padding-bottom: 36px; }
.hero .lead { margin-left: 0; }
.search-box input { border-radius: 6px; border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--text); }
.logo-mark { background: var(--text); border-radius: 4px; }
.card, .cat-tile, .review { border: 1.5px solid var(--text); box-shadow: none; }
.card:hover, .cat-tile:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--brand); border-color: var(--text); }
.btn { background: var(--text); color: #fff; border-radius: 6px; }
.btn:hover { background: var(--brand); filter: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.chip { background: transparent; border: 1px solid var(--brand); border-radius: 4px; }
.winner { border: 2px solid var(--text); background: var(--brand-soft); box-shadow: 6px 6px 0 var(--text); border-radius: 6px; }
.eyebrow { color: var(--brand); }
.filter { border-radius: 4px; }
.filter.active { background: var(--text); color: #fff; border-color: var(--text); }
