/* ──────────────────────────────────────────────
   Northcourse Landing Page — styles.css
   Brand: Classical Restraint
   ────────────────────────────────────────────── */

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

:root {
  --paper:       #F5F1E8;
  --surface:     #FAF6EC;
  --surface-deep:#EEE7D6;
  --ink:         #1C1816;
  --ink-soft:    #4A413B;
  --ink-faint:   #8A7F74;
  --plum:        #5B2840;
  --plum-deep:   #3F1A2C;
  --rule:        #D8CFBE;
  --rule-faint:  rgba(28, 24, 22, 0.10);
  --radius:      12px;
  --section-gap: 96px;
  --content-max: 1100px;
}

/* Tablet: ease section rhythm */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
}
/* Small phones: tighter still */
@media (max-width: 480px) {
  :root { --section-gap: 52px; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--plum); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ── Typography ── */
.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 400; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.label-caps {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
}

/* ── Layout ── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-gap) 0;
}

/* ── Star SVG (inline helper) ── */
.nc-star {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: var(--plum);
  flex-shrink: 0;
}
.nc-star svg { width: 100%; height: 100%; }

/* ── Decorative star divider ── */
.star-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  max-width: 200px;
}
.star-divider .line {
  flex: 1;
  height: 1px;
  background: var(--plum);
  opacity: 0.25;
}
.star-divider .nc-star { width: 14px; height: 14px; }


/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-faint);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-lockup .nc-star { width: 22px; height: 22px; }
.header-wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--plum); opacity: 1; }
.header-nav .btn-nav-cta {
  background: var(--plum);
  color: var(--paper);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.header-nav .btn-nav-cta:hover { opacity: 0.9; color: var(--paper); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--rule-faint);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-faint);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn-nav-cta {
  display: inline-block;
  text-align: center;
  background: var(--plum);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
}


/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: clip;
  min-height: calc(100svh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
}
.hero .container { width: 100%; }
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 560px;
  max-width: 120%;
  color: var(--plum);
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark svg { width: 100%; height: 100%; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 480px) {
  .hero-watermark { width: 340px; opacity: 0.03; }
}

.form-privacy {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.55;
  margin-top: 4px;
  max-width: 420px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 780px;
  margin: 0 auto 18px;
}
.hero .tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--plum);
  margin-bottom: 20px;
}
.hero .sub-text {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}


/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--plum);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; color: var(--paper); }

.btn-secondary {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-secondary:hover { opacity: 0.85; }


/* ═══════════════════════════════════════════════
   PROBLEM
   ═══════════════════════════════════════════════ */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.problem .inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.problem h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 28px;
}
.problem p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.problem p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════
   PILLARS (What Northcourse is)
   ═══════════════════════════════════════════════ */
.pillars h2 {
  text-align: center;
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 16px;
}
.pillars .section-intro {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 56px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  padding: 32px;
}
.pillar-card .label-caps { margin-bottom: 12px; display: block; }
.pillar-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.pillar-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.pillar-card .hero-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .pillar-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════
   FOR SCHOOLS
   ═══════════════════════════════════════════════ */
.for-schools {
  background: var(--surface);
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.for-schools h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 16px;
}
.for-schools .section-intro {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
  max-width: 680px;
}
.benefits-list li {
  font-size: 16px;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}
.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  color: var(--plum);
  background: currentColor;
  clip-path: polygon(50% 0%, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0% 50%, 43% 43%);
}


/* ═══════════════════════════════════════════════
   FOR FAMILIES
   ═══════════════════════════════════════════════ */
.for-families h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 16px;
}
.for-families .section-intro {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.family-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.family-card {
  background: var(--surface);
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius);
  padding: 32px;
}
.family-card .label-caps { display: block; margin-bottom: 12px; }
.family-card h3 { font-size: 22px; margin-bottom: 12px; }
.family-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .family-columns { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════
   DEMO FORM
   ═══════════════════════════════════════════════ */
.demo-section {
  background: var(--surface);
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.demo-section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
}
.demo-section .section-intro {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; }

.demo-aside {
  padding-top: 16px;
}
.demo-aside h3 {
  font-size: 22px;
  margin-bottom: 16px;
}
.demo-aside p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 24px;
}
.contact-alt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-alt a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--plum);
}

@media (max-width: 768px) {
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  padding: 56px 0;
  text-align: center;
}
.footer-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-lockup .nc-star { width: 18px; height: 18px; }
.footer-wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.footer-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.footer-legal {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.footer-legal a { color: var(--ink-faint); }


/* ═══════════════════════════════════════════════
   THANK-YOU PAGE
   ═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   PRIVACY POLICY PAGE
   ═══════════════════════════════════════════════ */
.policy-page {
  padding: 64px 0 96px;
}
.policy-content {
  max-width: 720px;
  margin: 0 auto;
}
.policy-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--plum);
  margin-bottom: 40px;
}
.policy-page h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 8px;
}
.policy-updated {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.policy-content h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.policy-content p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.policy-content p:last-child { margin-bottom: 0; }
.policy-content a { color: var(--plum); }


.thank-you-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.thank-you-page .nc-star { width: 48px; height: 48px; margin-bottom: 32px; }
.thank-you-page h1 {
  font-size: 36px;
  margin-bottom: 16px;
}
.thank-you-page p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.thank-you-page .auto-return {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.thank-you-page .auto-return a { color: var(--plum); }


/* ═══════════════════════════════════════════════
   SMALL-PHONE REFINEMENTS (≤480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .hero { padding: 32px 0; }
  .hero .sub-text { font-size: 16px; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .pillar-card { padding: 24px; }
  .family-card { padding: 24px; }

  .benefits-list li { font-size: 15px; }

  .demo-section .section-intro,
  .for-schools .section-intro,
  .for-families .section-intro,
  .pillars .section-intro { font-size: 16px; }

  /* Keep the WhatsApp/email aside above-comfortable on small screens */
  .demo-aside { padding-top: 0; }

  .thank-you-page h1 { font-size: 30px; }
  .thank-you-page p { font-size: 16px; }
}

/* Prevent horizontal overflow without breaking sticky header */
body { overflow-x: clip; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
