:root {
  --ink: #17202a;
  --muted: #607080;
  --surface: #ffffff;
  --soft: #f6f8fa;
  --line: #dde5ea;
  --teal: #147d73;
  --coral: #e65f4f;
  --gold: #d99a22;
  --blue: #2f6bff;
  --shadow: 0 12px 30px rgba(23, 32, 42, .08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); }
body, button, input, textarea, select { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; height: auto; }

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

.narrow { max-width: 760px; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { flex: 0 0 auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav a,
.admin-link {
  padding: 10px 11px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}
.main-nav a:hover,
.admin-link:hover {
  background: var(--soft);
  color: var(--teal);
}
.menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: var(--radius);
}

.hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
  gap: 44px;
  align-items: center;
  padding: 56px 0;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
}
h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}
h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}
.hero-copy {
  max-width: 720px;
  color: #344454;
  font-size: 21px;
  line-height: 1.5;
}
.hero-actions,
.admin-actions,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.button.primary { background: var(--coral); color: white; }
.button.primary:hover { background: #c94e41; color: white; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); }
.button.full { width: 100%; }
.large-cta { margin-top: 22px; min-width: 220px; }

.hero-search {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-search label,
.wide-search label,
.form-card label,
.admin-form .field span {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.search-row {
  display: flex;
  gap: 10px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #cfd9df;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: white;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47,107,255,.3);
  outline-offset: 2px;
}
.hero-search p,
.form-note,
.affiliate-inline {
  color: var(--muted);
  font-size: 14px;
}

.section { padding: 54px 0; }
.soft-section { background: var(--soft); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}
.text-link {
  color: var(--teal);
  font-weight: 800;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(23,32,42,.04);
}
.product-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: white;
  overflow: hidden;
}
.product-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 14px;
}
.product-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  background: #eef7f5;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 18px;
  font-weight: 900;
}
.product-placeholder.large {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.product-body p { margin: 0; color: #3d4c5b; line-height: 1.45; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tag-row span,
.tag-row a {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: #506172;
  font-size: 12px;
  font-weight: 700;
}
.tag-row.links { margin: 20px 0 0; }
.product-detail-link {
  width: fit-content;
  font-size: 14px;
}
.affiliate-disclosure {
  max-width: 920px;
  margin: 0 0 16px;
  color: #465666;
  font-size: 14px;
  line-height: 1.45;
}
.ad-slot {
  margin-block: 34px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.ad-slot > p {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ad-slot ins {
  display: block;
  min-height: 250px;
}
.ad-after-section {
  max-width: 1180px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.category-card span { font-size: 19px; font-weight: 900; }
.category-card small { color: var(--muted); line-height: 1.35; }
.category-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.body-links {
  max-width: 900px;
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
}
.body-links a { color: var(--teal); font-weight: 900; }

.page-title {
  padding: 46px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-title h1 { font-size: clamp(36px, 6vw, 58px); }
.page-title p { max-width: 820px; color: #344454; font-size: 19px; line-height: 1.5; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font-weight: 800;
}
.guide-text {
  max-width: 820px;
  color: #344454;
  line-height: 1.7;
  white-space: pre-wrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding: 46px 0;
}
.product-detail h1 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08;
}
.detail-media {
  aspect-ratio: 4 / 3;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-media img { padding: 24px; }
.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}
.product-meta-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #465666;
  background: white;
  font-size: 13px;
  font-weight: 800;
}
.product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  align-items: start;
}
.content-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.content-panel h2 { margin-bottom: 14px; font-size: 25px; }
.content-panel p { margin: 0; color: #344454; line-height: 1.7; }
.legal-doc {
  display: grid;
  gap: 18px;
}
.legal-section p + p,
.legal-section p + .table-wrap {
  margin-top: 12px;
}
.legal-section ul {
  margin: 0;
  padding-left: 20px;
  color: #344454;
  line-height: 1.7;
}
.legal-section a {
  color: var(--teal);
  font-weight: 700;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.pros-cons ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #344454;
  line-height: 1.55;
}
.summary-panel {
  position: sticky;
  top: 98px;
}
.summary-row,
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row span,
.score-row span {
  color: var(--muted);
  font-weight: 800;
}
.summary-row strong {
  text-align: right;
  font-weight: 900;
}
.score-list { margin-top: 10px; }
.score-row strong {
  color: var(--teal);
  font-size: 20px;
}
.tag-row.big a { font-size: 14px; padding: 8px 11px; }
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 16px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}
.faq-list p {
  color: #344454;
  line-height: 1.6;
}

.form-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hp { display: none !important; }
.notice {
  padding: 13px 15px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 700;
}
.notice.error { background: #fff0ee; color: #9c2f25; border: 1px solid #f0bab3; }
.notice.success { background: #ebf8f5; color: #0d625a; border: 1px solid #b8dfd8; }
.empty-state {
  border: 1px dashed #b9c5ce;
  border-radius: var(--radius);
  padding: 26px;
  color: var(--muted);
  background: white;
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 36px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .75fr .85fr 1fr;
  gap: 28px;
}
.site-footer p { color: #d9e2ea; line-height: 1.5; }
.site-footer nav {
  display: grid;
  gap: 10px;
}
.site-footer a { color: white; }
.affiliate-note { font-size: 14px; }

.admin-shell { padding: 34px 0 60px; background: var(--soft); min-height: 70vh; }
.admin-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}
.admin-nav,
.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-nav {
  align-self: start;
  display: grid;
  padding: 12px;
  gap: 4px;
}
.admin-nav a,
.admin-nav button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  background: white;
  font-weight: 800;
  cursor: pointer;
}
.admin-nav a:hover,
.admin-nav button:hover { background: var(--soft); color: var(--teal); }
.admin-panel { padding: 22px; overflow: hidden; }
.admin-panel h1 {
  margin: 0 0 20px;
  font-size: 32px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-card strong { display: block; font-size: 30px; }
.stat-card span { color: var(--muted); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); font-size: 14px; }
.admin-form {
  display: grid;
  gap: 16px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 8px; }
.check, .check-row .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.check input { width: auto; }
.tag-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.tag-fieldset legend { font-weight: 900; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.danger-form {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.danger-form button {
  color: #9c2f25;
  background: transparent;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}
.login-card h1 { font-size: 34px; }

@media (max-width: 980px) {
  .menu-button { display: inline-flex; }
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .main-nav[hidden] { display: none; }
  .hero-grid,
  .detail-grid,
  .product-content-grid,
  .footer-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .summary-panel { position: static; }
  .product-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 178px; }
  .main-nav { top: 66px; grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 38px 0; gap: 26px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 18px; }
  .search-row,
  .two-col,
  .three-col,
  .four-col,
  .stats-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .product-grid,
  .category-grid,
  .check-grid,
  .pros-cons {
    grid-template-columns: 1fr;
  }
  .section { padding: 38px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .admin-panel { padding: 16px; }
}

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