/* ============================================
   neurex.dev — Print-Friendly Sales & Syllabus
   Brand: Space Grotesk + Inter
   Colors: Slate #495867, Coral #fe5f55, Blue #bdd5ea
   ============================================ */

:root {
  --ink: #495867;
  --ink-light: #577399;
  --coral: #fe5f55;
  --blue: #bdd5ea;
  --bg: #f7f7ff;
  --white: #ffffff;
  --gray-100: #f5f5f7;
  --gray-200: #e5e5ea;
  --gray-300: #d1d1d6;
  --gray-400: #8e8e93;
  --gray-500: #636366;
  --gray-600: #48484a;
  --radius: 12px;
}

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

html {
  font-size: 16px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

/* --------------------------------------------
   Typography
   -------------------------------------------- */

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-top: 1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 0.875rem;
  color: var(--gray-600);
}

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

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

code {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85em;
  background: var(--gray-100);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--ink);
}

/* --------------------------------------------
   Layout
   -------------------------------------------- */

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background: var(--white);
}

/* --------------------------------------------
   Logo
   -------------------------------------------- */

.logotype {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logotype svg {
  height: 0.72em;
  width: 2.2em;
  display: block;
}

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

.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 2.5rem 2rem;
  margin: -2rem -2.5rem 2rem;
}

.site-header .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.site-header h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.site-header .tagline {
  color: var(--blue);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

/* Syllabus header variant */
.syllabus-header {
  background: var(--ink);
  color: var(--white);
  padding: 2rem 2.5rem 1.5rem;
  margin: -2rem -2.5rem 1.5rem;
  border-bottom: 4px solid var(--coral);
}

.syllabus-header .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.syllabus-header h1 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.syllabus-header .meta {
  color: var(--blue);
  font-size: 0.9375rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 0.375rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------
   Problem / Difference blocks
   -------------------------------------------- */

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

.problem-box h3 {
  font-size: 1rem;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.problem-box ul {
  list-style: none;
  padding: 0;
}

.problem-box li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.problem-box li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* --------------------------------------------
   Tables
   -------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

thead {
  background: var(--gray-100);
}

th {
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  color: var(--gray-600);
}

tr:last-child td {
  border-bottom: 2px solid var(--gray-200);
}

/* Comparison table */
.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 45%;
}

.comparison-table td {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Investment table highlight */
.investment-table tr:last-child {
  background: var(--gray-100);
}

.investment-table td:last-child {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--coral);
  white-space: nowrap;
}

/* Packages table — no pricing column */
.packages-table tr:last-child {
  background: var(--gray-100);
}

.packages-table td:first-child {
  white-space: nowrap;
}

/* --------------------------------------------
   Track cards
   -------------------------------------------- */

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

.track-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.track-card h3 {
  font-size: 1.0625rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.track-card .track-meta {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.track-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.track-card li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.track-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coral);
}

/* --------------------------------------------
   Audience pills
   -------------------------------------------- */

.audience-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.audience-list li {
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--gray-600);
}

.audience-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--coral);
}

.audience-list strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

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

.cta-box {
  background: var(--bg);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.cta-box p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.cta-box .email {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
}

.page-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

/* --------------------------------------------
   Syllabus-specific styles
   -------------------------------------------- */

.module {
  margin-bottom: 1.75rem;
  page-break-inside: avoid;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.module-header h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.module-duration {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.module-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.module ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.module li {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.module li > ul {
  list-style: circle;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.module li > ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.module .hands-on {
  background: var(--bg);
  border-left: 3px solid var(--coral);
  padding: 0.625rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  border-radius: 0 4px 4px 0;
}

.module .hands-on strong {
  color: var(--coral);
}

.day-header {
  background: var(--bg);
  padding: 0.875rem 1.25rem;
  margin: 2rem -2.5rem 1.5rem;
  border-left: 4px solid var(--coral);
  page-break-after: avoid;
}

.day-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.discovery-section {
  background: #fdf4f6;
  border: 1px solid #f5d0d9;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  page-break-inside: avoid;
}

.discovery-section h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--coral);
}

.discovery-section ul {
  list-style: none;
  padding: 0;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.discovery-section li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.discovery-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coral);
}

.resource-list {
  list-style: none;
  padding: 0;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.resource-list li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.resource-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coral);
}

capstone-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  page-break-inside: avoid;
}

capstone-box h3 {
  margin-top: 0;
}

capstone-box ol {
  padding-left: 1.25rem;
}

capstone-box li {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.platform-requirements {
  background: var(--gray-100);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.platform-requirements h3 {
  margin-top: 0;
  font-size: 1rem;
}

/* --------------------------------------------
   Utility
   -------------------------------------------- */

.lead {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.note {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-style: italic;
}

.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 1.5rem 0;
}

/* --------------------------------------------
   Print styles
   -------------------------------------------- */

@media print {
  @page {
    margin: 0.6in 0.7in;
    size: letter;
  }

  html {
    font-size: 10.5pt;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page, .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .site-header {
    margin: 0 0 1.5rem;
    padding: 1.25rem 0 1rem;
    background: var(--ink) !important;
    color: #fff !important;
    border-bottom: 3px solid var(--coral);
  }

  .site-header .brand,
  .site-header .tagline {
    color: #bdd5ea !important;
  }

  .site-header h1 {
    color: #fff !important;
  }

  .syllabus-header {
    margin: 0 0 1.25rem;
    padding: 1rem 0 0.75rem;
    background: var(--ink) !important;
    color: #fff !important;
    border-bottom: 3px solid var(--coral);
    border-left: none;
  }

  .syllabus-header .brand,
  .syllabus-header .meta {
    color: #bdd5ea !important;
  }

  .syllabus-header h1 {
    color: #fff !important;
  }

  .section-title {
    color: var(--coral) !important;
    border-bottom-color: var(--coral) !important;
  }

  a {
    color: var(--coral) !important;
    text-decoration: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  a[href^="mailto:"]::after {
    content: "";
  }

  .track-card,
  .cta-box,
  .discovery-section,
  .hands-on,
  .platform-requirements {
    background: none !important;
    border-color: #ccc !important;
  }

  .hands-on {
    border-left-color: var(--coral) !important;
  }

  .day-header {
    background: none !important;
    margin: 1.5rem 0 1rem;
    padding: 0.5rem 0;
    border-left: 3px solid var(--coral) !important;
  }

  table {
    font-size: 0.85rem;
  }

  thead {
    background: #f0f0f0 !important;
  }

  th, td {
    border-color: #ccc !important;
  }

  .problem-box li::before,
  .track-card li::before,
  .audience-list li::before {
    color: var(--coral) !important;
  }

  /* One-pager: force single page */
  .one-pager {
    page-break-after: always;
  }

  /* Syllabus page breaks */
  .module {
    page-break-inside: avoid;
  }

  .day-header {
    page-break-after: avoid;
  }

  .discovery-section {
    page-break-inside: avoid;
  }

  .page-footer {
    margin-top: 1.5rem;
    border-color: #ccc;
  }

  p, li, td {
    color: #333 !important;
  }

  strong {
    color: #000 !important;
  }
}

/* --------------------------------------------
   Markdown-driven layout helpers
   -------------------------------------------- */

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.audience-list li em {
  color: var(--gray-500);
}

.investment-table td em {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: 0.35rem;
}

/* --------------------------------------------
   Screen-only enhancements
   -------------------------------------------- */

@media screen {
  .page {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 2rem auto;
    border-radius: var(--radius);
    min-height: 100vh;
  }

  .one-pager {
    min-height: auto;
  }
}
