/* ─── HOMEPAGE LAYOUT & SECTIONS ─────────────────────────────────────────── */

/* ─── FEATURED + TRENDING ─────────────────────────────────────────────────── */
.content-area { padding: 32px 0 40px; }

.content-inner {
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 40px;
  align-items: start;
}

/* Featured article */
.featured-article { cursor: pointer; }

.featured-img {
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
  height: 400px;
  background: var(--grad-featured-img);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
}
.featured-img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.featured-cat {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-link);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.featured-title {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.featured-article:hover .featured-title { color: var(--teal-link); }

.featured-excerpt {
  font-size: 16px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.6;
}

/* Trending panel */
.trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dark);
}
.trending-header .trend-icon { font-size: 20px; }

.trending-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }

.trending-thumb {
  width: 84px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.trending-cat {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-link);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.trending-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  transition: color var(--t-fast);
}
.trending-item:hover .trending-title { color: var(--teal-link); }

/* ─── EMAIL CAPTURE ───────────────────────────────────────────────────────── */
.email-section { padding: 20px 0 40px; }

.email-card {
  background: var(--grad-email);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 240px;
  position: relative;
}
.email-left {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.email-left h2 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 320px;
}
.email-left p {
  font-size: 15px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 360px;
}
.email-row {
  display: flex;
  max-width: 400px;
}
.email-input {
  flex: 1;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 15px;
  border: none;
  border-radius: 100px 0 0 100px;
  background: var(--white);
  color: var(--dark);
  outline: none;
}
.email-input::placeholder { color: #aaa; }

.email-btn {
  background: var(--teal);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 12px 22px;
  border: none;
  border-radius: 0 100px 100px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-mid);
}
.email-btn:hover { background: var(--teal-dark); }

.email-privacy {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 9px;
}
.email-privacy a {
  color: var(--teal-link);
  border-bottom: 1px solid rgba(20,125,119,.3);
}

.email-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.email-person {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 120px;
  line-height: 1;
}

/* ─── STATS BAR ───────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }

.stat-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-val {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-lbl {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ─── EXPLORE BY COMPOUND ─────────────────────────────────────────────────── */
.explore-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.explore-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.explore-hd h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.2px;
}
.see-all {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-link);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap var(--t-fast);
}
.see-all:hover { gap: 7px; }

/* ─── EDITORIAL STANDARDS ─────────────────────────────────────────────────── */
.editorial {
  background: var(--cream);
  padding: 56px 0;
}
.editorial-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}
.ed-left h2 {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.ed-left p {
  font-size: 15px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 22px;
}
.ed-learn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}
.ed-learn:hover { gap: 10px; }

.ed-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pillar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar-circle svg {
  width: 38px;
  height: 38px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}
.pillar p {
  font-size: 14px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.6;
  text-align: center;
}

/* ─── TOOLS SECTION ───────────────────────────────────────────────────────── */
.tools-section {
  padding: 52px 0;
  background: var(--white);
}
.tools-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.tools-hd-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.tools-hd h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Feature card */
.tool-feature {
  background: var(--grad-tool-feature);
  border-radius: 14px;
  padding: 36px 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}
.tool-feature h3 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.tool-feature p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 380px;
}
.tool-feature-btn {
  background: var(--teal-dark);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--t-mid);
  margin-bottom: 24px;
}
.tool-feature-btn:hover { background: var(--teal); }
.tool-feature-emoji {
  font-size: 80px;
  margin-top: auto;
  line-height: 1;
}

/* Right-side tiles */
.tools-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-tile {
  background: var(--teal-pale);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--t-fast);
  min-height: 94px;
}
.tool-tile:hover { background: var(--tool-tile-hover-bg); }

.tool-tile-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-link);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}
.tool-tile-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  max-width: 220px;
}

.tile-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(20,125,119,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--teal-dark);
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.tool-tile:hover .tile-arrow { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* Bottom row — dark tiles */
.tools-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tool-tile-dark {
  background: var(--teal-dark);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 100px;
  transition: background var(--t-fast);
}
.tool-tile-dark:hover { background: var(--tool-tile-dark-hover-bg); }
.tool-tile-dark .tool-tile-label { color: var(--tool-dark-label); }
.tool-tile-dark .tool-tile-title { color: var(--white); max-width: 280px; font-size: 16px; }
.tool-tile-dark .tile-arrow { border-color: rgba(255,255,255,.3); color: var(--white); }
.tool-tile-dark:hover .tile-arrow { background: rgba(255,255,255,.2); }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

/* 768px: Stack featured + trending, cards adapt */
@media (max-width: 768px) {
  .content-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .featured-img { height: 280px; font-size: 60px; }

  .editorial-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ed-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat {
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-bottom: none; }
  .stat:first-child { padding-left: 20px; }

  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tools-row2 { grid-template-columns: 1fr; }
}

/* 480px: Single column everything */
@media (max-width: 480px) {
  .email-card {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
  .email-left {
    padding: 32px 28px;
  }
  .email-right { display: none; }

  .email-row { max-width: 100%; flex-direction: column; }
  .email-input {
    border-radius: 100px;
    margin-bottom: 10px;
  }
  .email-btn {
    border-radius: 100px;
    padding: 12px;
    text-align: center;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat { padding: 14px 16px; }
  .stat:first-child { padding-left: 16px; }

  .ed-pillars {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tools-row2 { grid-template-columns: 1fr; }

  .explore-hd { flex-direction: column; align-items: flex-start; gap: 8px; }

  .featured-img { height: 220px; font-size: 50px; }
  .featured-title { font-size: 22px; }
}
