/* ==========================================================================
   Read Flow (Operated by Rahul Mehta) - Official Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: #161f33;
  --border-color: #26334d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-indigo: #6366f1;
  --accent-indigo-hover: #4f46e5;
  --success: #10b981;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo span.gold {
  color: var(--accent-gold);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Book Showcase Card */
.book-showcase {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.book-cover-img {
  width: 130px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.75rem 1.35rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preview:hover {
  background: rgba(99, 102, 241, 0.28);
  color: #ffffff;
}

/* Checkout Card */
.checkout-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.price-tag {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.mandate-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}

.mandate-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.mandate-note {
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.55rem;
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-indigo);
}

.consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.consent-wrapper input {
  margin-top: 0.25rem;
}

.link-btn {
  background: none;
  border: none;
  color: #818cf8;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.btn-submit {
  width: 100%;
  background: var(--accent-indigo);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: var(--accent-indigo-hover);
}

/* Visual Gallery & Free Preview Section */
.section-block {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.gallery-card-body {
  padding: 1.25rem;
}

.gallery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.gallery-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Interactive Reader Box */
.reader-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  margin-top: 1.5rem;
}

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-tab {
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.page-tab.active {
  background: var(--accent-indigo);
  color: #ffffff;
  border-color: var(--accent-indigo);
}

.page-tab.locked {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
}

.reader-viewport {
  padding: 2.25rem;
  min-height: 420px;
}

.ebook-page {
  display: none;
  max-width: 780px;
  margin: 0 auto;
}

.ebook-page.active {
  display: block;
}

.ebook-page img.page-art {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin: 1.25rem 0;
  border: 1px solid var(--border-color);
}

.ebook-page h3 {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.ebook-page p {
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.paywall-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed var(--accent-gold);
  border-radius: 1rem;
}

/* Info Box & Legal Footer */
.legal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  font-size: 0.9rem;
}

.legal-card p {
  margin-bottom: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Policy Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 1.75rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
