/*
   security-book-site adaptation for Jestem Toba
   Source visual model: security-book-site.html
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0a0f;
  --paper: #f5f3ee;
  --cream: #faf8f4;
  --accent: #c8391a;
  --accent-light: #f5e8e4;
  --gold: #b8922a;
  --muted: #6b6760;
  --border: rgba(10, 10, 15, 0.1);
  --card-bg: #ffffff;
  --shadow: 0 24px 70px rgba(10, 10, 15, 0.18);
  --page-x: clamp(28px, 5vw, 96px);
  --section-y: clamp(42px, 4.8vw, 72px);
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

body { min-width: 320px; }

main { overflow-x: clip; }

#about,
#reviews,
#sample,
#pricing,
#kup,
#blog,
#faq {
  scroll-margin-top: 92px;
}

.anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: 92px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }
.private_key { display: none; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--page-x);
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

.nav-cta,
.btn-primary,
.pricing-btn {
  border-radius: 4px;
  text-decoration: none;
}

.nav-cta {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.hero {
  width: min(100%, 1320px);
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: clamp(1.8rem, 3vw, 3.35rem);
  padding: 7rem var(--page-x) 4.25rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 57, 26, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-eyebrow,
.section-label,
.logos-label,
.pricing-format {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1,
h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(3rem, 5.3vw, 5.4rem);
  margin-bottom: 1rem;
}

.hero h1 { max-width: 100%; }

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

.hero-actions,
.sample-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 57, 26, 0.3);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 3.4vw, 3.25rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-meta-num {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hero-meta-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
  max-width: 13ch;
}

.hero-visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.book-wrap {
  position: relative;
  width: min(100%, 510px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}

.book-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: min(68vh, 640px);
  object-fit: contain;
  filter: drop-shadow(-12px 24px 60px rgba(0, 0, 0, 0.28));
}

.book-shadow {
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 8%;
  height: 56px;
  background: rgba(0, 0, 0, 0.22);
  filter: blur(24px);
  border-radius: 50%;
  z-index: 1;
}

.badge-floating {
  position: absolute;
  top: 3%;
  right: 0;
  z-index: 3;
  background: var(--gold);
  color: white;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 24px;
  transform: rotate(8deg);
  box-shadow: 0 4px 16px rgba(184, 146, 42, 0.4);
  white-space: nowrap;
}

.logos-bar {
  padding: 2.2rem var(--page-x);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  flex-wrap: wrap;
}

.logo-item {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(10, 10, 15, 0.46);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section,
.author-section,
.pricing-section,
.quotes-section {
  padding: var(--section-y) var(--page-x);
}

.section-sm { padding: clamp(44px, 5vw, 72px) var(--page-x); }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.about-grid,
.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.75rem, 5vw, 5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-text p,
.author-bio p,
.cover-card p,
.pricing-heading p,
.faq-answer,
.blog-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.about-text p,
.author-bio p { margin-bottom: 1.25rem; }

.chapter-list { margin-top: 1rem; }

.chapter-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}

.chapter-item:hover { padding-left: 0.5rem; }

.chapter-num {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 46px;
  height: 32px;
  margin-top: 0;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 57, 26, 0.08);
  border: 1px solid rgba(200, 57, 26, 0.16);
  border-radius: 4px;
}

.chapter-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.chapter-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0.25rem;
}

.cover-band {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cover-card {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cover-card > img {
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(10, 10, 15, 0.18);
  max-height: 320px;
  width: auto;
}

.patron-link {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.patron-link img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.patron-link strong {
  display: block;
  max-width: 220px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.patron-highlight {
  display: inline-flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(10, 10, 15, 0.08);
}

.patron-highlight > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quotes-section {
  background: var(--ink);
  color: white;
}

.quotes-section .section-label {
  color: rgba(200, 57, 26, 0.88);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.quotes-section .section-label::after { background: rgba(200, 57, 26, 0.5); }
.quotes-section h2 { color: white; max-width: 1180px; margin-left: auto; margin-right: auto; }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1180px;
  margin: 2.75rem auto 0;
}

.quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: background 0.2s, transform 0.2s;
}

.quote-card.featured {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.07);
}

.quote-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.quote-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.quote-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quote-card.featured .quote-text { font-size: 1.22rem; }

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(200, 57, 26, 0.2);
  border: 1px solid rgba(200, 57, 26, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f17252;
}

.quote-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.quote-author small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.44);
  margin-top: 2px;
}

.author-photo {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  min-height: 420px;
}

.author-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  image-rendering: auto;
}

.author-photo-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 1rem;
  background: rgba(10, 10, 15, 0.82);
  color: white;
  border-radius: 6px;
  backdrop-filter: blur(12px);
}

.author-photo-caption strong {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.author-photo-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.video-frame {
  display: block;
  position: relative;
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.video-frame img {
  width: 100%;
  aspect-ratio: 1170 / 482;
  object-fit: cover;
}

.video-frame span {
  position: absolute;
  inset: auto 1rem 1rem auto;
  background: var(--accent);
  color: white;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 22px;
}

.pricing-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.pricing-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-heading .section-label,
.faq-heading .section-label {
  justify-content: center;
}

.pricing-heading .section-label::before,
.faq-heading .section-label::before {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.checkout-panel {
  max-width: 1040px;
  margin: 2.75rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(10, 10, 15, 0.08);
  overflow: hidden;
}

.checkout-copy {
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkout-copy h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0.85rem 0 1rem;
}

.checkout-copy p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 58ch;
}

.purchase-points {
  list-style: none;
  margin: 1.4rem 0 1.25rem;
}

.purchase-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: #37342f;
  padding: 0.45rem 0;
  line-height: 1.55;
}

.purchase-points li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.payment-icons img {
  width: auto;
  height: 28px;
  max-width: 86px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
}

.hero-payment-icons {
  max-width: 540px;
  margin-top: 1rem;
  gap: 0.45rem;
}

.hero-payment-icons img {
  height: 24px;
  max-width: 78px;
  padding: 0.3rem 0.5rem;
}

.checkout-card {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  padding: clamp(2rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.pricing-format { color: var(--muted); }

.checkout-card .pricing-format { color: rgba(255, 255, 255, 0.46); }

.pricing-badge {
  align-self: flex-start;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  margin-bottom: 1.35rem;
}

.checkout-price-row span,
.checkout-price-row small {
  display: block;
  color: rgba(255, 255, 255, 0.58);
}

.checkout-price-row span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.checkout-price-row strong {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3.1rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
  color: white;
  margin: 0.8rem 0 0.2rem;
}

.pricing-features {
  list-style: none;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 0.5rem 0;
}

.discount-label {
  display: block;
  margin-top: 1.8rem;
}

.discount-label span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.45rem;
}

.discount_field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font: 0.95rem/1 'DM Sans', Arial, sans-serif;
  outline: none;
}

.discount_field::placeholder { color: rgba(255, 255, 255, 0.36); }
.discount_field:focus { border-color: rgba(200, 57, 26, 0.75); }

.return_msg {
  margin-top: 1rem;
}

.alert {
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.alert-danger {
  background: rgba(200, 57, 26, 0.14);
  border: 1px solid rgba(200, 57, 26, 0.35);
  color: #ffd4ca;
}

.alert-success {
  background: rgba(184, 146, 42, 0.14);
  border: 1px solid rgba(184, 146, 42, 0.35);
  color: #ffe8a8;
}

.pricing-btn {
  margin-top: 1.35rem;
  display: block;
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s;
}

.pricing-btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.pricing-btn-outline:hover {
  background: var(--ink);
  color: white;
}

.pricing-btn-solid {
  background: var(--accent);
  color: white;
  border: none;
}

.pricing-btn-solid:hover {
  background: #a82f14;
  transform: translateY(-1px);
}

.pricing-note,
.secure-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.pricing-note {
  display: inline-block;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  margin-top: 1rem;
}

.secure-note {
  text-align: center;
  margin-top: 2rem;
}

.blog-section {
  max-width: 1180px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(10, 10, 15, 0.06);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 370 / 236;
  object-fit: cover;
}

.blog-card div { padding: 1.35rem; }

.blog-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.blog-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.faq-section {
  padding: 7rem var(--page-x);
  max-width: 800px;
  margin: 0 auto;
}

.faq-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: background 0.2s, transform 0.2s;
}

.faq-item.open .faq-toggle {
  background: var(--ink);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-top: 1rem;
}

.site-footer {
  background: var(--ink);
  padding: 4rem var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .nav-logo { color: white; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 0.5rem;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.46);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s, transform 0.65s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.download-page {
  min-height: 100vh;
  background: var(--paper);
}

.download-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--page-x);
}

.download-panel {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 10, 15, 0.1);
}

.download-copy,
.download-card {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.download-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  margin: 1rem 0;
}

.download-copy p,
.download-help,
.download-meta {
  color: var(--muted);
  line-height: 1.75;
}

.download-main-btn {
  margin-top: 1.4rem;
}

.download-card {
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.download-card label span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.45rem;
}

.download-card input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-radius: 4px;
  padding: 0.9rem 1rem;
  font: 0.95rem/1.2 'DM Sans', Arial, sans-serif;
  outline: none;
}

.download-card input::placeholder { color: rgba(255, 255, 255, 0.36); }
.download-card input:focus { border-color: rgba(200, 57, 26, 0.75); }
.download-card .pricing-format { color: rgba(255, 255, 255, 0.5); }
.download-card .pricing-btn { width: 100%; }
.download-help { font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6.5rem;
    min-height: auto;
  }

  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero h1 {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .sample-actions,
  .hero-meta { justify-content: center; }
  .hero-payment-icons { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero-eyebrow { margin: 0 auto 1.5rem; }
  .hero-eyebrow::before { display: none; }
  .hero-visual { justify-content: center; }
  .book-wrap { max-width: 500px; }

  .about-grid,
  .author-grid,
  .download-panel,
  .checkout-panel {
    grid-template-columns: 1fr;
  }

  .cover-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cover-card > img {
    margin: 0 auto;
  }

  .section-label {
    justify-content: center;
    text-align: center;
  }

  .section-label::before {
    content: '';
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
  }

  .about-text,
  .author-bio,
  .blog-section {
    text-align: center;
  }

  .quotes-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .quote-card.featured { grid-column: span 1; }
  .site-nav .nav-links { display: none; }
  .site-footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 620px) {
  .site-nav { padding: 0.9rem 1.35rem; }
  .nav-logo { font-size: 0.95rem; }
  .nav-cta { padding: 0.55rem 0.9rem; }

  .hero,
  .section,
  .author-section,
  .pricing-section,
  .quotes-section,
  .faq-section {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .hero {
    padding-top: 5.75rem;
    padding-bottom: 3.5rem;
    gap: 2rem;
  }

  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero h1 { max-width: 10.8ch; }
  h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }

  .hero-meta-num { font-size: 1.35rem; }
  .hero-meta-label { font-size: 0.72rem; max-width: none; }
  .logos-row { gap: 1.35rem; }
  .logo-item { font-size: 0.78rem; }
  .book-wrap { max-width: 340px; }
  .badge-floating { right: -0.5rem; font-size: 0.62rem; }

  .section,
  .author-section,
  .pricing-section,
  .quotes-section,
  .faq-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .cover-card,
  .quote-card,
  .checkout-copy,
  .checkout-card {
    padding: 1.5rem;
  }

  .chapter-item,
  .quote-author {
    text-align: left;
  }

  .quote-card.featured .quote-text { font-size: 1.08rem; }
  .checkout-price-row strong { font-size: 2.8rem; }
  .author-photo,
  .author-photo img { min-height: 300px; }
  .btn-primary,
  .btn-secondary,
  .pricing-btn { width: 100%; }
}
