/* ============================================================
   shared.css — common nav / footer / hero / section styles for
   aipersona.info subpages (book, exercises, SWOT tools, unlock).
   Loads AFTER ai-iq.css. Matches the look & feel of index.html.
   ============================================================ */

a { color: #33ade1; }
section { margin-bottom: 0; }

/* ── NAV ─────────────────────────────── */
nav.site-nav {
  background: #0f173f;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.nav-brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.nav-brand em { color: #ff9900; font-style: normal; }
.nav-links {
  display: flex;
  align-items: right;
  gap: 22px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.18s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #33ade1; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--orange);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.18s, transform 0.18s;
}
.nav-pill:hover { background: #e08800; transform: translateY(-1px); }
.nav-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #33ade1;
  background: #0f173f;
  border: 1px solid #33ade1;
  margin-right: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.18s, transform 0.18s;
}
.nav-pill-outline:hover { background: #16205a; transform: translateY(-1px); }
.nav-pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: #33ade1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.18s, transform 0.18s;
}

/* ── PAGE HERO (compact, for subpages) ── */
.page-hero {
  background: #0f173f;
  color: #fff;
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(51,173,225,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-hero .eyebrow-dark {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.page-hero h1 em { color: var(--orange); font-style: normal; }
.page-hero .sub {
  font-size: 16.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}

/* ── SHARED SECTION HELPERS ──────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 90px; }
.sec { padding: 32px 0; }
.sec-bg-white { background: #fff; border-top: 1px solid var(--border); }
.sec-bg-tint  { background: var(--navy-05); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.sec-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.sec-body {
  font-size: 16px;
  color: var(--navy-80);
  line-height: 1.72;
  margin: 0 0 24px;
}

/* ── BUTTONS ─────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 38px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 28px rgba(255,153,0,0.38);
  letter-spacing: 0.01em;
  font-family: inherit;
}
.btn-primary:hover {
  background: #ff9900;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255,153,0,0.48);
}
.btn-secondary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  font-family: inherit;
}
.btn-secondary:hover { background: #2a97c7; transform: translateY(-1px); }
.btn-ghost-dark {
  display: inline-block;
  color: var(--navy-80);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  font-family: inherit;
}
.btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); }

/* ── TOOL / EXERCISE PANELS ──────────── */
.tool-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.tool-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.tool-card .hint {
  font-size: 13.5px;
  color: var(--navy-60);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Persona count steppers */
.persona-input-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.persona-input-row:last-child { border-bottom: none; }
.pi-swatch {
  width: 10px; height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pi-name { flex: 1; }
.pi-name .nm { font-weight: 800; font-size: 16px; color: var(--navy); }
.pi-name .role { font-size: 14px; color: var(--navy-60); }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.stepper button {
  width: 34px; height: 34px;
  border: none;
  background: var(--navy-05);
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.stepper button:hover { background: var(--navy-10); }
.stepper input {
  width: 44px; height: 34px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  font-family: inherit;
}
.stepper input:focus { outline: 2px solid var(--blue); }

/* SWOT output grid */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.swot-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  border-top: 4px solid var(--blue);
}
.swot-cell.s { border-top-color: #1a8b1a; }
.swot-cell.w { border-top-color: #d1495b; }
.swot-cell.o { border-top-color: var(--blue); }
.swot-cell.t { border-top-color: var(--orange); }
.swot-cell h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--navy-60);
}
.swot-cell.s h4 { color: #105310; }
.swot-cell.w h4 { color: #d1495b; }
.swot-cell.o h4 { color: #1f6887; }
.swot-cell.t h4 { color: #8a5200; }
.swot-cell ul { margin: 0; padding-left: 18px; }
.swot-cell li {
  font-size: 13.5px;
  color: var(--navy-80);
  line-height: 1.6;
  margin-bottom: 8px;
}
.swot-cell li:last-child { margin-bottom: 0; }
.swot-empty { font-size: 13px; color: var(--navy-60); font-style: italic; }

/* Lock badge + gated banner */
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5200;
  background: var(--orange-10);
  padding: 3px 10px;
  border-radius: 10px;
}
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #105310;
  background: #d8f0d8;
  padding: 3px 10px;
  border-radius: 10px;
}

/* Paywall overlay */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,63,0.82);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.paywall-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 38px 36px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.paywall-modal .pm-icon { font-size: 40px; margin-bottom: 12px; }
.paywall-modal h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.paywall-modal p {
  font-size: 14.5px;
  color: var(--navy-80);
  line-height: 1.65;
  margin: 0 0 20px;
}
.paywall-modal input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--navy);
}
.paywall-modal input[type="text"]:focus { outline: none; border-color: var(--blue); }
.paywall-modal .pm-err {
  color: #d1495b;
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
  margin-bottom: 8px;
}
.paywall-modal .pm-alt {
  font-size: 12.5px;
  color: var(--navy-60);
  margin-top: 16px;
}

/* ── FOOTER ──────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.site-footer a { color: var(--blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { margin-top: 8px; }
.footer-nav a { margin: 0 10px; font-size: 12.5px; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 800px) {
  .page-hero h1 { font-size: 30px; }
  .swot-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 26px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12.5px; }
}
@media (max-width: 560px) {
  nav.site-nav { padding: 0 14px; height: auto; min-height: 58px; flex-wrap: wrap; padding-bottom: 8px; }
  .nav-links { flex-wrap: wrap; padding-top: 6px; }
  .wrap { padding: 0 16px; }
}
