:root {
  --bg-canvas: #1e1612;
  --bg-surface: #32251d;
  --bg-surface-elevated: #3f2f25;
  --text-primary: #f5ecdf;
  --text-muted: #c9b9a6;
  --accent-primary: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --accent-hover: #d97706;
  --border-subtle: rgba(245, 236, 223, 0.12);
  --border-strong: rgba(245, 158, 11, 0.35);
  --radius-card: 20px;
  --radius-pill: 9999px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-warm: 0 14px 34px -6px rgba(12, 8, 6, 0.55);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }
}

.page-frame {
  max-width: 1220px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background-color: rgba(30, 22, 18, 0.7);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

/* Header & Tagline */
.tagline-bar {
  background: #271c16;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 1.5rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  letter-spacing: 0.03em;
  font-weight: 600;
  border-radius: 24px 24px 0 0;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease-kinetic), background 0.2s var(--ease-kinetic);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-strong);
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-trigger {
    display: flex;
  }
  .site-header {
    padding: 1rem;
  }
}

/* Typography Standards */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.text-muted {
  color: var(--text-muted);
}

.readable-wrap {
  max-width: 70ch;
  margin: 0 auto;
}

/* Button & Pill Components */
.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #1e1612;
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s var(--ease-kinetic);
}

.btn-amber:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 620px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.hero-collage {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-stack {
  position: absolute;
  width: 68%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-warm);
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-stack-1 {
  top: 10px;
  left: 0;
  height: 220px;
  z-index: 1;
  transform: rotate(-3deg);
}

.img-stack-2 {
  top: 60px;
  right: 10px;
  height: 230px;
  z-index: 2;
  transform: rotate(4deg);
}

.img-stack-3 {
  bottom: 10px;
  left: 20%;
  height: 200px;
  z-index: 3;
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
  }
  .hero-collage {
    min-height: 300px;
    margin-top: 1rem;
  }
  .img-stack-1 { height: 180px; }
  .img-stack-2 { height: 190px; }
  .img-stack-3 { height: 170px; }
}

/* Numbered Pathway Trail */
.trail-container {
  position: relative;
  padding: 3.5rem 2rem;
}

.trail-container::before {
  content: "";
  position: absolute;
  top: 4rem;
  bottom: 4rem;
  left: 3.5rem;
  width: 2px;
  background: var(--accent-primary);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .trail-container {
    padding: 2rem 1rem;
  }
  .trail-container::before {
    left: 1.8rem;
  }
}

.trail-node {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 4.5rem;
}

@media (max-width: 768px) {
  .trail-node {
    padding-left: 2.8rem;
    margin-bottom: 2.5rem;
  }
}

.trail-badge {
  position: absolute;
  left: -2px;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-primary);
  color: #1e1612;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--bg-canvas);
  transform: translateX(-50%);
  z-index: 2;
}

/* Card Variations with Image Top & Overlapping Stage Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.trail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 210px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage-badge {
  position: absolute;
  bottom: -13px;
  left: 20px;
  background: var(--accent-primary);
  color: #1e1612;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.card-body {
  padding: 1.75rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-top: 0.3rem;
}

.card-body p {
  font-size: 0.98rem;
  color: var(--text-muted);
  flex: 1;
}

.card-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Habit Reflection & Comparison Panels */
.panel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2rem 0;
}

.habit-log-sample {
  background: #241a14;
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  font-family: monospace;
  font-size: 0.92rem;
  color: #eedcc8;
  overflow-x: auto;
}

/* FAQ Accordion Styling */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Text Composer / Contact Tool */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #251b15;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.preview-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #18110e;
  border-radius: 14px;
  border: 1px dashed var(--accent-primary);
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer Specifications */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #271c16;
  padding: 3rem 2rem 2rem;
  border-radius: 0 0 24px 24px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-legal-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-bar a {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-legal-bar a:hover {
  text-decoration: underline;
}

/* Reveal utility */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

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

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
