/* ============================================
   Hippocampe Academy — design tokens
   Matched from live site screenshots.
   Type: Baloo 2 (display/headings/wordmark) / Public Sans (body) / IBM Plex Mono (eyebrows, captions)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #10134E;
  --paper: #FDFCF9;
  --paper-alt: #F3EFE4;
  --paper-raised: #FFFFFF;
  --coral: #EE5E1B;
  --coral-dark: #C74A0F;
  --highlight: #F9D0BB;
  --caption-blue: #86A9D6;
  --text: #23264F;
  --text-soft: #585B84;
  --text-nav: #6A6C93;
  --line: #E7E2D6;
  --line-on-ink: rgba(255, 255, 255, 0.14);
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Public Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-top: 3px solid var(--coral);
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-soft); }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

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

header.site { background: var(--paper); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; flex-shrink: 0; }
.brand-word { font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--ink); }

nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a { color: var(--text-nav); font-size: 0.9rem; font-weight: 500; }
nav.main-nav a:hover { text-decoration: none; color: var(--ink); }
nav.main-nav a.active { color: var(--ink); font-weight: 600; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--coral-dark); text-decoration: none !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; color: var(--ink); }

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 40;
  }
  nav.main-nav.open { max-height: 400px; }
  nav.main-nav a { width: 100%; padding: 14px 28px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 14px 28px; display: inline-block; }
  .menu-toggle { display: block; }
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
  display: block;
}

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

.hero { padding: 60px 0 88px; }
.hero h1 { max-width: 15ch; }
mark.hl { background: var(--highlight); color: var(--ink); padding: 0 6px; border-radius: 3px; }
.hero .lede { font-size: 1.12rem; max-width: 46ch; margin-top: 18px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }


.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-text { max-width: 560px; }

.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-banner img { width: 100%; height: auto; display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.96rem; border: 1px solid transparent;
  cursor: pointer; font-family: 'Public Sans', sans-serif;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: var(--paper-raised); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

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

section { padding: 72px 0; }
section.tight { padding: 52px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 62ch; margin-bottom: 44px; }

/* ---------- Card grid ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 860px) { .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; } }

.card .module-title {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
  margin: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card .module-title:first-of-type { margin-top: 16px; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-soft); font-size: 0.96rem; }
.card li { margin-bottom: 7px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.card .icon { width: 26px; height: 26px; color: var(--coral); margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { flex: 1; font-size: 0.96rem; margin-bottom: 0; }
.card .note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; color: var(--coral);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 18px;
}
.card .go {
  margin-top: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--coral); text-transform: uppercase;
}
a.card { transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { text-decoration: none; border-color: var(--coral); transform: translateY(-2px); }

.level-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 600px) {
  .level-card { grid-template-columns: 1fr; }
  .level-card .photo-frame.small { max-width: 200px; margin: 0 auto; }
}

/* ---------- Split / founder ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Callout ---------- */

.callout {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.callout h2, .callout p { color: #fff; }
.callout p { opacity: 0.85; margin-bottom: 0; }

/* ---------- Forms ---------- */

form.contact-form { display: grid; gap: 20px; max-width: 540px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-nav);
}
.field input, .field select, .field textarea {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.96rem; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-raised); color: var(--text);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); outline: none; }
.field input::placeholder { color: #B8B6C4; }

.contact-info h3 { margin-bottom: 20px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .item svg { width: 20px; height: 20px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.contact-info .item a, .contact-info .item span { color: var(--text-soft); font-size: 0.95rem; }
.contact-info .item a.underline { text-decoration: underline; }

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

footer.site { background: var(--ink); color: var(--text-soft); padding: 18px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left .badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-left .badge img { width: 20px; height: 20px; }
.footer-left span { font-size: 0.88rem; color: #B7B9D9; letter-spacing: 0.02em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: #fff; font-size: 0.9rem; text-decoration: underline; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 16px 48px rgba(16, 19, 78, 0.18);
  z-index: 100;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.cookie-banner p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0 0 20px;
}
.cookie-banner p a { color: var(--coral); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
}
.cookie-actions button:hover { border-color: var(--ink); }
.cookie-actions .accept {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.cookie-actions .accept:hover { background: var(--coral-dark); border-color: var(--coral-dark); }

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

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }

/* ---------- Info block ---------- */

.info-block {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 0;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}
.info-row:last-child { border-bottom: none; }
.info-row .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-nav);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-row .value { font-weight: 700; color: var(--ink); }

/* ---------- Checklist ---------- */

.checklist { display: grid; gap: 14px; }
.checklist .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
}
.checklist .item svg { width: 20px; height: 20px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }

/* ---------- Method steps ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .step-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .step-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.step .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--coral);
  margin-bottom: 12px;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Photo frame (placeholder for future photos) ---------- */

.photo-frame {
  background: linear-gradient(135deg, var(--ink) 0%, #1B2066 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame svg { width: 30%; height: 30%; color: rgba(255,255,255,0.18); }
.photo-frame.small { aspect-ratio: 1 / 1; }

/* ---------- Feature strip ---------- */

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 24px 0 8px;
}
.feature-strip .feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.feature-strip .feature svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; }

/* ---------- Promo bar ---------- */

.promo-bar {
  background: var(--coral);
  color: #fff;
  padding: 16px 0;
}
.promo-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.promo-bar .items {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 600;
}
.promo-bar .items span.sep { opacity: 0.6; font-weight: 400; }
.promo-bar .btn-promo {
  background: #fff;
  color: var(--coral-dark);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.promo-bar .btn-promo:hover { text-decoration: none; background: var(--ink); color: #fff; }

/* ---------- Page header ---------- */

.page-header { padding: 64px 0 48px; }
.page-header .lede { max-width: 62ch; font-size: 1.08rem; margin-top: 14px; }

/* ---------- Notice ---------- */

.notice {
  background: rgba(238, 94, 27, 0.08);
  border: 1px solid rgba(238, 94, 27, 0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.notice strong { color: var(--ink); }

/* ---------- Legal text page ---------- */

.legal h3 { margin-top: 2em; }
.legal p { max-width: 70ch; }
