:root {
  --bg: #f5efe3;
  --bg-alt: #fffaf1;
  --ink: #1d2725;
  --ink-soft: #556260;
  --accent: #ff6a3d;
  --accent-deep: #cf4b24;
  --mint: #0f8b8d;
  --sand: #f2d1a4;
  --card: #fffdf8;
  --line: #e7dcca;
  --shadow: 0 12px 30px rgba(25, 34, 34, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 14%, #ffe0c9 0%, transparent 32%),
              radial-gradient(circle at 84% 0%, #d7f4ea 0%, transparent 35%),
              var(--bg);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
  background: rgba(255, 250, 241, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 220, 202, 0.7);
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  padding: 2.5rem 6vw 4rem;
}

.hero {
  background: linear-gradient(140deg, rgba(255, 253, 248, 0.88), rgba(255, 245, 230, 0.95));
  border: 1px solid rgba(231, 220, 202, 0.7);
  border-radius: calc(var(--radius) + 8px);
  padding: 2.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.8rem;
}

.hero.compact {
  padding: 2.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.76rem;
  color: var(--mint);
  margin: 0 0 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-copy {
  color: var(--ink-soft);
  max-width: 72ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(207, 75, 36, 0.24);
}

.btn.solid:hover {
  background: var(--accent-deep);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.section {
  margin-top: 2.4rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: -0.2rem;
}

.metrics-grid,
.cluster-grid,
.product-grid,
.article-grid,
.playbook-grid,
.checklist-grid,
.split-grid {
  display: grid;
  gap: 1rem;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cluster-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.playbook-grid,
.checklist-grid,
.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.metric-card,
.cluster-card,
.product-card,
.article-card,
.playbook-card,
.check-item,
.procon-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.metric-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.cluster-card h3,
.product-card h3,
.article-card h3 {
  margin-bottom: 0.6rem;
}

.article-card p {
  color: var(--ink-soft);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.cluster-meta,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.9rem;
}

.pill {
  display: inline-block;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  background: rgba(15, 139, 141, 0.12);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  background: #f0e9dd;
}

.product-card h3 {
  font-size: 1.04rem;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-actions .btn {
  font-size: 0.84rem;
  padding: 0.5rem 0.85rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-gap {
  margin-top: 0.6rem;
}

.chip {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.86rem;
}

.chip.active {
  border-color: transparent;
  background: var(--mint);
  color: #fff;
}

.related-links {
  display: grid;
  gap: 0.7rem;
}

.related-links a {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  color: var(--ink);
}

.related-links a:hover {
  border-color: var(--mint);
}

.check-item h3,
.procon-card h3 {
  margin-bottom: 0.6rem;
}

.text-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.review-layout {
  display: grid;
  gap: 0.4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.review-hero {
  border-top: 4px solid rgba(15, 139, 141, 0.5);
}

.product-static-upgraded .review-hero.hero-rich {
  position: relative;
  overflow: hidden;
  background: linear-gradient(138deg, rgba(255, 252, 245, 0.98), rgba(223, 247, 240, 0.55));
}

.product-static-upgraded .review-hero.hero-rich::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.2) 0%, rgba(255, 106, 61, 0) 72%);
  pointer-events: none;
}

.product-figure {
  margin-top: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.product-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(231, 220, 202, 0.9);
}

.product-figure figcaption {
  margin-top: 0.52rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.score-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.score-chip {
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 106, 61, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.review-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.review-paragraph {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0.5rem 0;
}

.review-checklist li {
  margin-bottom: 0.46rem;
}

.product-enrichment-metrics .metric-card {
  border-left: 3px solid rgba(15, 139, 141, 0.35);
}

.product-enrichment-metrics .metric-card strong {
  font-size: 1.35rem;
}

.insight-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.insight-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 247, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.insight-card p {
  margin: 0;
  line-height: 1.56;
  color: var(--ink-soft);
}

.kicker {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.48rem;
}

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compare-table .is-current td {
  background: rgba(15, 139, 141, 0.1);
}

.compare-table .is-current td:first-child {
  color: var(--mint);
  font-weight: 700;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.compare-actions a {
  font-weight: 700;
  color: var(--mint);
}

.compare-actions a:hover {
  color: var(--accent-deep);
}

.compare-actions .inline-muted {
  font-size: 0.82rem;
}

.link-list a {
  color: var(--ink);
  font-weight: 600;
}

.link-list a:hover {
  color: var(--mint);
}

.inline-muted {
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.84rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  color: var(--ink-soft);
  margin: 0.55rem 0 0;
}

.decision-box {
  border: 1px solid rgba(15, 139, 141, 0.3);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(145deg, rgba(15, 139, 141, 0.08), rgba(255, 255, 255, 0.92));
}

.decision-label {
  margin: 0 0 0.42rem;
  font-size: 1.05rem;
  font-family: "Fraunces", serif;
  color: var(--ink);
}

.ops-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field-row label {
  font-weight: 700;
}

.field-row input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.7rem;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid rgba(231, 220, 202, 0.8);
  text-align: left;
  font-size: 0.92rem;
}

th {
  font-family: "Fraunces", serif;
  background: rgba(255, 245, 230, 0.7);
}

.site-footer {
  padding: 1.4rem 6vw 2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }

  main {
    padding: 1.3rem 4vw 3rem;
  }

  .hero {
    padding: 1.4rem;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }
}
