:root {
  --bg: #0b1210;
  --bg-2: #121b18;
  --panel: #17231f;
  --panel-2: #1d2c27;
  --line: rgba(232, 184, 109, 0.22);
  --gold: #e8b86d;
  --gold-2: #f3d08a;
  --teal: #1aa58a;
  --teal-2: #7ee0c8;
  --cream: #f4efe4;
  --muted: #b7c4bd;
  --danger: #e26a5a;
  --ok: #3ecf8e;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1180px;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(26, 165, 138, 0.16), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(232, 184, 109, 0.12), transparent 45%),
    var(--bg);
  color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.nav-lock { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 16, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { height: 52px; width: auto; max-width: min(280px, 70vw); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a {
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 0;
}
.nav a:hover, .nav a.is-active { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

.hero { padding: 40px 0 16px; }
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--teal-2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1, .page-hero h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.55rem, 4.4vw, 3.2rem);
  line-height: 1.18;
  margin: 12px 0 16px;
  color: #fff;
  overflow-wrap: anywhere;
}
.lede { font-size: 1.05rem; color: var(--muted); max-width: 74ch; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.author {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--cream);
}
.author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 24px 0 8px;
}
.toc a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.toc a:hover { border-color: var(--gold); color: var(--gold-2); }

.rank-list { display: grid; gap: 14px; margin: 18px 0 32px; }
.rank-card {
  display: grid;
  grid-template-columns: 64px 140px 1fr auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.rank-no {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.4rem;
  background: #0e1714;
  color: var(--gold);
  border: 1px solid var(--line);
}
.rank-logo {
  background: #fff;
  border-radius: 12px;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 8px;
}
.rank-logo img { max-height: 48px; width: auto; max-width: 120px; object-fit: contain; }
.rank-copy h3 { margin: 0 0 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.rank-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.cta-col { display: grid; justify-items: end; gap: 10px; }
.score-block { text-align: right; }
.score-block strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold-2);
  line-height: 1;
}
.score-block span { color: var(--ok); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-gold {
  background: linear-gradient(180deg, #f3d08a, #d7a04a);
  color: #1a1408;
}
.btn-gold:hover { color: #000; filter: brightness(1.05); }

.section { padding: 18px 0 8px; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  margin: 28px 0 12px;
  color: #fff;
  overflow-wrap: anywhere;
}
.section h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 22px 0 8px;
  color: var(--gold-2);
}
.prose p { margin: 0 0 14px; color: #e6ece8; }
.prose ul, .prose ol { padding-left: 1.2rem; color: #e6ece8; }
.prose li { margin: 0 0 8px; }

.review {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0 28px;
  align-items: start;
}
.review-full { scroll-margin-top: 132px; }
.review-media {
  background: #fff;
  border-radius: 14px;
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 22px 16px;
}
.review-media img { width: auto; max-width: 100%; max-height: 72px; object-fit: contain; }
.review-photo { padding: 0; background: #0e1714; min-height: 0; }
.review-photo img { width: 100%; max-height: 220px; height: 220px; object-fit: cover; border-radius: 14px; }
.review h4 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin: 16px 0 6px;
  color: var(--gold-2);
}
.review-cta { margin: 16px 0 4px; }
.rank-copy h3 a { color: inherit; }
.rank-copy h3 a:hover { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: #0e1714;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}
.chip.ok { color: var(--ok); }
.chip.no { color: var(--danger); }

.grid-2, .grid-3 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card h3 { margin-top: 0; }
.steps { counter-reset: step; display: grid; gap: 12px; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 72px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0e1714;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 20px; }
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-radius: 14px;
  background: var(--panel);
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
th { color: var(--gold); font-weight: 700; background: #0e1714; }

.faq [data-faq-item] {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--panel);
}
.faq button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--cream);
  border: 0;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.faq .answer { display: none; padding: 0 16px 14px; color: var(--muted); }
.faq .is-open .answer { display: block; }

.notice {
  background: #1a120e;
  border: 1px solid rgba(226, 106, 90, 0.4);
  color: #f3d0c8;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
}

main { padding-top: 8px; }
.page-hero { padding: 20px 0 8px; }
.section[id], .page-hero, h2, .hero { scroll-margin-top: 118px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.form input, .form textarea {
  width: 100%;
  max-width: 100%;
  background: #0e1714;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
.status { color: var(--ok); font-weight: 700; }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: #08100e;
  padding: 32px 0 calc(20px + env(safe-area-inset-bottom));
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.foot-brand img { height: 44px; width: auto; max-width: 220px; margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0 0 8px; }
.site-footer h3 { color: var(--gold-2); font-size: 15px; margin: 0 0 10px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.legal-row {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.author-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.author-card img { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; }

@media (max-width: 980px) {
  .rank-card {
    grid-template-columns: 52px 120px 1fr;
    grid-template-areas:
      "no logo copy"
      "cta cta cta";
  }
  .rank-no { grid-area: no; }
  .rank-logo { grid-area: logo; }
  .rank-copy { grid-area: copy; }
  .cta-col {
    grid-area: cta;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .score-block { text-align: left; }
  .cta-col .btn { min-width: 140px; }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .brand img { height: 40px; }
  .header-bar { padding: 8px 0; }
  .nav-toggle { display: flex; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
  }
  .nav-backdrop[hidden] { display: none; }
  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 320px);
    height: 100dvh;
    z-index: 60;
    background: #101a17;
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(72px + env(safe-area-inset-top)) 18px 24px;
    transform: translateX(110%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .hero { padding: 22px 0 10px; }
  .lede { font-size: 0.98rem; }
  .toc { grid-template-columns: 1fr 1fr; }
  .review, .grid-2, .grid-3, .foot-grid, .author-card { grid-template-columns: 1fr; }
  .author-card img { width: 84px; height: 84px; }
  .cta-col .btn { flex: 1; }
  .step { padding: 14px 14px 14px 62px; }
  .faq button { font-size: 15px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 18px); }
  .rank-card {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "no logo"
      "copy copy"
      "cta cta";
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }
  .rank-no { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
  .rank-logo { min-height: 52px; }
  .rank-copy h3 { font-size: 1.02rem; }
  .rank-copy p { font-size: 13px; }
  .score-block strong { font-size: 1.35rem; }
  .toc { grid-template-columns: 1fr 1fr; gap: 8px; }
  .toc a { padding: 9px 8px; font-size: 12px; }
  .chips { gap: 6px; }
  .chip { font-size: 11px; }
  .section h3 { font-size: 1.08rem; }
  th, td { font-size: 13px; padding: 10px 12px; }
}

@media (max-width: 380px) {
  .toc { grid-template-columns: 1fr; }
  .cta-col { flex-direction: column; align-items: stretch; }
  .cta-col .btn { width: 100%; min-width: 0; }
}
