/* =======================================================
   THE BREAK — Design System
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Mono:wght@400;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ----- Variables ----- */
:root {
  --bg:           #F9F4F0;   /* Cream — page bg */
  --bg-cream:     #FFFFFF;   /* White — cards, alt sections */
  --blush:        #F9CBD1;   /* Soft Pink — subtle bg, tags */
  --taupe:        rgba(0,0,0,.3);   /* Black, reduced — borders, dividers (light bg use) */
  --brown:        #385A36;   /* Forest Green — secondary text, links */
  --dark:         #000000;   /* Black — primary text & dark sections */
  --pink:         #EC6644;   /* Coral — primary accent, CTAs */
  --pink-deep:    #000000;   /* Black — hover states */
  --lime:         #C0DF40;   /* Lime — pop accent, badges, highlights */
  --white:        #FFFFFF;

  --ff-display:   'Poppins', sans-serif;
  --ff-serif:     'Playfair Display', Georgia, serif;
  --ff-body:      'Lora', Georgia, serif;
  --ff-accent:    'Cormorant Garamond', Georgia, serif;
  --ff-script:    'Great Vibes', cursive;
  --ff-logo:      'Anton', sans-serif;
  --ff-mono:      'Space Mono', monospace;

  --nav-h:        72px;
  --sidebar-w:    300px;

  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  28px;
  --r-xl:  40px;

  --sh-xs:   0 1px 6px rgba(0,0,0,.08);
  --sh-soft: 0 3px 20px rgba(0,0,0,.10);
  --sh-card: 0 8px 40px rgba(0,0,0,.15);
  --sh-lift: 0 16px 60px rgba(0,0,0,.22);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  text-transform: uppercase;
}
h4 {
  font-family: var(--ff-body);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}
h5 {
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
h6 {
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dark);
}

p   { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a   { color: var(--brown); text-decoration: none; transition: color .22s; }
a:hover { color: var(--dark); }

.eyebrow {
  display: block;
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--pink);
  margin-bottom: .6rem;
}
.overline {
  display: block;
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: .4rem;
}
.quote-text {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.5;
}
.body-large {
  font-size: 1.15rem;
  line-height: 1.85;
}
.body-small {
  font-size: .88rem;
  line-height: 1.7;
}
em { font-style: italic; }
strong { font-weight: 700; }

/* ----- Layout ----- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.container-sm { max-width: 900px;  margin: 0 auto; padding: 0 2.5rem; }
.container-xs { max-width: 640px;  margin: 0 auto; padding: 0 2.5rem; }

.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 9rem 0; }

.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-ai  { align-items: center; }

.flex         { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-col     { display: flex; flex-direction: column; }
.gap-1   { gap: 1rem; }
.gap-2   { gap: 2rem; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }

.mt-xs { margin-top: .5rem; }
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mt-3  { margin-top: 3rem; }
.mb-1  { margin-bottom: 1rem; }
.mb-2  { margin-bottom: 2rem; }
.mb-3  { margin-bottom: 3rem; }

/* ----- Divider ----- */
.divider        { width: 48px; height: 1.5px; background: var(--pink); margin: 1.5rem 0; }
.divider-center { margin: 1.5rem auto; }
.divider-lg     { width: 80px; height: 2px; }

/* ----- Cards ----- */
.card {
  background: var(--bg-cream);
  border-radius: var(--r-md);
  padding: 2.2rem;
  box-shadow: var(--sh-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-sm { padding: 1.5rem; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-card); }
.card-blush  { background: rgba(56,90,54,.12); }
.card-dark   { background: var(--dark); }
.card-dark * { color: var(--bg-cream); }
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-border { border: 1.5px solid var(--taupe); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2.2rem;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  border: none;
  line-height: 1;
}
.btn-sm { padding: .65rem 1.5rem; font-size: .85rem; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.05rem; }

.btn-primary { background: var(--dark); color: var(--bg-cream); }
.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  color: var(--bg-cream);
}
.btn-secondary { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-secondary:hover { background: var(--dark); color: var(--bg-cream); }

.btn-pink { background: var(--pink); color: var(--dark); }
.btn-pink:hover { background: var(--pink-deep); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: var(--bg-cream);
  border: 1.5px solid rgba(249,244,240,.45);
}
.btn-outline-light:hover {
  background: rgba(249,244,240,.12);
  color: var(--bg-cream);
  border-color: rgba(249,244,240,.7);
}

.btn-ghost { background: transparent; color: var(--brown); }
.btn-ghost:hover { background: rgba(56,90,54,.1); color: var(--dark); }

/* ----- Forms ----- */
.form-group { margin-bottom: 1.5rem; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: .5rem;
}
.form-hint {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: .5rem;
  display: block;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: .9rem 1.2rem;
  background: var(--bg);
  border: 1.5px solid var(--taupe);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--dark);
  transition: border-color .22s, box-shadow .22s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--taupe);
  font-style: italic;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(56,90,54,.13);
  background: var(--white);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.75;
}
.form-textarea.tall { min-height: 160px; }

/* Journal-style textarea */
.journal-input {
  background: var(--bg-cream);
  border: 1px solid var(--taupe);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.2rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--dark);
  width: 100%;
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
  outline: none;
  transition: border-color .22s, box-shadow .22s;
}
.journal-input:focus {
  border-left-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(56,90,54,.1);
}

/* ----- Pills / Tags ----- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: .28rem .85rem;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pill-pink   { background: rgba(236,102,68,.25); color: var(--dark); }
.pill-brown  { background: rgba(56,90,54,.14);  color: var(--dark); }
.pill-dark   { background: var(--dark); color: var(--bg-cream); }
.pill-cream  { background: var(--bg-cream); color: var(--dark); }
.pill-taupe  { background: var(--blush); color: var(--dark); }

/* ----- Progress Bar ----- */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-track {
  flex: 1;
  height: 5px;
  background: var(--blush);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--brown));
  border-radius: 100px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.progress-label {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(249,244,240,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-logo .accent { color: var(--pink); }
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-img-invert { filter: invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color .22s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brown);
  transition: width .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--brown); }

.nav-cta {
  background: var(--dark) !important;
  color: var(--bg-cream) !important;
  padding: .52rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--brown) !important; color: var(--bg-cream) !important; }

/* ----- Announcement Bar ----- */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  background: var(--dark);
  color: var(--blush);
  text-align: center;
  padding: .65rem 2rem;
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .06em;
}
.announce-bar a { color: var(--pink); font-weight: 600; }
.announce-bar a:hover { color: var(--white); }

/* When announce bar is present, nav sits below it — both stay fixed together */
.has-announce .nav { top: 2.6rem; }
.has-announce { padding-top: calc(var(--nav-h) + 2.6rem); }

/* ----- Exercise Box ----- */
.exercise-box {
  background: var(--bg-cream);
  border-radius: var(--r-md);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,.3);
  box-shadow: var(--sh-xs);
  transition: box-shadow .25s;
}
.exercise-box:hover { box-shadow: var(--sh-soft); }
.exercise-box.completed {
  border-left: 3px solid var(--brown);
  background: rgba(249,244,240,.3);
}
.exercise-number {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: .4rem;
  display: block;
}
.exercise-question {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
  line-height: 1.4;
}
.exercise-sub {
  font-size: .92rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-style: italic;
  font-family: var(--ff-accent);
}

/* Currency picker in nav */
.currency-pick { display: flex; align-items: center; margin-left: .25rem; }
.currency-pick select {
  background: transparent;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 6px;
  padding: .28rem .55rem;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  outline: none;
}
.exercise-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  padding: .5rem 1.2rem;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1.5px solid var(--taupe);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  transition: all .22s;
}
.exercise-complete-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--bg-cream);
}
.exercise-complete-btn.done {
  background: rgba(236,102,68,.2);
  border-color: var(--pink);
  color: var(--dark);
}
.exercise-complete-btn .check { font-size: 1rem; }

/* ----- Sidebar Layout ----- */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--dark);
  position: fixed;
  top: var(--nav-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 2rem 0;
  z-index: 100;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1rem;
}
.sidebar-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--bg-cream);
  font-weight: 600;
}
.sidebar-progress-text {
  font-size: .8rem;
  color: rgba(249,244,240,.55);
  margin-top: .3rem;
}

.chapter-nav { list-style: none; padding: 0 .75rem; }
.chapter-nav-item a {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem .85rem;
  border-radius: var(--r-sm);
  color: rgba(249,244,240,.65);
  text-decoration: none;
  font-size: .875rem;
  font-family: var(--ff-body);
  line-height: 1.4;
  transition: all .22s;
  cursor: pointer;
}
.chapter-nav-item a:hover {
  background: rgba(255,255,255,.07);
  color: var(--bg-cream);
}
.chapter-nav-item a.active {
  background: rgba(236,102,68,.18);
  color: var(--bg-cream);
}
.chapter-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(249,244,240,.3);
  flex-shrink: 0;
  margin-top: .15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  transition: all .22s;
}
.chapter-nav-item a.active .chapter-dot,
.chapter-nav-item a.done .chapter-dot {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}
.chapter-nav-item a.done { color: rgba(249,244,240,.5); }
.chapter-meta {
  flex: 1;
}
.chapter-name { display: block; }
.chapter-time {
  font-size: .73rem;
  color: rgba(249,244,240,.4);
  margin-top: .15rem;
  display: block;
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2.5rem 3rem 4rem;
  max-width: 860px;
}

/* ----- Tracker Table ----- */
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: .9rem;
  margin: 1rem 0;
}
.tracker-table th {
  background: var(--dark);
  color: var(--bg-cream);
  padding: .7rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tracker-table th:first-child { border-radius: var(--r-xs) 0 0 0; }
.tracker-table th:last-child  { border-radius: 0 var(--r-xs) 0 0; }
.tracker-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid rgba(0,0,0,.25);
}
.tracker-table tr:nth-child(even) td { background: rgba(249,244,240,.2); }
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table .category-label {
  font-weight: 600;
  color: var(--dark);
  font-size: .85rem;
}
.tracker-table input[type="text"],
.tracker-table input[type="number"] {
  width: 100%;
  padding: .35rem .6rem;
  background: rgba(249,244,240,.5);
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--ff-body);
  font-size: .88rem;
  color: var(--dark);
  outline: none;
  transition: border-color .2s, background .2s;
}
.tracker-table input:focus {
  border-color: var(--brown);
  background: var(--white);
}
.tracker-table .total-row td {
  background: var(--dark);
  color: var(--bg-cream);
  font-weight: 700;
  font-size: .88rem;
  padding: .7rem 1rem;
}
.tracker-table .section-header td {
  background: rgba(56,90,54,.14);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark);
  padding: .5rem .75rem;
}

/* ----- Money Date ----- */
.money-date-part {
  background: var(--bg-cream);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--sh-xs);
}
.money-date-part-header {
  background: var(--dark);
  padding: 1.1rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.money-date-part-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--bg-cream);
  font-weight: 600;
}
.money-date-part-time {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: .9rem;
  color: rgba(249,244,240,.5);
}
.money-date-part-body { padding: 1.8rem; }

/* Goal carry-over banner */
.goal-carryover {
  background: rgba(56,90,54,.12);
  border: 1.5px solid rgba(56,90,54,.35);
  border-radius: var(--r-md);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.goal-carryover-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.goal-carryover-label {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: .3rem;
  display: block;
}
.goal-carryover-text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 500;
}

/* ----- Past Entries List ----- */
.entry-card {
  background: var(--bg-cream);
  border-radius: var(--r-md);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: all .25s;
  border: 1px solid transparent;
}
.entry-card:hover {
  box-shadow: var(--sh-soft);
  border-color: var(--taupe);
  transform: translateX(4px);
}
.entry-card-date {
  background: var(--dark);
  color: var(--bg-cream);
  border-radius: var(--r-sm);
  padding: .6rem .9rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 62px;
}
.entry-card-month {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
}
.entry-card-year {
  font-size: .8rem;
  opacity: .6;
  display: block;
}
.entry-card-content { flex: 1; }
.entry-card-theme {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: .3rem;
}
.entry-card-snippet { font-size: .88rem; color: var(--dark); }

/* ----- Dashboard Stat Cards ----- */
.stat-card {
  background: var(--bg-cream);
  border-radius: var(--r-md);
  padding: 1.8rem;
  box-shadow: var(--sh-soft);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--brown));
}
.stat-value {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark);
}

/* ----- Footer ----- */
.footer {
  background: var(--dark);
  color: var(--blush);
  padding: 5rem 0 2.5rem;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  filter: invert(1);
  margin-bottom: 1rem;
  display: block;
}
.footer-tagline {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1rem;
  color: rgba(249,244,240,.6);
}
.footer-col h6 { color: rgba(249,244,240,.8); margin-bottom: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: rgba(249,244,240,.55);
  font-size: .88rem;
  transition: color .22s;
}
.footer-links a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(249,244,240,.4);
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes checkPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.anim-up { opacity: 0; animation: fadeUp .85s ease forwards; }
.anim-in { opacity: 0; animation: fadeIn .6s ease forwards;  }

.d1 { animation-delay: .1s;  }
.d2 { animation-delay: .22s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .5s;  }
.d5 { animation-delay: .65s; }
.d6 { animation-delay: .8s;  }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ----- Checklist items ----- */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(0,0,0,.2);
  font-size: 1.05rem;
}
.check-list li:last-child { border-bottom: none; }
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(236,102,68,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .22rem;
  font-size: .8rem;
}

/* ----- Quote block ----- */
.quote-block {
  background: var(--dark);
  border-radius: var(--r-md);
  padding: 2.5rem 3rem;
  text-align: center;
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-family: var(--ff-display);
  font-size: 5rem;
  line-height: 0;
  color: rgba(236,102,68,.2);
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
}
.quote-block .quote-text { color: var(--bg-cream); }
.quote-block .quote-attr {
  display: block;
  margin-top: 1.2rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .sidebar { width: 260px; }
  .main-content { margin-left: 260px; padding: 2rem; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .container, .container-sm { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }

  .app-layout { flex-direction: column; }
  .sidebar {
    position: relative;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1rem 0;
  }
  .chapter-nav { display: flex; gap: .4rem; width: max-content; padding: 0 1rem; }
  .chapter-nav-item a { flex-direction: column; align-items: center; min-width: 90px; font-size: .76rem; }
  .main-content { margin-left: 0; padding: 2rem 1.5rem; max-width: 100%; }
}
