:root {
  --canvas: #FBF5EC;
  --canvas-deep: #F3E9DA;
  --surface: #FFFDF9;
  --ink: #241C16;
  --ink-soft: #7A6656;
  --saffron: #D05A0C;
  --ember: #E8892B;
  --gold: #BE8F27;
  --plum: #5B2333;
  --hairline: #E2D4C0;
  --shadow: 0 24px 70px rgba(91, 35, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 86px; border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 20px ui-serif, Georgia, serif; }
.brand img { border-radius: 12px; box-shadow: 0 7px 20px rgba(36, 28, 22, .1); }
nav { display: flex; gap: 28px; }
nav a, footer a { color: var(--ink-soft); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--saffron); }

.hero {
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 8vw;
  min-height: 690px; padding: 76px 0;
}
.eyebrow { margin: 0 0 14px; color: var(--saffron); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3 { font-family: ui-serif, Georgia, serif; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.5rem, 7vw, 6.4rem); line-height: .97; letter-spacing: -.055em; }
.hero-description { max-width: 650px; margin: 30px 0 0; color: var(--ink-soft); font-size: clamp(1.12rem, 2vw, 1.35rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 36px; }
.primary-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 25px;
  border-radius: 18px; background: linear-gradient(135deg, var(--saffron), var(--ember), var(--gold));
  color: white; font-weight: 750; text-decoration: none; box-shadow: 0 12px 28px rgba(208, 90, 12, .22);
}
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(208, 90, 12, .27); }
.app-store-badge { display: inline-flex; line-height: 0; }
.app-store-badge img { display: block; width: 180px; height: auto; }
.app-store-badge:hover { transform: translateY(-2px); }
.text-action { color: var(--saffron); font-weight: 700; text-underline-offset: 5px; }

.study-card {
  position: relative; overflow: hidden; padding: 38px; border: 1px solid var(--hairline); border-radius: 32px;
  background: var(--surface); box-shadow: var(--shadow);
}
.study-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -130px; border-radius: 50%; background: rgba(232,137,43,.13); }
.study-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.mini-label { color: var(--saffron); letter-spacing: .14em; }
.book-symbol { display: grid; place-items: center; width: 70px; height: 70px; margin-top: 68px; border: 2px solid var(--gold); border-radius: 22px; color: white; background: linear-gradient(135deg, var(--saffron), var(--ember)); font-size: 38px; }
.study-card h2 { margin: 26px 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; }
.study-card p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.progress { height: 8px; margin: 32px 0 22px; overflow: hidden; border-radius: 99px; background: var(--canvas-deep); }
.progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips span { padding: 8px 12px; border-radius: 999px; background: rgba(208,90,12,.09); color: var(--saffron); font-size: 12px; font-weight: 750; }

.books { padding: 120px 0; border-top: 1px solid var(--hairline); }
.books > h2 { max-width: 760px; margin: 0 0 48px; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -.04em; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.book-grid article { min-height: 280px; padding: 28px; border: 1px solid var(--hairline); border-radius: 26px; background: var(--surface); }
.book-grid span { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.book-grid h3 { margin: 56px 0 10px; font-size: 26px; line-height: 1.1; }
.book-grid p { margin: 0; color: var(--ink-soft); }

.family { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 120px; padding: 65px; border-radius: 32px; background: linear-gradient(145deg, var(--plum), #2A1017); color: white; }
.eyebrow.light { color: #F4C966; }
.family h2 { max-width: 500px; margin: 0; font-size: clamp(2.5rem, 4.7vw, 4.2rem); line-height: 1.04; }
.family p { margin: 4px 0 24px; color: rgba(255,255,255,.78); font-size: 18px; }
.family ul { margin: 0; padding: 0; list-style: none; }
.family li { padding: 14px 0 14px 30px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.family li::before { content: "✓"; position: absolute; left: 0; color: #F4C966; font-weight: 800; }

.closing { padding: 70px 20px 120px; text-align: center; }
.closing img { margin-bottom: 28px; border-radius: 26px; box-shadow: var(--shadow); }
.closing h2 { max-width: 760px; margin: 0 auto 34px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.03; letter-spacing: -.045em; }
footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding: 34px 0 50px; border-top: 1px solid var(--hairline); color: var(--ink-soft); font-size: 13px; }
footer div { display: flex; gap: 22px; }
.footer-brand { color: var(--ink); font-family: ui-serif, Georgia, serif; font-size: 18px; }
footer p { margin: 0; }

a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; border-radius: 6px; }
@media (max-width: 820px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 52px; padding: 64px 0 90px; }
  .book-grid, .family { grid-template-columns: 1fr; }
  .family { gap: 36px; padding: 38px 28px; }
  footer { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  h1 { font-size: 3.35rem; }
  .hero { padding-top: 50px; }
  .study-card { padding: 26px; }
  .books { padding: 90px 0; }
  .book-grid article { min-height: 230px; }
  .closing { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
