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

:root {
  --bg: #F5F7F4;
  --surface: #FFFFFF;
  --primary: #3D5A47;
  --accent: #C4A35A;
  --text: #2D3A32;
  --muted: #5E6F64;
  --shadow: rgba(61, 90, 71, 0.08);
  --font-serif: 'Literata', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161D19;
    --surface: #232D27;
    --primary: #8FA898;
    --accent: #D4B86A;
    --text: #E5EBE7;
    --muted: #8A9A8F;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

header {
  padding: 24px 0;
  border-bottom: 1px solid var(--shadow);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 24px;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--text);
}

/* ---- Hero ---- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--shadow);
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
}

/* ---- Sections ---- */

section {
  padding: 72px 0;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-align: center;
}

section > .container > p {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

/* ---- How It Works ---- */

.steps {
  display: grid;
  gap: 32px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--shadow);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Mirror section ---- */

.mirror-example {
  background: var(--surface);
  border: 1px solid var(--shadow);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.mirror-example .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.mirror-example .you {
  color: var(--text);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.mirror-example .reflection {
  font-family: var(--font-serif);
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.mirror-example .reflection + .reflection {
  margin-top: 12px;
}

/* ---- Features ---- */

.features {
  display: grid;
  gap: 24px;
}

@media (min-width: 540px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- FAQ ---- */

.faq-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 0;
  font-family: var(--font-sans);
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--shadow);
}

.faq-item:first-child {
  border-top: 1px solid var(--shadow);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q .arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--muted);
  font-size: 1.25rem;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding-bottom: 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  display: block;
}

/* ---- Prose (markdown pages) ---- */

.prose {
  padding-top: 64px;
  padding-bottom: 72px;
}

.prose h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.prose p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--text);
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--shadow);
  line-height: 1.5;
}

.prose th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--shadow);
  margin: 48px 0;
}

/* ---- Footer ---- */

footer {
  padding: 48px 0;
  border-top: 1px solid var(--shadow);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0 16px 0 0;
  transition: color 0.15s;
}

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

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 48px 0;
  }

  .prose {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
