/* =====================
   CourseToR — Theme CSS
   ===================== */

:root {
  --cream: #F7F3EE;
  --charcoal: #1A1A1A;
  --terracotta: #C8501A;
  --terracotta-light: #E8633A;
  --sage: #6B7C5C;
  --sand: #D4C4A8;
  --warm-gray: #7A6F66;
  --off-white: #FAF8F5;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
  --max-w: 1100px;
  --radius: 4px;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--terracotta);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.65;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(26, 26, 26, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
}

/* PROOF STRIP */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
  border-bottom: 1px solid rgba(26,26,26,0.1);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.proof-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.proof-label {
  font-size: 0.72rem;
  color: var(--warm-gray);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.proof-divider {
  width: 1px;
  height: 3rem;
  background: rgba(26,26,26,0.1);
  flex-shrink: 0;
}

/* SECTION HEADERS */
.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.streams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.stream-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(26,26,26,0.08);
}

.stream-card:last-child {
  border-right: none;
}

.stream-card--accent {
  background: var(--terracotta);
  color: #fff;
  position: relative;
}

.stream-card--accent .stream-number,
.stream-card--accent .stream-name,
.stream-card--accent .stream-desc,
.stream-card--accent .stream-detail {
  color: rgba(255,255,255,0.95);
}

.stream-card--accent .stream-detail {
  border-color: rgba(255,255,255,0.2);
}

.stream-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.stream-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.stream-desc {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.stream-detail {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  border-top: 1px solid rgba(26,26,26,0.1);
  padding-top: 1rem;
}

/* FEATURES */
.features {
  padding: 6rem 2rem;
  background: var(--off-white);
}

.features-image-wrap {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 3rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.features-photo {
  width: 100%;
  display: block;
}

.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-icon {
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.feature-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* PRICING */
.pricing {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-item {
  display: grid;
  grid-template-columns: 240px 1fr 100px;
  align-items: center;
  gap: 1.5rem;
}

.pricing-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-type {
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-assumption {
  font-size: 0.72rem;
  color: var(--warm-gray);
}

.pricing-bar {
  height: 8px;
  background: var(--sand);
  border-radius: 4px;
  position: relative;
  width: 100%;
}

.pricing-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--terracotta);
  border-radius: 4px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
  color: var(--charcoal);
}

.pricing-target {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--charcoal);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-target span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.pricing-target small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* MANIFESTO */
.manifesto {
  padding: 6rem 2rem;
  background: var(--terracotta);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  white-space: pre-line;
}

.manifesto-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.manifesto-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.manifesto-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* CLOSING */
.closing {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.closing-body:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.25rem;
  max-width: 520px;
}

/* FOOTER */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
}

.site-footer > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}

.footer-sep {
  color: rgba(255,255,255,0.2);
}

.footer-bottom {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .proof-strip {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .proof-divider {
    display: none;
  }

  .proof-stat {
    min-width: calc(50% - 1rem);
  }

  .streams-grid {
    grid-template-columns: 1fr;
  }

  .stream-card {
    border-right: none;
    border-bottom: 1px solid rgba(26,26,26,0.08);
  }

  .stream-card--accent {
    border: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-amount {
    text-align: left;
  }

  .hero-headline {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero-content,
  .how-it-works,
  .features,
  .pricing,
  .closing,
  .site-footer > * {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}