/* =====================================================
   Signal Over Noise — Apple-inspired design
   ===================================================== */

:root {
  --black:        #000000;
  --white:        #ffffff;
  --off-white:    #f5f5f7;
  --text-primary: #1d1d1f;
  --text-mid:     #3d3d3f;
  --text-secondary: #6e6e73;
  --text-muted:   #8d8d92;
  --border:       #d2d2d7;
  --border-light: #e8e8ed;
  --accent:       #0071e3;
  --signal:       #1d1d1f;

  /* legacy var names used inline in article pages */
  --ink:          #1d1d1f;
  --ink-soft:     #3d3d3f;
  --ink-muted:    #8d8d92;
  --paper-warm:   #f5f5f7;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius:       14px;
  --radius-sm:    8px;
  --max-w:        1120px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Container ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 20px;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-link { display: flex; align-items: center; }

.site-logo {
  height: 30px;
  width: auto;
  display: block;
}

.site-logo--footer {
  height: 24px;
  opacity: 0.7;
  margin-bottom: 10px;
}

.logo-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.84rem;
  color: var(--text-primary);
  transition: color 0.18s;
}

.main-nav a:hover { color: var(--text-secondary); }

.btn-subscribe {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--text-primary);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 980px;
  transition: opacity 0.18s;
  white-space: nowrap;
}

.btn-subscribe:hover { opacity: 0.78; }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-headline em {
  font-style: italic;
  color: var(--text-secondary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.18s;
}

.btn-primary:hover { opacity: 0.78; }

.btn-ghost {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.18s;
}

.btn-ghost:hover { opacity: 0.7; }

/* Signal bars graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 260px;
}

.signal-graphic {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100%;
}

.signal-bar {
  width: 44px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--border), var(--border-light));
}

.signal-bar.s1 { height: 28%; }
.signal-bar.s2 { height: 52%; }
.signal-bar.s3 { height: 88%; background: linear-gradient(to top, var(--border), var(--text-muted)); }
.signal-bar.s4 { height: 64%; }
.signal-bar.s5 { height: 38%; }

/* ══════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════ */
.ticker-wrap {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  padding: 13px 0;
  background: var(--off-white);
}

.ticker {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 35s linear infinite;
}

.ticker span {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ticker .dot { opacity: 0.35; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   ARTICLES SECTION
══════════════════════════════════════════════════ */
.articles-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.027em;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-card {
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}

.article-card:hover { background: #fafafa; }

.article-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.article-title a {
  color: var(--text-primary);
  transition: color 0.18s;
}

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

.article-featured .article-title { font-size: 1.55rem; }

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  align-items: center;
}

.dot { opacity: 0.5; }

.article-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.18s;
  margin-top: 4px;
}

.article-link:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════
   ABOUT / PHILOSOPHY
══════════════════════════════════════════════════ */
.about-section {
  padding: 100px 0;
  background: var(--off-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: center;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.027em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-text p:last-child { margin-bottom: 0; }

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

.stat {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.stat:first-child { padding-top: 0; }
.stat:last-child  { border-bottom: none; padding-bottom: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════════ */
.newsletter-section {
  padding: 100px 0;
  background: var(--black);
}

.newsletter-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.027em;
  margin-bottom: 12px;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.65;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.3); }
.newsletter-form input:focus { border-color: rgba(255, 255, 255, 0.38); }

.newsletter-form button {
  padding: 14px 26px;
  border-radius: 980px;
  background: var(--white);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s;
}

.newsletter-form button:hover { opacity: 0.84; }

.newsletter-small {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 56px 28px;
  gap: 40px;
}

.footer-brand .logo {
  font-size: 1rem;
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 210px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color 0.18s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 18px 28px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   ARTICLE PAGES
══════════════════════════════════════════════════ */
.article-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-light);
}

.article-hero-inner { max-width: 740px; }

.article-page-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.028em;
  margin-bottom: 22px;
}

.article-page-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 660px;
}

.article-page-meta {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  align-items: center;
}

.article-body { padding: 60px 0 80px; }

.article-content { max-width: 740px; }

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 52px 0 18px;
  line-height: 1.2;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.78;
  font-size: 1rem;
}

.article-content ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 20px;
}

.article-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.affiliate-note {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 32px 0;
}

/* ── Product cards ────────────────────────────── */
.product-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 34px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
}

.product-rank {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.product-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-ages {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: 980px;
  display: inline-block;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 14px;
}

.product-pros {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.product-cta {
  display: inline-block;
  background: var(--text-primary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.18s;
}

.product-cta:hover { opacity: 0.74; }

/* ══════════════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 4px 20px 20px;
  border-top: 1px solid var(--border-light);
}

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

.mobile-nav a {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.18s;
}

.mobile-nav a:hover { color: var(--text-secondary); }

.mobile-nav .btn-subscribe {
  margin-top: 12px;
  text-align: center;
  display: block;
  padding: 14px 28px;
  font-size: 0.9rem;
  border-radius: 980px;
  border-bottom: none;
  color: var(--white);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-visual        { display: none; }
  .about-inner        { grid-template-columns: 1fr; gap: 52px; }
  .articles-grid      { grid-template-columns: 1fr; }
  .product-card       { grid-template-columns: 1fr; }
  .footer-inner       { flex-direction: column; gap: 36px; }
  .footer-links       { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 620px) {
  .main-nav                      { display: none; }
  .header-inner > .btn-subscribe { display: none; }
  .nav-toggle                    { display: flex; }
  .logo-tagline                  { display: none; }
  .header-inner                  { height: 50px; }
  .hero                          { padding: 72px 0 56px; }
  .hero-headline                 { font-size: clamp(2.4rem, 8vw, 3rem); }
  .hero-sub                      { font-size: 1rem; }
  .articles-section,
  .about-section,
  .newsletter-section            { padding: 64px 0; }
  .article-card                  { padding: 24px; }
  .newsletter-form               { flex-direction: column; }
  .article-hero                  { padding: 56px 0 40px; }
  .article-body                  { padding: 40px 0 60px; }
  .container                     { padding: 0 20px; }
}
