/* MindMaps — one shared template for every page.
   One container width everywhere = the width-inconsistency fix. */

:root {
  --navy: #1c2b4a;
  --navy-deep: #12203a;
  --coral: #ff6f61;   /* TextScan */
  --teal: #2a9d8f;    /* Tools */
  --amber: #f4a261;   /* Games */
  --ink: #24303f;
  --muted: #5c6b7a;
  --cream: #faf7f2;
  --white: #ffffff;
  --line: #e7e0d6;
  --maxw: 1120px;     /* THE content width. Do not vary per page. */
  --radius: 14px;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em { font-style: italic; color: var(--accent, var(--coral)); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

/* ---------- Nav ---------- */
.nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: auto; }
.hero-brain { width: 140px; height: auto; margin-bottom: 22px; }
footer .foot-brand img { height: 30px; width: auto; vertical-align: middle; margin-right: 8px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.nav-cta {
  background: var(--accent, var(--coral)); color: var(--white);
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 88px 0; }
.hero .container { max-width: 820px; text-align: center; }
.hero .kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent, var(--coral)); margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 22px auto 0; max-width: 620px; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28, 43, 74, 0.15); }
.btn-primary { background: var(--accent, var(--coral)); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-quiet { color: var(--muted); text-decoration: underline; font-weight: 500; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Router door cards (homepage) */
.door { border-top: 5px solid var(--door, var(--navy)); text-decoration: none; display: block; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.door:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(28, 43, 74, 0.12); }
.door .door-for { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--door, var(--navy)); }
.door h3 { margin-top: 6px; }
.door .door-go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--door, var(--navy)); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent, var(--coral));
  color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-family: 'DM Sans', sans-serif;
}

/* ---------- Pricing ---------- */
.price-card { text-align: center; padding: 36px 28px; }
.price-card.featured { border: 2px solid var(--accent, var(--coral)); box-shadow: 0 12px 30px rgba(28,43,74,0.10); }
.price-card .tier { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price-card .price { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--navy); margin: 10px 0 2px; }
.price-card .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.price-card ul { list-style: none; text-align: left; margin: 0 0 22px; }
.price-card ul li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); font-size: 0.95rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, var(--coral)); font-weight: 700; }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent, var(--coral)); color: var(--white); font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Statement band ---------- */
.band { background: var(--navy); color: var(--white); text-align: center; }
.band h2 { color: var(--white); max-width: 760px; margin: 0 auto; }
.band h2 em { color: var(--accent, var(--coral)); }
.band p { color: #c6cede; max-width: 620px; margin: 18px auto 0; }
.band .btn-primary { margin-top: 28px; }
.band .kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}

/* ---------- Model diagram (homepage band) ---------- */
.model { max-width: 440px; margin: 40px auto 0; }
.model-tier {
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius);
  padding: 18px 24px; background: rgba(255, 255, 255, 0.06);
}
.model-name {
  display: block; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.85rem; color: var(--white);
}
.model-items { display: block; color: #c6cede; font-size: 0.9rem; margin-top: 4px; }
.model-flow { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0; }
.model-mid { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c6cede; }
.model-arrow { font-size: 1.25rem; color: var(--amber); }
.model-arrow.up { animation: model-drift-up 2.8s ease-in-out infinite; }
.model-arrow.down { animation: model-drift-down 2.8s ease-in-out infinite; animation-delay: 1.4s; }
@keyframes model-drift-up { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes model-drift-down { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .model-arrow.up, .model-arrow.down { animation: none; } }

/* ---------- Founder strip ---------- */
.founder { display: flex; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.founder .founder-badge { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.founder p { color: var(--muted); font-size: 0.95rem; }
.founder strong { color: var(--navy); }

/* ---------- Wedge / next-step strip ---------- */
.wedge { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.wedge p { color: var(--muted); font-size: 0.95rem; max-width: 640px; }
.wedge strong { color: var(--navy); }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #aab6c8; padding: 48px 0; font-size: 0.9rem; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer a { color: #dfe6f0; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .foot-brand { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; }

.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.sub { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
