/* ==========================================================================
   දියුණුවට මඟ (Diyunuwata Maga) — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Theme Variables)
   -------------------------------------------------------------------------- */
:root {
  --yellow: #edc642;
  --yellow-hover: #f4d566;
  --ink: #151713;
  --muted: #656760;
  --paper: #faf9f4;
  --line: #e4e4dc;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Sinhala", "Iskoola Pota", Arial, sans-serif;
  font-size: 20px; /* Minimum body font size: 20px */
  line-height: 1.8;
}

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

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b28a00;
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout Container & Global Helpers
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   4. Announcement Bar
   -------------------------------------------------------------------------- */
.announcement {
  text-align: center;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.announcement span {
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  background: #faf9f4f5;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.brand small {
  display: block;
  font: 11px Arial;
  letter-spacing: 3px;
  margin-top: 6px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 18px;
}

.nav .btn {
  font-size: 16px;
  padding: 12px 20px;
}

/* --------------------------------------------------------------------------
   6. Button Components
   -------------------------------------------------------------------------- */
.btn {
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  line-height: 1.4;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
}

.btn.dark {
  background: var(--ink);
  color: white;
}

.btn.dark:hover {
  background: #282c24;
}

.btn.outline {
  background: transparent;
  border: 2px solid #aaa;
}

.btn.outline:hover {
  border-color: var(--ink);
  background: #ffffff66;
}

/* --------------------------------------------------------------------------
   7. Typography & Badges
   -------------------------------------------------------------------------- */
.eyebrow {
  font: 13px Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--yellow);
}

h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 20px 0;
}

h2 {
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1.45;
  letter-spacing: -0.5px;
  margin: 16px 0;
}

/* All h3 titles set to 26px as requested */
h3 {
  font-size: 26px;
  line-height: 1.5;
  margin: 10px 0;
}

p {
  font-size: 20px;
  margin: 12px 0;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   8. Hero Section & Book Mockup
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 66px;
  padding-bottom: 66px;
}

.hero h1 span {
  background: linear-gradient(transparent 67%, #edc642 67%);
}

.hero p {
  color: var(--muted);
  font-size: 21px;
  max-width: 560px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.micro {
  font-size: 15px !important;
  margin-top: 18px !important;
  line-height: 1.7;
}

/* Hero Book Stage & Book Cover Image */
.bookstage {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eeeade 0%, #e2dece 100%);
  border-radius: 160px 160px 16px 16px;
  padding: 40px 35px 50px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.04);
}

.bookstage:before {
  content: "START SMALL. BUILD WITH PURPOSE.";
  position: absolute;
  bottom: 15px;
  font: 11px Arial;
  letter-spacing: 2px;
  color: #7b7d75;
}

/* Realistic 3D Book Cover — properly proportioned, never stretched */
.book {
  width: 100%;
  max-width: 310px;
  height: auto;
  aspect-ratio: 1082 / 1400;
  object-fit: contain;
  transform: rotate(-5deg);
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    20px 28px 45px rgba(21, 23, 19, 0.28),
    -8px 0 16px rgba(168, 148, 72, 0.45),
    inset -2px 0 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.book:hover {
  transform: rotate(-2deg) scale(1.02);
  box-shadow:
    24px 34px 50px rgba(21, 23, 19, 0.33),
    -10px 0 20px rgba(168, 148, 72, 0.5);
}

.seal {
  position: absolute;
  right: -5px;
  bottom: 60px;
  background: var(--yellow);
  width: 125px;
  height: 125px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--paper);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.seal strong {
  font: 800 28px Arial, sans-serif;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   9. Facts / Statistics Bar
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.facts div {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 15px;
}

.facts div:last-child {
  border: 0;
}

.facts strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
}

.facts small {
  color: var(--muted);
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   10. Shared Section Layouts
   -------------------------------------------------------------------------- */
section {
  padding: 95px 0;
}

.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   11. Target Audience Cards ("Is This You?")
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  background: white;
}

.card .num {
  font: 13px Arial, sans-serif;
  letter-spacing: 2px;
  color: #8c721f;
  display: block;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 26px;
}

.card p {
  color: var(--muted);
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   12. Value / Benefits Section
   -------------------------------------------------------------------------- */
.value-section {
  background: #f0eee4;
}

.value-cta {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
}

.value-cta span {
  font-size: 19px;
  color: var(--muted);
}

.value-cta span a {
  text-decoration: underline;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Night Section (Dark Theme: Chapters & Order)
   -------------------------------------------------------------------------- */
.night {
  background: var(--ink);
  color: white;
}

.night .intro,
.night p {
  color: #b9beb3;
}

.night .eyebrow {
  color: var(--yellow);
}

.chaptergrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 50px;
}

.chapter {
  padding: 24px 0;
  border-bottom: 1px solid #ffffff20;
  display: flex;
  gap: 22px;
}

.chapter b {
  color: var(--yellow);
  font: 26px Arial, sans-serif;
  margin-top: 4px;
  flex-shrink: 0;
}

.chapter h3 {
  margin: 0;
  font-size: 26px;
}

.chapter p {
  font-size: 20px;
  margin: 6px 0;
}

.bonus {
  margin-top: 36px;
  border: 1px solid #eac34255;
  background: #edc6420a;
  padding: 26px 32px;
  border-radius: 10px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.bonus strong {
  color: var(--yellow);
  font: 14px Arial, sans-serif;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.bonus p {
  margin: 0;
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   14. Book Sample Previews
   -------------------------------------------------------------------------- */
.preview {
  background: #eeeee6;
}

.samples-mobile-hint {
  display: none;
}

.samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sample {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sample:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sample img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 612 / 792;
  object-fit: cover;
  border-radius: 4px;
}

.sample small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 4px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.preview-cta {
  text-align: center;
  margin-top: 36px;
}

.preview-intro-btn {
  font-size: 20px;
  padding: 16px 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   15. Author Video Section
   -------------------------------------------------------------------------- */
.videoarea {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 55px;
  align-items: center;
}

.videoslot {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #151713;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(21, 23, 19, 0.2);
}

.videoslot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.checks li {
  font-size: 20px;
  padding: 10px 0;
  line-height: 1.6;
}

.checks li:before {
  content: "✓";
  color: #947318;
  font-weight: 700;
  margin-right: 14px;
}

/* --------------------------------------------------------------------------
   16. Reader Stories / Testimonials
   -------------------------------------------------------------------------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.story-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.story-stars {
  color: #d8a816;
  font-size: 18px;
  letter-spacing: 2px;
}

.story-badge {
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.story-quote {
  font-size: 20px;
  line-height: 1.6;
  color: #2b2925;
  margin: 0 0 22px;
  flex-grow: 1;
  font-style: normal;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.story-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e1b18;
  color: #edc642;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.story-name {
  font-size: 20px;
  font-weight: 700;
  color: #121410;
  margin: 0 0 2px;
}

.story-location {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Meet The Author Section
   -------------------------------------------------------------------------- */
.author {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  align-items: center;
}

.author-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #e2e0d8;
  aspect-ratio: 3 / 4;
  max-width: 420px;
  width: 100%;
}

.author-photo-card picture,
.author-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-photo-card img {
  transition: transform 0.3s ease;
}

.author-photo-card:hover img {
  transform: scale(1.02);
}

.author-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(18, 20, 16, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.author-badge small {
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.initials {
  font: 100px Georgia, serif;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1.4;
  background: var(--yellow);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.initials small {
  position: absolute;
  bottom: 22px;
  font: 12px Arial, sans-serif;
  letter-spacing: 3px;
}

.author h3 {
  font-size: 26px;
}

.author p {
  color: var(--muted);
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   18. Pricing & Order Layout
   -------------------------------------------------------------------------- */
.orderlayout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: start;
}

.price {
  font: 700 64px Arial, sans-serif;
  margin: 22px 0 10px;
}

.price span {
  font-size: 26px;
}

.orderbox {
  background: white;
  color: var(--ink);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.orderbox h3 {
  font-size: 26px;
  margin-top: 0;
}

.orderbox p {
  color: var(--muted);
  font-size: 20px;
}

.orderbox .btn {
  width: 100%;
}

.orderbox .error {
  color: #aa2525;
}

.orderline {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}

.field {
  margin: 18px 0;
}

.field label {
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d3d5cc;
  border-radius: 8px;
  background: #fafaf7;
  font-size: 20px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  margin: 20px 0;
}

.consent input {
  margin-top: 6px;
  width: 18px;
  height: 18px;
}

.purchase-summary {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #f1f0e9;
  border-radius: 8px;
  padding: 20px;
  margin: 22px 0;
}

.purchase-summary img {
  width: 80px !important;
  height: auto;
  aspect-ratio: 1082 / 1400;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 5px 6px 14px rgba(0, 0, 0, 0.15);
}

.purchase-summary b {
  font-size: 20px;
  display: block;
}

.purchase-summary strong {
  font: 700 26px Arial, sans-serif;
  display: block;
  margin-top: 4px;
}

.purchase-summary p {
  font-size: 18px;
  margin: 4px 0 0;
}

.purchase-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   19. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faqwrap {
  max-width: 860px;
  margin: auto;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

summary {
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary:after {
  content: "+";
  font: 26px Arial, sans-serif;
}

details[open] summary:after {
  content: "−";
}

details p {
  font-size: 20px;
  color: var(--muted);
  padding-right: 30px;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   20. Final Call-to-Action Banner
   -------------------------------------------------------------------------- */
.last {
  text-align: center;
  background: var(--yellow);
  padding: 70px 0;
}

.last h2 {
  margin: 14px 0;
}

.last p {
  font-size: 21px;
}

.last .btn {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   21. Footer & Legal
   -------------------------------------------------------------------------- */
footer {
  padding: 40px 0 100px;
}

.footerrow {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 18px;
  color: var(--muted);
}

.footerrow .brand {
  font-size: 24px;
}

.footerrow a {
  text-decoration: underline;
}

.legal {
  font-size: 15px;
  color: var(--muted);
  margin-top: 28px;
  max-width: 960px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   22. Sticky Mobile Action Bar
   -------------------------------------------------------------------------- */
.mobilebar {
  display: none;
}

/* --------------------------------------------------------------------------
   23. Modals & Dialogs (Preview, Purchase, Reader)
   -------------------------------------------------------------------------- */
dialog {
  border: 0;
  padding: 0;
  border-radius: 12px;
  width: min(840px, 94vw);
  max-height: 94vh;
  background: white;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

dialog img {
  width: 100%;
  height: auto;
  display: block;
}

dialog button {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px;
  border: 0;
  background: var(--ink);
  color: white;
  font-size: 18px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* Sample Page Dialog Header & Controls */
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 14px;
  flex-wrap: wrap;
}

.dialog-page-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.dialog-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-nav-btn {
  background: white !important;
  border: 1px solid var(--line) !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  cursor: pointer;
  color: var(--ink) !important;
  margin: 0 !important;
  position: static !important;
  float: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.dialog-nav-btn:hover:not(:disabled) {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
}

.dialog-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dialog-close-btn {
  margin: 0 !important;
  position: static !important;
  float: none !important;
  background: var(--ink) !important;
  color: white !important;
  border: 0 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  cursor: pointer;
}

/* Checkout & Reader Flow Dialogs */
.flow-dialog {
  width: min(600px, 94vw);
}

.flow-content {
  padding: 38px;
}

.flow-content h2 {
  font-size: 32px;
}

.flow-content h3 {
  font-size: 26px;
}

.flow-content p {
  font-size: 20px;
  color: var(--muted);
}

.flow-dialog > button {
  z-index: 2;
}

.bank-option {
  width: 100%;
  border: 1px solid #c5c7bb;
  padding: 20px;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.bank-option:hover {
  border-color: #ac8614;
  background: #fff9df;
}

.bank-option > span:first-child {
  font-size: 28px;
}

.bank-option > span:last-child {
  margin-left: auto;
  font-size: 22px;
}

.bank-option b {
  font-size: 20px;
}

.bank-option small {
  display: block;
  font-size: 16px;
  color: var(--muted);
}

.bank-panel {
  padding: 24px;
  background: #f5f1df;
  margin-top: 20px;
  border: 1px solid #e1d5a7;
  border-radius: 8px;
}

.bank-panel[hidden] {
  display: none;
}

.bank-panel h3 {
  font-size: 26px;
}

.bank-panel p {
  font-size: 20px;
}

.bank-panel .btn {
  font-size: 18px;
  padding: 14px 20px;
}

.flow-note {
  font-size: 15px !important;
  margin-top: 22px;
}

.reader-buy {
  display: block;
  margin-top: 25px;
  font-size: 18px;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   24. Animations
   -------------------------------------------------------------------------- */
.reveal {
  animation: appear 0.6s ease-out;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 19px;
  }

  p {
    font-size: 19px;
  }

  .wrap {
    padding: 0 20px;
  }

  .nav {
    height: 72px;
  }

  .navlinks > a:not(.btn) {
    display: none;
  }

  .navlinks {
    gap: 0;
  }

  .nav .reader-open {
    font-size: 14px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 35px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 19px;
  }

  .bookstage {
    min-height: 420px;
    margin: 0 auto;
    max-width: 360px;
    padding: 30px 25px 45px;
  }

  .book {
    max-width: 250px;
  }

  .seal {
    right: -10px;
    bottom: 35px;
    width: 105px;
    height: 105px;
    font-size: 11px;
  }

  .seal strong {
    font-size: 22px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .facts div:nth-child(2) {
    border: 0;
  }

  .facts strong {
    font-size: 24px;
  }

  .facts small {
    font-size: 16px;
  }

  section {
    padding: 60px 0;
  }

  .sectionhead {
    display: block;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px;
  }

  .chaptergrid {
    grid-template-columns: 1fr;
  }

  .bonus {
    display: block;
  }

  .bonus p {
    margin-top: 10px;
  }

  .samples-mobile-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 14px;
    text-align: center;
  }

  .samples {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 6px 16px 20px;
    margin: 0 -16px;
    scrollbar-width: none;
  }

  .samples::-webkit-scrollbar {
    display: none;
  }

  .sample {
    flex: 0 0 78%;
    max-width: 300px;
    min-width: 240px;
    scroll-snap-align: center;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .sample img {
    border-radius: 6px;
  }

  .sample small {
    font-size: 16px;
    padding: 10px 4px 2px;
    white-space: nowrap;
  }

  .preview-cta {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .preview-intro-btn {
    width: 100%;
    max-width: 380px;
    justify-content: center;
    font-size: 18px;
    padding: 16px 20px;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .videoarea,
  .author,
  .orderlayout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-card {
    padding: 22px 18px 18px;
  }

  .story-quote {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .author-photo-card {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

  .initials {
    max-width: 350px;
    width: 100%;
    font-size: 80px;
  }

  .price {
    font-size: 52px;
  }

  .orderbox {
    padding: 26px;
  }

  .footerrow {
    flex-direction: column;
    gap: 15px;
  }

  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #faf9f4f5;
    border-top: 1px solid var(--line);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 25;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  }

  .mobilebar strong {
    font: 700 24px Arial, sans-serif;
  }

  .mobilebar small {
    display: block;
    font-size: 13px;
  }

  .mobilebar .btn {
    padding: 12px 22px;
    font-size: 18px;
  }

  .value-cta {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .flow-content {
    padding: 25px;
  }
}

/* --------------------------------------------------------------------------
   26. Accessibility Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
