:root {
  --bg: #0e0f12;
  --surface: #16181d;
  --surface-soft: #1e2128;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #1f2937;
  --brand: #ffd700;
  --brand-dark: #f5c400;
  --accent: #2ecc71;
  --danger: #e74c3c;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 460px at 10% 0%, rgba(255, 215, 0, 0.08), transparent),
    radial-gradient(1000px 320px at 90% 0%, rgba(46, 204, 113, 0.07), transparent),
    var(--bg);
  font-family: "Space Grotesk", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 80;
  background: rgba(229, 231, 235, 0.1);
}

.read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.2s ease;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.breadcrumbs ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #6b7280;
}

.hero {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(1.86rem, 3.6vw, 3rem);
}

.subtitle {
  margin-top: 0.8rem;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 56ch;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(180deg, #ffd700, #f5c400);
  box-shadow: 0 10px 22px rgba(245, 196, 0, 0.22);
}

.btn-secondary {
  color: var(--brand);
  background: #1f2937;
  border-color: #665900;
}

.last-updated {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-path {
  background: var(--surface-soft);
  border: 1px solid #2f3d54;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.progress-path h2 {
  margin: 0;
  font-size: 1rem;
}

.progress-path ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.progress-path li {
  margin-bottom: 0.42rem;
}

.toc {
  margin-top: 1rem;
  border: 1px solid #2f3d54;
  background: #1e2128;
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.toc ul {
  margin: 0;
  padding-left: 1rem;
}

.toc li {
  margin-bottom: 0.3rem;
}

.layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.section,
.sticky-takeaways {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.2rem;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
}

.section h3 {
  margin: 0.95rem 0 0.35rem;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.section p {
  margin: 0.58rem 0;
  color: var(--text);
}

.section ul {
  margin: 0.55rem 0;
  padding-left: 1.2rem;
}

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

.callout {
  margin-top: 0.9rem;
  border: 1px solid #24465f;
  background: #10202d;
  border-radius: 12px;
  padding: 0.88rem 1rem;
}

.warning-box {
  margin-top: 0.95rem;
  border: 1px solid #735a14;
  background: #2c2613;
  border-radius: 12px;
  padding: 0.88rem 1rem;
}

.story-box {
  margin-top: 0.9rem;
  border: 1px solid #2b3647;
  background: #1b1f27;
  border-radius: 12px;
  padding: 0.88rem 1rem;
}

.comparison-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--line);
  padding: 0.68rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: #1f2937;
}

.comparison-footnote {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.journal-card {
  margin-top: 0.9rem;
  border: 1px solid #2b3647;
  background: #1b1f27;
  border-radius: 12px;
  padding: 0.9rem;
}

.journal-card h3 {
  margin-top: 0;
}

.step-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.step-grid article {
  background: #16181d;
  border: 1px solid #293546;
  border-radius: 10px;
  padding: 0.7rem;
}

.step-grid h4 {
  margin: 0;
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0;
}

.check-list li {
  margin-bottom: 0.4rem;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #665900;
  background: #2d290f;
  color: #ffd700;
  padding: 0.25rem 0.62rem;
  font-size: 0.88rem;
  margin-top: 0.42rem;
}

.field-row {
  margin-top: 0.56rem;
}

.field-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111827;
  color: var(--text);
  font: inherit;
  padding: 0.45rem 0.55rem;
}

.field-row textarea {
  min-height: 76px;
  resize: vertical;
}

.muted {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.metrics-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-card {
  border: 1px solid #2b3647;
  border-radius: 10px;
  background: #16181d;
  padding: 0.72rem;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.metric-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.metric-value {
  margin-top: 0.42rem;
  color: #ffd700;
  font-size: 1.32rem;
  font-weight: 700;
}

.tooltip-wrap {
  position: relative;
}

.info-btn {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid #665900;
  background: #2d290f;
  color: #ffd700;
  font-weight: 700;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  padding: 0.58rem 0.65rem;
  border: 1px solid #665900;
  border-radius: 8px;
  background: #16181d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 10;
  font-size: 0.85rem;
  line-height: 1.45;
}

.chart-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.chart-card {
  border: 1px solid #2b3647;
  background: #16181d;
  border-radius: 10px;
  padding: 0.7rem;
}

.chart-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.chart-card canvas {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-labels {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.commitment {
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #25220d;
  padding: 0.62rem 0.74rem;
  font-weight: 600;
}

.disclaimer {
  border: 1px solid #6b2c2c;
  background: #2b1515;
  border-radius: 10px;
  padding: 0.8rem;
}

.faq-item {
  margin-top: 0.5rem;
  border: 1px solid #2b3647;
  border-radius: 10px;
  background: #16181d;
  padding: 0.66rem 0.7rem;
}

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

.final-cta {
  margin-top: 1rem;
  border: 1px solid #665900;
  background: linear-gradient(180deg, #2d290f, #16181d);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}

.final-claim {
  font-size: 1.08rem;
  color: #ffd700;
  font-weight: 700;
}

.sticky-takeaways {
  position: sticky;
  top: 1rem;
  padding: 0.9rem;
}

.sticky-takeaways h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.sticky-takeaways ul {
  margin: 0;
  padding-left: 1rem;
}

.sticky-takeaways li {
  margin-bottom: 0.44rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.38);
  outline-offset: 2px;
}

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

  .sticky-takeaways {
    position: static;
    order: -1;
  }
}

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

  .step-grid,
  .chart-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
