:root {
  --ink: #0e141c;
  --ink-soft: #1a2433;
  --slate: #e6ebf1;
  --slate-deep: #d5dde8;
  --panel: rgba(255, 255, 255, 0.62);
  --fg: #121923;
  --muted: #5a6678;
  --accent: #c9851a;
  --accent-hot: #e09a1e;
  --accent-soft: rgba(201, 133, 26, 0.14);
  --line: rgba(18, 25, 35, 0.12);
  --line-strong: rgba(18, 25, 35, 0.22);
  --max: 46rem;
  --wide: 68rem;
  --header-h: 4rem;
  --font-display: "Syne", "M PLUS 2", sans-serif;
  --font-body: "M PLUS 2", "Hiragino Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--slate);
  background-image:
    radial-gradient(1100px 520px at 12% -10%, rgba(201, 133, 26, 0.11), transparent 58%),
    radial-gradient(900px 480px at 92% 8%, rgba(26, 58, 92, 0.14), transparent 52%),
    linear-gradient(180deg, #eef2f7 0%, var(--slate) 42%, var(--slate-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(14, 20, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 20, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15) 70%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--ink-soft);
  text-decoration-color: rgba(201, 133, 26, 0.45);
  text-underline-offset: 0.18em;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(238, 242, 247, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header nav a,
.site-footer nav a {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(14, 20, 28, 0.03);
}

.site-footer__inner {
  color: var(--muted);
  font-size: 0.88rem;
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  gap: 1.25rem;
}

.site-footer p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.65;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1rem;
}

main.main--home {
  max-width: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.4rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.lede {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 1.1rem;
  font-size: 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
  margin: 0 0 0.75rem;
}

.disclosure {
  margin: 0 0 1.75rem;
  padding: 0.8rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--fg);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* —— Home hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 70% 35%, rgba(201, 133, 26, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 50% at 18% 70%, rgba(26, 58, 92, 0.22), transparent 65%),
    linear-gradient(165deg, #101820 0%, #172333 48%, #1c2a3a 100%);
}

.hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 154, 30, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 154, 30, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.9;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(14, 20, 28, 0.55) 78%, rgba(14, 20, 28, 0.92) 100%),
    radial-gradient(circle at 78% 28%, rgba(224, 154, 30, 0.2), transparent 28%);
}

.hero__content {
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  color: #eef2f7;
  animation: hero-rise 900ms var(--ease) both;
}

.hero__brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
  color: #f4f7fb;
}

.hero__brand em {
  font-style: normal;
  color: var(--accent-hot);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  max-width: 28rem;
  margin: 0 0 0.85rem;
  color: #f4f7fb;
}

.hero__support {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(238, 242, 247, 0.72);
  font-size: 0.98rem;
  line-height: 1.75;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  background: var(--accent);
  color: #12140f;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 160ms var(--ease), transform 160ms var(--ease), color 160ms var(--ease);
}

.cta-primary:hover {
  background: var(--accent-hot);
  color: #12140f;
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-primary::after {
  content: "→";
  transition: transform 160ms var(--ease);
}

.cta-primary:hover::after {
  transform: translateX(3px);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Home top compares —— */
.home-top {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 0;
}

.home-top h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.home-top__lede {
  margin: 0.45rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-top__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.home-top__list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.1rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color 160ms var(--ease);
}

.home-top__list a:hover {
  color: var(--accent);
}

.home-top__label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-top__blurb {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .home-top__list {
    grid-template-columns: 1fr;
  }
}

/* —— Article index —— */
.home-index {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
}

.home-index__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.35rem;
}

.home-index__header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.home-index__count {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.home-index__lede {
  max-width: 36rem;
  margin: 0.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.article-list li {
  border-bottom: 1px solid var(--line);
  animation: list-reveal 560ms var(--ease) both;
}

.article-list li:nth-child(1) { animation-delay: 40ms; }
.article-list li:nth-child(2) { animation-delay: 80ms; }
.article-list li:nth-child(3) { animation-delay: 120ms; }
.article-list li:nth-child(4) { animation-delay: 160ms; }
.article-list li:nth-child(5) { animation-delay: 200ms; }
.article-list li:nth-child(6) { animation-delay: 240ms; }
.article-list li:nth-child(7) { animation-delay: 280ms; }
.article-list li:nth-child(8) { animation-delay: 320ms; }
.article-list li:nth-child(9) { animation-delay: 360ms; }
.article-list li:nth-child(10) { animation-delay: 400ms; }
.article-list li:nth-child(11) { animation-delay: 440ms; }

@keyframes list-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-list a {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  padding: 1.15rem 0.15rem;
  text-decoration: none;
  color: inherit;
  transition: background 160ms var(--ease);
}

.article-list a:hover {
  background: rgba(201, 133, 26, 0.06);
  text-decoration: none;
}

.article-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-top: 0.2rem;
}

.article-list__category {
  color: var(--accent);
  font-weight: 600;
}

.article-list__body {
  min-width: 0;
}

.article-list__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 0.35rem;
  transition: color 160ms var(--ease);
}

.article-list a:hover .article-list__title {
  color: var(--accent);
}

.article-list__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* —— Article / legal content —— */
.article-page .meta {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--panel);
  backdrop-filter: blur(6px);
}

.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.55;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: rgba(14, 20, 28, 0.04);
}

.compare-table .buy a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 133, 26, 0.35);
}

.compare-table .buy a:hover {
  border-bottom-color: var(--accent);
}

/* —— Product picks (compare articles) —— */
.product-picks {
  margin: 2rem 0 1.75rem;
}

.product-picks__intro {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-picks__list {
  display: grid;
  gap: 0.85rem;
}

.product-pick {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.product-pick:last-child {
  border-bottom: none;
}

.product-pick__media {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  text-decoration: none;
}

.product-pick__media img {
  max-width: 4.5rem;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-pick__body {
  min-width: 0;
}

.product-pick__name {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-pick__name a {
  color: var(--ink);
  text-decoration: none;
}

.product-pick__name a:hover {
  color: var(--accent);
}

.product-pick__why {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-pick__cta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 133, 26, 0.35);
}

.product-pick__cta:hover {
  border-bottom-color: var(--accent);
}

.criteria {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.criteria li {
  padding: 0.95rem 0 0.95rem 1rem;
  border-left: 2px solid var(--accent);
  background: transparent;
}

.criteria strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.legal th {
  width: 9rem;
  color: var(--muted);
  font-weight: 500;
}

.placeholder-note {
  margin-top: 1.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--line-strong);
  background: rgba(14, 20, 28, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  align-items: center;
}

@media (max-width: 720px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content {
    padding: 3.25rem 1.25rem 2.75rem;
  }

  .article-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.05rem 0;
  }

  .article-list__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }

  .product-pick {
    grid-template-columns: 4.5rem 1fr;
    gap: 0.7rem 0.85rem;
  }

  .product-pick__media {
    width: 4.5rem;
    height: 4.5rem;
  }

  .product-pick__media img {
    max-width: 3.6rem;
    max-height: 3.6rem;
  }

  .legal th {
    width: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .article-list li {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
