:root {
  --primary: #2b2f36;
  --secondary: #3d4351;
  --accent: #6b7280;
  --surface: #ffffff;
  --muted: #9ca3af;
  --pattern: #e5e7eb;
}

[data-theme="dark"] {
  --primary: #e5e7eb;
  --secondary: #d1d5db;
  --accent: #9ca3af;
  --surface: #111317;
  --muted: #6b7280;
  --pattern: #1e2028;
}

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

html {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--surface);
  color: var(--secondary);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#tessellation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.descriptor {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.contact {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.2s ease;
}

.contact:hover {
  border-bottom-color: var(--accent);
}

/* Theme toggle */

#theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease;
  line-height: 0;
}

#theme-toggle:hover {
  color: var(--accent);
}

#theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] #theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] #theme-toggle .icon-moon {
  display: inline;
}

/* ============================================
   Content pages (workshop, etc.)
   ============================================ */

body.page {
  display: block;
  align-items: initial;
  justify-content: initial;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.content-header {
  text-align: center;
  margin-bottom: 4rem;
}

.content-brand,
.footer-brand {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-brand:hover,
.footer-brand:hover {
  color: var(--accent);
}

.content-header h1 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 1.5rem 0 1rem;
  text-transform: none;
  transition: color 0.3s ease;
}

.content-subtitle {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.content section {
  margin-bottom: 3.5rem;
}

.content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.content h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  transition: color 0.3s ease;
}

.content p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.content ul,
.content ol {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  transition: color 0.3s ease;
}

.content li {
  margin-bottom: 0.5rem;
}

.lead-text {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--secondary);
}

.lead-text em {
  font-style: italic;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--pattern);
  border-radius: 0.25rem;
  transition: border-color 0.3s ease;
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.feature p {
  margin-bottom: 0.5rem;
}

.feature-outcome {
  font-style: italic;
  color: var(--muted);
}

/* Industry tags */

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.industry-tag {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--accent);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--pattern);
  border-radius: 0.25rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* Format list */

.format-list {
  list-style: none;
  padding-left: 0 !important;
}

.format-list li {
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.format-list li::before {
  content: none;
}

/* FAQ (collapsible) */

details.faq-item {
  margin-bottom: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pattern);
  transition: border-color 0.3s ease;
}

details.faq-item:last-child {
  border-bottom: none;
}

details.faq-item summary {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  margin-left: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.3s ease;
}

details.faq-item[open] summary::after {
  content: '\2212';
}

details.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Industry context (subtitle for industry sections) */

.industry-context {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Ascending Transaction Model steps */

.atm-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 1.5rem 0;
  border: 1px solid var(--pattern);
  border-radius: 0.25rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.atm-step {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--pattern);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.atm-step:last-child {
  border-bottom: none;
}

.atm-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.375rem;
  transition: color 0.3s ease;
}

.atm-step h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 0.375rem;
  transition: color 0.3s ease;
}

.atm-step p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--secondary);
  margin: 0;
  transition: color 0.3s ease;
}

.atm-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.3s ease;
}

.atm-link:hover {
  border-bottom-color: var(--accent);
}

/* Event badge and details */

.event-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--pattern);
  border-radius: 0.25rem;
  margin: 1rem 0 0.5rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.event-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.3s ease;
}

@media (max-width: 640px) {
  .event-details {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Pricing grid */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 1.5rem 0;
  border: 1px solid var(--pattern);
  border-radius: 0.25rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

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

.pricing-tier {
  padding: 1.5rem;
  background: var(--surface);
  text-align: center;
  border-right: 1px solid var(--pattern);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pricing-tier:last-child {
  border-right: none;
}

@media (max-width: 640px) {
  .pricing-tier {
    border-right: none;
    border-bottom: 1px solid var(--pattern);
  }
  .pricing-tier:last-child {
    border-bottom: none;
  }
}

.pricing-tier h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 0.5rem;
  transition: color 0.3s ease;
}

.pricing-tier p {
  font-size: 0.8125rem;
  margin: 0;
}

.price {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.price-note {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
}

.pricing-note {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* CTA */

.cta-section {
  text-align: center;
  padding: 2rem 0;
}

.cta-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  margin-top: 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cta-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Footer */

.content-footer {
  text-align: center;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--pattern);
  transition: border-color 0.3s ease;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  main {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  .descriptor {
    font-size: 0.875rem;
  }

  .contact {
    font-size: 0.8125rem;
  }

  .content {
    padding: 3rem 1.25rem 2rem;
  }

  .content-header {
    margin-bottom: 3rem;
  }

  .content-header h1 {
    font-size: 1.375rem;
  }

  .content section {
    margin-bottom: 2.5rem;
  }

  .feature {
    padding: 1.25rem;
  }
}
