/* =========================================================
   Librix — stylesheet
   ========================================================= */

:root {
  --navy: #1a2f4a;
  --green: #2e8b6a;
  --gold: #e8a020;
  --gold-dark: #c98418;
  --rust: #c96a3f;
  --olive: #6b7f5e;
  --brown: #8a5a3c;
  --cream: #f7f1e3;
  --cream-light: #fdfaf1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--navy);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, p, div, figure { margin: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--navy); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.serif { font-family: 'Spectral', Georgia, serif; }

/* ---------- layout helpers ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.sec-title {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.12;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 14px;
  transition: background 0.15s ease;
}

.btn-icon { font-size: 18px; }

.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--green); color: var(--cream); }

.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--navy); color: var(--cream); }

.btn-pill {
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
}
.btn-pill:hover { background: var(--green); color: var(--cream); }

/* =========================================================
   NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 227, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 56px; width: auto; mix-blend-mode: multiply; }

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-link { color: var(--navy); font-weight: 500; font-size: 15px; }

/* =========================================================
   HERO
   ========================================================= */
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 139, 106, 0.12);
  color: var(--green);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero-title {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.hero-title em { color: var(--green); font-style: italic; }

.hero-desc {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(26, 47, 74, 0.72);
  max-width: 500px;
  margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  color: rgba(26, 47, 74, 0.6);
  font-size: 14px;
  font-weight: 500;
}

.hero-meta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; }

.phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(46, 139, 106, 0.16), transparent 70%);
  top: 40px;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 588px;
  background: var(--navy);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 40px 80px -20px rgba(26, 47, 74, 0.4);
  animation: floaty 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream-light);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header { padding: 22px 20px 14px; }
.phone-header-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 22px; }
.phone-header-sub { font-size: 13px; color: rgba(26, 47, 74, 0.5); }

.phone-shelf {
  flex: 1;
  padding: 4px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.book-tile { aspect-ratio: 2 / 3; border-radius: 6px; }

.phone-goal {
  margin: 8px 18px 18px;
  background: rgba(46, 139, 106, 0.1);
  border-radius: 14px;
  padding: 14px;
}

.phone-goal-label { font-size: 12px; color: var(--green); font-weight: 700; letter-spacing: 0.04em; }
.phone-goal-text { font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.phone-goal-bar { height: 7px; background: rgba(26, 47, 74, 0.1); border-radius: 999px; overflow: hidden; }
.phone-goal-fill { height: 100%; background: var(--green); }

/* =========================================================
   HOW IT WORKS STRIP
   ========================================================= */
.steps-strip {
  border-top: 1px solid rgba(26, 47, 74, 0.08);
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
  background: var(--cream-light);
}

.steps-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.step-item { flex: 1; min-width: 220px; display: flex; align-items: flex-start; gap: 16px; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.step-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.step-body { font-size: 14px; line-height: 1.55; color: rgba(26, 47, 74, 0.62); }

/* =========================================================
   FEATURES
   ========================================================= */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat-card {
  background: var(--cream-light);
  border: 1px solid rgba(26, 47, 74, 0.08);
  border-radius: 20px;
  padding: 30px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feat-card:hover { border-color: rgba(46, 139, 106, 0.4); transform: translateY(-4px); }

.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feat-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 22px; margin: 0 0 9px; }
.feat-body { font-size: 15px; line-height: 1.6; color: rgba(26, 47, 74, 0.68); }

/* =========================================================
   SCREENSHOTS
   ========================================================= */
.screens-section {
  background: var(--cream-light);
  border-top: 1px solid rgba(26, 47, 74, 0.08);
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
}

.screens-section .wrap { padding-top: 90px; padding-bottom: 90px; }

.shots-grid { display: flex; justify-content: center; align-items: flex-end; gap: 30px; }

.shot { text-align: center; }

.shot-frame {
  width: 262px;
  background: var(--navy);
  border-radius: 40px;
  padding: 11px;
  box-shadow: 0 30px 60px -22px rgba(26, 47, 74, 0.4);
  margin: 0 auto;
}

.shot-screen {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #eee9db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-placeholder { font-size: 13px; color: rgba(26, 47, 74, 0.4); padding: 0 20px; text-align: center; }

.shot-label { margin-top: 18px; font-weight: 600; font-size: 16px; }

.shots-note { text-align: center; font-size: 14px; color: rgba(26, 47, 74, 0.5); margin: 38px 0 0; }

/* =========================================================
   FAMILY
   ========================================================= */
.family-card {
  background: var(--navy);
  border-radius: 32px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}

.family-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.family-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 40px; line-height: 1.12; margin: 0 0 18px; }

.family-desc { font-size: 17px; line-height: 1.65; color: rgba(247, 241, 227, 0.78); margin: 0 0 26px; }

.family-points { display: flex; flex-direction: column; gap: 14px; }

.family-point { display: flex; align-items: center; gap: 12px; font-size: 16px; }

.family-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.family-panel-wrap { display: flex; justify-content: center; }

.family-panel {
  background: rgba(247, 241, 227, 0.06);
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
}

.family-panel-label {
  font-size: 13px;
  color: rgba(247, 241, 227, 0.55);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.family-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247, 241, 227, 0.08);
}

.family-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
}

.family-name { font-weight: 600; font-size: 15px; }
.family-status { font-size: 13px; color: rgba(247, 241, 227, 0.55); }

/* =========================================================
   COMMUNITY
   ========================================================= */
.comm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.comm-card { border-radius: 26px; padding: 44px; }

.comm-card-green { background: var(--green); color: var(--cream); }
.comm-card-gold { background: var(--gold); color: var(--navy); }

.comm-icon { font-size: 40px; margin-bottom: 18px; }
.comm-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 28px; margin: 0 0 12px; }
.comm-body { font-size: 16px; line-height: 1.65; }

/* =========================================================
   GOALS
   ========================================================= */
.goals-section {
  background: var(--cream-light);
  border-top: 1px solid rgba(26, 47, 74, 0.08);
  border-bottom: 1px solid rgba(26, 47, 74, 0.08);
}

.goals-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.goals-card-wrap { display: flex; justify-content: center; }

.goals-card {
  width: 100%;
  max-width: 400px;
  background: var(--cream);
  border: 1px solid rgba(26, 47, 74, 0.1);
  border-radius: 24px;
  padding: 34px;
}

.goals-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.goals-card-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 20px; }
.goals-card-pct { color: var(--green); font-weight: 700; }

.goals-bar { height: 12px; background: rgba(26, 47, 74, 0.1); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.goals-bar-fill { width: 80%; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }

.goals-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.goal-stat { border-radius: 14px; padding: 16px; }
.goal-stat-num { font-family: 'Spectral', serif; font-size: 28px; font-weight: 600; }
.goal-stat-label { font-size: 13px; color: rgba(26, 47, 74, 0.6); }

.goals-eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.goals-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 42px; line-height: 1.12; margin: 0 0 18px; }
.goals-desc { font-size: 18px; line-height: 1.65; color: rgba(26, 47, 74, 0.72); margin: 0 0 24px; max-width: 480px; }

/* =========================================================
   DOWNLOAD CTA
   ========================================================= */
.download-section { max-width: 1000px; margin: 0 auto; padding: 100px 32px; text-align: center; }

.dl-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 52px; line-height: 1.08; margin: 0 0 18px; }
.dl-title em { color: var(--green); font-style: italic; }

.dl-desc { font-size: 19px; color: rgba(26, 47, 74, 0.72); max-width: 520px; margin: 0 auto 34px; }
.dl-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(247, 241, 227, 0.75); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 32px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand { max-width: 320px; }

.footer-logo {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-desc { font-size: 14px; line-height: 1.6; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-col-title { font-weight: 700; color: var(--cream); font-size: 14px; margin-bottom: 14px; letter-spacing: 0.02em; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link { color: rgba(247, 241, 227, 0.7); font-size: 14px; }
.footer-link:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(247, 241, 227, 0.12); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 20px 32px; font-size: 13px; color: rgba(247, 241, 227, 0.5); }

/* =========================================================
   SIMPLE CONTENT PAGES (privacy / terms / support)
   ========================================================= */
.page-hero { max-width: 900px; margin: 0 auto; padding: 64px 32px 20px; }

.page-eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 46px; line-height: 1.1; margin: 0 0 14px; }
.page-updated { font-size: 14px; color: rgba(26, 47, 74, 0.55); }

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 32px 100px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(26, 47, 74, 0.82);
}

.page-content h2 {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--navy);
  margin: 40px 0 14px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p { margin: 0 0 16px; }

.page-content ul { margin: 0 0 16px; padding-left: 22px; }
.page-content li { margin-bottom: 8px; }

.page-content a { text-decoration: underline; }

.contact-card {
  background: var(--cream-light);
  border: 1px solid rgba(26, 47, 74, 0.08);
  border-radius: 20px;
  padding: 28px 30px;
  margin: 0 0 16px;
}

.contact-card strong { display: block; margin-bottom: 4px; font-size: 15px; }

.faq-item { margin-bottom: 28px; }
.faq-q { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--navy); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .nav-links a.nav-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 22px 60px; gap: 40px; text-align: center; }
  .hero-title { font-size: 40px; }
  .hero-badge, .hero-actions, .hero-meta { justify-content: center; }
  .feat-grid { grid-template-columns: 1fr; }
  .family-card { padding: 40px 26px; }
  .family-grid { grid-template-columns: 1fr; gap: 34px; }
  .family-grid .family-title, .family-grid h2 { font-size: 32px; }
  .comm-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 22px; }
  .goals-title { font-size: 34px; }
  .shots-grid { flex-wrap: wrap; }
  .sec-pad { padding-left: 22px; padding-right: 22px; }
  .sec-title { font-size: 32px; }
  .dl-title { font-size: 38px; }
  .page-title { font-size: 34px; }
}
