/* Raju Yadav Books — shared styles (Option A: navy & orange) */
:root {
  --navy: #0F1B33;
  --navy-2: #16264A;
  --navy-deep: #0A1326;
  --accent: #F5A623;
  --ink: #1E2433;
  --muted: #555E70;
  --muted-light: #C9D1E0;
  --muted-dim: #9AA6BD;
  --paper: #F7F5F0;
  --sand: #EFEBE2;
  --line: #E6E1D6;
  --line-2: #C8BFAE;
  --brown: #8A5A00;
  --green: #1F7A4D;
  --red: #B3261E;
  --white: #FFFFFF;
  --radius: 14px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: #B36B00; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); }
.dark .eyebrow, .eyebrow.on-dark { color: var(--accent); }
.h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 36px); }
.lead { font-size: 18px; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-family: var(--font-head); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #FFB840; color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost { border: 1.5px solid #5A6782; color: var(--white); font-family: var(--font-body); font-weight: 600; }
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.btn-lg { min-height: 56px; font-size: 18px; padding: 16px 28px; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 10px 16px; border-radius: 8px; font-family: var(--font-body); font-weight: 600; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--white); text-decoration: none; }
.brand span { color: var(--accent); }
.brand:hover { color: var(--white); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.nav-links a { color: var(--muted-light); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }
.nav-links .btn { color: var(--navy); }

/* Dark band */
.dark { background: var(--navy); color: var(--white); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.hl { color: var(--accent); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 80px; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; }
.hero .sub { font-size: 19px; color: var(--muted-light); max-width: 580px; }
.hero-media { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-photo { width: 300px; height: 360px; object-fit: cover; border-radius: 18px; border: 4px solid var(--accent); box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted-light); }
.ticks span { display: inline-flex; align-items: center; gap: 6px; }

/* Proof strip */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--navy); }
.stat > span { font-size: 14px; color: var(--muted); }

/* Stages & book cards */
.stage { display: flex; flex-direction: column; gap: 14px; }
.stage + .stage { margin-top: 40px; }
.stage-head { display: flex; align-items: center; gap: 14px; }
.stage-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--accent); font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.stage-head h3 { font-size: 22px; }
.stage-head p { font-size: 15px; color: var(--muted); }
.grid-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.book-row { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; gap: 18px; }
.mini-cover { flex: none; width: 76px; height: 104px; border-radius: 3px 8px 8px 3px; border-left: 5px solid var(--accent); padding: 8px 7px; display: flex; align-items: flex-end; font-family: var(--font-head); font-weight: 700; font-size: 10px; line-height: 1.15; color: var(--white); }
.book-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.book-body h3, .book-body h4 { font-size: 18px; line-height: 1.3; }
.book-body p { font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; background: var(--sand); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
.tag-new { background: var(--accent); color: var(--navy); font-weight: 700; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-family: var(--font-head); font-size: 20px; color: var(--navy); }
.price s { font-size: 14px; color: var(--muted); }

/* Library */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; min-height: 44px; border-radius: 999px; cursor: pointer; background: var(--white); color: var(--navy); border: 1.5px solid var(--line-2); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.grid-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.lib-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.lib-cover { height: 170px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lib-cover div { width: 104px; height: 140px; border-radius: 3px 8px 8px 3px; background: rgba(255,255,255,0.08); border-left: 6px solid var(--accent); box-shadow: 0 12px 24px rgba(0,0,0,0.35); padding: 10px; display: flex; align-items: flex-end; font-family: var(--font-head); font-weight: 700; font-size: 12px; line-height: 1.15; color: var(--white); }
.lib-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.soon { border: 2px dashed var(--line-2); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 300px; }

/* Cards & panels */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-dark { background: var(--navy); color: var(--white); border-radius: 20px; padding: 44px 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.panel-dark h2, .panel-dark h3 { color: var(--white); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.grid-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.feat { display: flex; flex-direction: column; gap: 8px; }
.feat .n { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--brown); }
.feat h3 { font-size: 19px; }
.feat p { color: var(--muted); }

/* Reviews */
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.review .book { font-size: 13px; font-weight: 600; color: var(--brown); }
.review blockquote { margin: 0; font-size: 17px; color: var(--ink); }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--navy); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 14px; color: var(--navy); }
.field small { font-weight: 400; color: var(--muted); }
.input { font: inherit; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; min-height: 46px; background: var(--white); color: var(--ink); width: 100%; }
.input:focus, .chip:focus-visible, .btn:focus-visible, .star:focus-visible { outline: 3px solid #F5A62399; outline-offset: 2px; }
textarea.input { min-height: 110px; resize: vertical; }
.stars { display: flex; align-items: center; gap: 4px; border: 0; margin: 0; padding: 0; }
.star { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.star svg { width: 30px; height: 30px; fill: none; stroke: #8A8F9C; stroke-width: 1.6; }
.star.on svg { fill: var(--accent); stroke: #C7841A; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.form-msg { font-size: 14px; }
.form-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { background: #EEF7F1; border: 1px solid #B9DEC8; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }

/* Lists */
.check-list, .x-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li, .x-list li { display: flex; gap: 10px; }
.check-list svg { flex: none; margin-top: 4px; }
.x-list li::before { content: "✕"; color: var(--red); font-weight: 700; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 700; color: var(--brown); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

/* Timeline */
.timeline { margin: 8px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 18px 20px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.timeline li.now::before { background: var(--accent); }
.timeline b { color: var(--navy); }
.timeline span { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 565 / 800; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--white); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--muted-dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.site-footer a { color: var(--muted-light); }
.site-footer .brand { font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }

/* Real cover images */
.mini-cover.is-img { padding: 0; border-left: 0; border-radius: 4px; object-fit: cover; box-shadow: 0 6px 14px rgba(15,27,51,0.18); }
.lib-cover img { height: 140px; width: auto; border-radius: 4px; box-shadow: 0 12px 24px rgba(0,0,0,0.35); }

/* Book card buttons */
.book-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sample-link { font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* Bundle banner */
.bundle-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bundle-copy p:not(.eyebrow) { color: var(--muted-light); font-size: 17px; }
.bundle-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.bundle .price b { color: var(--accent); font-size: 34px; }
.bundle .price s { color: var(--muted-light); font-size: 17px; }
.bundle-covers { flex: 1 1 300px; display: flex; justify-content: center; padding-left: 28px; }
.bundle-covers img { width: 92px; height: auto; border-radius: 4px; box-shadow: 0 12px 26px rgba(0,0,0,0.45); margin-left: -28px; }
.bundle-covers img:nth-child(odd) { transform: rotate(-4deg); }
.bundle-covers img:nth-child(even) { transform: rotate(4deg) translateY(10px); }

/* Free sample page */
.sample-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.sample-hero img { width: 200px; height: auto; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.45); }

@media (max-width: 560px) {
  .bundle-covers { padding-left: 20px; }
  .bundle-covers img { width: 64px; margin-left: -20px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .panel-dark { padding: 32px 22px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
}
