/* Boxwood — Design System (matches app Sandstone theme) */

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

/* Tokens — Sandstone theme from lib/design/themes.ts */
:root {
  --bg: #FDFBF7;
  --surface: #F5F3EF;
  --surface-pressed: #EDEBE7;
  --text: #1C1917;
  --text-secondary: #78716C;
  --text-tertiary: #A8A29E;
  --accent: #B98B8B;
  --accent-muted: rgba(185, 139, 139, 0.15);
  --border: #E7E5E4;
  --border-subtle: #F0EEEC;
  --success: #6B9080;
  --error: #C4746E;
  --board-light: #E8E0D5;
  --board-dark: #B7A99A;
  --font-display: 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;
  --max-width: 1080px;
  --reading-width: 680px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

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

/* Nav */
.nav {
  padding: 1.25rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo img {
  border-radius: 4px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Hero */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 2rem;
  border-radius: 12px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .subhead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.cta:hover {
  background: #0c0a09;
  color: var(--bg);
}

/* Courses */
.courses {
  border-top: 1px solid var(--border);
}

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

.track-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.track-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.course-list {
  list-style: none;
}

.course-list li {
  padding: 0.375rem 0;
  font-size: 1rem;
  color: var(--text);
}

.course-list li span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.bonus {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}

/* How It Works */
.how-it-works {
  border-top: 1px solid var(--border);
}

.how-it-works .reading-width {
  max-width: var(--reading-width);
}

.how-it-works p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.how-it-works p:last-child {
  margin-bottom: 0;
}

/* Pricing */
.pricing {
  border-top: 1px solid var(--border);
}

.pricing-intro {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

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

.pricing-group h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table tr {
  border-bottom: 1px solid var(--border);
}

.pricing-table tr:last-child {
  border-bottom: none;
}

.pricing-table td {
  padding: 0.625rem 0;
  font-size: 1rem;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-note {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

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

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

/* Reading layout (philosophy page) */
.reading {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.reading h1 {
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
}

.reading h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.reading p {
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.reading em {
  font-style: italic;
}

.reading ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.reading li {
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.reading h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.reading hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.reading .back-link {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.reading .essay-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reading {
    padding: 4rem 1.25rem 3rem;
  }

  .reading h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero .subhead {
    font-size: 1rem;
  }
}
