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

/* ── Skip Link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  background: var(--amber);
  color: var(--obsidian);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 0;
}

/* ── Article Date ── */
.article-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-stone);
  margin-top: 8px;
}

/* Global: visited links never change color */
a:visited { color: inherit; }
a.content-link:visited { color: inherit; }
.section-subtitle a:visited { color: inherit; }
.fw-row-items a:visited { color: inherit; }
.learn-more-links a:visited { color: inherit; }
.footer-nav a:visited { color: var(--warm-stone); }
.btn-primary:visited, .btn-secondary:visited { color: inherit; }

/* ── Brand Tokens ── */
:root {
  /* Foundation */
  --obsidian: #1C1917;
  --charcoal: #292524;
  --stone-700: #44403C;
  --warm-stone: #78716C;
  --stone-400: #A8A29E;
  --stone-300: #D6D3D1;
  --alabaster: #FAFAF9;

  /* Forge Accent */
  --amber-light: #FBBF24;
  --amber: #F59E0B;
  --dark-gold: #D97706;
  --deep-amber: #B45309;
  --ember: #EA580C;

  /* Status */
  --compliant: #22C55E;
  --in-progress: #F59E0B;
  --non-compliant: #EF4444;

  /* Typography */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-width: 1060px;
  --section-text-width: 680px;
  --cap-grid-width: 1100px;

  /* Spacing */
  --section-padding: 96px;

  /* Cards */
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: 1px solid rgba(255, 255, 255, 0.06);
  --card-border-radius: 12px;

  /* Dividers */
  --divider-subtle: 1px solid rgba(255, 255, 255, 0.04);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--obsidian);
  color: var(--alabaster);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Utility ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── Background Texture (confined to hero area) ── */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: radial-gradient(ellipse 600px 400px at 50% 35%, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: absolute;
  top: 35vh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,8 90,28 90,68 50,88 10,68 10,28' fill='none' stroke='%23F59E0B' stroke-width='1.5'/%3E%3Cpolygon points='50,20 78,35 78,62 50,76 22,62 22,35' fill='none' stroke='%23D97706' stroke-width='1.2'/%3E%3Cpolygon points='50,32 66,42 66,56 50,64 34,56 34,42' fill='none' stroke='%23B45309' stroke-width='0.8'/%3E%3Ccircle cx='50' cy='48' r='4' fill='%23F59E0B'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── Section Labels ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--amber);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--alabaster);
}

.section-subtitle {
  text-align: center;
  color: var(--warm-stone);
  font-size: 16px;
  font-weight: 400;
  max-width: var(--section-text-width);
  margin: 0 auto 48px;
}

/* ── Header ── */
header {
  position: relative;
  z-index: 1;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.wordmark-redoubt {
  color: var(--alabaster);
}

.wordmark-forge {
  color: var(--amber);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  padding: 50vh 0 96px;
  text-align: center;
}

.hero-opening {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone-300);
}

.hero h1 {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--amber);
}

.hero .tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--dark-gold);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.hero .description {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 16px;
  font-weight: 400;
  color: var(--warm-stone);
}

/* ── Philosophy (Manifesto) ── */
.philosophy {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}


.manifesto {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.manifesto p {
  font-weight: 400;
  font-size: 16px;
  color: var(--warm-stone);
  margin-bottom: 24px;
}

.manifesto p:last-child {
  margin-bottom: 0;
}

.manifesto .term,
.section-subtitle .term {
  color: var(--amber);
  font-weight: 700;
}

.section-micro-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin: var(--divider-spacing, 48px) auto;
}

.platform-detail + .section-micro-divider { --divider-spacing: 0; }
.license-card .section-micro-divider { --divider-spacing: 16px; }

.freshness-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-700);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.manifesto .closer {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--alabaster);
  letter-spacing: -0.3px;
}

/* ── Core Insight ── */
.core-insight {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

/* ── Divider ── */
.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-gold), transparent);
  margin: 0 auto;
}

/* ── Platform Capability Showcase ── */
.platform {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.platform-showcase {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.platform-sidebar {
  position: absolute;
  left: -160px;
  top: 0;
  width: 140px;
  height: 100%;
}

.platform-sidebar-grid {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-sidebar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 140px;
  padding: 14px 6px 12px;
  transition: all 200ms ease-out;
  text-align: center;
}

.platform-sidebar-card:hover {
  border-color: var(--deep-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

.platform-sidebar-card.active {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--amber);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
}

.platform-sidebar-card svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.platform-sidebar-card-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--amber);
}

.platform-sidebar-card-role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm-stone);
  line-height: 1.2;
}

.platform-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.platform-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.platform-detail.in-view {
  opacity: 1;
  transform: scale(1);
}

.platform-detail-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.platform-detail-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--stone-700);
  margin-bottom: 8px;
}

.platform-detail-name {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--amber);
}

.platform-detail-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--warm-stone);
  margin-bottom: 16px;
}

.platform-detail-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--stone-400);
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.platform-detail-body p {
  margin-bottom: 16px;
}

.platform-detail-body p:last-child {
  margin-bottom: 0;
}


/* ── Frameworks Section ── */
.frameworks {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.fw-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.fw-stat {
  text-align: center;
}

.fw-stat-number {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 32px;
  color: var(--amber);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.fw-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-stone);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Directory rows */
.fw-directory {
  margin-bottom: 40px;
}

.fw-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: var(--divider-subtle);
}

.fw-row:first-child {
  border-top: var(--divider-subtle);
}

.fw-row:hover {
  background: rgba(255, 255, 255, 0.01);
}

.fw-row-label {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 13px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-left: 12px;
  border-left: 2px solid var(--deep-amber);
}

.fw-row-items {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone-400);
  line-height: 1.8;
}

.fw-row-items .separator {
  color: var(--stone-700);
  margin: 0 6px;
}

.fw-row-items .custom-tag {
  color: var(--warm-stone);
  font-style: italic;
}

.fw-row-items .future-tag {
  color: var(--warm-stone);
}

.fw-row-items a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fw-row-items a:hover {
  color: var(--amber);
}

.fw-row-items .future-tag a {
  color: inherit;
}

.fw-row-items .future-tag a:hover {
  color: var(--amber);
}


/* ── Licensing Section ── */
.licensing {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.licensing .container {
  max-width: 1400px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.license-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-border-radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.license-card:hover {
  border-color: var(--deep-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

.license-card.featured {
  border-color: var(--amber);
}

.license-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deep-amber), var(--amber));
}

.license-name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--amber);
  margin: 0 0 4px 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-price {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--alabaster);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.license-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-stone);
}

.license-price-annual {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-stone);
  margin-bottom: 4px;
}


.license-positioning {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-stone);
  margin-bottom: 16px;
  line-height: 1.5;
}



.license-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  flex-grow: 1;
}

.license-features li {
  font-family: var(--font-body);
  color: var(--stone-400);
  font-size: 15px;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.license-features li:last-child {
  border-bottom: none;
}

.license-features .check {
  color: var(--amber);
  font-size: 13px;
  flex-shrink: 0;
}

.license-limits {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-stone);
  list-style: none;
  margin-bottom: 20px;
}

.license-limits li {
  padding: 3px 0;
}


.license-coming-soon {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--dark-gold);
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  border: 1px solid var(--dark-gold);
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease-out, color 0.25s ease-out;
}

/* ── Artificer Section ── */
.tier-progression-intro {
  text-align: center;
  max-width: var(--section-text-width);
  margin: 0 auto 48px;
  color: var(--warm-stone);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.artificer-timeline {
  position: relative;
  padding-left: 48px;
  max-width: 720px;
  margin: 0 auto;
}

.artificer-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), var(--deep-amber));
  opacity: 0.4;
}

.artificer-node {
  position: relative;
  margin-bottom: 40px;
}

.artificer-node:last-child {
  margin-bottom: 0;
}

.artificer-node::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--deep-amber);
  border: 2px solid var(--obsidian);
  box-shadow: 0 0 0 1px var(--deep-amber);
}

.artificer-node-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.artificer-node-tier {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--amber);
  letter-spacing: -0.3px;
}

.artificer-node-model {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-stone);
}

.artificer-node-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--stone-400);
  line-height: 1.6;
}

.artificer-node-body .query-example {
  color: var(--warm-stone);
  font-style: italic;
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
  color: var(--alabaster);
  margin-bottom: 12px;
}

.cta-section .subtitle {
  color: var(--warm-stone);
  font-size: 16px;
  max-width: var(--section-text-width);
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.25s ease-out, box-shadow 0.25s ease-out;
}

.btn-primary:hover {
  background: var(--amber-light);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--amber);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.25s ease-out, box-shadow 0.25s ease-out;
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
}

.btn-cta-outline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--amber);
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease-out, color 0.2s ease-out;
  white-space: nowrap;
}

.btn-cta-outline:visited {
  color: var(--amber);
}

.btn-cta-outline:hover {
  background: var(--amber);
  color: var(--obsidian);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--stone-700);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--warm-stone);
}

.footer-parent {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--warm-stone);
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .manifesto p { font-size: 15px; }
  .manifesto .closer { font-size: 16px; }
  .platform-sidebar { display: none; }
  .platform-detail { padding: 48px 24px; }
  .license-grid { grid-template-columns: 1fr; gap: 16px; }
  .artificer-timeline { padding-left: 36px; }
  .artificer-node::before { left: -32px; }
  .fw-row { grid-template-columns: 1fr; gap: 8px; }
  .fw-stats { gap: 24px; }
  .header-inner { gap: 12px; }
  .logo-icon { width: 36px; height: 36px; }
  .wordmark { font-size: 1.25rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .platform-detail { padding: 40px 16px; }
  .platform-detail-name { font-size: 22px; }
}

/* ── Content Page Sections ── */
/* ── Global Nav Bar ── */

.site-nav-wrap {
  position: relative;
  z-index: 100;
}

.site-nav-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.site-nav {
  background: var(--obsidian);
  border-bottom: none;
  padding: 10px 0;
  transition: padding 0.3s, background 0.3s;
  position: relative;
}

.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-gold), transparent);
}

.site-nav.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.site-nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-nav-brand {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
}

.site-nav-brand:visited {
  color: var(--amber);
}

.site-nav-sep {
  color: var(--stone-700);
  font-size: 13px;
}

.site-nav-context {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone-400);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.site-nav-link:visited {
  color: var(--stone-400);
}

.site-nav-link:hover {
  color: var(--amber);
}

.site-nav-link.active {
  color: var(--amber);
  border-color: var(--amber);
}

.site-nav-link.active:visited {
  color: var(--amber);
}

.site-nav-spacer {
  display: none;
}

.site-nav-spacer.on {
  display: block;
  height: 49px;
}

@media (max-width: 768px) {
  .site-nav-link {
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: 0.5px;
  }
  .site-nav-context {
    font-size: 10px;
    letter-spacing: 2px;
  }
}

.content-page-section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.back-link {
  display: none;
}

a.site-nav-context {
  color: var(--stone-400);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

a.site-nav-context:visited {
  color: var(--stone-400);
}

a.site-nav-context:hover {
  color: var(--amber);
}

.site-nav-page {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.back-link:hover {
  color: var(--amber);
}

/* ── Nav Dropdowns ── */
.site-nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.site-nav-dropdown-trigger {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone-400);
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
  outline: none;
}

.site-nav-dropdown-trigger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.site-nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  margin-top: 1px;
  transition: transform 0.2s ease-out;
}

.site-nav-dropdown-trigger:hover,
.site-nav-dropdown-wrap:hover .site-nav-dropdown-trigger {
  color: var(--amber);
}

.site-nav-dropdown-wrap:hover .site-nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.site-nav-dropdown-trigger.active {
  color: var(--amber);
  border-color: var(--amber);
}

.site-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 180px;
  background: var(--obsidian);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
}

.site-nav-dropdown-wrap:hover .site-nav-dropdown-panel,
.site-nav-dropdown-wrap.open .site-nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav-dropdown-panel a {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone-400);
  text-decoration: none;
  padding: 9px 20px;
  transition: color 0.2s ease-out, background 0.2s ease-out;
}

.site-nav-dropdown-panel a:visited {
  color: var(--stone-400);
}

.site-nav-dropdown-panel a:hover {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.05);
}

.site-nav-dropdown-panel a.active {
  color: var(--amber);
}

/* ── Nav Hamburger (mobile) ── */
.site-nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--stone-700);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease-out;
}

.site-nav-hamburger:hover {
  border-color: var(--amber);
}

.site-nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--amber);
  margin: 3px 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.site-nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 25, 23, 0.98);
  backdrop-filter: blur(16px);
  z-index: 200;
  overflow-y: auto;
  padding: 80px 32px 32px;
}

.site-nav-mobile-panel.open {
  display: block;
}

.site-nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--stone-700);
  border-radius: 4px;
  color: var(--amber);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
}

.site-nav-mobile-group {
  margin-bottom: 28px;
}

.site-nav-mobile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}

.site-nav-mobile-panel a {
  display: block;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--stone-300);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-nav-mobile-panel a:visited {
  color: var(--stone-300);
}

.site-nav-mobile-panel a:hover {
  color: var(--amber);
}

.site-nav-mobile-cta {
  display: block;
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--obsidian) !important;
  background: var(--amber);
  border: 1px solid var(--amber);
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-nav-links {
    display: none;
  }
  .site-nav-hamburger {
    display: block;
  }
}

/* ── Footer Navigation ── */
.footer-nav {
  display: flex;
  gap: 48px;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: var(--divider-subtle);
  flex-wrap: wrap;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 4px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--warm-stone);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.footer-nav a:hover {
  color: var(--amber);
}

@media (max-width: 768px) {
  .footer-nav { gap: 32px; }
}

/* Mobile footer: condensed essentials only. Shown below 768px. */
.footer-mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .footer-nav { display: none; }
  .footer-mobile-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 24px;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .footer-mobile-nav a {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--stone-400);
    text-decoration: none;
    transition: color 0.2s ease-out;
  }
  .footer-mobile-nav a:visited { color: var(--stone-400); }
  .footer-mobile-nav a:hover { color: var(--amber); }
}

/* ── Section Learn More Links ── */
.section-learn-more {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 48px;
}

.section-learn-more a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warm-stone);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-learn-more a:hover {
  color: var(--amber);
}

.learn-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 12px;
}

.learn-more-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-400);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease-out;
}

.learn-more-links a:hover {
  color: var(--amber);
}

/* ── Capability Page Layout ── */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero h1 .accent {
  color: var(--amber);
}

.page-hero .page-subtitle {
  color: var(--warm-stone);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.page-content {
  position: relative;
  z-index: 1;
  padding: 0 0 96px;
}

.page-content .container {
  max-width: 760px;
}

.content-section {
  margin-bottom: 64px;
}

.content-section h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--alabaster);
  margin-bottom: 16px;
}

.content-section p {
  color: var(--stone-400);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section .highlight {
  color: var(--amber);
  font-weight: 600;
}

/* ── Inline Capability Links ── */
.platform-detail-body a,
.platform-detail-body a:visited,
.platform-detail-body a:hover,
.platform-detail-body a:active {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}

.platform-detail-body a:hover {
  color: var(--amber-light);
}

/* ── Subtle Content Links (global: section-subtitle, FAQ, articles, anywhere) ── */
a.content-link,
a.content-link:visited,
a.content-link:active {
  color: inherit;
  font-weight: inherit;
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid var(--stone-700);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.content-link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
  font-style: italic;
}

.page-cta {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--stone-700);
  position: relative;
  z-index: 1;
}

.page-cta h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-cta p {
  color: var(--stone-300);
  margin-bottom: 24px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.page-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warm-stone);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.page-nav a:hover {
  color: var(--amber);
}

/* ── Capability Page Header ── */
.cap-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cap-header .header-inner a.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Hex Sidebar Navigation (Capability Pages) ── */
.cap-sidebar {
  position: absolute;
  left: auto;
  right: calc(-1 * ((100vw - 100%) / 2 - 32px));
  width: calc((100vw - 100%) / 2 - 32px);
  top: 0;
  height: 100%;
}

.cap-sidebar .platform-sidebar-grid {
  top: 50vh;
  transform: translateY(-50%);
  align-items: flex-end;
  margin-top: 200px;
}

/* Vertical connecting line */
.hex-track-line {
  position: absolute;
  right: 6px;
  top: 23px;
  bottom: 23px;
  width: 1px;
  background: var(--stone-700);
  z-index: 0;
}

.hex-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--deep-amber), var(--amber));
  transition: height 0.4s ease-out;
}

/* Hex node row */
.hex-node {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
  padding: 12px 0;
  transition: all 0.2s;
}

/* Hex shape */
.hex-shape {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hex-shape svg {
  width: 14px;
  height: 14px;
}

.hex-shape svg polygon {
  stroke: rgba(68, 64, 60, 0.6);
  stroke-width: 3;
  fill: var(--obsidian);
  transition: all 0.25s ease-out;
}

/* Hex node states */
.hex-node.passed .hex-shape polygon {
  stroke: var(--deep-amber);
  fill: var(--deep-amber);
}

.hex-node.active .hex-shape polygon {
  stroke: var(--amber);
  fill: var(--amber);
}

.hex-node.active .hex-shape {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.hex-node:hover .hex-shape polygon {
  stroke: var(--amber);
  opacity: 0.8;
}

@keyframes forgePulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7)); }
}

.hex-node.active .hex-shape {
  animation: forgePulse 3s ease-in-out infinite;
}

/* Hex node labels */
.hex-node-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-700);
  transition: color 0.2s;
  line-height: 1;
  transform: translateY(1px);
}

.hex-node:hover .hex-node-num,
.hex-node.active .hex-node-num {
  color: var(--amber);
}

.hex-node.passed .hex-node-num {
  color: var(--deep-amber);
}

.hex-node-name {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-400);
  text-align: right;
  letter-spacing: -0.1px;
  transition: all 0.2s;
  line-height: 1;
  white-space: nowrap;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  transform: translateY(1px);
}

.hex-node:hover .hex-node-name,
.hex-node.active .hex-node-name {
  color: var(--amber);
}

.hex-node.active .hex-node-name {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.hex-node.passed .hex-node-name {
  color: var(--warm-stone);
}

/* Hide hex sidebar on narrow viewports */
@media (max-width: 1160px) {
  .cap-sidebar {
    display: none;
  }
}

/* ── Registry Pattern (index/catalog pages) ── */

.registry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto 40px;
  padding: 0 24px;
  flex-wrap: wrap;
}

.registry-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.registry-filter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--stone-700);
  background: transparent;
  color: var(--stone-400);
  cursor: pointer;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, color 0.2s ease-out;
  white-space: nowrap;
}

.registry-filter:hover {
  border-color: var(--amber);
}

.registry-filter.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--obsidian);
}

.registry-search {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 14px 7px 34px;
  border-radius: 6px;
  border: 1px solid var(--stone-700);
  background: var(--obsidian);
  color: var(--alabaster);
  width: 200px;
  transition: border-color 0.2s ease-out, width 0.2s ease-out;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
}

.registry-search:focus {
  border-color: var(--amber);
  width: 280px;
}

.registry-search::placeholder {
  color: var(--warm-stone);
}

.registry-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-stone);
  letter-spacing: 0.5px;
  padding: 0 24px;
  max-width: var(--container-width);
  margin: -24px auto 24px;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.registry-grid.registry-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.registry-card {
  display: block;
  background: var(--card-bg);
  border: var(--card-border);
  border-left: 3px solid var(--deep-amber);
  border-radius: 10px;
  padding: 20px 20px 18px;
  text-decoration: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
}

.registry-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  border-left-color: var(--amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

.registry-card:visited {
  color: var(--warm-stone);
}

.registry-card:visited .registry-card-name {
  color: var(--stone-300);
}

.registry-card:visited .registry-card-desc {
  color: var(--warm-stone);
}

.registry-card:visited .registry-card-tag {
  color: var(--dark-gold);
}

.registry-card.hidden {
  display: none;
}

.registry-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.registry-card-name {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 600;
  color: var(--stone-300);
  letter-spacing: -0.3px;
  line-height: 1.3;
  transition: color 0.2s ease-out;
}

.registry-card:hover .registry-card-name {
  color: var(--alabaster);
}

.registry-card:hover .registry-card-desc {
  color: var(--stone-300);
}

.registry-card-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--deep-amber);
  color: var(--dark-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.registry-card-pricetag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--deep-amber);
  color: var(--dark-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.registry-card:visited .registry-card-pricetag {
  color: var(--dark-gold);
  border-color: var(--deep-amber);
}

.registry-card-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--warm-stone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease-out;
}

.registry-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--warm-stone);
  display: none;
}

.registry-empty.visible {
  display: block;
}

@media (max-width: 768px) {
  .registry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .registry-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .registry-search {
    width: 100%;
  }
  .registry-search:focus {
    width: 100%;
  }
}

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

/* ── Pricing Page ── */

.pricing-license-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.license-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-border-radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.license-card:hover {
  border-color: var(--deep-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

.license-name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--amber);
  margin: 0 0 4px 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-price {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--alabaster);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.license-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-stone);
}

.license-price-annual {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--warm-stone);
  margin-bottom: 4px;
}

.license-positioning {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--warm-stone);
  margin-bottom: 16px;
  line-height: 1.5;
}


.license-limits {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--warm-stone);
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

.license-limits li {
  padding: 3px 0;
}

.license-features {
  list-style: none;
  text-align: left;
  margin: 0 0 24px;
  padding: 0;
  flex-grow: 1;
}

.license-features li {
  font-family: var(--font-body);
  color: var(--stone-400);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.license-features li:last-child {
  border-bottom: none;
}

.license-features .check {
  color: var(--amber);
  font-size: 13px;
  flex-shrink: 0;
}

.license-coming-soon {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-gold);
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  border: 1px solid var(--dark-gold);
  border-radius: 8px;
}

@media (max-width: 1160px) {
  .license-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ── Tier Price Grid (miniature license-card pattern) ── */

.tier-price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 32px auto;
}

.tier-price-grid.tier-price-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}

.tier-price-grid.tier-price-grid-one {
  grid-template-columns: 1fr;
  max-width: 280px;
}

.tier-price-cell {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-border-radius);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.tier-price-cell:hover {
  border-color: var(--deep-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

.tier-price-cell.tier-price-na {
  opacity: 0.4;
}

.tier-price-cell .tier-name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tier-price-cell .tier-cost {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 20px;
  color: var(--alabaster);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.tier-price-cell .tier-cost-suffix {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--warm-stone);
  display: block;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .tier-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 404 Error Page ── */
.error-hero {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
}

.error-hero .container {
  text-align: center;
  max-width: 720px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.error-glyph {
  font-family: var(--font-headline);
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -8px;
  color: var(--alabaster);
  margin: 0 0 16px;
}

.error-glyph .accent {
  color: var(--amber);
}

.error-title {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--alabaster);
  margin: 16px 0 20px;
}

.error-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone-300);
  max-width: 560px;
  margin: 0 auto 40px;
}

.error-destinations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.error-dest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--stone-700);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
}

.error-dest:visited {
  color: inherit;
}

.error-dest:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.05);
}

.error-dest-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-stone);
}

.error-dest-name {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  color: var(--amber);
}

@media (max-width: 640px) {
  .error-glyph { letter-spacing: -4px; }
  .error-title { font-size: 22px; }
}

/* ── Homepage capability grid ── */

.cap-grid {
  max-width: var(--cap-grid-width);
  margin: 48px auto 0;
}

.cap-grid .cap-tile {
  margin-bottom: 10px;
}

.cap-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
  border: 1px solid #6A4913;
  border-radius: 8px;
  background: var(--card-bg);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, box-shadow 0.2s ease-out;
}

.cap-tile:visited {
  color: inherit;
}

.cap-tile:hover {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.cap-tile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  flex-shrink: 0;
  min-width: 180px;
}

.cap-tile-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.cap-tile-name {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--amber);
  margin: 0;
  letter-spacing: -0.3px;
  align-self: end;
}

.cap-tile-role {
  grid-row: 2;
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-stone);
  align-self: start;
}

/* Bullet card content */
.cap-tile-desc-bullets {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap-tile-desc-bullets li {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone-400);
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
}

.cap-tile-desc-bullets li:last-child { margin-bottom: 0; }

.cap-tile-desc-bullets li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--deep-amber);
  font-size: 12px;
  line-height: 1.6;
}

/* Chunk section labels (centered) */
.chunk-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--amber);
  text-align: center;
  margin: 24px 0 12px;
}

.chunk-label:first-child { margin-top: 0; }

/* Approach split comparison */
.approach-split {
  display: flex;
  align-items: stretch;
  max-width: 800px;
  margin: 0 auto;
  gap: 0;
}

.approach-split-left,
.approach-split-right {
  flex: 1;
  padding: 32px;
}

.approach-split-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--amber), transparent);
  opacity: 0.5;
  flex-shrink: 0;
}

.approach-split-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 0 16px;
}

.approach-split-label.wrong { color: var(--warm-stone); }
.approach-split-label.right { color: var(--amber); }

.approach-split-flow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--stone-300);
  margin: 0 0 16px;
  line-height: 1.6;
}

.approach-split-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--warm-stone);
  margin: 0;
}

.approach-split-right .approach-split-flow { color: var(--amber); }
.approach-split-right .approach-split-body { color: var(--stone-400); }

@media (max-width: 640px) {
  .approach-split { flex-direction: column; }
  .approach-split-divider {
    width: 60px;
    height: 1px;
    margin: 24px auto;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
  }
}

.cap-cta {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 48px;
}

.cap-cta a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--warm-stone);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.cap-cta a:visited { color: var(--warm-stone); }

.cap-cta a:hover {
  color: var(--amber);
}

/* ── Membership tier grid ── */

.tier-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: var(--cap-grid-width);
  margin: 0 auto;
  padding: 0 24px;
}

.tier-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 16px;
  border-radius: 8px;
  transition: background 0.25s ease-out, box-shadow 0.25s ease-out;
  cursor: default;
  position: relative;
  z-index: 1;
}

.tier-col:hover {
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.06);
}

.tier-col-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  transition: opacity 0.25s ease-out;
}

.tier-col:hover .tier-col-icon { opacity: 1; }

.tier-col-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tier-col-name {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: -0.3px;
  margin: 0 0 6px;
  line-height: 1.2;
}

.tier-col-verb {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-stone);
  margin-bottom: 10px;
  display: block;
}

.tier-col-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--stone-400);
  margin: 0;
}

.tier-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 800px; }

@media (max-width: 768px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

@media (max-width: 480px) {
  .tier-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Mobile: each row collapses to a vertical stack so the description doesn't
   get squeezed next to the head block. */
@media (max-width: 900px) {
  .cap-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }
  .cap-tile-head {
    flex-direction: row;
    min-width: 0;
    width: 100%;
  }
  .cap-tile-role {
    margin-left: auto;
  }
}
