/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #1B3A5C;
  --teal:        #0077A8;
  --teal-bright: #00B4D8;
  --teal-light:  #48CAE4;
  --teal-bg:     #E8F4F8;
  --teal-pale:   #F0FAFE;
  --gold:        #E08D3C;
  --gold-light:  #F4C07A;
  --white:       #FFFFFF;
  --off-white:   #F7FBFD;
  --text:        #0D1B2A;
  --text-mid:    #2A4560;
  --text-muted:  #5A7A90;
  --rule:        #C8DDE8;
  --shadow:      0 4px 24px rgba(0,119,168,.10);
  --shadow-lg:   0 12px 48px rgba(0,119,168,.15);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.22s ease;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-bright); }

/* ─── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
p  { color: var(--text-mid); max-width: 68ch; }

/* ─── Layout helpers ───────────────────────────────────────── */
.container  { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--off-white); }
.section--teal { background: var(--teal-bg); }

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: .9rem 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 2rem;
}
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); text-decoration: none;
}
.nav__brand span {
  display: inline-block; background: var(--teal);
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2em .55em; border-radius: 4px; margin-right: .3rem;
}
.nav__links {
  display: flex; gap: 1.8rem; list-style: none;
}
.nav__links a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--teal); }
.nav__cta {
  background: var(--teal); color: #fff !important;
  padding: .4rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--navy) !important; color: #fff !important; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #f0fafe 0%, #ffffff 55%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,202,228,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { padding-right: 2rem; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-bg); color: var(--teal);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem .8rem;
  border-radius: 99px; border: 1px solid var(--teal-light);
  margin-bottom: 1.2rem;
}
.hero__eyebrow::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-bright);
}
.hero__title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy) 30%, var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__title em { font-style: italic; }
.hero__subtitle {
  font-size: 1.25rem; font-weight: 300; color: var(--text-mid);
  margin-bottom: 2rem; max-width: 52ch;
}
.hero__def {
  background: var(--white);
  border-left: 3px solid var(--teal);
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow);
}
.hero__def p { font-size: .95rem; color: var(--text-mid); max-width: none; }
.hero__def strong { color: var(--teal); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600;
  padding: .75rem 1.6rem; border-radius: var(--radius-sm);
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 4px 14px rgba(0,119,168,.3);
}
.btn--primary:hover {
  background: var(--navy); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,168,.3);
}
.btn--outline {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn--outline:hover {
  background: var(--teal); color: #fff;
  transform: translateY(-2px);
}
.hero__visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero__visual svg {
  width: 280px; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,119,168,.18));
  animation: floatBob 6s ease-in-out infinite;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.hero__visual-label {
  position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Snap concept strip ────────────────────────────────────── */
.snap-strip {
  background: var(--navy);
  padding: 2.4rem 0;
  overflow: hidden;
}
.snap-strip__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1140px; margin: 0 auto; padding: 0 2rem;
}
.snap-strip__word {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 900; font-style: italic;
  color: var(--teal-light); flex-shrink: 0;
}
.snap-strip__pipe { width: 1px; height: 60px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.snap-strip__copy { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.6; }
.snap-strip__copy strong { color: var(--teal-light); }

/* ─── Steps (The Loop) ──────────────────────────────────────── */
.loop-steps {
  display: flex; gap: 0; align-items: stretch;
  margin-top: 3rem;
}
.loop-step {
  flex: 1; background: var(--white);
  border: 1px solid var(--rule); border-right: none;
  padding: 2rem 1.5rem; text-align: center;
  transition: all var(--transition);
}
.loop-step:last-child { border-right: 1px solid var(--rule); border-radius: 0 var(--radius) var(--radius) 0; }
.loop-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.loop-step:hover { background: var(--teal-bg); transform: translateY(-4px); }
.loop-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: .8rem; font-weight: 700;
  margin-bottom: .8rem;
}
.loop-step__label {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-bottom: .4rem;
}
.loop-step__desc { font-size: .85rem; color: var(--text-muted); max-width: none; }
.loop-arrow { align-self: center; color: var(--teal-light); font-size: 1.2rem; padding: 0 .2rem; }

/* ─── Chapter Cards ─────────────────────────────────────────── */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.chapter-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-light);
  color: inherit;
}
.chapter-card__header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.chapter-card__badge {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--teal); color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
}
.chapter-card__title-wrap { flex: 1; min-width: 0; }
.chapter-card__ch-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); display: block;
  margin-bottom: .2rem;
}
.chapter-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--navy);
  line-height: 1.3;
}
.chapter-card__body {
  padding: 1rem 1.4rem 1.4rem; flex: 1;
}
.chapter-card__parallel {
  font-size: .82rem; font-style: italic; color: var(--text-muted);
  border-left: 2px solid var(--teal-light);
  padding-left: .75rem; margin-bottom: .75rem;
}
.chapter-card__desc { font-size: .875rem; color: var(--text-mid); max-width: none; }
.chapter-card__cta {
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; color: var(--teal);
  padding: .8rem 1.4rem;
  border-top: 1px solid var(--rule);
}
.chapter-card__cta::after { content: '→'; transition: transform var(--transition); }
.chapter-card:hover .chapter-card__cta::after { transform: translateX(4px); }

/* ─── About strip ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  align-items: start;
}
.about-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; text-align: center;
  border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.about-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--navy);
  margin-bottom: .3rem;
}
.about-card__title { font-size: .85rem; color: var(--teal); font-weight: 600; margin-bottom: 1rem; }
.about-card__links { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.2rem; }
.about-card__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .82rem; font-weight: 500; color: var(--teal);
  background: var(--teal-bg); padding: .4rem .8rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.about-card__link:hover { background: var(--teal); color: #fff; }
.about-content h3 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 3rem 0 2rem;
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: start;
  gap: 2rem; flex-wrap: wrap;
}
.footer__brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: .4rem; }
.footer__tagline { font-size: .85rem; opacity: .7; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; }
.footer__links a { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer__links a:hover { color: var(--teal-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem; padding-top: 1.5rem;
  font-size: .8rem; opacity: .5; text-align: center;
}

/* ─── Chapter Page ──────────────────────────────────────────── */
.chapter-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0 3rem;
  color: #fff;
}
.chapter-hero__eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-light);
  margin-bottom: .8rem;
}
.chapter-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  color: #fff; margin-bottom: 1rem; line-height: 1.15;
}
.chapter-hero__sub {
  font-size: 1rem; color: rgba(255,255,255,.75);
  max-width: 60ch; margin-bottom: 1.8rem;
}
.chapter-hero__parallel {
  display: inline-flex; gap: .6rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .8rem 1.2rem;
  max-width: 72ch;
}
.chapter-hero__parallel-icon { font-size: 1.2rem; flex-shrink: 0; }
.chapter-hero__parallel-text { font-size: .9rem; color: rgba(255,255,255,.8); font-style: italic; }

.chapter-body { padding: 4rem 0; }
.chapter-layout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start;
}
.chapter-section { margin-bottom: 2.5rem; }
.chapter-section h3 {
  font-size: 1.2rem; margin-bottom: .8rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--teal-bg);
}
.chapter-section p { margin-bottom: .75rem; }

/* Bullet list */
.concept-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem; }
.concept-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--teal-pale); border-radius: var(--radius-sm);
  padding: .7rem 1rem; font-size: .9rem; color: var(--text-mid);
}
.concept-list li::before {
  content: '▸'; color: var(--teal); font-size: .9rem; flex-shrink: 0; margin-top: .05em;
}

/* Key principle box */
.principle-box {
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 1.6rem;
  margin-top: 2rem;
}
.principle-box h4 { color: var(--teal-light); margin-bottom: .6rem; }
.principle-box p { color: rgba(255,255,255,.82); max-width: none; font-size: .92rem; }

/* Sidebar checklist */
.sidebar-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow); position: sticky; top: 90px;
}
.sidebar-card__title {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}
.checklist { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.checklist li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .83rem; line-height: 1.5; color: var(--text-mid);
}
.checklist li::before {
  content: '□'; color: var(--teal); font-size: 1rem;
  flex-shrink: 0; margin-top: -.05em;
}

/* Chapter nav */
.chapter-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; border-top: 1px solid var(--rule); margin-top: 3rem;
}
.chapter-nav a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--teal);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--teal-light); transition: all var(--transition);
}
.chapter-nav a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.chapter-nav__home {
  font-family: 'Playfair Display', serif;
  font-size: .85rem; color: var(--text-muted); text-align: center;
}

/* ─── Section headers ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .8rem; }
.section-header p { margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up--1 { animation-delay: .1s; }
.fade-up--2 { animation-delay: .2s; }
.fade-up--3 { animation-delay: .3s; }
.fade-up--4 { animation-delay: .4s; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__content { padding-right: 0; }
  .hero__visual { order: -1; }
  .hero__def { text-align: left; }
  .hero__actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .chapter-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .loop-steps { flex-direction: column; }
  .loop-step { border-right: 1px solid var(--rule); border-bottom: none; border-radius: 0; }
  .loop-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .loop-step:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid var(--rule); }
  .snap-strip__inner { flex-direction: column; gap: 1rem; text-align: center; }
  .snap-strip__pipe { display: none; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .chapter-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}
