@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-green: #00ff80;
  --c-blue: #0000ff;
  --c-black: #000000;
  --c-white: #ffffff;
  --c-green-dim: #00cc66;
  --c-blue-dim: #0000cc;
  --c-gray: #111111;
  --c-gray-mid: #222222;
  --c-gray-light: #333333;
  --nav-w: 220px;
  --font-main: 'Outfit', 'Work Sans', system-ui, sans-serif;
  --border: 2px solid var(--c-green);
  --border-blue: 2px solid var(--c-blue);
  --border-white: 2px solid var(--c-white);
}

html {
  font-size: 17px;
  line-height: 1.6;
  font-family: var(--font-main);
  background: var(--c-black);
  color: var(--c-white);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--c-green);
  text-decoration: none;
  font-weight: 600;
}

a:hover, a:focus {
  color: var(--c-white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ===== LAYOUT WRAPPER ===== */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  margin-left: var(--nav-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== SIDENAV ===== */
.sidenav {
  width: var(--nav-w);
  background: var(--c-black);
  border-right: var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidenav__brand {
  padding: 1.25rem 1rem;
  border-bottom: var(--border);
}

.sidenav__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sidenav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--c-green);
  color: var(--c-black);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-main);
  border: 2px solid var(--c-black);
}

.sidenav__announce {
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-bottom: var(--border);
}

.sidenav__details {
  flex: 1;
}

.sidenav__summary {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-green);
  cursor: pointer;
  border-bottom: 1px solid var(--c-gray-light);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidenav__summary::-webkit-details-marker {
  display: none;
}

.sidenav__summary::after {
  content: '▼';
  margin-left: auto;
  font-size: 0.6rem;
}

details[open] .sidenav__summary::after {
  content: '▲';
}

.sidenav__menu {
  padding: 0.5rem 0;
}

.sidenav__menu li {
  border-bottom: 1px solid var(--c-gray);
}

.sidenav__menu li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.3;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: none;
}

.sidenav__menu li a:hover,
.sidenav__menu li a:focus,
.sidenav__menu li a[aria-current="page"] {
  background: var(--c-green);
  color: var(--c-black);
  text-decoration: none;
}

/* ===== HERO (HOME) ===== */
.hero--home {
  position: relative;
  min-height: 70vh;
  background: var(--c-black);
  border-bottom: 4px solid var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--c-green) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.12;
  pointer-events: none;
}

.hero__collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__img-a {
  position: absolute;
  top: 8%;
  left: 2%;
  width: 38%;
  max-width: 280px;
  border: 3px solid var(--c-blue);
  transform: rotate(-2deg);
  overflow: hidden;
}

.hero__img-b {
  position: absolute;
  bottom: 6%;
  right: 3%;
  width: 36%;
  max-width: 260px;
  border: 3px solid var(--c-green);
  transform: rotate(1.5deg);
  overflow: hidden;
}

.hero__img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--c-gray-mid);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 2rem 1.5rem;
}

.hero__h1 {
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 4px 4px 0 var(--c-blue);
}

.hero__desc {
  font-size: 1rem;
  color: var(--c-green);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ===== PAGE HEADER (INNER PAGES) ===== */
.page-header {
  position: relative;
  padding: 3rem 2.5rem 2.5rem;
  border-bottom: 4px solid var(--c-green);
  background: var(--c-black);
  overflow: hidden;
}

.page-header__dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--c-green) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.08;
  pointer-events: none;
}

.page-header__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-header__tag {
  display: inline-block;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.page-header__h1 {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.page-header__date {
  font-size: 0.82rem;
  color: var(--c-green);
  font-weight: 500;
}

.page-header--compare { border-bottom-color: var(--c-blue); }
.page-header--ranking { border-bottom-color: var(--c-green); }
.page-header--faq { border-bottom-color: var(--c-blue); }
.page-header--about { border-bottom-color: var(--c-green); }
.page-header--privacy { border-bottom-color: var(--c-gray-light); }

/* ===== MAIN CONTENT AREA ===== */
main {
  flex: 1;
  padding: 2rem 2.5rem;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== CONTENT + ASIDE LAYOUT ===== */
.content-with-aside {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Aside LEFT of content */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  order: -1;
}

.sidebar__inner {
  border: var(--border);
  padding: 1.25rem;
  background: var(--c-gray);
  position: sticky;
  top: 1.5rem;
}

.sidebar__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  border-bottom: 1px solid var(--c-gray-light);
  padding-bottom: 0.5rem;
}

.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar__links li {
  border-bottom: 1px solid var(--c-gray-mid);
}

.sidebar__links li a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--c-white);
  font-weight: 500;
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.sidebar__links li a:hover {
  color: var(--c-green);
}

.sidebar__links li small {
  color: var(--c-green);
  font-size: 0.72rem;
  font-weight: 400;
  display: block;
}

.sidebar__links--ol {
  counter-reset: sidebar-counter;
}

.sidebar__links--ol li {
  counter-increment: sidebar-counter;
}

.sidebar__links--ol li a::before {
  content: counter(sidebar-counter, decimal-leading-zero) '. ';
  color: var(--c-blue);
  font-weight: 700;
  font-size: 0.7rem;
  display: inline;
}

.sidebar__cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: var(--border);
}

.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ===== EYEBROW / SMALL LABELS ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-green);
  background: transparent;
  border-left: 3px solid var(--c-green);
  padding-left: 0.5rem;
  margin-bottom: 0.4rem;
}

/* ===== SECTION TITLES ===== */
section > small.eyebrow + h2,
.section--reviews small.eyebrow + h2,
.section--children small.eyebrow + h2,
.section--ranking-list small.eyebrow + h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--c-green);
}

/* ===== PROSE (ARTICLE CONTENT) ===== */
.prose {
  background: var(--c-gray);
  border: var(--border);
  padding: 2rem;
}

.prose small.eyebrow + h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--c-green);
  padding-bottom: 0.5rem;
}

.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #e8e8e8;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-white);
  margin: 1.75rem 0 0.75rem;
  border-left: 4px solid var(--c-green);
  padding-left: 0.75rem;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-green);
  margin: 1.25rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content a {
  color: var(--c-green);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--c-white);
}

.page-content strong {
  color: var(--c-white);
  font-weight: 700;
}

.page-content blockquote {
  border-left: 4px solid var(--c-blue);
  padding-left: 1rem;
  margin: 1rem 0;
  color: #aaa;
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.page-content th {
  background: var(--c-blue);
  color: var(--c-white);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 700;
}

.page-content td {
  border: 1px solid var(--c-gray-light);
  padding: 0.5rem 0.8rem;
  color: #ddd;
}

.page-content tr:nth-child(even) td {
  background: var(--c-gray-mid);
}

.prose__updated {
  font-size: 0.78rem;
  color: #888;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-gray-light);
}

/* ===== CARDS ===== */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-list > li > a {
  display: block;
  text-decoration: none;
}

.card {
  background: var(--c-gray);
  border: 2px solid var(--c-gray-light);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  border-bottom: 4px solid var(--c-green);
  transition: none;
}

.card:hover,
.card-list > li > a:hover .card,
.card-list > li > a:focus .card {
  border-color: var(--c-green);
  border-bottom-color: var(--c-blue);
  background: var(--c-gray-mid);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.88rem;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card small {
  font-size: 0.74rem;
  color: var(--c-green);
  font-weight: 500;
}

.card--review {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card__num {
  font-family: 'Outfit', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
  display: block;
}

/* ===== STAGGER LIST ANIMATION ===== */
.stagger-list > li {
  opacity: 0;
  transform: translateY(16px);
  animation: staggerIn 0.35s forwards;
}

.stagger-list > li:nth-child(1) { animation-delay: 0.05s; }
.stagger-list > li:nth-child(2) { animation-delay: 0.1s; }
.stagger-list > li:nth-child(3) { animation-delay: 0.15s; }
.stagger-list > li:nth-child(4) { animation-delay: 0.2s; }
.stagger-list > li:nth-child(5) { animation-delay: 0.25s; }
.stagger-list > li:nth-child(6) { animation-delay: 0.3s; }

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-list > li {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ===== RANKING LIST ===== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border);
  overflow: hidden;
}

.rank-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--c-gray-light);
  background: var(--c-gray);
  transition: none;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-item:hover {
  background: var(--c-gray-mid);
}

.rank-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
  background: var(--c-black);
  color: var(--c-green);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', monospace;
  border-right: 2px solid var(--c-green);
}

.rank-item__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.25rem;
  color: var(--c-white);
  text-decoration: none;
  min-height: 60px;
  justify-content: center;
}

.rank-item__link:hover {
  color: var(--c-green);
}

.rank-item__link strong {
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
}

.rank-item__link small {
  font-size: 0.78rem;
  color: #888;
  font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.btn--primary {
  background: var(--c-green);
  color: var(--c-black);
  border-color: var(--c-green);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--c-white);
  color: var(--c-black);
  border-color: var(--c-white);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--c-green);
  border-color: var(--c-green);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--c-green);
  color: var(--c-black);
  text-decoration: none;
}

.btn--small {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-black);
  border-top: 4px solid var(--c-green);
  padding: 2rem 2.5rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

.footer__brand {
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-family: var(--font-main);
  word-break: break-all;
}

.footer__copy {
  display: block;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.6;
}

.footer__copy a {
  color: #888;
  text-decoration: underline;
}

.footer__copy a:hover {
  color: var(--c-white);
}

/* ===== SECTION SPACING ===== */
.section--reviews,
.section--children,
.section--ranking-list {
  padding: 0;
}

/* ===== PARALLAX SCROLL (subtle) ===== */
.parallax-hero {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-hero {
    will-change: auto;
  }
}

/* ===== MOBILE NAV TOGGLE ===== */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  background: var(--c-green);
  color: var(--c-black);
  border: 2px solid var(--c-black);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root {
    --nav-w: 0px;
  }

  .site-main {
    margin-left: 0;
  }

  .sidenav {
    width: 260px;
    transform: translateX(-100%);
    transition: none;
    z-index: 150;
  }

  .sidenav.is-open {
    transform: translateX(0);
    border-right: 4px solid var(--c-green);
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .content-with-aside {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    order: 0;
  }

  .sidebar__inner {
    position: static;
  }

  main {
    padding: 1.5rem 1.25rem;
  }

  .page-header {
    padding: 2rem 1.25rem 1.5rem;
  }

  .hero--home {
    min-height: 60vh;
  }

  .hero__img-a,
  .hero__img-b {
    width: 30%;
  }

  .hero__text {
    padding: 1.5rem 1rem;
  }

  .site-footer {
    padding: 1.5rem 1.25rem 1rem;
  }
}

@media (max-width: 600px) {
  .hero--home {
    min-height: 55vh;
  }

  .hero__img-a {
    top: 5%;
    left: 1%;
    width: 28%;
  }

  .hero__img-b {
    bottom: 3%;
    right: 1%;
    width: 26%;
  }

  .hero__h1 {
    font-size: 1.6rem;
  }

  .prose {
    padding: 1.25rem;
  }

  .card {
    padding: 1rem;
  }

  .rank-item__num {
    width: 46px;
    font-size: 1rem;
  }

  .page-header__h1 {
    font-size: 1.4rem;
  }
}

/* ===== OVERLAY for mobile nav ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 140;
}

.nav-overlay.is-active {
  display: block;
}
