/* ============================================================
   Homeschool OS — Design System
   Warm, modern, family command centre.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #FBF6EE;
  --bg-2: #F5EDE0;
  --card: #FFFFFF;
  --card-elev: #FFFCF6;

  /* Brand */
  --primary: #C97B4E;
  --primary-hover: #B36A3F;
  --primary-soft: #F4DECC;
  --primary-ink: #6B3B1F;

  --sage: #7FA68A;
  --sage-soft: #DDE9DF;
  --sage-ink: #3C5A47;

  --gold: #E8B547;
  --gold-soft: #FAEABA;
  --gold-ink: #8C6612;

  --plum: #9C7AB5;
  --plum-soft: #E7DCF1;

  /* North Star palette */
  --midnight: #2A3954;
  --midnight-deep: #1B2538;
  --midnight-soft: #D8DEEA;
  --starlight: #F4E9C5;
  --dawn: #FBE3D0;

  --sky: #6FA9C4;
  --sky-soft: #D9EAF2;

  --coral: #E08868;
  --coral-soft: #FBE0D4;

  /* Text */
  --text: #2D2317;
  --text-muted: #7A6F60;
  --text-soft: #A89C8C;

  /* Lines */
  --border: #EADFCD;
  --border-strong: #D9CBB3;
  --divider: #F1E7D4;

  /* States */
  --danger: #C45757;
  --success: #5C9A6A;
  --warning: #D9A33C;

  /* Radius + shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(70, 50, 30, 0.05);
  --shadow-md: 0 6px 18px -8px rgba(70, 50, 30, 0.18), 0 2px 4px rgba(70, 50, 30, 0.05);
  --shadow-lg: 0 24px 48px -20px rgba(70, 50, 30, 0.25), 0 4px 10px rgba(70, 50, 30, 0.06);

  /* Type */
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0; margin: 0; color: var(--text); }
h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; }

p { margin: 0 0 8px; }
small, .small { font-size: 13px; color: var(--text-muted); }

/* ---------- Type scale ----------------------------------------------------
   Four roles, used everywhere — nothing bespoke. Eyebrow (the small tracked
   uppercase label), Headline (serif page/display), Subhead (serif section),
   Body + Body-sm (sans). If a new bit of text needs a style, it picks one of
   these; we do not invent another size. */
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft);
}
.t-headline { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: 0; color: var(--text); }
.t-subhead  { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: 0; color: var(--text); }
.t-body     { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--text); }
.t-body-sm  { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Layout shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #F5EBD9 0%, #F0E2C9 100%);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 6px;
}
.sidebar-brand-block {
  padding: 4px 10px 22px;
}
.sidebar-family-name {
  margin-top: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--coral));
  display: grid; place-items: center; color: white; font-family: var(--font-serif);
  font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand-mark-star {
  background: linear-gradient(135deg, var(--midnight), var(--midnight-deep));
  color: var(--starlight);
  border-radius: 12px;
}
.brand-text { font-family: var(--font-serif); font-weight: 600; font-size: 17px; }
.brand-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-section { margin-top: 18px; }
.nav-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); padding: 0 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-md);
  color: var(--text); font-weight: 500;
  margin: 2px 0; transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.55); text-decoration: none; }
.nav-item.active {
  background: var(--card); box-shadow: var(--shadow-sm);
  color: var(--primary-ink);
}
.nav-item .ico { width: 18px; height: 18px; display: inline-block; }
.nav-item .badge {
  margin-left: auto; background: var(--primary-soft); color: var(--primary-ink);
  font-size: 11px; padding: 2px 7px; border-radius: var(--r-pill);
}

.sidebar-footer {
  margin-top: auto; padding: 14px 10px; font-size: 12px; color: var(--text-muted);
}
.sidebar-account {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
}
.sidebar-account > div:first-child { flex: 1; min-width: 0; font-weight: 600; color: var(--text); font-size: 12px; }

.main { padding: 28px 36px 80px; max-width: 1280px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.topbar h1 { font-size: 28px; }
.topbar .sub { color: var(--text-muted); margin-top: 4px; font-size: 14px; }

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em;
  background: rgba(255, 252, 246, 0.7);
  color: var(--text);
  border: 1px solid rgba(217, 203, 179, 0.7);
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: var(--card);
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 6px 14px -8px rgba(42, 57, 84, 0.18), 0 1px 3px rgba(42, 57, 84, 0.05);
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 6px -1px rgba(201, 123, 78, 0.28), 0 1px 2px rgba(201, 123, 78, 0.12);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 10px 22px -8px rgba(201, 123, 78, 0.42), 0 3px 8px rgba(201, 123, 78, 0.16);
}
.btn-sage {
  background: var(--sage); color: white; border-color: transparent;
  box-shadow: 0 2px 6px -1px rgba(127, 166, 138, 0.28), 0 1px 2px rgba(127, 166, 138, 0.12);
}
.btn-sage:hover {
  background: #688D74; color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(127, 166, 138, 0.4), 0 3px 8px rgba(127, 166, 138, 0.16);
}
.btn-ghost {
  background: transparent; border-color: transparent; color: var(--text-muted);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(42, 57, 84, 0.05);
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-elev { box-shadow: var(--shadow-md); }
.card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-title { font-family: var(--font-serif); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.card-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--bg-2); color: var(--text-muted);
}
.tag-primary { background: var(--primary-soft); color: var(--primary-ink); }
.tag-sage   { background: var(--sage-soft); color: var(--sage-ink); }
.tag-gold   { background: var(--gold-soft); color: var(--gold-ink); }
.tag-plum   { background: var(--plum-soft); color: #5A3F76; }
.tag-sky    { background: var(--sky-soft); color: #2E5A72; }
.tag-coral  { background: var(--coral-soft); color: #8C3F23; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .main { padding: 22px; }
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-tight { display: flex; flex-direction: column; gap: 6px; }

.divider { height: 1px; background: var(--divider); margin: 16px 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-muted); }
.input, .textarea, .select {
  padding: 10px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); background: var(--card-elev);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}
.textarea { min-height: 90px; resize: vertical; font-family: inherit; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 123, 78, 0.13);
}
/* Placeholders read as quiet, instructional examples — never like real answers. */
.input::placeholder, .textarea::placeholder {
  color: #B7AC99; font-size: 0.92em; font-style: italic;
  opacity: 1;  /* Firefox dims by default; we set our own subtle tone */
}
.input::-webkit-input-placeholder, .textarea::-webkit-input-placeholder {
  color: #B7AC99; font-size: 0.92em; font-style: italic;
}

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); font-size: 13px; cursor: pointer;
  background: var(--card-elev); transition: all 0.15s ease;
}
.chip:hover { background: var(--primary-soft); border-color: var(--primary); }
.chip.selected { background: var(--primary); color: white; border-color: var(--primary); }

/* ---------- Sliders ---------- */
.slider-wrap { padding: 18px 0; }
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--sage-soft), var(--primary-soft), var(--coral-soft));
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: white; border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.15s ease;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: white; border: 3px solid var(--primary); cursor: pointer;
}
.slider-scale {
  display: flex; justify-content: space-between;
  margin-top: 10px; font-size: 11px; color: var(--text-muted);
}

/* ---------- Stars + progress ---------- */
.star-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-soft);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  position: relative;
}
.star-btn:hover { background: var(--gold-soft); color: var(--gold-ink); transform: scale(1.05); }
.star-btn.earned {
  background: var(--gold); color: white;
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: starPop 0.5s ease;
}
@keyframes starPop {
  0% { transform: scale(0.5) rotate(-20deg); }
  60% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.sparkle {
  position: absolute; pointer-events: none;
  font-size: 18px; animation: sparkleFloat 0.9s ease forwards;
}
@keyframes sparkleFloat {
  0% { opacity: 1; transform: translate(0,0) scale(0.5); }
  100% { opacity: 0; transform: translate(var(--dx, 20px), var(--dy, -30px)) scale(1.4); }
}

.progress-ring { --p: 50; --size: 64px; --stroke: 8px;
  width: var(--size); height: var(--size); position: relative;
  display: inline-grid; place-items: center;
}
.progress-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p)*1%), var(--border) 0);
  mask: radial-gradient(farthest-side, transparent calc(50% - var(--stroke)), #000 calc(50% - var(--stroke) + 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - var(--stroke)), #000 calc(50% - var(--stroke) + 1px));
}
.progress-ring .ring-label { font-weight: 700; font-size: 14px; z-index: 1; }

.progress-bar { height: 8px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--primary); border-radius: var(--r-pill); transition: width 0.4s ease; }

/* ---------- Countdown ---------- */
.countdown { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown .seg {
  background: var(--card-elev); border: 1px solid var(--border);
  padding: 4px 8px; border-radius: var(--r-md); font-size: 13px;
}
.countdown .seg b { font-weight: 700; }
.countdown.compact .seg { padding: 2px 6px; font-size: 12px; }
.countdown.overdue .seg { background: #FBEAE5; border-color: #E8B8AB; color: #8C3F23; }

/* ---------- Child card ---------- */
.child-card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 22px;
  color: white; flex-shrink: 0;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(45, 35, 23, 0.4); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  z-index: 100; animation: fadeIn 0.18s ease;
}
.modal {
  background: var(--card); border-radius: var(--r-xl);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: modalIn 0.2s ease;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px 0;
}
.modal-body { padding: 16px 24px 24px; }
.modal-foot {
  padding: 16px 24px; border-top: 1px solid var(--divider);
  display: flex; justify-content: flex-end; gap: 10px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast-host {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200;
}
.toast {
  background: var(--text); color: white;
  padding: 12px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.22s ease;
}
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); color: #3F2E1E; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Welcome / Onboarding ---------- */
.welcome {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(ellipse at top, #FCEBD8 0%, var(--bg) 60%);
  padding: 40px 20px;
}
.welcome-card {
  background: var(--card); border-radius: var(--r-xl);
  padding: 40px; max-width: 720px; width: 100%;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.welcome-card h1 { font-size: 38px; margin-bottom: 8px; }
.welcome-card .lede { font-size: 17px; color: var(--text-muted); margin-bottom: 24px; }
.step-indicator {
  display: flex; gap: 6px; margin-bottom: 20px;
}
.step-indicator .dot {
  flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--border);
}
.step-indicator .dot.active { background: var(--primary); }
.step-indicator .dot.done { background: var(--sage); }

/* ---------- Child portal (kid mode) ---------- */
.child-portal {
  min-height: 100vh;
  background: radial-gradient(ellipse at top right, #FBE3D0 0%, var(--bg) 50%);
}
.child-portal .topbar-kid {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px; max-width: 1100px; margin: 0 auto;
}
.child-portal .kid-content { max-width: 1100px; margin: 0 auto; padding: 12px 32px 60px; }
.kid-hello { font-family: var(--font-serif); font-size: 38px; margin-bottom: 4px; }
.kid-mood { color: var(--text-muted); font-size: 16px; margin-bottom: 22px; }

.mission-card {
  display: flex; gap: 16px; align-items: center;
  padding: 18px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.mission-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.points-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-soft); color: var(--gold-ink);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px;
}

/* Project HQ cover */
.hq-cover {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Celebration — confetti + sparkle burst
   ============================================================ */
.confetti-root, .sparkle-root {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
}
.confetti-piece {
  position: fixed;
  width: 10px; height: 14px; border-radius: 2px;
  opacity: 0.95;
  will-change: transform, opacity;
  pointer-events: none;
}
@keyframes confettiFly {
  0%   { transform: translate(0,0) rotate(0); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
.sparkle-burst {
  position: fixed;
  font-size: 20px; color: var(--gold);
  text-shadow: 0 0 12px rgba(244, 233, 197, 0.6);
  animation: sparkleFly 1.2s cubic-bezier(.2,.6,.4,1) forwards;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes sparkleFly {
  0%   { transform: translate(0,0) scale(0.4); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; }
}

/* ============================================================
   Submission modal — upload zone + evidence tiles
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--card-elev);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone.dragover {
  border-color: var(--primary); background: var(--primary-soft);
  transform: scale(1.02);
}
.upload-zone-icon {
  font-size: 28px; color: var(--text-muted); margin-bottom: 8px;
}

.upload-list {
  display: grid; gap: 8px;
}
.upload-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--r-md);
  background: var(--card-elev); border: 1px solid var(--border);
}
.upload-item img {
  width: 50px; height: 50px;
  object-fit: cover; border-radius: 6px;
  flex-shrink: 0;
}
.upload-thumb {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--midnight-soft); color: var(--midnight);
  border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ============================================================
   Evidence tiles (Project HQ + Portfolio)
   ============================================================ */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.evidence-tile {
  background: var(--card-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.evidence-tile img {
  width: 100%; aspect-ratio: 1.3; object-fit: cover;
  display: block; cursor: zoom-in;
  transition: transform 0.2s ease;
}
.evidence-tile img:hover { transform: scale(1.02); }
.evidence-tile audio,
.evidence-tile video { display: block; margin: 8px; }
.evidence-tile-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--border);
}
.evidence-note {
  padding: 14px;
}
.evidence-pdf {
  display: block; padding: 24px 16px;
  text-align: center; background: var(--card);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.evidence-pdf:hover { background: var(--bg-2); text-decoration: none; }

.mission-card-wrap { display: flex; flex-direction: column; gap: 0; }
.mission-evidence {
  background: var(--card-elev);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  margin-top: -1px;
  padding: 14px 16px 16px;
}
.submission-note {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

/* Sound toggle in kid header */
#sound-toggle { font-size: 18px; padding: 4px 10px; }

/* ---------- Calendar ---------- */
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 12px;
}
.cal-head { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 6px; text-align: center; }
.cal-cell {
  min-height: 80px; padding: 6px; border-radius: var(--r-sm);
  background: var(--card-elev); border: 1px solid transparent;
  font-size: 12px;
}
.cal-cell.today { border-color: var(--primary); background: #FDF6EE; }
.cal-cell.muted { opacity: 0.4; }
.cal-cell .d { font-weight: 700; color: var(--text-muted); }
.cal-event {
  display: block; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 600; margin-top: 3px;
  background: var(--primary-soft); color: var(--primary-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-event.dom-build  { background: var(--coral-soft); color: #8C3F23; }
.cal-event.dom-brain  { background: var(--plum-soft); color: #5A3F76; }
.cal-event.dom-money  { background: var(--gold-soft); color: var(--gold-ink); }
.cal-event.dom-house  { background: var(--sage-soft); color: var(--sage-ink); }
.cal-event.dom-community { background: var(--sky-soft); color: #2E5A72; }
.cal-event.dom-body   { background: #F4D6CC; color: #8C3F23; }
.cal-event.dom-faith  { background: #ECE2F4; color: #5A3F76; }

/* ---------- Misc ---------- */
.kbd {
  font-family: ui-monospace, monospace; font-size: 12px;
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}
.empty {
  text-align: center; padding: 40px 24px; color: var(--text-muted);
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg);
}
.empty .emoji { font-size: 38px; margin-bottom: 8px; }

/* Focus-panel accordions — collapsible category sections in the quest generator */
.focus-acc {
  border: 1px solid var(--border); border-radius: var(--r-md);
  margin-top: 8px; background: var(--card); overflow: hidden;
}
.focus-acc__head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer; -webkit-user-select: none; user-select: none;
  list-style: none; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.focus-acc__head::-webkit-details-marker { display: none; }
.focus-acc__label { flex: 1; }
.focus-acc__count {
  font-size: 11px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--primary-ink);
  background: var(--primary-soft); padding: 2px 8px; border-radius: var(--r-pill);
}
.focus-acc__count:empty { display: none; }
.focus-acc__chev { transition: transform 0.18s ease; font-size: 14px; }
.focus-acc[open] .focus-acc__chev { transform: rotate(180deg); }
.focus-acc[open] .focus-acc__head { border-bottom: 1px solid var(--divider); }
.focus-acc .chip-group { padding: 12px 14px; }

/* ===========================================================================
   Family North Star — editorial accordions (a calm family constitution).
   Closed = a quiet row with a hairline beneath. No cards, borders or shadows
   competing. Expanded content simply breathes open below. Whitespace does the work.
   =========================================================================== */
.ns-acc-stack { display: block; }
.ns-acc { border-bottom: 1px solid var(--divider); }
.ns-acc:last-child { border-bottom: none; }
.ns-acc__head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  -webkit-user-select: none; user-select: none;
}
.ns-acc__head::-webkit-details-marker { display: none; }
.ns-acc__head:focus { outline: none; }
.ns-acc__head:focus-visible .ns-acc__title {
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px; text-decoration-color: var(--primary-soft);
}
.ns-acc__title {
  flex: 1;
  /* Subhead role (see type scale) */
  font-family: var(--font-serif); font-weight: 500; font-size: 19px;
  letter-spacing: 0; color: var(--text); line-height: 1.25;
  transition: color 0.18s ease;
}
.ns-acc__head:hover .ns-acc__title { color: var(--primary-ink); }
.ns-acc__chev {
  color: var(--text-muted); font-size: 12px; flex-shrink: 0; opacity: 0.7;
  transition: transform 0.24s ease;
}
.ns-acc[open] .ns-acc__chev { transform: rotate(180deg); }
.ns-acc__body { padding: 0 2px 30px; max-width: 680px; }

/* Section explanation copy — quiet, smaller than the title, with breathing room */
.ns-acc__intro {
  font-size: 13.5px; line-height: 1.7; color: var(--text-muted);
  max-width: 60ch; margin: 0 0 20px;
}
.ns-acc__body .field { margin-bottom: 22px; }
.ns-acc__body .field:last-child { margin-bottom: 0; }
.ns-acc__body label { font-size: 13.5px; }

/* A person in the Relationship Map — a light row, never a card-in-a-card. */
.ns-person { padding: 16px 0; border-bottom: 1px solid var(--divider); }
.ns-person:first-child { padding-top: 4px; }
.ns-person:last-of-type { border-bottom: none; }
.ns-person .field { margin: 0; }

/* Textareas on the North Star page: comfortable to read, auto-sizing (the page
   scrolls, never the box). Heights are driven in JS from content. */
.ns-acc__body .textarea {
  font-size: 15px; line-height: 1.7; color: var(--text);
  min-height: 0; resize: none; overflow: hidden;
}

/* Soft section open — a gentle settle, never a snap. */
.ns-acc[open] > .ns-acc__body { animation: nsAccIn 0.26s ease; }
@keyframes nsAccIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Suggestion buttons — quiet and secondary (Notion-AI feel), never competing. */
.btn-suggest {
  padding: 6px 13px; font-size: 12.5px; font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--card-elev); color: var(--primary-ink);
  border: 1px solid var(--border);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-suggest:hover {
  background: var(--primary-soft); border-color: var(--primary-soft);
  transform: translateY(-1px); box-shadow: none;
}

/* AI-suggested focus chips — subtly distinct from the parent's own entries */
.chip-suggested {
  border-style: dashed !important;
  background: transparent;
}
.chip-suggested.selected { border-style: solid !important; }

/* Focus-panel chips: selected = soft tint (distinct from the solid burnt-orange CTA),
   with a deeper warm hover so selection and the Generate button never look the same. */
.chip[data-focus-key].selected {
  background: var(--primary-soft);
  color: var(--primary-ink);
  border-color: var(--primary);
  font-weight: 600;
}
.chip[data-focus-key]:hover {
  background: color-mix(in srgb, var(--primary) 26%, white);
  border-color: var(--primary);
}
.chip[data-focus-key].selected:hover {
  background: color-mix(in srgb, var(--primary) 38%, white);
}

/* AI quest-generating animation — stars orbiting a flat, horizontal 3D ring */
.ns-generating { padding: 48px 24px; }
.ns-gen-stars {
  position: relative; height: 56px; width: 100%;
  margin-bottom: 12px;
}
.ns-gen-star {
  position: absolute; left: 50%; top: 50%;
  font-size: 30px; line-height: 1;
  transform: translate(-50%, -50%);
  animation: nsGenOrbit 3.12s linear infinite;
}
/* Equally space the three stars around the orbit via negative delays. */
.ns-gen-star:nth-child(2) { animation-delay: -1.04s; }
.ns-gen-star:nth-child(3) { animation-delay: -2.08s; }
/* Travel around a wide, shallow ellipse: big sideways sweep, small vertical
   sweep, scaling + dimming toward the back to fake depth (front = nearer/bigger). */
@keyframes nsGenOrbit {
  0%   { transform: translate(-50%, -50%) translate(0, -7px)  scale(0.6);  opacity: 0.45; z-index: 0; }
  25%  { transform: translate(-50%, -50%) translate(26px, 0)  scale(0.85); opacity: 0.8;  z-index: 1; }
  50%  { transform: translate(-50%, -50%) translate(0, 7px)   scale(1.12); opacity: 1;    z-index: 3; }
  75%  { transform: translate(-50%, -50%) translate(-26px, 0) scale(0.85); opacity: 0.8;  z-index: 1; }
  100% { transform: translate(-50%, -50%) translate(0, -7px)  scale(0.6);  opacity: 0.45; z-index: 0; }
}
.ns-gen-dots span {
  animation: nsGenDot 1.4s ease-in-out infinite; opacity: 0;
}
.ns-gen-dots span:nth-child(2) { animation-delay: 0.2s; }
.ns-gen-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nsGenDot {
  0%, 80%, 100% { opacity: 0; }
  40%           { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-gen-star, .ns-gen-dots span { animation-duration: 0.001s; animation-iteration-count: 1; opacity: 1; }
}

.metric {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: var(--r-lg);
  background: var(--card-elev); border: 1px solid var(--border);
}
.metric .v { font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
.metric .l { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.suggestion-banner {
  background: linear-gradient(135deg, var(--sage-soft), var(--card-elev));
  border-radius: var(--r-lg); padding: 18px 22px;
  border: 1px solid var(--sage-soft); margin-bottom: 16px;
}
.suggestion-banner .label {
  color: var(--sage-ink); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px;
}

/* utility */
.text-muted { color: var(--text-muted); }
.text-soft  { color: var(--text-soft); }
.text-primary { color: var(--primary-ink); }
.text-sage  { color: var(--sage-ink); }
.text-gold  { color: var(--gold-ink); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; } .fs-12 { font-size: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.hidden { display: none !important; }
.center { text-align: center; }
.right { text-align: right; }

/* ============================================================
   Growth Report
   ============================================================ */
.report-doc {
  max-width: 920px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.report-cover {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 22px;
}
.report-cover-top { display: flex; align-items: center; gap: 14px; }
.report-mission {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--primary-soft);
  padding-left: 14px;
}
.report-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--divider);
}
.report-section:last-child { border-bottom: none; }
.report-section h2 {
  font-family: var(--font-serif); font-size: 24px;
  margin-bottom: 14px;
}
.report-section-num {
  display: inline-block;
  font-family: var(--font-serif); font-weight: 600;
  color: var(--text-soft); letter-spacing: 0.08em;
  font-size: 12px; margin-bottom: 6px;
}
.report-block {
  background: var(--card-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
}
.report-block .lead { font-size: 16px; line-height: 1.55; }
.evidence-list { padding-left: 20px; margin: 4px 0; color: var(--text-muted); }
.evidence-list li { margin: 3px 0; }
.block-aside {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(255,255,255,0.6); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px; color: var(--text-muted);
}
.block-aside.encouragement {
  background: var(--sage-soft); color: var(--sage-ink); border-color: var(--sage-soft);
}

/* Delta row */
.delta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--card-elev);
}
.delta-val { font-weight: 700; font-size: 15px; }
.text-coral { color: #8C3F23; }

/* Growth band bar */
.band-bar { display: flex; gap: 4px; margin: 6px 0; }
.band-cell {
  flex: 1; height: 8px; border-radius: var(--r-pill);
  background: var(--bg-2);
}
.band-cell.filled { background: var(--primary); }

/* Band tag colours */
.tag.band-0 { background: #F2EDE3; color: var(--text-muted); }
.tag.band-1 { background: var(--sky-soft); color: #2E5A72; }
.tag.band-2 { background: var(--sage-soft); color: var(--sage-ink); }
.tag.band-3 { background: var(--primary-soft); color: var(--primary-ink); }
.tag.band-4 { background: var(--gold-soft); color: var(--gold-ink); }

/* Vision alignment row */
.vision-row {
  display: flex; gap: 18px; align-items: center;
  padding: 14px;
  background: var(--card-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.vision-bar-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 180px; }
.vision-bar-wrap .progress-bar { width: 160px; }

/* Recommendation card */
.rec-card {
  background: linear-gradient(135deg, var(--sage-soft), var(--card-elev));
  border: 1px solid var(--sage-soft);
  border-radius: var(--r-lg);
  padding: 18px;
}

/* Longitudinal */
.long-row { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.long-label { min-width: 110px; }
.long-track {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; padding: 4px 0; flex: 1;
}
.long-pt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0; min-width: 90px;
  padding: 8px 12px; border-radius: var(--r-md);
  background: var(--card-elev); border: 1px solid var(--border);
}
.long-pt-age { font-size: 11px; color: var(--text-muted); }
.long-pt-band { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.long-pt-band.band-0 { background: #F2EDE3; color: var(--text-muted); }
.long-pt-band.band-1 { background: var(--sky-soft); color: #2E5A72; }
.long-pt-band.band-2 { background: var(--sage-soft); color: var(--sage-ink); }
.long-pt-band.band-3 { background: var(--primary-soft); color: var(--primary-ink); }
.long-pt-band.band-4 { background: var(--gold-soft); color: var(--gold-ink); }

/* ============================================================
   Voice input (microphone next to inputs/textareas)
   ============================================================ */
.voice-field {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.voice-field > .input,
.voice-field > .textarea,
.voice-field > .disc-textarea {
  flex: 1;
  width: auto;
}
.voice-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.voice-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.voice-btn.recording {
  background: var(--danger); color: white; border-color: var(--danger);
  animation: voicePulse 1.4s ease infinite;
}
.voice-btn.unsupported {
  opacity: 0.5; cursor: not-allowed;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 87, 87, 0.55); }
  50%      { box-shadow: 0 0 0 12px rgba(196, 87, 87, 0); }
}
.voice-status {
  font-size: 11px; color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   Public Marketing Site — North Star
   ============================================================ */
.public-shell {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(244, 233, 197, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(216, 222, 234, 0.14) 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  position: relative;
}
.public-header, .public-main, .public-footer { position: relative; z-index: 1; }
.public-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 246, 238, 0.78);
  border-bottom: 1px solid rgba(234, 223, 205, 0.7);
}
.public-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
}
.public-nav {
  display: flex; gap: 4px; align-items: center;
}
.public-nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}
.public-nav a:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.public-nav a.active { background: var(--card); box-shadow: var(--shadow-sm); }

.public-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.public-brand .name {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em;
}
.public-brand .sub {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   North Star Logo Lockup (Heirloom Compass + wordmark)
   ───────────────────────────────────────────────────────────── */
.ns-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;                    /* refined: a touch more breathing room mark↔wordmark */
  text-decoration: none;
  color: inherit;
}
.ns-logo:hover { text-decoration: none; }
.ns-logo-mark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ns-logo-mark-wrap svg.ns-logo-mark {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(15, 22, 38, 0.16));
}
.ns-logo-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 5px;                     /* refined: more space between wordmark + tagline */
}
.ns-logo-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;     /* refined: tighter tracking, editorial feel */
  color: var(--midnight);
  line-height: 1;
}
.ns-logo-tag {
  font-family: var(--font-sans);
  font-size: 10px;              /* refined: slightly larger so it reads as deliberate */
  font-weight: 600;
  letter-spacing: 0.26em;       /* refined: a touch wider, more antique */
  color: var(--gold-ink);
  text-transform: uppercase;
  line-height: 1;
}

/* Horizontal lockup (default header) */
.ns-logo-h { flex-direction: row; gap: 12px; }

/* Stacked lockup (footer / hero) */
.ns-logo-stacked {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.ns-logo-stacked .ns-logo-wordmark {
  align-items: flex-start;
}
.ns-logo-stacked .ns-logo-name {
  font-size: 26px;
}
.ns-logo-stacked .ns-logo-tag {
  font-size: 10px;
}

/* When the lockup is used on a dark surface (footer), invert the wordmark colours */
.public-footer .ns-logo-name { color: var(--starlight); }
.public-footer .ns-logo-tag  { color: rgba(244, 233, 197, 0.7); }
.public-footer .ns-logo-mark-wrap svg.ns-logo-mark {
  filter: drop-shadow(0 6px 18px rgba(244, 233, 197, 0.1));
}

/* Sidebar (parent portal) — slightly smaller wordmark */
.sidebar .ns-logo {
  padding: 4px 4px 22px;
}
.sidebar .ns-logo-name { font-size: 17px; font-weight: 600; }
.sidebar .ns-logo-tag  { font-size: 8.5px; letter-spacing: 0.2em; }
.sidebar .ns-logo-mark-wrap svg.ns-logo-mark {
  filter: drop-shadow(0 2px 6px rgba(15, 22, 38, 0.18));
}

/* Mobile: compress the lockup on small screens */
@media (max-width: 560px) {
  .public-header .ns-logo-name { font-size: 18px; }
  .public-header .ns-logo-tag  { font-size: 8.5px; letter-spacing: 0.2em; }
}
@media (max-width: 380px) {
  /* Very small viewports: hide the tagline, keep mark + name */
  .public-header .ns-logo-tag { display: none; }
}

/* Hover micro-interaction on the brand link */
.public-header .ns-logo:hover .ns-logo-mark-wrap svg.ns-logo-mark {
  filter: drop-shadow(0 6px 14px rgba(15, 22, 38, 0.28));
  transform: rotate(-2deg);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.public-header .ns-logo .ns-logo-mark-wrap svg.ns-logo-mark {
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .public-header .ns-logo:hover .ns-logo-mark-wrap svg.ns-logo-mark {
    transform: none;
  }
}

.public-main { max-width: 1200px; margin: 0 auto; padding: 0 28px 48px; }
.public-footer {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-deep) 100%);
  color: var(--starlight);
  padding: 72px 0 36px;
  margin-top: 72px;
  border-top: 1px solid rgba(244, 233, 197, 0.05);
}
.public-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.public-footer h4 {
  color: var(--starlight); font-family: var(--font-sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.85;
}
.public-footer a {
  color: var(--starlight); opacity: 0.78; text-decoration: none;
  font-size: 14px;
  transition: opacity 0.18s ease;
}
.public-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.public-footer-cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 56px; margin-bottom: 56px;
}
.public-footer-bottom {
  border-top: 1px solid rgba(244, 233, 197, 0.12);
  padding-top: 24px; font-size: 12.5px;
  opacity: 0.65; letter-spacing: 0.01em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 900px) {
  .public-footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ───── Hero — tighter, more intentional ───── */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px;
  padding: 64px 0 76px;
  align-items: center;
  isolation: isolate;
}
/* Subtle radial backdrop glow behind the compass — softer + smaller */
.hero::before {
  content: "";
  position: absolute;
  right: -4%; top: 50%;
  width: 60%; height: 110%;
  background: radial-gradient(ellipse 58% 50% at 50% 50%,
                              rgba(244, 233, 197, 0.35) 0%,
                              rgba(232, 181, 71, 0.06) 38%,
                              transparent 70%);
  filter: blur(12px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: -1;
}
/* Faint orbital line behind compass — even more subtle */
.hero::after {
  content: "";
  position: absolute;
  right: 8%; top: 50%;
  width: 32vw; height: 32vw; max-width: 460px; max-height: 460px;
  border-radius: 50%;
  border: 1px dashed rgba(42, 57, 84, 0.08);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: -1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(216, 222, 234, 0.55);
  color: var(--midnight);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid rgba(42, 57, 84, 0.06);
}
.hero-eyebrow .ns-icon { color: var(--midnight); width: 13px; height: 13px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
  font-weight: 500;
  color: var(--text);
}
.hero .lede {
  font-size: 17.5px;
  line-height: 1.58;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  display: grid; place-items: center;
  position: relative;
}
/* ─────────────────────────────────────────────────────────────
   Hero Compass — custom illustrated SVG

   Editorial vector instrument that lives in the design system:
     • Thin navy hairlines, restrained typography
     • Muted antique gold accents only
     • No realistic metal, no drop shadows, no chrome
     • The OUTER group (rings / ticks / labels) is fully static
     • Only the inner .cmp-rose group rotates on calibration

   The illustration uses inline SVG, so there's no separate fetch,
   no image-decode glitch, and the marks scale crisply at any size.
   ───────────────────────────────────────────────────────────── */
.hero-compass {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  display: block;
  isolation: isolate;
  aspect-ratio: 1;
}

.hero-compass-halo {
  position: absolute;
  inset: -2%;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(244, 233, 197, 0.38) 0%,
      rgba(217, 168, 72, 0.16) 32%,
      rgba(217, 168, 72, 0.05) 58%,
      transparent 78%);
  pointer-events: none;
  /* One-off fade-in only — no continuous breathing animation */
  opacity: 0;
  animation: heroHaloFadeIn 1.6s ease-out 0.1s forwards;
}
@keyframes heroHaloFadeIn {
  to { opacity: 1; }
}

.hero-compass-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

/* The outer group is fully locked — no transforms, no animations.
   Rings, ticks, labels, and gold accents never move. */

/* The inner compass (cross + X + centre star) calibrates ONCE.
   Multi-step oscillation as the rose finds true north, then settles still. */
.hero-compass-svg .cmp-rose {
  transform-origin: 200px 200px;
  animation: heroRoseCalibrate 3.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroRoseCalibrate {
  0%   { transform: rotate(-10deg); }
  25%  { transform: rotate(7deg); }
  50%  { transform: rotate(-4deg); }
  75%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* ONE-OFF subtle finish after the rose settles (~3.4s in):
     - the N quietly brightens to full opacity once
     - the centre North Star gives one soft glow pulse
   Both use `forwards` so they don't loop. */
.hero-compass-svg .cmp-n {
  fill-opacity: 0.82;
  animation: heroNBrighten 1.4s ease-out 3.4s forwards;
}
@keyframes heroNBrighten {
  to { fill-opacity: 1; }
}

.hero-compass-svg .cmp-centre-star {
  transform-origin: 200px 200px;
  animation: heroCentreStarGlow 1.6s ease-out 3.6s forwards;
}
@keyframes heroCentreStarGlow {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  35%  { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(244, 233, 197, 0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-compass-svg .cmp-rose,
  .hero-compass-svg .cmp-n,
  .hero-compass-svg .cmp-centre-star,
  .hero-compass-halo {
    animation: none !important;
  }
  .hero-compass-svg .cmp-rose { transform: rotate(0deg) !important; }
  .hero-compass-svg .cmp-n { fill-opacity: 1 !important; }
  .hero-compass-halo { opacity: 1 !important; }
}

/* ----------------- Line icons -----------------
   The North-Star icon vocabulary used across the marketing site
   and the parent dashboards. No emojis.
*/
.ns-icon { display: inline-block; vertical-align: middle; }
.ns-icon-wrap {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--midnight-soft), var(--card-elev));
  color: var(--midnight);
  border: 1px solid var(--border);
}
.ns-icon-wrap.warm {
  background: linear-gradient(135deg, var(--primary-soft), var(--card-elev));
  color: var(--primary-ink);
}
.ns-icon-wrap.sage {
  background: linear-gradient(135deg, var(--sage-soft), var(--card-elev));
  color: var(--sage-ink);
}
.ns-icon-wrap.gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--card-elev));
  color: var(--gold-ink);
}
.ns-icon-wrap.midnight {
  background: var(--midnight-deep);
  color: var(--starlight);
  border-color: transparent;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 60px; }
  .hero h1 { font-size: 38px; }
  .hero-art { order: -1; max-width: 240px; margin: 0 auto; }
}

/* ───── Public sections — tighter consistent rhythm ───── */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--divider);
  position: relative;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--midnight);
  margin-bottom: 16px;
  opacity: 0.78;
}
.section-eyebrow::before {
  content: ""; display: inline-block;
  width: 20px; height: 1px; background: var(--midnight); opacity: 0.5;
}
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 16px;
  max-width: 800px;
  font-weight: 500;
}
.section .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 28px;
}
.section.section-dark {
  background: linear-gradient(135deg, var(--midnight-deep), var(--midnight));
  color: var(--starlight);
  border-radius: var(--r-xl); padding: 60px 52px; margin: 28px 0;
  box-shadow: 0 30px 70px -36px rgba(15, 22, 38, 0.5);
}
.section.section-dark h2,
.section.section-dark .lede { color: var(--starlight); }
.section.section-dark .lede { opacity: 0.82; }
.section.section-dark .section-eyebrow { color: var(--starlight); opacity: 0.65; }
.section.section-dark .section-eyebrow::before { background: var(--starlight); }

/* Quote / core statement */
.core-quote {
  font-family: var(--font-serif);
  font-size: 26px; line-height: 1.42;
  color: var(--text); max-width: 780px;
  border-left: 3px solid var(--primary);
  padding-left: 28px; margin: 28px 0;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Feature card grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--midnight-soft), var(--card-elev));
  display: grid; place-items: center; font-size: 26px;
  margin-bottom: 16px;
  color: var(--midnight);
}
.feature-card .ico .ns-icon { color: var(--midnight); }

/* Editorial homepage sections */
.section-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-sm);
}
/* ───── Philosophy: manifesto moment — tighter, more subtle ───── */
.section-philosophy {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(232, 181, 71, 0.13) 0%, transparent 45%),
    linear-gradient(140deg, #FBF3DD 0%, #FCF7EE 65%, var(--card) 100%);
  border-radius: var(--r-xl);
  padding: 56px 56px 60px;
  border: 1px solid rgba(232, 181, 71, 0.22);
  position: relative; overflow: hidden;
  box-shadow:
    0 24px 60px -32px rgba(232, 181, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.section-philosophy::before {
  content: ""; position: absolute; right: -100px; bottom: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232, 181, 71, 0.16), transparent 65%);
  pointer-events: none;
}
.section-philosophy::after {
  content: "✦";
  position: absolute; top: 32px; right: 40px;
  font-size: 26px; color: var(--gold); opacity: 0.78;
  text-shadow: 0 0 18px rgba(232, 181, 71, 0.55);
  animation: philStarPulse 6s ease-in-out infinite alternate;
}
@keyframes philStarPulse {
  0%   { opacity: 0.65; transform: scale(0.96); }
  100% { opacity: 0.92; transform: scale(1.04); }
}
.philosophy-line {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.3;
  margin: 16px 0;
  max-width: 760px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text);
}
.philosophy-line.muted {
  color: var(--text-muted);
  font-size: clamp(17px, 1.85vw, 21px);
  font-weight: 400;
  line-height: 1.45;
}

/* Problem section — quote callout that flows out of the lede above */
.problem-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  max-width: 640px;
  margin: 4px 0 14px;
  font-weight: 500;
}
.problem-quote {
  position: relative;
  margin: 0;
  padding: 26px 28px 26px 36px;
  border-left: 2px solid var(--midnight);
  background: linear-gradient(135deg, rgba(244, 233, 197, 0.10) 0%, transparent 100%);
  max-width: 640px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.problem-quote-mark {
  position: absolute;
  left: -16px; top: 26px;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--midnight); color: var(--starlight);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(42, 57, 84, 0.4);
}
.problem-quote-mark .ns-icon { width: 14px; height: 14px; }
.problem-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin: 0;
  max-width: 580px;
}

/* ───── Comparison: muted them vs luminous North Star ───── */
.comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 24px;
}
@media (max-width: 800px) { .comparison { grid-template-columns: 1fr; } }

.comparison-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.comparison-card.them {
  background: #F4ECDC;
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.comparison-card.them h3 { color: var(--text-muted); }
.comparison-card.them li { color: var(--text-muted); }

.comparison-card.us {
  background:
    radial-gradient(circle at 18% -5%, rgba(244, 233, 197, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 181, 71, 0.10) 0%, transparent 50%),
    linear-gradient(140deg, var(--midnight-deep) 0%, var(--midnight) 50%, #3A4C72 100%);
  color: var(--starlight); border-color: transparent;
  box-shadow:
    0 36px 70px -30px rgba(15, 22, 38, 0.55),
    0 0 0 1px rgba(244, 233, 197, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
}
.comparison-card.us::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(244, 233, 197, 0.22) 0%, transparent 65%);
  pointer-events: none;
  animation: usCardGlow 8s ease-in-out infinite alternate;
}
@keyframes usCardGlow {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.06); }
}
.comparison-card.us::after {
  content: "✦";
  position: absolute; top: 26px; right: 28px;
  color: var(--starlight); opacity: 0.85; font-size: 18px;
  text-shadow: 0 0 18px rgba(244, 233, 197, 0.6);
}
.comparison-card.us:hover { transform: translateY(-3px); }

.comparison-card h3 {
  font-family: var(--font-serif); font-size: 22px; margin-bottom: 18px;
  font-weight: 500; letter-spacing: -0.01em;
}
.comparison-card.us h3 { color: var(--starlight); }
.comparison-card ul { list-style: none; padding: 0; margin: 0; }
.comparison-card li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.comparison-card.them li { border-bottom-color: var(--border-strong); }
.comparison-card.us li { border-bottom-color: rgba(244,233,197,0.12); color: var(--starlight); }
.comparison-card li:last-child { border-bottom: none; }
.comparison-card .marker {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-soft); flex-shrink: 0;
}
.comparison-card.us .marker {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 181, 71, 0.7);
}

/* Journey numbers (used in How It Works) */
.journey-list { display: grid; gap: 12px; margin-top: 24px; }
.journey-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  align-items: flex-start; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.journey-item:hover { border-color: var(--midnight); transform: translateY(-2px); }
.journey-num {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 500; color: var(--midnight);
  line-height: 1; opacity: 0.55;
}
.journey-body h3 {
  font-family: var(--font-serif); font-size: 21px; margin-bottom: 6px;
  letter-spacing: 0;
}
.journey-body p { color: var(--text-muted); font-size: 14px; margin: 0; }
.journey-divider {
  margin: 50px 0 30px;
  display: flex; align-items: center; gap: 16px;
}
.journey-divider span {
  font-family: var(--font-serif); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--midnight); font-weight: 600;
}
.journey-divider hr {
  flex: 1; border: none; height: 1px; background: var(--border);
}

/* ───── Parent + Child portal preview cards ───── */
.portal-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow:
    0 24px 60px -28px rgba(70, 50, 30, 0.22),
    0 4px 12px rgba(70, 50, 30, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
}
.portal-preview::before {
  content: "";
  position: absolute; top: 12px; left: 14px; right: 14px;
  height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(216, 222, 234, 0.7), transparent);
}
.portal-preview-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.portal-preview-row:hover {
  background: var(--card-elev);
  transform: translateX(2px);
}
.portal-preview-row:last-child { border-bottom: none; }

/* Preview mock (used in child portal section) */
.preview-mock {
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 26px;
  box-shadow:
    0 30px 70px -30px rgba(70, 50, 30, 0.28),
    0 6px 16px rgba(70, 50, 30, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease;
}
.preview-mock:hover { transform: translateY(-3px); }
.preview-mock-bar {
  display: flex; gap: 6px; margin-bottom: 18px;
}
.preview-mock-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-strong);
  opacity: 0.7;
}
.feature-card h3 {
  font-family: var(--font-serif); font-size: 20px; margin-bottom: 6px;
}
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 22px;
  position: relative;
}
.step .step-num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 38px; color: var(--midnight); opacity: 0.4;
  line-height: 1; margin-bottom: 8px;
}
.step h3 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 13px; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: linear-gradient(135deg, var(--midnight-deep), var(--midnight));
  color: var(--starlight); border-color: transparent;
  position: relative;
}
.price-card.featured h3, .price-card.featured .price { color: var(--starlight); }
.price-card.featured p, .price-card.featured li { color: rgba(244, 233, 197, 0.85); }
.price-card.featured .price-tag {
  background: var(--starlight); color: var(--midnight-deep);
}
.price-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--midnight-soft); color: var(--midnight);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; width: fit-content;
}
.price-card h3 { font-family: var(--font-serif); font-size: 22px; }
.price-card .price {
  font-family: var(--font-serif); font-size: 38px; font-weight: 600;
  margin: 8px 0;
}
.price-card .price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.price-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.price-card ul li {
  font-size: 14px; padding-left: 22px; position: relative;
}
.price-card ul li::before {
  content: "✦"; position: absolute; left: 0; top: 1px;
  color: var(--primary);
}
.price-card.featured ul li::before { color: var(--starlight); }
.price-card .btn { margin-top: auto; }

/* Domain showcase */
.domain-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 900px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
.domain-pill {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid var(--border); padding: 18px;
  text-align: left;
}
.domain-pill .em { font-size: 28px; margin-bottom: 8px; }
.domain-pill h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 4px; }
.domain-pill p { font-size: 12px; color: var(--text-muted); }

/* Two-column preview */
.preview-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center; padding: 50px 0;
}
.preview-row.flipped > :first-child { order: 2; }
@media (max-width: 900px) { .preview-row { grid-template-columns: 1fr; } .preview-row.flipped > :first-child { order: 0; } }

.slider-preview {
  background: var(--card); padding: 28px; border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -28px rgba(70, 50, 30, 0.18), 0 3px 10px rgba(70, 50, 30, 0.04);
}

/* Steps polish */
.step {
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 26px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--midnight);
  box-shadow: 0 16px 40px -18px rgba(42, 57, 84, 0.22), 0 4px 10px rgba(42, 57, 84, 0.06);
}
.step .step-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 42px; color: var(--midnight); opacity: 0.45;
  line-height: 1; margin-bottom: 10px;
  letter-spacing: -0.02em;
}

/* Public nav focus + active polish */
.public-nav a {
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.04em;   /* Mulish SemiBold, calm Title-Case nav */
}
.public-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.public-nav a.active {
  background: var(--card);
  box-shadow: 0 2px 6px rgba(42, 57, 84, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

/* Feature card polish — refined hover + crafted shadow */
.feature-card {
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px -22px rgba(42, 57, 84, 0.18),
    0 4px 12px rgba(42, 57, 84, 0.06);
  border-color: rgba(42, 57, 84, 0.15);
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 21px;
  margin-bottom: 8px;
}

/* ───── Mobile refinement ───── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 56px;
    gap: 32px;
    text-align: left;
  }
  .hero::before { right: -30%; width: 130%; opacity: 0.5; }
  .hero::after { display: none; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-compass { max-width: 100%; }
  .hero h1 { font-size: clamp(28px, 6vw, 36px); margin-bottom: 14px; }
  .hero .lede { font-size: 16px; max-width: 100%; margin-bottom: 22px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero .ctas { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .ctas .btn { justify-content: center; padding: 13px 20px; width: 100%; }

  .section { padding: 44px 0; }
  .section.section-dark { padding: 44px 28px; }
  .section-philosophy { padding: 40px 28px; }
  .comparison-card { padding: 26px; }
  .problem-quote { padding: 22px 22px 22px 30px; }
  .problem-quote-mark { width: 26px; height: 26px; left: -13px; top: 22px; }
}
@media (max-width: 560px) {
  .public-header-inner { padding: 10px 18px; }
  .public-nav { gap: 2px; }
  .public-nav a { padding: 5px 8px; font-size: 12.5px; }
  .public-brand .name { font-size: 18px; }
  .public-brand .sub { font-size: 10px; }
  .public-main { padding: 0 18px 36px; }
  .hero-art { max-width: 360px; }
  .core-quote { font-size: 20px; padding-left: 18px; }
  .philosophy-line { font-size: 20px; }
  .philosophy-line.muted { font-size: 16.5px; }
  .section-philosophy::after { top: 22px; right: 24px; font-size: 22px; }
}

/* Login chooser */
.login-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 700px) { .login-grid { grid-template-columns: 1fr; } }
.login-card {
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 36px; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.login-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.login-card.login-card-form { cursor: default; }
.login-card.login-card-form:hover { transform: none; box-shadow: none; }
.login-card .em { font-size: 48px; margin-bottom: 12px; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--midnight-deep), var(--midnight));
  color: var(--starlight);
  border-radius: var(--r-xl);
  padding: 60px 48px; text-align: center;
  margin: 60px 0 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: "✦"; position: absolute; right: -20px; top: -20px;
  font-size: 220px; color: rgba(244, 233, 197, 0.08);
  pointer-events: none;
}
.cta-strip h2 { color: var(--starlight); font-family: var(--font-serif); font-size: 36px; margin-bottom: 12px; }
.cta-strip p { color: rgba(244, 233, 197, 0.85); max-width: 600px; margin: 0 auto 22px; font-size: 17px; }

/* ============================================================
   HOMEPAGE — North Star locked-copy editorial layout
   A premium, family-centred narrative. Serif for the emotional
   headings, sans for body. Generous spacing, strong hierarchy.
   ============================================================ */

/* ───── 1. Hero ───── */
.ns-hero { padding-bottom: 40px; }
.ns-hero-lead .hero-eyebrow { margin-bottom: 26px; }
.ns-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.04;
  margin-bottom: 24px;
}
.ns-hero-age {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.ns-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 30px;
}

/* ───── 1b. Hero continuation — the invitation ───── */
.ns-invitation {
  border-top: none;
  padding-top: 8px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.ns-questions { margin-bottom: 38px; }
.ns-questions p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 12px 0;
}

.ns-prompts {
  list-style: none; padding: 0; margin: 0 0 44px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.ns-prompts li {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 11px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ns-prompts li:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.ns-prompts li i { font-style: normal; color: var(--gold); font-weight: 600; }

.ns-turn { margin: 0 auto 30px; max-width: 660px; }
.ns-turn p {
  font-size: 18px; line-height: 1.55; color: var(--text-muted);
  margin: 8px 0;
}
.ns-turn-accent {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 32px) !important;
  font-weight: 500;
  color: var(--text) !important;
  letter-spacing: -0.015em;
  margin-top: 18px !important;
}
.ns-lead-para {
  font-size: 17.5px; line-height: 1.62; color: var(--text);
  max-width: 680px; margin: 0 auto 40px;
}

/* Highlighted destination callout — the emotional anchor of the hero */
.destination-callout {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
  padding: 40px 44px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 85% 12%, rgba(232, 181, 71, 0.16) 0%, transparent 50%),
    linear-gradient(140deg, var(--midnight-deep) 0%, var(--midnight) 55%, #3A4C72 100%);
  box-shadow:
    0 36px 70px -32px rgba(15, 22, 38, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.destination-callout-star {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(244, 233, 197, 0.10);
  border: 1px solid rgba(244, 233, 197, 0.28);
  color: var(--starlight);
}
.destination-callout blockquote {
  margin: 0; display: grid; gap: 10px;
}
.destination-callout blockquote span {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.28;
}
.destination-callout .muted {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 400;
  color: rgba(244, 233, 197, 0.72);
}
.destination-callout .lead {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  color: var(--starlight);
}

/* ───── 2. The Big Idea ───── */
.ns-bigidea { margin-top: 10px; }
.ns-bigidea-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 10px 0 40px;
}
@media (max-width: 760px) { .ns-bigidea-pair { grid-template-columns: 1fr; } }
.ns-bigidea-card {
  border-radius: var(--r-xl);
  padding: 30px 32px;
  border: 1px solid var(--border);
}
.ns-bigidea-card.them { background: #F4ECDC; border-style: dashed; border-color: var(--border-strong); }
.ns-bigidea-card.us {
  background: linear-gradient(140deg, var(--midnight-deep) 0%, var(--midnight) 100%);
  border-color: transparent;
  box-shadow: 0 30px 60px -32px rgba(15, 22, 38, 0.5);
}
.ns-bigidea-intro {
  font-size: 14.5px; line-height: 1.45; margin: 0 0 14px;
}
.ns-bigidea-card.them .ns-bigidea-intro { color: var(--text-muted); }
.ns-bigidea-card.us .ns-bigidea-intro { color: rgba(244, 233, 197, 0.7); }
.ns-bigidea-q {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.3; font-weight: 500;
  letter-spacing: -0.012em; margin: 0;
}
.ns-bigidea-card.them .ns-bigidea-q { color: var(--text-muted); }
.ns-bigidea-card.us .ns-bigidea-q { color: var(--starlight); }

.ns-bigidea-lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500; color: var(--text);
  margin: 0 0 22px; letter-spacing: -0.012em;
}
.ns-future-list {
  list-style: none; padding: 0; margin: 0 0 34px;
  display: grid; gap: 0;
  max-width: 760px;
}
.ns-future-list li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-bottom: 1px solid var(--divider);
  font-size: 17px; line-height: 1.5; color: var(--text);
}
.ns-future-list li:last-child { border-bottom: none; }
.ns-future-list li::before {
  content: "✦";
  position: absolute; left: 4px; top: 18px;
  color: var(--gold); font-size: 14px;
}
.ns-bigidea-close {
  font-size: 18px; line-height: 1.5; color: var(--text-muted);
  margin: 6px 0;
}
.ns-bigidea-close.strong {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500; color: var(--text);
  letter-spacing: -0.013em; margin-top: 10px;
}

/* ───── 3. Education Designed Around A Destination ───── */
.ns-destination-head { max-width: 780px; margin-bottom: 36px; }
.ns-destination-head .philosophy-line { margin: 10px 0; }
.ns-destination-sub {
  font-size: 18px; line-height: 1.6; color: var(--text-muted);
  margin-top: 18px; max-width: 680px;
}
.experience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 8px 0 34px;
}
@media (max-width: 900px) { .experience-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .experience-grid { grid-template-columns: repeat(2, 1fr); } }
.experience-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.experience-card:hover {
  transform: translateY(-3px);
  border-color: var(--midnight);
  box-shadow: var(--shadow-md);
}
.experience-label {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 500; line-height: 1.2;
  letter-spacing: -0.008em; color: var(--text);
}
.ns-destination-foot {
  font-size: 18px; line-height: 1.6; color: var(--text);
  max-width: 720px; font-weight: 500;
}

/* ───── 4. More Than A Curriculum ───── */
.ns-operating .section-eyebrow { color: var(--midnight); opacity: 0.78; }
.ns-operating-line {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55; color: var(--text);
  max-width: 760px; margin: 8px 0 22px;
}
.ns-operating-line b {
  font-weight: 600; color: var(--gold-ink);
}
.ns-operating-outcomes { margin-top: 26px; }
.ns-operating-outcomes p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.35; font-weight: 500;
  letter-spacing: -0.012em; color: var(--text);
  margin: 8px 0;
}

/* ───── 5. Imagine Looking Back (dark) ───── */
.ns-imagine { padding: 56px 52px; }
.ns-imagine .lede { max-width: 640px; }
.knows-list {
  list-style: none; padding: 0;
  margin: 32px 0 8px;
  display: grid; gap: 2px;
  max-width: 720px;
}
.knows-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(244, 233, 197, 0.12);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 400; line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--starlight);
}
.knows-list li:last-child { border-bottom: none; }
.knows-star {
  display: inline-grid; place-items: center;
  flex-shrink: 0; margin-top: 4px;
  color: var(--gold);
  opacity: 0.9;
}
.ns-imagine-close { margin-top: 28px; }
.ns-imagine-close p {
  font-size: 18px; line-height: 1.5;
  color: rgba(244, 233, 197, 0.82);
  margin: 6px 0;
}
.ns-imagine-close .strong {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500; color: var(--starlight);
  letter-spacing: -0.014em;
}
.ns-imagine-final {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.1vw, 23px) !important;
  font-style: italic;
  color: var(--starlight) !important;
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 233, 197, 0.14);
  max-width: 640px;
}

/* ───── 6. Every Family Needs A North Star — ship / coordinates ───── */
.coordinates-panel {
  position: relative;
  margin-top: 24px;
  border-radius: var(--r-xl);
  padding: 52px 56px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(232, 181, 71, 0.12) 0%, transparent 50%),
    linear-gradient(140deg, var(--midnight-deep) 0%, var(--midnight) 55%, #34456A 100%);
  box-shadow: 0 36px 80px -34px rgba(15, 22, 38, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.coordinates-bg {
  position: absolute;
  right: -90px; top: 50%; transform: translateY(-50%);
  width: 420px; max-width: 50%;
  opacity: 0.14;
  pointer-events: none;
  filter: saturate(0.7);
}
.coordinates-bg .hero-compass-halo { display: none; }
.coordinates-bg .hero-compass { max-width: 420px; }
.coordinates-body { position: relative; z-index: 1; max-width: 640px; }
.coordinates-lead {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 500; line-height: 1.32;
  letter-spacing: -0.014em; color: var(--starlight);
  margin: 0 0 24px;
}
.coordinates-detours {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 0 0 22px; padding-left: 18px;
  border-left: 2px solid rgba(244, 233, 197, 0.3);
}
.coordinates-detours p {
  margin: 0; font-size: 17px;
  color: rgba(244, 233, 197, 0.72); font-style: italic;
}
.coordinates-line {
  font-size: 17.5px; line-height: 1.62;
  color: rgba(244, 233, 197, 0.9);
  margin: 0 0 16px; max-width: 600px;
}
.coordinates-line:last-child { margin-bottom: 0; }

/* ───── Final CTA ───── */
.ns-final-cta h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.ns-final-cta p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 24px);
  font-style: italic;
  margin-bottom: 26px;
}

@media (max-width: 760px) {
  .ns-imagine, .coordinates-panel, .destination-callout { padding-left: 28px; padding-right: 28px; }
  .coordinates-bg { display: none; }
}

/* Two-column variant for the future / things lists */
.ns-future-list.cols-2 {
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
@media (max-width: 680px) { .ns-future-list.cols-2 { grid-template-columns: 1fr; column-gap: 0; } }

/* ============================================================
   NORTH STAR — STRICT DESIGN SYSTEM (marketing site)
   A single, intentional palette + type scale + 3 section types.
   Scoped to .public-shell so the in-app portals are untouched.
   ============================================================ */
.public-shell {
  --bg: #F7F4EE;          /* Background */
  --midnight: #1F355D;    /* Navy */
  --midnight-deep: #16284A;
  --starlight: #F3EBD9;   /* warm cream on navy */
  --gold: #C8A15A;        /* Gold */
  --gold-ink: #9A7637;    /* legible gold on cream */
  --primary: #D18452;     /* CTA */
  --primary-hover: #BE7340;
  --text: #2A221C;        /* Text */
}

/* ───── Strict type scale + tokens (homepage) ───── */
.np-home {
  --navy: #1F355D;
  --navy-2: #16284A;
  --gold: #C8A15A;
  --ink: #2A221C;
  --cta: #D18452;
  --cream: #F3EBD9;
  --line: rgba(42, 34, 28, 0.12);
  --line-navy: rgba(243, 235, 217, 0.16);
  color: var(--ink);
}

/* H2 / labels / body shared across the three section types */
.np-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--navy);
  max-width: 820px;
  margin: 18px 0 0;
}
.np-section--navy .np-h2 { color: #FFFFFF; }
.np-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #9A7637;
  margin-bottom: 4px;
}
.np-label--gold { color: var(--gold); }
.np-lg {
  font-size: 22px; line-height: 1.5;
  max-width: 760px; margin: 24px 0 0;
  color: var(--ink); opacity: 0.85;
}
.np-section--navy .np-lg { color: var(--cream); opacity: 0.9; }
.np-body {
  font-size: 18px; line-height: 1.62;
  max-width: 680px; margin: 18px 0 0;
  color: var(--ink); opacity: 0.8;
}
.np-section--navy .np-body { color: var(--cream); opacity: 0.82; }

/* ───── Section type 1 — cream content ───── */
.np-section { padding: 96px 0; }
.np-inner { max-width: 1040px; margin: 0 auto; }

/* ───── Section type 2 — navy storytelling ───── */
.np-section--navy {
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  border-radius: 28px;
  padding: 88px 64px;
  margin: 24px 0;
  box-shadow: 0 36px 80px -40px rgba(15, 22, 38, 0.5);
}

/* ───── Section type 3 — CTA ───── */
.np-cta {
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  border-radius: 28px;
  padding: 100px 48px;
  text-align: center;
  margin: 24px 0 0;
  box-shadow: 0 36px 80px -40px rgba(15, 22, 38, 0.5);
}
.np-cta-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 500; color: #FFFFFF;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.np-cta-sub {
  font-family: var(--font-serif);
  font-size: 22px; font-style: italic;
  color: var(--cream); opacity: 0.85;
  margin-bottom: 34px;
}

/* ───── Hero ───── */
.np-hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
  padding: 76px 0 64px;
}
.np-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 500; color: var(--navy);
  margin: 16px 0 22px;
}
.np-hero-lead {
  font-size: 22px; line-height: 1.5;
  color: var(--ink); opacity: 0.82;
  max-width: 480px; margin-bottom: 34px;
}

/* ───── §2 contrast (editorial, not cards) ───── */
.np-contrast {
  display: grid; gap: 0;
  margin: 40px 0 8px;
  border-left: 2px solid var(--gold);
  max-width: 760px;
}
.np-contrast p { margin: 0; padding: 18px 0 18px 30px; }
.np-contrast-them {
  font-size: 20px; line-height: 1.4; color: #8A7E6E;
}
.np-contrast-us {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.3; font-weight: 500;
  letter-spacing: -0.014em; color: var(--navy);
}
.np-contrast em { font-style: italic; }

/* ───── §3 "they know how to…" litany (navy) ───── */
.np-knows {
  list-style: none; padding: 0;
  margin: 36px 0 8px; max-width: 760px;
}
.np-knows li {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400; line-height: 1.32;
  letter-spacing: -0.01em; color: var(--cream);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-navy);
}
.np-knows li:last-child { border-bottom: none; }
.np-knows li.np-knows-final { color: #FFFFFF; }
.np-imagine-close { margin-top: 32px; }
.np-imagine-close p {
  font-size: 18px; line-height: 1.5;
  color: var(--cream); opacity: 0.82; margin: 6px 0;
}
.np-close-strong {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 500; color: #FFFFFF !important;
  opacity: 1 !important; letter-spacing: -0.015em;
}

/* ───── §4 coordinates — the one allowed subtle compass watermark ───── */
.np-coordinates { position: relative; overflow: hidden; }
.np-watermark {
  position: absolute; right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 380px; max-width: 46%;
  opacity: 0.10; pointer-events: none;
}
.np-watermark .hero-compass-halo { display: none; }
.np-coordinates .np-inner { position: relative; z-index: 1; max-width: 640px; }

/* ───── §5 How it works — 4-column steps, hairline structure ───── */
.np-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; margin-top: 48px;
}
.np-step { border-top: 1px solid var(--line); padding-top: 22px; }
.np-step-num {
  font-family: var(--font-serif);
  font-size: 15px; letter-spacing: 0.1em;
  color: var(--gold); font-weight: 600;
}
.np-step h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500; color: var(--navy);
  margin: 14px 0 10px; letter-spacing: -0.01em;
}
.np-step p {
  font-size: 16px; line-height: 1.55;
  color: var(--ink); opacity: 0.78; margin: 0;
}

/* ───── §6 Learning ecosystem — 12 items / 4-col bordered grid, no icons ───── */
.np-ecosystem {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.np-eco-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}
.np-eco-item:hover { background: rgba(200, 161, 90, 0.08); }
.np-eco-index {
  font-family: var(--font-serif);
  font-size: 13px; color: var(--gold);
  opacity: 0.85; min-width: 20px;
}
.np-eco-label {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em;
}
.np-eco-foot {
  font-size: 18px; line-height: 1.6;
  color: var(--ink); opacity: 0.8;
  max-width: 680px; margin: 30px 0 0;
}

/* ───── §7 Family OS close ───── */
.np-os-close { margin-top: 28px; }
.np-os-close p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500; color: var(--cream);
  margin: 8px 0; letter-spacing: -0.012em;
}

/* ───── Homepage responsive ───── */
@media (max-width: 900px) {
  .np-hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .np-hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .np-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .np-ecosystem { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .np-section { padding: 60px 0; }
  .np-section--navy { padding: 56px 28px; }
  .np-cta { padding: 64px 28px; }
  .np-watermark { display: none; }
}
@media (max-width: 560px) {
  .np-steps { grid-template-columns: 1fr; }
  .np-ecosystem { grid-template-columns: 1fr; }
  .np-hero-lead, .np-lg { font-size: 19px; }
}

/* ============================================================
   ABOUT PAGE — founders' story, same editorial system
   ============================================================ */
.about-hero { padding-bottom: 30px; }
.about-hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.about-intro { margin-top: 22px; max-width: 480px; }
.about-intro p {
  font-size: 16.5px; line-height: 1.5; color: var(--text-muted);
  margin: 9px 0;
}
.about-intro p:last-child {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500; color: var(--text);
  letter-spacing: -0.012em; margin-top: 16px;
}

/* "Some offered structure…" puzzle pieces */
.about-puzzle {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;
}
.about-puzzle-piece {
  padding: 13px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15.5px; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.about-puzzle-piece:hover { transform: translateY(-2px); border-color: var(--midnight); }

/* Short aside lines (For children. For parents.) */
.about-aside {
  font-size: 17px; line-height: 1.55; color: var(--text-muted);
  margin: 6px 0 18px; max-width: 680px;
}

/* Children need / Parents need columns */
.about-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 24px;
}
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }
.about-col-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.about-col-card h3 {
  font-family: var(--font-serif); font-size: 21px; font-weight: 500;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.about-col-card p {
  font-size: 16.5px; line-height: 1.5; color: var(--text-muted);
  margin: 7px 0;
}
.about-col-card p:first-of-type { color: var(--text); font-weight: 500; }

/* destination-callout closing line (About variant) */
.destination-callout-foot {
  position: relative; z-index: 1;
  margin: 20px 0 0; text-align: center;
  font-size: 16px; color: rgba(244, 233, 197, 0.8);
  font-style: italic;
}

/* "Learn through what they love" examples */
.about-examples {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 26px 0 8px;
}
@media (max-width: 860px) { .about-examples { grid-template-columns: 1fr; } }
.about-example-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.about-example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.about-example-card p {
  font-size: 16px; line-height: 1.55; color: var(--text); margin: 0;
}

/* The goal isn't / The goal is */
.about-goal {
  margin-top: 30px; padding: 28px 32px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(244, 233, 197, 0.18), transparent 80%);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.about-goal .muted {
  font-size: 17px; color: var(--text-muted); margin: 0 0 8px;
}
.about-goal .lead {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500; color: var(--text);
  letter-spacing: -0.014em; margin: 0;
}

/* Our Hope — welcome flourish */
.about-hope .knows-list { margin-top: 30px; }
.about-welcome {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500; color: var(--starlight);
  letter-spacing: -0.015em;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(244, 233, 197, 0.16);
}

/* ============================================================
   Learning Guild — tabs, cards, timeline
   ============================================================ */
.guild-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 6px; background: var(--card-elev);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: 18px;
}
.guild-tab {
  padding: 8px 14px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text-muted);
  font-size: 13px; transition: all 0.15s ease;
}
.guild-tab:hover { background: var(--bg-2); color: var(--text); }
.guild-tab.active {
  background: var(--card); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.guild-tab .ico { font-size: 16px; }

/* Legacy timeline */
.legacy-timeline {
  position: relative;
  padding-left: 28px;
}
.legacy-timeline::before {
  content: ""; position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.legacy-event {
  position: relative;
  margin-bottom: 14px;
}
.legacy-dot {
  position: absolute;
  left: -27px; top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--border);
}
.legacy-card {
  background: var(--card-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

/* ============================================================
   Print stylesheet — clean export-friendly Growth Report
   ============================================================ */
@media print {
  .sidebar, .topbar .btn-row, .no-print, .toast-host, #modal-host { display: none !important; }
  .app-shell { display: block !important; }
  .main { padding: 0 !important; max-width: none !important; }
  body { background: white; font-size: 11pt; }
  .report-doc { box-shadow: none; border: none; padding: 0; max-width: 100%; }
  .report-section { page-break-inside: avoid; }
  .card, .report-block, .delta-row, .vision-row, .rec-card { box-shadow: none !important; }
  h1, h2, h3, h4 { page-break-after: avoid; }
  a { color: var(--text); text-decoration: none; }
}

/* Avatar palette helpers */
.avatar-1 { background: linear-gradient(135deg, #C97B4E, #E08868); }
.avatar-2 { background: linear-gradient(135deg, #7FA68A, #A8C4AE); }
.avatar-3 { background: linear-gradient(135deg, #9C7AB5, #BA9FCF); }
.avatar-4 { background: linear-gradient(135deg, #6FA9C4, #94C2D6); }
.avatar-5 { background: linear-gradient(135deg, #E8B547, #F1CB7B); }

/* "Open child's view" — a filled button in the child's own colour (combine with
   .avatar-N, which supplies the gradient) so it clearly reads as a portal link. */
.btn-portal {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px 14px; border-radius: var(--r-md);
  color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-portal:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-portal svg, .btn-portal .ns-icon { color: #fff; stroke: currentColor; }

/* ============================================================
   Platform Discovery — standalone white-label "ghost" form page.
   No public nav/footer; a calm, self-contained data-collection page.
   ============================================================ */
.disc-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 40px 20px 140px;
}
.disc-wrap { max-width: 820px; margin: 0 auto; }
/* Logo top-left (image only — not a link). No tagline, so the wordmark is
   enlarged to balance the compass mark beside it. */
.disc-brand { display: flex; justify-content: flex-start; margin-bottom: 36px; }
.disc-brand .ns-logo-name { font-size: 32px; }
.disc-hero { margin-bottom: 36px; }
.disc-eyebrow {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 8px;
}
.disc-h1 { font-family: var(--font-serif); font-weight: 500; font-size: 34px; line-height: 1.12; color: var(--text); margin: 0 0 16px; }
.disc-lede { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); max-width: 64ch; }
.disc-lede p { margin: 0 0 11px; }
.disc-lede p:last-child { margin-bottom: 0; }

.disc-stack { display: flex; flex-direction: column; gap: 14px; }
.disc-section {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.disc-section.is-open { border-color: var(--primary-soft); box-shadow: var(--shadow-md); }
.disc-section.is-locked { opacity: 0.5; }
.disc-head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 20px 24px; text-align: left; background: transparent; cursor: pointer;
}
.disc-head:disabled { cursor: not-allowed; }
.disc-num { font-family: var(--font-serif); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--primary); }
.disc-title { flex: 1; font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--text); }
.disc-state { font-size: 14px; color: var(--success); font-weight: 700; }
.disc-chev { color: var(--text-muted); font-size: 13px; transition: transform 0.22s ease; opacity: 0.7; }
.disc-section.is-open .disc-chev { transform: rotate(180deg); }

.disc-body { display: none; padding: 0 24px 24px; }
.disc-section.is-open .disc-body { display: block; animation: nsAccIn 0.26s ease; }
.disc-intro { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 12px; max-width: 64ch; }
.disc-qs {
  margin: 0 0 16px; padding-left: 18px;
  color: var(--text-muted); font-size: 13.5px; line-height: 1.75;
}
.disc-qs li { margin-bottom: 2px; }

.disc-textarea {
  width: 100%; min-height: 130px; padding: 14px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--card-elev); color: var(--text);
  font-family: inherit; font-size: 15px; line-height: 1.7; resize: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.disc-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 123, 78, 0.13);
}
.disc-textarea::placeholder { color: #B7AC99; font-style: italic; }
.disc-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.disc-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 26px; padding: 14px 18px;
  background: rgba(251, 246, 238, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 560px) {
  .disc-h1 { font-size: 27px; }
  .disc-head { padding: 16px 18px; }
  .disc-body { padding: 0 18px 18px; }
  .disc-title { font-size: 17px; }
}
