/* ChurchHub Investor V2 — shared design system
   Tokens mirror the live investors.churchhub.ai implementation. */

:root {
  --ink:#2E2E2E;
  --gray:#757575;
  --mid:#A0A0A0;
  --tone:#8890B0;
  --border:#D6D6D6;
  --tint:#F5F7FB;
  --white:#FFFFFF;
  --accent:#E1702C;
  --accent-dark:#C95F1E;
  --accent-soft:#FBEADF;
  --good:#2E8B57;
  --good-soft:#E5F2EA;
  --warn:#C9760F;
  --bad:#C0392B;
  --bad-soft:#FBE8E6;
  --floor:#F3E7D6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 10px 30px rgba(46,46,46,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.30);
  --shadow-xl: 0 24px 70px rgba(0,0,0,.50);
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:"Avenir Next","Avenir","Segoe UI",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--tint);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

.wrap { max-width:1140px; margin:0 auto; padding:0 24px; }
.wrap-wide { max-width:1280px; margin:0 auto; padding:0 24px; }

/* ============ HEADER ============ */
header.site {
  background:var(--white);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:50;
}
.bar {
  display:flex; align-items:center; justify-content:space-between;
  height:62px;
}
.mark {
  font-size:21px;
  display:flex; align-items:baseline;
  color:var(--ink);
  font-family:"Avenir Next","Avenir","Segoe UI",system-ui,-apple-system,sans-serif;
  font-weight:600;
}
.mark .c { font-weight:600; color:var(--ink); }
.mark .h { font-weight:600; color:var(--accent); }
.mark .dot {
  display:inline-block; flex:0 0 auto;
  width:.22em; height:.22em; border-radius:50%;
  background:var(--accent); margin-left:.06em;
}
.tabs {
  display:flex; gap:2px; overflow-x:auto;
}
.tab {
  font:inherit; font-size:14px; font-weight:600;
  color:var(--gray);
  background:none; border:none;
  padding:10px 14px; border-radius:8px;
  cursor:pointer; white-space:nowrap;
  transition:.15s;
  text-decoration:none;
}
.tab:hover { color:var(--accent); background:var(--tint); }
.tab.active { color:var(--accent); background:var(--accent-soft); }
.tab:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.header-cta {
  font:inherit; font-size:16px; font-weight:600;
  padding:9px 16px; border-radius:9px;
  border:1px solid var(--border);
  background:var(--white); color:var(--ink);
  cursor:pointer; transition:.15s;
  text-decoration:none;
}
.header-cta:hover { border-color:var(--accent); color:var(--accent); }

@media (max-width:880px) {
  .tabs .lbl-long { display:none; }
}
@media (max-width:640px) {
  .tabs { display:none; }
}

/* ============ NAVIGATION CONTROLS ============ */
.page-controls {
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; flex-wrap:wrap; margin:22px 0;
}
.backbtn {
  background:none; border:1px solid var(--border);
  color:var(--gray); font:inherit; font-size:16px; font-weight:600;
  padding:9px 16px; border-radius:10px; cursor:pointer; transition:.15s;
  display:inline-flex; align-items:center; gap:7px;
  text-decoration:none;
}
.backbtn:hover { border-color:var(--accent); color:var(--accent); }

.continuebtn {
  background:var(--accent); border:1px solid var(--accent);
  color:#fff; font:inherit; font-size:16px; font-weight:600;
  padding:10px 20px; border-radius:10px; cursor:pointer; transition:.15s;
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none;
}
.continuebtn:hover { background:var(--accent-dark); border-color:var(--accent-dark); }

.chapter-nav-bottom {
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; flex-wrap:wrap;
  margin:48px 0 28px;
  padding-top:28px;
  border-top:1px solid var(--border);
}

/* ============ TYPOGRAPHY HELPERS ============ */
.eyebrow {
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin-bottom:14px;
}
.sectlabel {
  font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--mid); font-weight:600; margin-bottom:6px;
}
.sectlabel.orange { color:var(--accent); }
h1.hero-h1 {
  font-size:48px; font-weight:800;
  line-height:1.06; letter-spacing:-.02em;
  max-width:840px;
}
h2.big {
  font-size:32px; font-weight:700;
  letter-spacing:-.015em; margin-bottom:10px;
  line-height:1.18;
}
.sub2 {
  color:var(--gray); font-size:16px;
  max-width:640px; margin-bottom:24px;
  line-height:1.55;
}
.lede {
  margin-top:16px; max-width:600px;
  color:var(--gray); font-size:18px;
  line-height:1.55;
}

/* ============ HERO ============ */
.hero { padding:64px 0 28px; }

/* ============ BUTTONS ============ */
.btn {
  font:inherit; font-size:16px; font-weight:600;
  padding:12px 22px; border-radius:10px;
  cursor:pointer; border:1px solid transparent;
  transition:.15s; display:inline-flex; align-items:center; gap:8px;
  text-decoration:none;
}
.btn.primary { background:var(--accent); color:#fff; }
.btn.primary:hover { background:var(--accent-dark); }
.btn.ghost {
  background:var(--white); color:var(--ink);
  border-color:var(--border);
}
.btn.ghost:hover { border-color:var(--accent); color:var(--accent); }
.btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.cta { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }

/* ============ SECTIONS / CARDS ============ */
section.block { padding:44px 0; }

.cards3 {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.cards2 {
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
}
@media (max-width:820px) {
  .cards3 { grid-template-columns:1fr; }
  .cards2 { grid-template-columns:1fr; }
}

.scard {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px 24px;
  transition:.18s;
  box-shadow:var(--shadow-sm);
}
.scard:hover { border-color:var(--accent); box-shadow:var(--shadow-md); }
.scard .big {
  font-size:42px; font-weight:800;
  color:var(--accent); letter-spacing:-.02em; line-height:1;
}
.scard .cap {
  margin-top:12px; font-size:15px; color:var(--ink); font-weight:600;
  line-height:1.4;
}
.scard .note {
  margin-top:8px; font-size:13px; color:var(--mid);
}
.scard h3 {
  font-size:18px; font-weight:700;
  margin-bottom:8px; letter-spacing:-.005em;
}
.scard p {
  font-size:14.5px; color:var(--gray); line-height:1.55;
}
.scard .ic {
  width:42px; height:42px; border-radius:10px;
  background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px; color:var(--accent);
}
.scard .ic svg { width:22px; height:22px; }

/* Crisis / callout strip */
.crisis {
  margin-top:22px;
  background:var(--white);
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:10px;
  padding:20px 22px;
  font-size:15px; color:var(--gray);
  max-width:820px;
  line-height:1.55;
}
.crisis b { color:var(--ink); font-weight:600; }
.crisis p + p { margin-top:8px; }

/* ============ TESTIMONIAL CARDS ============ */
.tcards { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:880px) { .tcards { grid-template-columns:1fr; } }
.tcard {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px 24px;
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
}
.tcard .qmark {
  font-size:42px; line-height:1;
  color:var(--accent); font-weight:800;
  margin-bottom:8px;
}
.tcard .quote {
  font-size:16px; font-weight:700;
  color:var(--ink); line-height:1.42;
  margin-bottom:14px; letter-spacing:-.005em;
}
.tcard .body {
  font-size:14px; color:var(--gray);
  line-height:1.6; flex:1;
}
.tcard .who {
  margin-top:18px; padding-top:16px;
  border-top:1px solid var(--tint);
  display:flex; align-items:center; gap:12px;
}
.tcard .who .av {
  width:42px; height:42px; border-radius:50%;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px;
  border:2px solid var(--accent);
  flex:0 0 auto; overflow:hidden;
}
.tcard .who .av img { width:100%; height:100%; object-fit:cover; }
.tcard .who .nm { font-size:14px; font-weight:700; color:var(--ink); }
.tcard .who .ti { font-size:12.5px; color:var(--mid); margin-top:2px; }

/* ============ DARK BAND ============ */
.dark-band {
  background:var(--ink);
  border-radius:18px;
  padding:38px 40px;
  color:#fff;
}
.dark-band .label {
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); font-weight:700; margin-bottom:14px;
}
.dark-band h2 {
  font-size:26px; font-weight:700;
  letter-spacing:-.015em; color:#fff;
  margin-bottom:18px; max-width:720px; line-height:1.22;
}
.dark-band p {
  font-size:15px; color:#cfcfcf; line-height:1.6;
  max-width:720px;
}
.pills { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.pills span {
  font-size:13.5px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.18);
  padding:9px 16px; border-radius:22px; color:#ededed;
}

/* Vision cards inside dark-band — non-interactive informational cards */
.vision-cards {
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
  margin-top:26px;
}
@media (max-width:820px) { .vision-cards { grid-template-columns:1fr; } }
.vcard {
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:22px 22px 24px;
  /* Explicitly non-interactive */
  cursor:default;
  user-select:text;
}
.vcard .ic {
  width:38px; height:38px; border-radius:10px;
  background:rgba(225,112,44,.18);
  color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.vcard .ic svg { width:20px; height:20px; }
.vcard h4 {
  font-size:16px; font-weight:700;
  color:#fff; letter-spacing:-.005em;
  margin-bottom:8px; line-height:1.3;
}
.vcard p {
  font-size:13.5px; color:#cfcfcf;
  line-height:1.55;
}
@media (max-width:760px) {
  .dark-band { padding:28px 24px; }
  .dark-band h2 { font-size:22px; }
}

/* ============ CHAPTER 0 — LANDING ============ */
.cover-shell {
  min-height: calc(100vh - 62px);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:48px 24px 56px;
  text-align:center;
}
/* Two-column hero: copy left, artwork right */
.cover-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  align-items:center;
  gap:56px;
  width:100%; max-width:1240px;
  margin:0 auto;
  text-align:left;
}
.cover-copy { min-width:0; }
.cover-art { min-width:0; }
.cover-art img {
  display:block;
  width:100%; height:auto;
  border-radius:18px;
}
.cover-shell .eyebrow { margin-bottom:18px; }
.cover-shell h1 {
  font-size:64px; font-weight:800;
  letter-spacing:-.025em; line-height:1.04;
  max-width:1000px; margin:0;
}
.cover-shell .supporting {
  margin-top:22px;
  max-width:560px;
  font-size:19px; color:var(--gray);
  line-height:1.55;
}
.chapter-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
  width:100%; max-width:1240px;
  margin:54px auto 0;
}
.chapter-card {
  background:var(--white);
  border:1px solid #F2CCA9;
  border-radius:18px;
  padding:28px 24px 26px;
  box-shadow:0 1px 2px rgba(225,112,44,.04);
  transition:.25s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column;
  text-align:left;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
  min-height:260px;
}
.chapter-card:hover {
  transform:translateY(-3px);
  border-color:var(--accent);
  box-shadow:0 14px 32px rgba(225,112,44,.12), 0 2px 6px rgba(46,46,46,.04);
}
.chapter-card .chead {
  background:transparent;
  width:52px; height:52px;
  border-radius:50%;
  border:1.5px solid var(--accent);
  color:var(--accent);
  font-weight:600;
  font-size:15px;
  letter-spacing:.02em;
  display:flex; align-items:center; justify-content:center;
  padding:0; margin-bottom:22px;
  transition:.25s cubic-bezier(.4,0,.2,1);
}
.chapter-card:hover .chead {
  background:var(--accent-soft);
  border-color:var(--accent);
}
.chapter-card .cbody {
  padding:0;
  display:flex; flex-direction:column;
  flex:1;
}
.chapter-card .ctitle {
  font-size:16px; font-weight:700;
  color:var(--ink); letter-spacing:-.005em;
  line-height:1.25;
}
.chapter-card .cq {
  margin-top:10px;
  font-size:14px; color:var(--gray);
  line-height:1.45;
  flex:1;
}
.chapter-card .center {
  margin-top:22px;
  font-size:14px; font-weight:600;
  color:var(--accent);
  letter-spacing:.02em;
  display:inline-flex; align-items:center; gap:6px;
  transition:.25s cubic-bezier(.4,0,.2,1);
}
.chapter-card:hover .center {
  transform:translateX(3px);
}
.chapter-card.featured {
  box-shadow:0 4px 14px rgba(225,112,44,.10), 0 1px 2px rgba(225,112,44,.04);
}
.cover-foot {
  margin-top:28px;
  font-size:13.5px; color:var(--mid);
}

@media (max-width:1180px) {
  .cover-hero { gap:40px; }
  .cover-shell h1 { font-size:54px; }
}
@media (max-width:980px) {
  .cover-hero {
    grid-template-columns:1fr;
    gap:36px;
    text-align:center;
  }
  .cover-copy h1, .cover-shell .supporting { margin-left:auto; margin-right:auto; }
  .cover-art { max-width:640px; margin:0 auto; }
  .chapter-grid { grid-template-columns:repeat(3,1fr); }
  .cover-shell h1 { font-size:42px; }
}
@media (max-width:640px) {
  .chapter-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .cover-shell { padding:32px 16px; min-height:auto; }
  .cover-shell h1 { font-size:34px; }
  .cover-shell .supporting { font-size:15.5px; }
}

/* ============ FOOTER ============ */
footer.site {
  border-top:1px solid var(--border);
  background:var(--white);
  padding:28px 0; margin-top:48px;
}
footer.site p {
  font-size:12px; color:var(--mid);
  max-width:920px; line-height:1.6;
}

/* ============ MODAL ============ */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(46,46,46,.6);
  display:none; align-items:center; justify-content:center;
  z-index:300; padding:4vh 4vw;
}
.modal-overlay.open { display:flex; }
.modal {
  position:relative;
  width:90vw; max-width:1280px;
  height:88vh;
  background:var(--white);
  border-radius:16px;
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow:var(--shadow-lg);
}
.modal-bar {
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 22px;
  background:var(--white);
  border-bottom:1px solid var(--border);
}
.modal-bar h3 {
  margin:0; font-size:16px; font-weight:700;
  color:var(--ink);
}
.modal-close {
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border);
  background:var(--white); color:var(--gray);
  font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:.15s;
}
.modal-close:hover { border-color:var(--accent); color:var(--accent); }
.modal-body {
  flex:1 1 auto;
  overflow-y:auto;
  padding:32px 36px 40px;
}
.modal-body.flush {
  padding:0;
  overflow:hidden;
  background:#525659;
}
.modal-body.flush iframe {
  display:block;
  width:100%; height:100%;
  border:0;
}
.modal-bar-actions {
  display:flex; align-items:center; gap:10px;
}
.modal-download {
  font:inherit; font-size:13px; font-weight:600;
  padding:8px 14px; border-radius:9px;
  border:1px solid var(--accent);
  background:var(--accent); color:#fff;
  cursor:pointer; transition:.15s;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:6px;
}
.modal-download:hover { background:var(--accent-dark); border-color:var(--accent-dark); }
@media (max-width:640px) {
  .modal { width:96vw; height:94vh; }
  .modal-body { padding:22px 18px; }
}

/* Video modal (Chapter 4) */
.video-overlay {
  position:fixed; inset:0;
  background:rgba(46,46,46,.78);
  display:none; align-items:center; justify-content:center;
  z-index:320; padding:4vh 4vw;
}
.video-overlay.open { display:flex; }
.video-modal {
  position:relative;
  width:90vw; max-width:1600px;
  aspect-ratio:16/9; max-height:86vh;
  background:#000;
  border-radius:16px;
  box-shadow:var(--shadow-xl);
  overflow:hidden;
}
.video-modal iframe {
  position:absolute; inset:0;
  width:100%; height:100%; border:0; display:block;
}
.video-close {
  position:absolute; top:18px; right:22px; z-index:5;
  width:42px; height:42px; border-radius:50%;
  border:none; background:rgba(255,255,255,.94); color:var(--ink);
  font-size:22px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 12px rgba(0,0,0,.35);
  transition:.15s;
}
.video-close:hover { background:#fff; transform:scale(1.05); }
.video-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--ink);
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; z-index:5;
  box-shadow:0 2px 12px rgba(0,0,0,.35);
  transition:.15s;
}
.video-nav:hover { background:#fff; transform:translateY(-50%) scale(1.06); }
.video-nav.prev { left:18px; }
.video-nav.next { right:18px; }
.video-caption {
  position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  background:rgba(0,0,0,.55); color:#fff;
  padding:8px 16px; border-radius:20px;
  font-size:13px; font-weight:600;
  z-index:5;
}

/* ============ CHAPTER 1 ============ */
.video-placeholder {
  background:var(--ink);
  border-radius:14px;
  aspect-ratio:16/9;
  display:flex; align-items:center; justify-content:center;
  color:#fff; position:relative;
  margin-top:32px; max-width:900px;
  overflow:hidden;
  cursor:pointer;
}
.video-placeholder .play {
  width:80px; height:80px; border-radius:50%;
  background:rgba(225,112,44,.94);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  transition:.18s;
}
.video-placeholder:hover .play { transform:scale(1.06); background:var(--accent); }
.video-placeholder .play svg { width:32px; height:32px; fill:#fff; margin-left:4px; }
.video-placeholder .label {
  position:absolute; bottom:18px; right:20px;
  font-size:12px; color:rgba(255,255,255,.6);
  letter-spacing:.05em;
}

/* Highlight cards (Chapter 1, Section 2) */
.highlights {
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  margin-top:24px;
}
@media (max-width:820px) { .highlights { grid-template-columns:1fr; } }
.hcard {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px 22px;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.hcard .ic {
  width:48px; height:48px; border-radius:12px;
  background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
  color:var(--accent);
}
.hcard .ic svg { width:24px; height:24px; }
.hcard h4 {
  font-size:17px; font-weight:700;
  color:var(--ink); letter-spacing:-.005em;
  line-height:1.3;
}

/* ============ CHAPTER 2 / GLOBE PLACEHOLDER ============ */
.globe-block {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  padding:40px 32px;
  margin:36px 0;
  box-shadow:var(--shadow-md);
}

/* Three-globe expansion visual (Chapter 2) */
.globe-row {
  display:flex; align-items:center; justify-content:center;
  gap:24px; padding:20px 8px;
}
.globe-node {
  flex:1 1 0; max-width:220px;
  text-align:center;
}
.globe-svg {
  width:140px; height:140px;
  margin:0 auto 16px; display:block;
}
.globe-label {
  font-size:15px; font-weight:700;
  color:var(--ink); letter-spacing:-.005em;
  line-height:1.3;
}
.globe-sub {
  font-size:11.5px; color:var(--accent);
  margin-top:6px;
  text-transform:uppercase; letter-spacing:.1em;
  font-weight:700;
}
.globe-arrow {
  flex:0 0 auto;
  font-size:24px; color:var(--mid);
  padding:0 4px; padding-bottom:62px;
  font-weight:300;
}
.globe-caption {
  text-align:center; margin-top:24px;
  font-size:13px; color:var(--mid);
  letter-spacing:.06em; text-transform:uppercase;
  font-weight:600;
}
@media (max-width:760px) {
  .globe-row { flex-direction:column; gap:24px; }
  .globe-arrow { padding:0; transform:rotate(90deg); }
}
.asset-placeholder {
  background:repeating-linear-gradient(
    45deg,
    var(--tint),
    var(--tint) 8px,
    #ecf0f6 8px,
    #ecf0f6 16px
  );
  border:2px dashed var(--border);
  border-radius:12px;
  padding:60px 24px;
  text-align:center;
  color:var(--mid);
}
.asset-placeholder .pl-label {
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); font-weight:700; margin-bottom:8px;
}
.asset-placeholder .pl-text {
  font-size:15px; color:var(--gray); font-weight:600;
}
.asset-placeholder .pl-note {
  font-size:12.5px; color:var(--mid); margin-top:8px;
}

/* Phased roadmap */
.phases {
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  margin-top:24px;
}
@media (max-width:880px) { .phases { grid-template-columns:1fr; } }
.phase-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px 22px;
  box-shadow:var(--shadow-sm);
}
.phase-card .phase-tag {
  font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent); font-weight:700; margin-bottom:10px;
}
.phase-card h3 {
  font-size:20px; font-weight:700;
  letter-spacing:-.01em; margin-bottom:6px;
}
.phase-card .phase-region {
  font-size:13px; color:var(--mid); margin-bottom:16px;
  font-weight:600;
}
.phase-list { list-style:none; margin:0; padding:0; }
.phase-list li {
  position:relative; padding-left:20px;
  font-size:14px; color:var(--gray);
  margin-top:8px; line-height:1.45;
}
.phase-list li::before {
  content:""; position:absolute; left:0; top:8px;
  width:7px; height:7px; border-radius:50%;
  background:var(--accent);
}
.phase-notes {
  border-top:1px solid var(--tint);
  margin-top:18px; padding-top:14px;
  font-size:13.5px; color:var(--gray); line-height:1.55;
}

/* ============ CHAPTER 3 — diligence card ============ */
.diligence-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  padding:36px 32px;
  box-shadow:var(--shadow-sm);
  max-width:760px; margin:24px auto 0;
  text-align:center;
}
.diligence-card h3 {
  font-size:22px; font-weight:700;
  margin-bottom:12px; letter-spacing:-.01em;
}
.diligence-card p {
  font-size:15px; color:var(--gray);
  line-height:1.6; margin-bottom:22px;
  max-width:560px; margin-left:auto; margin-right:auto;
}

/* Two-col context blocks */
.ctxblock {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px 28px;
  box-shadow:var(--shadow-sm);
  margin-top:18px;
}
.ctxblock h4 {
  font-size:18px; font-weight:700;
  margin-bottom:12px;
}
.ctxblock p { font-size:14.5px; color:var(--gray); line-height:1.6; margin-bottom:12px; }
.ctxblock ul { list-style:none; padding:0; margin:8px 0 0; columns:2; column-gap:20px; }
.ctxblock ul li {
  position:relative; padding-left:18px;
  font-size:14px; color:var(--ink);
  margin-bottom:8px; line-height:1.4;
  break-inside:avoid;
}
.ctxblock ul li::before {
  content:""; position:absolute; left:0; top:8px;
  width:6px; height:6px; border-radius:50%;
  background:var(--accent);
}
@media (max-width:640px) { .ctxblock ul { columns:1; } }

/* ============ CHAPTER 4 — demos ============ */
.demo-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:22px;
  margin-top:24px;
}
@media (max-width:760px) { .demo-grid { grid-template-columns:1fr; } }
.dcard {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:.18s;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
}
.dcard:hover {
  border-color:var(--accent);
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}
.dcard .embed {
  position:relative; width:100%; aspect-ratio:16/9;
  background:linear-gradient(135deg, #2E2E2E 0%, #1a1a1a 100%);
  overflow:hidden;
}
.dcard .embed .poster {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
  transition:transform .25s ease;
  z-index:1;
}
.dcard:hover .embed .poster { transform:scale(1.03); }
.dcard .embed::after {
  content:""; position:absolute; inset:0;
  background:rgba(46,46,46,.12); transition:.15s;
  z-index:2;
}
.dcard:hover .embed::after { background:rgba(46,46,46,.04); }
.dcard .play {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%); z-index:3;
  width:72px; height:72px; border-radius:50%;
  background:rgba(225,112,44,.94);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  transition:.2s;
}
.dcard:hover .play {
  transform:translate(-50%,-50%) scale(1.1);
  background:var(--accent);
}
.dcard .play svg { width:30px; height:30px; fill:#fff; margin-left:3px; }
.dcard .demo-num {
  position:absolute; top:14px; left:18px; z-index:4;
  background:rgba(0,0,0,.5);
  color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.1em;
  padding:5px 10px; border-radius:20px;
}
.dcard .dbody { padding:20px 22px 22px; }
.dcard .dbody h3 {
  font-size:18px; font-weight:700;
  margin-bottom:8px; letter-spacing:-.005em;
}
.dcard .dbody p {
  font-size:14px; color:var(--gray);
  line-height:1.55;
}

/* Architecture diagram (Chapter 4) */
.arch {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px 26px;
  box-shadow:var(--shadow-sm);
}
.arch-layer {
  text-align:center;
  padding:18px 16px;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.arch-layer.input { background:var(--accent-soft); color:var(--accent); }
.arch-layer.shared { background:var(--ink); color:#fff; }
.arch-layer.apps { background:var(--tint); color:var(--ink); border:1px solid var(--border); }
.arch-layer.future {
  border:1px dashed var(--border);
  color:var(--mid);
  background:transparent;
}
.arch-arrow {
  text-align:center; color:var(--mid);
  margin:10px 0; font-size:22px;
}
.arch-layer .layer-sub {
  font-size:11.5px; font-weight:600;
  margin-top:8px; opacity:.85;
  text-transform:none; letter-spacing:0;
  line-height:1.5;
}

/* Closing icon cards (Chapter 4) */
.icon-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
@media (max-width:820px) { .icon-cards { grid-template-columns:1fr; } }
.icon-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px 22px;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.icon-card .ic {
  width:48px; height:48px; border-radius:12px;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
}
.icon-card .ic svg { width:24px; height:24px; }
.icon-card .top {
  font-size:13px; font-weight:700; color:var(--accent);
  text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:6px;
}
.icon-card .bot {
  font-size:16px; font-weight:700; color:var(--ink);
}

/* ============ CHAPTER 5 — financial model ============ */
.calc-grid {
  display:grid; grid-template-columns:1fr 1.05fr;
  gap:24px; align-items:start; margin-top:8px;
}
@media (max-width:980px) { .calc-grid { grid-template-columns:1fr; } }

.panel {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px;
  box-shadow:var(--shadow-sm);
}
.panel h3 {
  font-size:13px; text-transform:uppercase;
  letter-spacing:.1em; color:var(--gray);
  margin-bottom:4px;
}
.panel .sub {
  font-size:13px; color:var(--mid); margin-bottom:16px;
}

.field {
  padding:16px 0;
  border-top:1px solid var(--tint);
}
.field:first-of-type {
  border-top:none; padding-top:2px;
}
.frow {
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px;
}
.field label { font-size:15px; font-weight:600; }
.vbox { display:flex; align-items:center; gap:4px; }
.vbox .pfx { color:var(--mid); font-size:14px; }
.field input[type=number] {
  width:90px; font:inherit; font-size:15px; font-weight:700;
  color:var(--accent); text-align:right;
  border:1px solid var(--border); border-radius:8px;
  padding:6px 10px;
}
.field input[type=number]:focus {
  outline:2px solid var(--accent); outline-offset:1px;
  border-color:var(--accent);
}
.field .sfx { color:var(--mid); font-size:14px; }

input[type=range] {
  -webkit-appearance:none; appearance:none;
  width:100%; height:5px; border-radius:4px;
  background:var(--border);
  margin-top:14px; cursor:pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none;
  width:20px; height:20px; border-radius:50%;
  background:var(--accent); border:3px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.25);
}
input[type=range]::-moz-range-thumb {
  width:17px; height:17px; border-radius:50%;
  background:var(--accent); border:3px solid #fff;
}
.why {
  font-size:12.5px; color:var(--mid);
  margin-top:10px; line-height:1.5;
}
.why b { color:var(--gray); }

.scenario-row {
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px;
}
.scenario-btn {
  font:inherit; font-size:16px; font-weight:600;
  padding:9px 18px; border-radius:10px;
  border:1px solid var(--border); background:#fff;
  color:var(--ink); cursor:pointer; transition:.15s;
}
.scenario-btn:hover { border-color:var(--accent); color:var(--accent); }
.scenario-btn.danger { border-color:#f4c8c2; color:var(--bad); }
.scenario-btn.danger:hover { background:var(--bad-soft); border-color:var(--bad); }

.hero-out {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px;
  margin-bottom:16px;
  box-shadow:var(--shadow-sm);
}
.rtop {
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
}
.rnum {
  font-size:62px; font-weight:800;
  line-height:.95; letter-spacing:-.02em;
}
.rnum span { font-size:30px; font-weight:700; color:var(--mid); }
.rcap {
  font-size:12.5px; color:var(--mid);
  text-transform:uppercase; letter-spacing:.09em; margin-top:8px;
}
.exact { font-size:12.5px; color:var(--mid); margin-top:4px; }
.status {
  font-size:14px; font-weight:700;
  padding:6px 14px; border-radius:20px; white-space:nowrap;
}
.status.good { background:var(--good-soft); color:var(--good); }
.status.ok { background:var(--accent-soft); color:var(--warn); }
.status.bad { background:var(--bad-soft); color:var(--bad); }
.gauge { margin-top:22px; }
.gtrack {
  position:relative; height:14px; border-radius:8px;
  background:var(--tint); border:1px solid var(--border);
  overflow:hidden;
}
.gfloor { position:absolute; top:0; bottom:0; background:var(--floor); }
.gfill {
  position:absolute; top:0; bottom:0; left:0;
  border-radius:8px 0 0 8px;
  background:var(--accent);
  transition:width .35s cubic-bezier(.4,0,.2,1), background .35s;
}
.gmark { position:absolute; top:-4px; bottom:-4px; width:2px; background:var(--gray); }
.gscale {
  display:flex; justify-content:space-between;
  margin-top:8px; font-size:11px; color:var(--mid);
}
.gleg { font-size:12px; color:var(--gray); margin-top:10px; }
.swatch {
  display:inline-block; width:10px; height:10px;
  border-radius:2px; background:var(--floor);
  border:1px solid #e0cfb6;
  vertical-align:middle; margin-right:4px;
}

.build { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 16px;
}
.stat .k {
  font-size:12px; color:var(--mid);
  text-transform:uppercase; letter-spacing:.07em;
}
.stat .v {
  font-size:24px; font-weight:700; margin-top:4px;
  letter-spacing:-.01em;
}
.stat .v.neg { color:var(--bad); }
.stat .v.pos { color:var(--good); }
.stat .n { font-size:12px; color:var(--mid); margin-top:4px; }

.secttl {
  font-size:13px; text-transform:uppercase;
  letter-spacing:.1em; color:var(--gray);
  margin:20px 0 10px;
}
.divider { height:1px; background:var(--border); margin:8px 0 2px; }

/* Deep-dive button row */
.deep-row {
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  margin-top:28px;
}
@media (max-width:820px) { .deep-row { grid-template-columns:1fr; } }
.deep-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px 22px;
  box-shadow:var(--shadow-sm);
  text-align:left;
  display:flex; flex-direction:column;
  cursor:pointer; transition:.18s;
  font:inherit; color:inherit;
}
.deep-card:hover {
  border-color:var(--accent);
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}
.deep-card .ic {
  width:42px; height:42px; border-radius:10px;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.deep-card .ic svg { width:22px; height:22px; }
.deep-card h4 {
  font-size:17px; font-weight:700;
  margin-bottom:8px; letter-spacing:-.005em;
}
.deep-card p {
  font-size:13.5px; color:var(--gray);
  line-height:1.55; flex:1; margin-bottom:14px;
}
.deep-card .go {
  font-size:13.5px; font-weight:700; color:var(--accent);
  display:inline-flex; align-items:center; gap:6px;
}

/* ============ CHAPTER 6 — leadership ============ */
.lead-head {
  text-align:center; max-width:820px;
  margin:24px auto 36px;
}
.lead-head h2 {
  font-size:26px; font-weight:700;
  line-height:1.32; color:var(--ink);
  letter-spacing:-.005em;
}
.lead-cards {
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
@media (max-width:980px) { .lead-cards { grid-template-columns:1fr; } }
.lcard {
  background:var(--white); border:1px solid var(--border);
  border-radius:16px; padding:28px 26px;
  box-shadow:var(--shadow-sm);
}
.lphoto {
  width:140px; height:140px; border-radius:50%;
  padding:4px; border:2px solid var(--accent);
  margin:0 auto 18px; box-sizing:border-box;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size:38px; font-weight:800; overflow:hidden;
}
.lphoto img { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.lname { text-align:center; font-size:22px; font-weight:800; color:var(--ink); }
.lrole { text-align:center; font-size:16px; font-weight:700; color:var(--accent); margin-top:4px; }
.ltitle { text-align:center; font-size:14px; font-weight:600; color:var(--ink); margin-top:10px; line-height:1.45; }
.lbio { font-size:13.5px; color:#444; line-height:1.65; margin-top:18px; }
.lhr { height:1px; background:var(--border); margin:22px 0 16px; }
.lowns {
  font-size:12px; font-weight:700; letter-spacing:.1em;
  color:var(--accent); text-transform:uppercase; margin-bottom:16px;
}
.litem {
  display:flex; align-items:center; gap:12px; margin-bottom:13px;
}
.litem .ico {
  width:18px; height:18px; flex:0 0 auto;
  color:var(--accent);
}
.litem span { font-size:14px; font-weight:600; color:var(--ink); }

/* Why this team works */
.tworks {
  background:#FBF7F1; border:1px solid #F3D9C2;
  border-radius:22px; padding:42px 40px 48px;
  margin-top:36px;
}
.tworks-title {
  display:flex; align-items:center; justify-content:center;
  gap:22px; margin-bottom:38px;
}
.tworks-title span {
  font-size:20px; font-weight:600; letter-spacing:.05em;
  color:#2c2c2c; text-transform:uppercase; white-space:nowrap;
}
.tworks-title .ln {
  height:1px; background:#E3B690;
  flex:0 1 230px; max-width:230px;
}
.tworks-row {
  display:flex; align-items:flex-start; justify-content:center; gap:8px;
}
.tnode { text-align:center; max-width:200px; flex:0 0 auto; }
.tnode.tres-node { max-width:300px; }
.tcircle {
  width:96px; height:96px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
}
.tcircle svg { width:52px; height:52px; color:#fff; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.tnode .tn {
  font-size:20px; font-weight:700; letter-spacing:.02em;
  text-transform:uppercase; line-height:1.1;
}
.tnode .td {
  font-size:15px; color:#2b2b2b; font-weight:500;
  margin-top:8px; line-height:1.35;
}
.tnode .tn.tres { font-size:19px; line-height:1.2; margin-bottom:2px; }
.tplus {
  font-size:36px; line-height:1; font-weight:500; color:#7a7a7a;
  align-self:center; padding-top:26px; flex:0 0 auto;
}
.c-orange { background:#F57C00; } .tn-orange { color:#F57C00; }
.c-navy { background:#0B3D78; } .tn-navy { color:#0B3D78; }
.c-green { background:#6DA544; } .tn-green { color:#6DA544; }
@media (max-width:820px) {
  .tworks-row { flex-direction:column; align-items:center; }
  .tplus { padding-top:0; }
  .tnode { max-width:320px; }
}

@media (prefers-reduced-motion:reduce) {
  * { transition:none !important; animation:none !important; }
}
