/* ── Design tokens ── */
:root {
  --bg: #F5F2EB;
  --bg-alt: #EDE8DD;
  --fg: #1A1A18;
  --fg-muted: #6B6B60;
  --fg-subtle: #9B9B8F;
  --accent: #1B4332;
  --accent-mid: #2D6A4F;
  --accent-light: #40916C;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --safe: #166534;
  --safe-bg: #DCFCE7;
  --watch: #B45309;
  --watch-bg: #FEF9C3;
  --avoid: #991B1B;
  --avoid-bg: #FEE2E2;
  --border: #D6D0C4;
  --card: #FDFCF8;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--fg); }

/* ── Hero ── */
.hero {
  background: var(--bg);
  padding: 5rem 2rem 4rem;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  max-width: 440px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.trust-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ── Risk card stack ── */
.risk-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.risk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border-left-width: 4px;
}
.card-watch { border-left-color: var(--watch); }
.card-safe { border-left-color: var(--safe); }
.card-avoid { border-left-color: var(--avoid); }
.risk-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.risk-badge.watch { background: var(--watch-bg); color: var(--watch); }
.risk-badge.safe { background: var(--safe-bg); color: var(--safe); }
.risk-badge.avoid { background: var(--avoid-bg); color: var(--avoid); }
.risk-commodity {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.risk-origin {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
}
.risk-detail {
  font-size: 0.8375rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.risk-date {
  font-size: 0.7rem;
  color: var(--fg-subtle);
  font-weight: 500;
}

/* ── Feed section ── */
.feed-section {
  background: var(--accent);
  padding: 4rem 2rem;
}
.feed-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.feed-section .section-label {
  color: rgba(245, 242, 235, 0.6);
  margin-bottom: 1.5rem;
}
.feed-ticker {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feed-item {
  display: grid;
  grid-template-columns: 80px 70px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245, 242, 235, 0.1);
}
.feed-item:last-child { border-bottom: none; }
.feed-time {
  font-size: 0.75rem;
  color: rgba(245, 242, 235, 0.5);
  font-weight: 600;
}
.feed-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-align: center;
}
.feed-badge.avoid { background: #FEE2E2; color: #991B1B; }
.feed-badge.watch { background: #FEF9C3; color: #92400E; }
.feed-badge.info { background: rgba(245, 242, 235, 0.15); color: rgba(245, 242, 235, 0.85); }
.feed-text {
  font-size: 0.9rem;
  color: rgba(245, 242, 235, 0.9);
  line-height: 1.5;
}

/* ── Section label (shared) ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* ── Risk grid ── */
.riskgrid-section {
  padding: 5rem 2rem;
  background: var(--bg);
}
.riskgrid-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.riskgrid-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.risk-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.risk-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
}
.risk-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.risk-table tr:last-child td { border-bottom: none; }
.commodity-cell {
  font-weight: 600;
  color: var(--fg);
}
.score-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.score-low { background: var(--safe-bg); color: var(--safe); }
.score-medium { background: var(--watch-bg); color: var(--watch); }
.score-high { background: var(--avoid-bg); color: var(--avoid); }
.signal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}
.signal-clear { background: var(--safe-bg); color: var(--safe); }
.signal-watch { background: var(--watch-bg); color: var(--watch); }
.signal-avoid { background: var(--avoid-bg); color: var(--avoid); }
.table-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--fg-subtle);
  line-height: 1.5;
}

/* ── Manifesto ── */
.manifesto-section {
  background: var(--bg-alt);
  padding: 5rem 2rem;
}
.manifesto-inner {
  max-width: 740px;
  margin: 0 auto;
}
.manifesto-content .section-label { margin-bottom: 1.25rem; }
.manifesto-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 2rem;
  line-height: 1.15;
}
.manifesto-content p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.manifesto-content p:last-child { margin-bottom: 0; }
.manifesto-content strong { color: var(--fg); font-weight: 600; }

/* ── Pricing ── */
.subscription-section {
  background: var(--bg);
  padding: 5rem 2rem;
}
.sub-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.subscription-section .section-label { margin-bottom: 1rem; }
.subscription-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 2.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
}
.featured .plan-name { color: var(--accent); }
.plan-price {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.75rem;
  line-height: 1;
}
.plan-period {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 0.25rem;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.plan-features li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
}

/* ── Closing ── */
.closing-section {
  background: var(--accent);
  padding: 5rem 2rem;
}
.closing-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.closing-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bg);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.closing-section p {
  font-size: 1.0625rem;
  color: rgba(245, 242, 235, 0.7);
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  background: var(--fg);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 0.75rem;
}
.footer-copy {
  font-size: 0.875rem;
  color: rgba(245, 242, 235, 0.5);
  margin-bottom: 0.75rem;
}
.footer-note {
  font-size: 0.75rem;
  color: rgba(245, 242, 235, 0.3);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-sub { max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-nav { gap: 1rem; }
  .feed-item { grid-template-columns: 60px 60px 1fr; gap: 0.5rem; font-size: 0.825rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .riskgrid-section, .manifesto-section, .subscription-section, .closing-section { padding: 3.5rem 1.25rem; }
  .feed-section { padding: 3rem 1.25rem; }
}