/* ═══════════════════════════════════════════════════════════════
   DMAB ENTERPRISE — Design System
   Matches Warm Editorial v2 deck
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:           #f7f2e8;
  --bg-card:      #ede8dc;
  --bg-surface:   #e3ddd0;
  --bg-white:     #ffffff;
  --teal:         #108474;
  --teal-light:   #0d9e8a;
  --teal-dark:    #0a6055;
  --gold:         #D4A017;
  --gold-dim:     rgba(212, 160, 23, 0.45);
  --text:         #2d2d2d;
  --text-dim:     rgba(45, 45, 45, 0.78);  /* WCAG AA: ~5.0:1 on cream */
  --text-fade:    rgba(45, 45, 45, 0.58);  /* WCAG AA: ~4.5:1 on cream */
  --border:       rgba(45, 45, 45, 0.12);
  --border-strong: rgba(45, 45, 45, 0.22);
  --gray-300:     #9a9082;
  --gray-500:     #7a7268;
  --gray-700:     #5a5248;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max:          1200px;
  --max-narrow:   880px;
  --shadow-sm:    0 2px 8px rgba(45,45,45,0.06);
  --shadow-md:    0 8px 24px rgba(45,45,45,0.08);
  --shadow-lg:    0 16px 48px rgba(45,45,45,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
h4 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }
em { font-style: italic; color: var(--teal); }

p { font-size: 17px; line-height: 1.7; color: var(--text-dim); font-weight: 400; }
p.lead { font-size: 21px; line-height: 1.55; color: var(--text); font-weight: 300; }
p.large { font-size: 19px; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }
section { padding: 100px 0; position: relative; }
section.tight { padding: 64px 0; }
section.alt { background: var(--bg-card); }
section.dark { background: var(--text); color: var(--bg); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--bg); }
section.dark p { color: rgba(247,242,232,0.75); }
section.dark em { color: var(--gold); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.center { text-align: center; }
.measure { max-width: 640px; }
.measure-narrow { max-width: 520px; }
.spacer-sm { height: 32px; }
.spacer-md { height: 64px; }
.spacer-lg { height: 96px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.logo-mark {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
  align-self: center;
  line-height: 1.1;
}
/* Footer logo — slightly smaller, no top-section sticky context */
.footer .logo-mark { height: 40px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--teal-dark); color: var(--bg) !important; transform: translateY(-1px); }

.mobile-toggle { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px 32px;
    align-items: flex-start;
    gap: 18px;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    color: var(--text);
  }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--bg) !important; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--text) !important; border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal) !important; }
.btn-light { background: var(--bg); color: var(--text) !important; }
.btn-light:hover { background: var(--bg-card); }
.btn-arrow::after { content: '→'; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

.text-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.text-link:hover { border-bottom-color: var(--teal); }
.text-link::after { content: '→'; transition: transform 0.2s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,132,116,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; text-align: center; padding: 0 32px; }
.hero h1 { margin-bottom: 28px; }
.hero p.lead { margin: 0 auto 36px; max-width: 700px; }
.hero .trust {
  margin-top: 48px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-fade);
}
.hero .trust strong { color: var(--teal); font-weight: 700; }

.hero-compact { padding: 80px 0 60px; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.card.hover { cursor: pointer; }
.card.hover:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.card .icon {
  width: 44px; height: 44px;
  background: rgba(16,132,116,0.1);
  color: var(--teal);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.card h3 { font-size: 22px; }
.card p { font-size: 15px; }
.card .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.card .footer-link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.card .footer-link::after { content: '→'; transition: transform 0.2s ease; }
.card.hover:hover .footer-link::after { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   QUOTE / FOUNDER
   ═══════════════════════════════════════════════════════════════ */
.quote-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}
.quote-block .mark {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 0.6;
  color: var(--teal);
  margin-bottom: 16px;
  display: block;
}
.quote-block .quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
  font-style: italic;
}
.quote-block .attr {
  margin-top: 32px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.quote-block .attr strong { color: var(--text); font-weight: 700; }

.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.founder .photo {
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.founder .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.founder .photo::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px; right: -12px; bottom: -12px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}
.founder .body p { font-size: 18px; margin-bottom: 18px; }

@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .founder .photo { width: 260px; height: 260px; }
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE REQUEST FORM
   ═══════════════════════════════════════════════════════════════ */
.tier-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: gap 0.2s ease;
}
.tier-cta::after { content: '→'; transition: transform 0.2s ease; }
.tier-cta:hover { color: var(--teal-dark); }
.tier-cta:hover::after { transform: translateX(3px); }
.tier.featured .tier-cta {
  color: var(--gold);
  border-top-color: rgba(247,242,232,0.18);
}
.tier.featured .tier-cta:hover { color: #E8B22A; }

.quote-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.quote-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quote-form .field { margin-bottom: 22px; }
.quote-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.quote-form .field-row .field { margin-bottom: 22px; }
.quote-form .field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.quote-form .field input,
.quote-form .field select,
.quote-form .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s ease;
}
.quote-form .field input:focus,
.quote-form .field select:focus,
.quote-form .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(16,132,116,0.08);
}
.quote-form .field textarea { min-height: 120px; resize: vertical; }
.quote-form .field select.flash {
  animation: tierFlash 1.2s ease;
}
@keyframes tierFlash {
  0%, 100% { background: var(--bg); border-color: var(--border-strong); }
  20%, 60% { background: rgba(212,160,23,0.18); border-color: var(--gold); }
}
.quote-form .form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.quote-form .form-note {
  font-size: 13px;
  color: var(--text-fade);
  flex: 1;
  min-width: 240px;
  margin: 0;
}

@media (max-width: 600px) {
  .quote-form { padding: 32px 24px; }
  .quote-form .field-row { grid-template-columns: 1fr; gap: 0; }
}

.quote-success {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 48px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote-success .icon {
  width: 72px; height: 72px;
  background: rgba(16,132,116,0.1);
  color: var(--teal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}
.quote-success h3 { margin-bottom: 12px; }

/* Compact founder badge — used on home page above the quote */
.founder-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.founder-badge .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
}
.founder-badge .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.founder-badge .avatar::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.stat .label {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-fade);
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: 0 auto;
}
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}
@media (max-width: 1100px) { .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
@media (max-width: 600px) { .pricing-grid-4 { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 0.3s ease;
}
.tier:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tier.featured {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.tier.featured .tier-name { color: var(--gold); }
.tier.featured .tier-price { color: var(--bg); }
.tier.featured .tier-meta, .tier.featured .tier-example { color: rgba(247,242,232,0.7); }
.tier.featured::before {
  content: '★ MOST STRATEGIC';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.tier-price {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.tier-price small { font-size: 14px; font-weight: 400; color: var(--text-dim); margin-left: 4px; font-family: var(--sans); }
.tier-meta { font-size: 13px; color: var(--text-dim); }
.tier-example {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.tier.featured .tier-example { border-top-color: rgba(247,242,232,0.18); }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 15px;
}
.price-table th, .price-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--bg-card);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover { background: var(--bg-card); }
.price-table .tier-cell strong { font-family: var(--serif); font-weight: 700; font-size: 17px; display: block; }
.price-table .tier-cell span { font-size: 13px; color: var(--text-dim); }
.price-table .num { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   USE CASES / LISTS
   ═══════════════════════════════════════════════════════════════ */
.use-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.use-list li {
  position: relative;
  padding: 16px 20px 16px 48px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.use-list li::before {
  content: '';
  position: absolute;
  left: 20px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.18;
  box-shadow: inset 0 0 0 4px var(--teal);
}

@media (max-width: 700px) {
  .use-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   LIBRARY GRID
   ═══════════════════════════════════════════════════════════════ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.book {
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.book-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--bg);
  font-family: var(--serif);
  text-align: center;
}
.book-cover.alt { background: linear-gradient(135deg, var(--gold) 0%, #B88813 100%); color: var(--text); }
.book-cover.dark { background: linear-gradient(135deg, var(--text) 0%, #1a1a1a 100%); color: var(--gold); }
.book-cover .corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.book-cover .title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.book-cover .edition {
  position: absolute;
  bottom: 14px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.book-meta { padding: 18px 20px 22px; }
.book-meta h4 { font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.book-meta .audience { font-size: 12px; color: var(--text-fade); letter-spacing: 0.04em; }
.book-meta .desc { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* Status badges on books */
.book .status {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: rgba(247,242,232,0.95);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
}
.book .status.available { color: var(--teal); }
.book .status.coming { color: var(--gold); background: rgba(247,242,232,0.95); }

/* Real book cover image — replaces gradient placeholder */
.book-cover.photo {
  background: var(--bg-card);
  padding: 0;
  display: block;
  overflow: hidden;
}
.book-cover.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   INSIDE THE BOOK — Layout 1 (cover + hero spread w/ browser chrome)
   ═══════════════════════════════════════════════════════════════ */
.book-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 2.5fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.book-hero-cover {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.book-hero-cover:hover { transform: translateY(-2px); }
.book-hero-cover img { width: 100%; height: auto; display: block; }
.book-hero-cover .caption {
  padding: 14px 22px 18px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.book-hero-cover .caption strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.book-browser {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.book-browser:hover { transform: translateY(-2px); }
.book-browser-bar {
  background: #f4f1ec;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.book-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.book-browser-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.book-browser-dots span:nth-child(1) { background: #ff5f57; }
.book-browser-dots span:nth-child(2) { background: #ffbd2e; }
.book-browser-dots span:nth-child(3) { background: #28ca42; }
.book-browser-url {
  flex: 1;
  background: var(--bg-white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  margin-left: 10px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-browser-screen img {
  width: 100%;
  height: auto;
  display: block;
}
.book-browser .caption {
  padding: 14px 22px 18px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.book-browser .caption strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 800px) {
  .book-hero-grid { grid-template-columns: 1fr; }
  .book-browser-url { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   PORTAL SCREENSHOTS — real Vitrium UI
   ═══════════════════════════════════════════════════════════════ */
.portal-screens {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.portal-screen {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}
.portal-screen:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.portal-screen img {
  width: 100%;
  height: auto;
  display: block;
}
.portal-screen.large { grid-row: span 2; }
.portal-screen .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(45,45,45,0.92));
  color: var(--bg);
  padding: 24px 20px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.portal-screen .caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}
.portal-screen .caption span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .portal-screens { grid-template-columns: 1fr; grid-template-rows: auto; }
  .portal-screen.large { grid-row: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   INSIDE THE BOOK — actual content pages, with watermark intact
   ═══════════════════════════════════════════════════════════════ */
.book-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.book-preview {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.book-preview:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.book-preview .caption {
  padding: 18px 22px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.book-preview .caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.book-preview .caption span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .book-preview-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MATH BLOCK
   ═══════════════════════════════════════════════════════════════ */
.math-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.math-side { text-align: center; }
.math-side .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-fade);
  margin-bottom: 12px;
  font-weight: 600;
}
.math-side .num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.math-side.featured .num { color: var(--teal); }
.math-side .sub { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.math-vs {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--text-fade);
}
@media (max-width: 700px) {
  .math-block { grid-template-columns: 1fr; padding: 32px 24px; gap: 16px; }
  .math-vs { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   STEPS
   ═══════════════════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.steps.steps-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
.step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.step .num {
  width: 44px; height: 44px;
  background: var(--teal);
  color: var(--bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 14px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.3s ease;
}
.faq-item[open] summary { color: var(--teal); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--teal); }
.faq-item p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--text);
  color: var(--bg);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,160,23,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--bg); margin-bottom: 20px; }
.cta-banner h2 em { color: var(--gold); }
.cta-banner p { color: rgba(247,242,232,0.75); margin: 0 auto 32px; max-width: 600px; }
.cta-banner .btn-primary { background: var(--gold); color: var(--text) !important; }
.cta-banner .btn-primary:hover { background: #E8B22A; }
.cta-banner .btn-secondary { color: var(--bg) !important; border-color: rgba(247,242,232,0.3); }
.cta-banner .btn-secondary:hover { color: var(--gold) !important; border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; color: var(--text-dim); transition: color 0.2s ease; }
.footer a:hover { color: var(--teal); }
.footer .brand-block p { font-size: 14px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-fade);
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   PORTAL VISUAL
   ═══════════════════════════════════════════════════════════════ */
.portal-mock {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}
.portal-side {
  background: var(--text);
  color: var(--bg);
  padding: 24px 20px;
  font-size: 13px;
}
.portal-side h6 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.portal-side .item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(247,242,232,0.7);
  transition: all 0.2s ease;
}
.portal-side .item:hover { background: rgba(247,242,232,0.06); color: var(--bg); }
.portal-side .item.active { background: rgba(212,160,23,0.16); color: var(--gold); }
.portal-main { padding: 24px; background: var(--bg); }
.portal-main h6 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.portal-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.portal-books .b {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  position: relative;
  font-family: var(--serif);
  font-size: 11px;
  color: var(--bg);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-weight: 600;
}
.portal-books .b.gold { background: linear-gradient(135deg, var(--gold), #B88813); color: var(--text); }
.portal-books .b.dark { background: linear-gradient(135deg, var(--text), #1a1a1a); color: var(--gold); }

@media (max-width: 720px) {
  .portal-mock { grid-template-columns: 1fr; }
  .portal-side { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; }
  .portal-side h6 { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   ROADMAP
   ═══════════════════════════════════════════════════════════════ */
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.roadmap-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.roadmap-item .idx {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.roadmap-item h4 { margin-bottom: 6px; }
.roadmap-item p { font-size: 14px; }

@media (max-width: 720px) {
  .roadmap-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE GRID HELPERS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 80px 0 60px; }
  .container, .container-narrow { padding: 0 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cascade — opt-in via .stagger class on a parent grid */
.reveal.stagger > .card,
.reveal.stagger > .tier,
.reveal.stagger > .stat,
.reveal.stagger > .book,
.reveal.stagger > .step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.stagger.in > .card,
.reveal.stagger.in > .tier,
.reveal.stagger.in > .stat,
.reveal.stagger.in > .book,
.reveal.stagger.in > .step {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   HOME HERO STAT ROW — Bold (Swing 4)
   ═══════════════════════════════════════════════════════════════ */
.stat-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.stat-row .stat { text-align: center; }
.stat-row .stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.stat-row .stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-fade);
  margin-top: 12px;
}
.stat-row .stat-num.stars {
  font-style: normal;
  font-family: var(--sans);
  color: var(--gold);
  letter-spacing: 0.04em;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.4;
}
@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   ROI CALCULATOR — Pricing page interactive widget
   ═══════════════════════════════════════════════════════════════ */
.calc-shell { max-width: 920px; margin: 0 auto; }
.calc {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.calc-input {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--border);
}
.calc-input .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .calc-input .input-row { grid-template-columns: 1fr; gap: 20px; } }
.calc .input-group label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px;
}
.calc .help { font-size: 12px; color: var(--text-fade); margin-top: 6px; line-height: 1.4; }
.calc .seg {
  display: flex; gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 999px;
}
.calc .seg button {
  flex: 1;
  background: transparent; border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  cursor: pointer; font-family: inherit;
  transition: all 0.18s ease;
}
.calc .seg button.on { background: var(--text); color: var(--bg); }
.calc .users-row {
  display: flex; align-items: center; gap: 18px;
  margin-top: 24px;
}
.calc .users-display {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 56px; line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  min-width: 180px;
}
.calc .users-display small {
  font-style: normal; font-family: var(--sans); font-size: 13px;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-fade); display: block; margin-top: 4px;
}
.calc .slider-wrap { flex: 1; }
.calc .slider-wrap input[type="range"] {
  width: 100%; -webkit-appearance: none;
  height: 8px; background: var(--bg-card);
  border-radius: 999px; outline: none;
}
.calc .slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  background: var(--teal); border-radius: 50%;
  cursor: pointer; border: 3px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(45,45,45,0.18);
}
.calc .slider-wrap input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--teal); border-radius: 50%;
  cursor: pointer; border: 3px solid var(--bg-white);
}
.calc .slider-ticks {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-fade); margin-top: 8px;
}
.calc .advanced-toggle {
  font-size: 12px; color: var(--teal);
  cursor: pointer; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; font-family: inherit; font-weight: 600;
}
.calc .advanced-toggle:hover { text-decoration: underline; }
.calc .advanced-block {
  display: none; padding-top: 20px; margin-top: 14px;
  border-top: 1px solid var(--border);
}
.calc .advanced-block.open { display: block; }
.calc .advanced-block .input-row { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .calc .advanced-block .input-row { grid-template-columns: 1fr; } }
.calc .advanced-block input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--text);
}
.calc .tier-match {
  padding: 28px 40px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.calc .tier-match .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-fade);
  margin-bottom: 6px;
}
.calc .tier-match .name {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 32px; color: var(--text);
}
.calc .tier-match .badge {
  display: inline-block; background: var(--gold); color: var(--text);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  padding: 4px 10px; border-radius: 999px;
  margin-left: 10px; vertical-align: middle;
  text-transform: uppercase;
}
.calc .tier-match .right-side { text-align: right; }
.calc .tier-match .price {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 32px; color: var(--teal); line-height: 1;
}
.calc .tier-match .price small {
  font-style: normal; font-family: var(--sans); font-size: 13px;
  font-weight: 500; color: var(--text-fade); margin-left: 4px;
}
.calc .numbers { padding: 36px 40px 32px; }
.calc .num-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .calc .num-grid { grid-template-columns: 1fr; } }
.calc .num-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
}
.calc .num-card .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-fade);
  margin-bottom: 10px;
}
.calc .num-card .value {
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: 30px; line-height: 1;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.calc .num-card .value.teal { color: var(--teal); }
.calc .num-card .sub { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.45; }
.calc .roi-panel {
  background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 28px 32px;
  margin-top: 8px; display: none;
}
.calc .roi-panel.on { display: block; }
.calc .roi-panel .heading {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.calc .roi-panel h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 24px; line-height: 1.25; margin-bottom: 18px;
}
.calc .roi-panel h3 em { font-style: italic; color: var(--gold); }
.calc .roi-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247,242,232,0.12);
  font-size: 14px;
}
.calc .roi-line:last-child { border-bottom: none; padding-top: 16px; padding-bottom: 0; }
.calc .roi-line .lbl { color: rgba(247,242,232,0.78); }
.calc .roi-line .val {
  font-family: var(--serif); font-weight: 700; font-style: italic;
  color: var(--bg); font-variant-numeric: tabular-nums;
}
.calc .roi-line.headline .lbl { color: var(--gold); font-weight: 700; }
.calc .roi-line.headline .val { font-size: 26px; color: var(--gold); }
.calc .roi-disclaimer {
  font-size: 11px; color: rgba(247,242,232,0.45);
  margin-top: 16px; font-style: italic; line-height: 1.5;
}
.calc-cta {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 24px 36px;
  background: rgba(16,132,116,0.08);
  border-radius: 16px; flex-wrap: wrap;
}
.calc-cta p { font-size: 16px; color: var(--text); margin: 0; flex: 1; min-width: 240px; }
.calc-cta p strong { font-family: var(--serif); font-weight: 700; }
.calc-cta a {
  background: var(--teal); color: var(--bg);
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
}
.calc-cta a:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   PEEK MODAL — Library page interactive sample previews
   ═══════════════════════════════════════════════════════════════ */
.book.peekable { cursor: pointer; transition: transform 0.25s ease; }
.book.peekable:hover { transform: translateY(-3px); }
.book.peekable:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 12px; }
.book.peekable .book-cover { position: relative; overflow: hidden; }
.book.peekable .peek-badge {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--teal);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(45,45,45,0.25);
  pointer-events: none;
}
.book.peekable:hover .peek-badge,
.book.peekable:focus-visible .peek-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.peek-modal {
  position: fixed;
  inset: 0;
  background: rgba(45,45,45,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px 24px;
  overflow-y: auto;
  animation: peek-fade-in 0.28s ease;
}
.peek-modal.open { display: flex; }
.peek-modal[hidden] { display: none !important; }
.peek-modal-inner {
  background: var(--bg);
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 1080px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(45,45,45,0.35);
  animation: peek-scale-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.peek-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.peek-close:hover { background: var(--text); color: var(--bg); }
.peek-modal-inner h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
  padding: 0 48px;
  color: var(--text);
}
.peek-image-wrap {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(45,45,45,0.18);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.peek-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.peek-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.peek-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s ease;
}
.peek-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.peek-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.peek-meta {
  font-size: 12px;
  color: var(--text-fade);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}
.peek-fineprint {
  font-size: 11px;
  color: var(--text-fade);
  text-align: center;
  letter-spacing: 0.06em;
  font-style: italic;
  margin: 0;
}
@keyframes peek-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes peek-scale-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  .peek-modal-inner { padding: 32px 20px 24px; }
  .peek-modal-inner h3 { font-size: 20px; padding: 0 32px; }
  .peek-meta { min-width: 100%; order: -1; margin-bottom: 8px; }
}
body.peek-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION — respect user preference
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal.stagger > * { opacity: 1; transform: none; transition-delay: 0ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS MODAL
   ═══════════════════════════════════════════════════════════════ */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: modal-fade-in 0.25s ease;
}
.success-modal-overlay.open { display: flex; }
.success-modal {
  background: var(--bg);
  border-radius: 24px;
  padding: 56px 48px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(45, 45, 45, 0.25);
  animation: modal-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.success-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.success-modal .modal-close:hover {
  background: var(--bg-card);
  color: var(--text);
}
.success-modal .modal-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 132, 116, 0.12);
  color: var(--teal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}
.success-modal h3 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.success-modal p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 28px;
}
.success-modal .btn { margin-top: 4px; }
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-scale-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .success-modal { padding: 40px 28px 32px; }
  .success-modal h3 { font-size: 26px; }
}
