/* CLEWS Framework - themed to match clewsframework.com */
:root {
  --primary: #0B5FC7;
  --secondary: #00A651;
  --accent: #FFA500;
  --weave: #FFC72C;
  --sustain: #7B2CBF;
  --foreground: #1a1a2e;
  --bg-start: #f8f9fc;
  --bg-mid: #f0f4ff;
  --bg-end: #f8f9ff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --radius: 1rem;
  --book-orange: #E8940C;
  --book-indigo: #1A1F91;
  --grad: linear-gradient(to right, #0B5FC7, #7B2CBF);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Layout ---------- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 32rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-header { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ---------- Glassmorphism ---------- */
.morphism {
  position: relative; border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08);
}
.morphism-strong {
  position: relative; border-radius: 1.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-inner { max-width: 80rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: #1e293b; }
.nav-logo img { height: 2.5rem; width: auto; }
.nav-logo .brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { font-size: 0.9375rem; font-weight: 600; color: #475569; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2rem; height: 2rem; z-index: 60; }
.hamburger span { display: block; width: 100%; height: 2.5px; background: #1e293b; border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border-radius: 0.5rem;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-primary:hover { box-shadow: 0 10px 15px -3px rgba(11,95,199,0.3); transform: translateY(-1px); }
.btn-primary-lg { padding: 0.875rem 2rem; border-radius: 0.75rem; font-size: 1rem; font-weight: 700; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border: 2px solid #e2e8f0; border-radius: 0.5rem;
  color: #1e293b; font-weight: 700; background: #fff; transition: all 0.2s;
}
.btn-outline:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; border-radius: 0.4rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--secondary); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--foreground); }
.btn[disabled], .btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Gradient text ---------- */
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 8rem 1.5rem 4rem; overflow: hidden; }
.hero-bg-blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; filter: blur(48px); pointer-events: none; }
.hero-inner { position: relative; max-width: 80rem; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; }
.hero .subtitle { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.75rem; max-width: 34rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Book cover / cards ---------- */
.book-cover { border-radius: 0.75rem; overflow: hidden; box-shadow: 0 20px 45px -15px rgba(26,31,145,0.45); aspect-ratio: 2/3; background: #eee; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.75rem; }
.book-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s; }
.book-card:hover { transform: translateY(-4px); }
.book-card .cover-wrap { aspect-ratio: 2/3; overflow: hidden; }
.book-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-card .card-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.book-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.book-card .author { font-size: 0.85rem; color: var(--muted); }
.book-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }
.badge-endorse { background: rgba(255,199,44,0.18); color: #92600a; }
.badge-primary { background: rgba(11,95,199,0.12); color: var(--primary); }
.badge-success { background: rgba(0,166,81,0.14); color: #067a3f; }
.badge-warn { background: rgba(255,165,0,0.16); color: #b45309; }
.badge-danger { background: rgba(220,38,38,0.12); color: #b91c1c; }
.badge-muted { background: rgba(107,114,128,0.14); color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { padding: 2.25rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: #374151; }
.form-control {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: 0.5rem; font-size: 0.95rem; background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,199,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem 3rem; }
.auth-card { width: 100%; max-width: 26rem; }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.35rem; }
.auth-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.auth-foot { text-align: center; margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ---------- Alerts / flash ---------- */
.alert { padding: 0.8rem 1rem; border-radius: 0.5rem; font-size: 0.9rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.flash-stack { position: fixed; top: 5rem; right: 1.5rem; z-index: 200; max-width: 22rem; }

/* ---------- Dashboard hero card ---------- */
.dash-hero {
  padding: 2.5rem; border-radius: 1.5rem; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0B5FC7 0%, #7B2CBF 100%);
}
.dash-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.dash-hero p { opacity: 0.92; max-width: 34rem; margin-bottom: 1.5rem; }
.dash-hero .btn-primary { background: #fff; color: var(--primary); }
.dash-hero .eclipse { position: absolute; right: -3rem; top: 50%; transform: translateY(-50%); width: 14rem; opacity: 0.35; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.stat-card { padding: 1.4rem; }
.stat-card .value { font-size: 2rem; font-weight: 800; }
.stat-card .label { color: var(--muted); font-size: 0.88rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); }
table.data th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
table.data tbody tr:hover { background: rgba(11,95,199,0.03); }
.code-pill { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f5f9; padding: 0.2rem 0.5rem; border-radius: 0.35rem; font-size: 0.85rem; }

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 250px; flex-shrink: 0; background: #0f1535; color: #cbd5e1;
  padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: #fff; margin-bottom: 2rem; padding: 0 0.5rem; }
.admin-side .brand img { height: 2rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem; border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; color: #cbd5e1; margin-bottom: 0.2rem; transition: all 0.15s; }
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.active { background: var(--grad); color: #fff; }
.admin-nav .group-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin: 1.25rem 0.85rem 0.5rem; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: rgba(255,255,255,0.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.admin-topbar h1 { font-size: 1.25rem; font-weight: 700; }
.admin-content { padding: 2rem; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,21,53,0.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 300; padding: 1.5rem; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { width: 100%; max-width: 34rem; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; min-height: 0; }
.modal-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }
.modal-close { font-size: 1.5rem; line-height: 1; color: var(--muted); }

/* ---------- Detail rows ---------- */
.detail-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.detail-row .k { color: var(--muted); }
.detail-row .v { font-weight: 600; }

/* ---------- Endorsement ---------- */
.endorse-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.endorse-card { padding: 1.35rem; }
.endorse-card .msg { font-style: italic; color: #374151; margin-bottom: 0.9rem; }
.endorse-card .who { font-weight: 700; }
.endorse-card .socials { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.endorse-card .socials a { color: var(--muted); }
.share-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; border-radius: 0.5rem; color: #fff; font-size: 0.82rem; font-weight: 600; }
.share-x { background: #000; } .share-fb { background: #1877f2; } .share-li { background: #0a66c2; } .share-copy { background: #475569; }

/* ---------- Progress bar ---------- */
.usage-bar { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.usage-bar > span { display: block; height: 100%; background: var(--grad); }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.site-footer a { color: var(--primary); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty svg { margin: 0 auto 1rem; opacity: 0.4; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .admin-side { position: fixed; left: -260px; transition: left 0.25s; z-index: 100; }
  .admin-side.open { left: 0; }
  .admin-menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .admin-menu-toggle { display: none; } }
@media (max-width: 768px) {
  .nav-logo span { font-size: 0; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); flex-direction: column; padding: 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-links .btn-primary { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Consent + digital signature card ---------- */
.consent-card {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--sustain);
  border-radius: 0.6rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, rgba(123,44,191,0.035), rgba(11,95,199,0.02));
}
.consent-card-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; color: var(--sustain); margin-bottom: 0.85rem;
}
.consent-check {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.85rem; line-height: 1.55; color: #374151; cursor: pointer;
}
.consent-check input[type="checkbox"] {
  margin-top: 0.2rem; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer;
}

/* Signature pad */
.sig-pad-wrap {
  position: relative; width: 100%; height: 130px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 0.5rem;
  overflow: hidden;
}
.sig-pad {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: crosshair; touch-action: none; display: block;
}
.sig-baseline {
  position: absolute; left: 12px; right: 12px; bottom: 32px;
  border-bottom: 1px solid #e2e8f0; pointer-events: none;
}
.sig-placeholder {
  position: absolute; left: 0; right: 0; bottom: 38px; text-align: center;
  font-size: 0.82rem; color: #9ca3af; pointer-events: none;
}

/* Signature preview (admin) */
.sig-preview {
  background: #fff; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.5rem; max-width: 280px;
}
.sig-preview img { width: 100%; height: auto; display: block; }

/* ==================== Single-book dashboard ==================== */

/* Greeting row */
.dash-greeting {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.dash-greeting h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.35rem; }
.dash-greeting p { color: var(--muted); font-size: 1rem; max-width: 40rem; }

/* Progress ring */
.progress-ring {
  --pct: 0;
  flex-shrink: 0;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(var(--primary) calc(var(--pct) * 1%), #e5e7eb 0),
    #fff;
  position: relative;
}
.progress-ring::before {
  content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%;
}
.progress-ring span {
  position: relative; font-size: 0.9rem; font-weight: 800; color: var(--primary);
}

/* ---------- Featured book hero ---------- */
.book-hero {
  display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem;
  padding: 2.25rem; align-items: center; margin-bottom: 1.75rem;
}
.book-hero-cover { display: flex; justify-content: center; }

/* Subtle 3D book presentation */
.book-cover-3d {
  position: relative; width: 100%; max-width: 230px;
  border-radius: 0.4rem 0.7rem 0.7rem 0.4rem;
  overflow: hidden;
  box-shadow:
    0 22px 45px -12px rgba(26,31,145,0.5),
    0 6px 14px -6px rgba(0,0,0,0.25);
  transform: perspective(1200px) rotateY(-7deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.book-cover-3d:hover {
  transform: perspective(1200px) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 28px 55px -12px rgba(26,31,145,0.55);
}
.book-cover-3d img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }
/* Spine highlight */
.book-cover-3d::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 12px;
  background: linear-gradient(to right, rgba(0,0,0,0.28), rgba(255,255,255,0.12) 60%, rgba(0,0,0,0.05));
  pointer-events: none;
}

.book-hero-title { font-size: 1.85rem; font-weight: 800; line-height: 1.15; margin: 0.7rem 0 0.4rem; }
.book-hero-tagline { font-size: 1.02rem; color: var(--sustain); font-weight: 600; margin-bottom: 0.4rem; }
.book-hero-author { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.9rem; }
.book-hero-desc { font-size: 0.93rem; line-height: 1.65; color: #374151; margin-bottom: 1.25rem; }

.hero-progress { margin-bottom: 1.4rem; max-width: 26rem; }
.hero-progress-top {
  display: flex; justify-content: space-between; font-size: 0.82rem;
  color: var(--muted); margin-bottom: 0.4rem; font-weight: 600;
}

.book-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.hero-note-sm { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- Stat cards ---------- */
.dash-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.dash-stat { padding: 1.15rem 1.25rem; display: flex; align-items: center; gap: 0.9rem; }
.dash-stat-icon {
  width: 42px; height: 42px; border-radius: 0.6rem; flex-shrink: 0;
  display: grid; place-items: center;
}
.dash-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.dash-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }

/* ---------- Next steps ---------- */
.next-steps h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.next-steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
}
.next-step {
  padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between;
  gap: 0.9rem; transition: transform 0.18s, box-shadow 0.18s; text-decoration: none;
}
.next-step:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(11,95,199,0.28); }
.next-step strong { display: block; font-size: 1rem; margin-bottom: 0.3rem; }
.next-step p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.next-step-cta { font-size: 0.85rem; font-weight: 700; color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .book-hero { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; text-align: center; }
  .book-hero-cover { max-width: 200px; margin: 0 auto; }
  .book-cover-3d { transform: none; }
  .book-cover-3d:hover { transform: translateY(-4px); }
  .book-hero-actions { justify-content: center; }
  .hero-progress { margin-left: auto; margin-right: auto; }
  .dash-greeting { flex-direction: column-reverse; align-items: flex-start; text-align: left; }
  .dash-greeting h1 { font-size: 1.55rem; }
}
@media (max-width: 520px) {
  .book-hero-title { font-size: 1.45rem; }
  .book-hero-actions .btn-primary-lg,
  .book-hero-actions .btn-outline { width: 100%; }
}

/* ==================== LANDING PAGE (single book) ==================== */
:root {
  --lp-orange: #E8940C;
  --lp-indigo: #1A1F91;
  --lp-ink: #12162e;
}

.lp-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sustain); margin-bottom: 1rem;
}
.lp-eyebrow.dark { color: var(--sustain); }

/* ---------- HERO (light) ---------- */
.lp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #fdfbf7 0%, #f4f6ff 48%, #f9f5ff 100%);
  color: var(--foreground); padding: 9rem 0 5rem;
  border-bottom: 1px solid rgba(26,31,145,0.07);
}
.lp-hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.lp-glow-orange { width: 30rem; height: 30rem; top: -8rem; right: -7rem; background: rgba(232,148,12,0.16); }
.lp-glow-indigo { width: 26rem; height: 26rem; bottom: -9rem; left: -7rem; background: rgba(123,44,191,0.13); }

.lp-hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem; align-items: center;
}
.lp-h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.6rem); font-weight: 800;
  /* text-transform:uppercase; */
  line-height: 1.11; letter-spacing: -0.025em; margin-bottom: 1.4rem;
}
/* Highlighter effect painted behind the word (no z-index tricks) */
.lp-underline {
  white-space: nowrap; color: #A16207;
  background: linear-gradient(to top, rgba(232,148,12,0.30) 0.26em, transparent 0.26em);
  padding: 0 0.05em;
}

/* One-line pull quote from the book */
.lp-quote {
  margin: 0 0 2rem; max-width: 33rem;
  padding: 0 0 0 1.15rem; border-left: 3px solid var(--lp-orange);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem; line-height: 1.6; color: #2f3342;
}

.lp-hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.lp-hero-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}

/* Hero book presentation */
.lp-hero-book { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.lp-book-3d {
  position: relative;
  width: 100%; max-width: 300px; border-radius: 0.35rem 0.7rem 0.7rem 0.35rem;
  overflow: hidden; transform: perspective(1400px) rotateY(-11deg) rotateX(2deg);
  box-shadow: 0 34px 60px -22px rgba(26,31,145,0.40), 0 12px 26px -14px rgba(18,22,46,0.26);
  transition: transform 0.5s ease;
}
.lp-book-3d:hover { transform: perspective(1400px) rotateY(-4deg) translateY(-6px); }
.lp-book-3d img { width: 100%; display: block; }
.lp-book-3d::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 14px;
  background: linear-gradient(to right, rgba(0,0,0,0.32), rgba(255,255,255,0.12) 70%, transparent);
}
.lp-book-byline { text-align: center; display: flex; flex-direction: column; gap: 0.2rem; }
.lp-book-byline strong { font-size: 1rem; color: var(--foreground); }
.lp-book-byline span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Generic section shell ---------- */
.lp-section { padding: 5rem 0; }
.lp-section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.lp-section-head h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.2rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.9rem;
}
.lp-section-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* ---------- Excerpt ---------- */
.lp-excerpt {
  display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 2rem; align-items: start;
}
.lp-excerpt-page {
  background: #fffdf8; border: 1px solid #ece3d2; border-radius: 0.6rem;
  padding: 2.5rem 2.75rem; box-shadow: 0 16px 40px -20px rgba(26,31,145,0.22);
  font-family: Georgia, 'Times New Roman', serif;
}
.lp-excerpt-page p {
  font-size: 1.02rem; line-height: 1.85; color: #2c2c38; margin-bottom: 1.1rem;
}
.lp-drop::first-letter {
  float: left; font-size: 3.4rem; line-height: 0.85; padding: 0.1rem 0.6rem 0 0;
  font-weight: 700; color: var(--lp-indigo);
}
.lp-excerpt-sign {
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #ece3d2;
  text-align: right; font-size: 0.95rem !important; color: #55556b !important;
}
.lp-excerpt-cta {
  background: linear-gradient(160deg, #0B5FC7, #7B2CBF); color: #fff;
  border-radius: 1rem; padding: 2rem 1.75rem; position: sticky; top: 6rem;
}
.lp-excerpt-cta h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.6rem; }
.lp-excerpt-cta p { font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.lp-excerpt-cta .btn-primary { background: #fff; color: var(--primary); }
.lp-excerpt-cta .btn-primary:hover { box-shadow: 0 10px 20px -8px rgba(0,0,0,0.35); }

/* ---------- Final CTA ---------- */
.lp-final {
  background: linear-gradient(135deg, #12162e 0%, #1A1F91 50%, #7B2CBF 100%);
  color: #fff; padding: 5.5rem 0; text-align: center;
}
.lp-final-inner { max-width: 40rem; }
.lp-final-quote {
  font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.62); margin-bottom: 1.5rem;
}
.lp-final h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.lp-final-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.lp-final-btn { background: #fff !important; color: var(--lp-indigo) !important; }
.lp-final-btn:hover { box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45); }
.lp-final-note { margin-top: 1.25rem; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.lp-final-note a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Landing responsive ---------- */
@media (max-width: 900px) {
  .lp-hero { padding: 7.5rem 0 3.5rem; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-book-3d { max-width: 220px; transform: none; }
  .lp-book-3d:hover { transform: translateY(-5px); }
  .lp-excerpt { grid-template-columns: 1fr; }
  .lp-excerpt-cta { position: static; }
}
@media (max-width: 560px) {
  .lp-section { padding: 3.5rem 0; }
  .lp-excerpt-page { padding: 1.75rem 1.5rem; }
  .lp-quote { font-size: 1.06rem; }
  .lp-hero-cta .btn-primary-lg, .lp-hero-cta .btn-outline { width: 100%; }
}
