@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Didact Gothic', system-ui, sans-serif;
  background: #f5f5f5;
  color: #1f1f1f;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.72;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Poiret One', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #1f1f1f;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* =============================================
   ANNOUNCE STRIP
   ============================================= */
.announce-strip {
  background: #1f1f1f;
  color: #ffffff;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(31,31,31,0.1);
  position: sticky;
  top: 29px;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-mark {
  font-family: 'Poiret One', serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #1f1f1f;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(31,31,31,0.25);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  margin-left: auto;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #1f1f1f;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Desktop: primary-nav inline */
.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
}

.nav-section-label {
  display: none;
}

.nav-list dd {
  margin: 0;
}

.nav-list dd a {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #1f1f1f;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.nav-list dd a:hover {
  background: #f5f5f5;
  opacity: 1;
}

/* =============================================
   CTA BUTTONS
   ============================================= */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.cta-signup {
  background: #1f1f1f;
  color: #ffffff;
  border: 2px solid #1f1f1f;
}

.cta-signup:hover {
  background: #3a3a3a;
  border-color: #3a3a3a;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,31,31,0.2);
}

.cta-login {
  background: transparent;
  color: #1f1f1f;
  border: 2px solid #1f1f1f;
}

.cta-login:hover {
  background: #1f1f1f;
  color: #ffffff;
  opacity: 1;
  transform: translateY(-1px);
}

/* =============================================
   PAGE LAYOUT SHELL
   ============================================= */
.layout-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  flex: 1;
  align-items: start;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  min-width: 0;
}

.page-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
}

.hero-texture {
  background-image: radial-gradient(circle, rgba(31,31,31,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #f5f5f5;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.inner-hero-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.review-hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.review-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-hero-media {
  border-radius: 18px;
  overflow: hidden;
}

.review-hero-img {
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.compare-hero {
  border-left: 4px solid #1f1f1f;
}

/* =============================================
   BYLINE
   ============================================= */
.byline {
  font-size: 0.875rem;
  color: rgba(31,31,31,0.6);
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.byline-author {
  font-weight: 600;
  color: #1f1f1f;
}

/* =============================================
   STAGE LABEL
   ============================================= */
.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: #f5f5f5;
  color: #1f1f1f;
  border: 1px solid rgba(31,31,31,0.15);
  width: fit-content;
}

.stage-awareness { background: #f0f4ff; }
.stage-consideration { background: #fff8e6; }
.stage-decision { background: #edfaf4; }

/* =============================================
   CONTENT SECTION & PROSE
   ============================================= */
.content-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose h2 + hr {
  border: none;
  border-top: 2px solid rgba(31,31,31,0.12);
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p { margin-bottom: 1rem; }

.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { font-weight: 700; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.prose table th,
.prose table td {
  padding: 10px 14px;
  border: 1px solid rgba(31,31,31,0.12);
  text-align: left;
}

.prose table th {
  background: #f5f5f5;
  font-family: 'Poiret One', serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* =============================================
   HR DECORATION (after div headings)
   ============================================= */
hr {
  border: none;
  border-top: 2px solid rgba(31,31,31,0.1);
  margin: 12px 0 20px;
}

.section-heading + hr {
  border-top: 2px solid rgba(31,31,31,0.15);
  margin-bottom: 24px;
}

/* =============================================
   BENTO GRID (HOME child cards)
   ============================================= */
.child-section {
  background: #f5f5f5;
  border-radius: 24px;
  padding: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 8px;
}

.bento-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:nth-child(3n+1) {
  grid-column: span 2;
}

.bento-card:nth-child(5n+1) {
  grid-row: span 2;
}

@media (prefers-reduced-motion: no-preference) {
  .bento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
}

.card-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.card-title {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.card-title a {
  text-decoration: none;
  color: #1f1f1f;
}

.card-title a:hover {
  text-decoration: underline;
  opacity: 1;
}

.card-desc {
  font-size: 0.8rem;
  color: rgba(31,31,31,0.65);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1f1f1f;
  margin-top: auto;
  border-bottom: 1px solid rgba(31,31,31,0.3);
  width: fit-content;
}

/* =============================================
   RANK TABLE
   ============================================= */
.rank-summary-block {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.rank-table tbody tr {
  border-bottom: 1px solid rgba(31,31,31,0.08);
  transition: background 0.15s;
}

.rank-table tbody tr:hover {
  background: #f5f5f5;
}

.rank-pos {
  font-family: 'Poiret One', serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: rgba(31,31,31,0.35);
  padding: 14px 20px 14px 0;
  width: 60px;
  vertical-align: middle;
}

.rank-name {
  font-size: 1rem;
  padding: 14px 0;
  vertical-align: middle;
}

/* =============================================
   ASIDE
   ============================================= */
.page-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 110px;
}

.aside-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.aside-heading {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-list li a {
  display: block;
  font-size: 0.875rem;
  text-decoration: none;
  color: #1f1f1f;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31,31,31,0.07);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.aside-list li a:hover {
  text-decoration: underline;
  opacity: 1;
}

.aside-rg {
  background: #f5f5f5;
}

.rg-notice {
  font-size: 0.78rem;
  color: rgba(31,31,31,0.6);
  line-height: 1.5;
  margin: 0;
}

.aside-cta-block {
  background: #1f1f1f;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-cta-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.aside-cta-btn {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #ffffff;
  width: 100%;
  justify-content: center;
}

.aside-cta-btn:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
  opacity: 1;
  transform: none;
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 48px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.author-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.author-name {
  font-family: 'Poiret One', serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.author-credentials {
  font-size: 0.85rem;
  color: rgba(31,31,31,0.6);
  letter-spacing: 0.04em;
  margin: 0;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   FAQ PROSE
   ============================================= */
.faq-prose details {
  border-bottom: 1px solid rgba(31,31,31,0.1);
  padding: 12px 0;
}

.faq-prose details summary {
  cursor: pointer;
  font-family: 'Poiret One', serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  list-style: none;
  padding: 4px 0;
}

.faq-prose details summary::-webkit-details-marker { display: none; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1f1f1f;
  color: #ffffff;
  padding: 48px 24px 32px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-family: 'Poiret One', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.footer-trust {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.footer-trust a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-trust a:hover {
  color: #ffffff;
  opacity: 1;
}

.footer-rg {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  line-height: 1.5;
}

.footer-copy {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* =============================================
   STAGGER ANIMATIONS
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .bento-card {
    animation: fadeUp 0.4s ease both;
  }

  .bento-card:nth-child(1) { animation-delay: 0.05s; }
  .bento-card:nth-child(2) { animation-delay: 0.1s; }
  .bento-card:nth-child(3) { animation-delay: 0.15s; }
  .bento-card:nth-child(4) { animation-delay: 0.2s; }
  .bento-card:nth-child(5) { animation-delay: 0.25s; }
  .bento-card:nth-child(6) { animation-delay: 0.3s; }
  .bento-card:nth-child(7) { animation-delay: 0.35s; }
  .bento-card:nth-child(8) { animation-delay: 0.4s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* =============================================
   MOBILE NAV (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(31,31,31,0.1);
    padding: 16px 20px 20px;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav.nav-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-section-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(31,31,31,0.4);
    padding: 8px 0 4px;
    font-family: 'Didact Gothic', sans-serif;
  }

  .nav-list dd a {
    width: 100%;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 12px 10px;
    min-height: 44px;
  }

  .site-header {
    top: 29px;
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  /* keep CTAs visible, shrink label */
  .cta {
    font-size: 0.75rem;
    padding: 8px 10px;
    min-height: 44px;
  }

  .brand-mark {
    font-size: 0.9rem;
    max-width: 110px;
  }

  .page-body {
    grid-template-columns: 1fr;
    margin: 20px auto;
    padding: 0 16px;
    gap: 20px;
  }

  .page-aside {
    position: static;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 24px;
    gap: 20px;
  }

  .hero-media {
    min-height: 200px;
  }

  .review-hero-section {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 16px;
  }

  .inner-hero-section {
    padding: 28px 24px;
  }

  .content-section {
    padding: 28px 24px;
  }

  .child-section {
    padding: 24px 16px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .bento-card:nth-child(3n+1) {
    grid-column: span 1;
  }

  .bento-card:nth-child(5n+1) {
    grid-row: span 1;
  }

  .author-section {
    padding: 28px 24px;
  }

  .rank-summary-block {
    padding: 24px 20px;
  }

  .footer-brand {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card {
    height: auto;
  }

  .header-ctas {
    gap: 6px;
  }

  .cta {
    font-size: 0.7rem;
    padding: 8px 8px;
  }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}