/* =====================================================
   DESIGN TOKENS — edit colors here globally
   ===================================================== */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --border: #e5e1da;
  --accent: #c94f1e;
  /* main accent — change this one color to retheme */
  --accent-dim: rgba(201, 79, 30, 0.1);

  /* tier accent colors */
  --micro: #2d7d46;
  --small: #1a6fa8;
  --medium: #b45c0a;
  --large: #7c3aad;
  --corp: #b5192c;

  --radius: 6px;
  --max-w: 900px;
}

/* =====================================================
   BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

/* =====================================================
   READING PROGRESS BAR
   ===================================================== */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 500;
  transition: width 0.08s linear;
}

/* =====================================================
   SITE NAV
   ===================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 54px;
}

.nav-brand {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand em {
  color: var(--accent);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: "Fira Code", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: var(--ink);
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
}

/* subtle diagonal grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fira Code", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-category::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: #ffffff;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin-bottom: 40px;
}

/* hero meta row */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.hero-meta-cell {
  padding: 12px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-meta-cell:last-child {
  border-right: none;
}

.meta-label {
  font-family: "Fira Code", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.meta-value {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

/* =====================================================
   ARTICLE WRAPPER
   ===================================================== */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   TABLE OF CONTENTS
   ===================================================== */
.toc-block {
  margin: 56px 0 0;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 32px;
}

.toc-heading {
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  padding: 7px 10px;
  transition: background 0.15s;
  border-radius: var(--radius);
}

.toc-list li a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.toc-num {
  font-family: "Fira Code", monospace;
  font-size: 0.6rem;
  color: var(--muted);
  width: 20px;
  flex-shrink: 0;
}

.toc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}

/* =====================================================
   INTRO PROSE
   ===================================================== */
.intro-section {
  padding: 52px 0 0;
}

.intro-section p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 18px;
}

.intro-section p strong {
  font-weight: 500;
  color: var(--accent);
}

/* =====================================================
   DIVIDER
   ===================================================== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0 0;
}

/* =====================================================
   TIER ARTICLE SECTIONS
   -- All content inside these is plain HTML,
      edit freely below.
   ===================================================== */

.tier-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.tier-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* tier label badge */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* tier heading block */
.tier-title-block {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.tier-title-block h2 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 6px;
}

.tier-subtitle {
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* quick stats row */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.qs-cell {
  background: var(--surface);
  padding: 18px 20px;
}

.qs-label {
  font-family: "Fira Code", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.qs-value {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
}

/* body prose */
.tier-prose p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #44403c;
  margin-bottom: 16px;
}

/* highlighted quote / callout */
.tier-callout {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--accent-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
}

.tier-callout strong {
  font-weight: 500;
}

/* services list */
.services-label {
  font-family: "Fira Code", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 12px;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.55;
}

.services-list li .svc-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.svc-name {
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.svc-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

/* registration steps */
.steps-label {
  font-family: "Fira Code", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 16px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--border);
}

.step-item {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 20px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-num-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Fira Code", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.step-body {
}

.step-name {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.step-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.compare-section {
  padding: 64px 0 80px;
}

.compare-section h2 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.compare-eyebrow {
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.compare-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  border: 1px solid var(--border);
}

.compare-table thead tr {
  background: var(--ink);
}

.compare-table thead th {
  font-family: "Fira Code", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(201, 79, 30, 0.04);
}

.compare-table td {
  padding: 14px 18px;
  vertical-align: top;
  color: #44403c;
  line-height: 1.5;
}

.compare-table td:first-child {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
}

.tier-pill {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink);
  padding: 56px 40px;
  text-align: center;
}

.footer-brand {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand em {
  color: var(--accent);
  font-style: normal;
}

.footer-note {
  font-family: "Fira Code", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  line-height: 2;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-links a {
  font-family: "Fira Code", monospace;
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 720px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 72px 20px 60px;
  }

  .article-wrap {
    padding: 0 20px;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .hero-meta-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .quick-stats {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding: 40px 20px;
  }
}
