/* palette: Selva & Maracuyá | style: SOFT-NATURE | hero: two-tone | structure: STORY */
:root {
  --primary-color: #1F6B4A;
  --secondary-color: #163A2C;
  --accent-color: #B3390A;
  --background-color: #FFF4E0;
  --dark-color: #111111;
  --text-color: #2A2218;
  --border-color: rgba(42,34,24,0.14);
  --shadow-md: 0 20px 60px rgba(42,34,24,0.10);
  --shadow-lg: 0 30px 80px rgba(22,58,44,0.30);
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 32px;
  --main-font: 'Lora', Georgia, serif;
  --alt-font: 'Nunito Sans', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F5F2ED;
  color: var(--text-color);
  font-family: var(--alt-font);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-color); }

h1, h2, h3 { font-family: var(--main-font); color: var(--primary-color); margin: 0 0 32px; }
h1 { font-size: clamp(44px, 7.5vw, 96px); font-weight: 700; line-height: 1.02; }
h2 { font-size: clamp(34px, 5.5vw, 64px); font-weight: 700; line-height: 1.08; }
h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; }
.kicker {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; }
section { padding: 88px 20px; }
.section-alt { background: #ECE6DA; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 20px 44px;
  font-family: var(--alt-font);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--primary-color);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #185A3D; }
.btn-accent { background: var(--accent-color); }
.btn-accent:hover { background: #962F07; }
.btn:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
.btn-wrap { margin-top: 48px; }

/* ---------- Price ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px; margin: 0 0 40px; }
.price s { font-size: clamp(22px, 2.4vw, 28px); color: rgba(42,34,24,0.6); }
.price strong { font-family: var(--main-font); font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--accent-color); }

/* ---------- Hero: two-tone ---------- */
.hero { padding: 0; display: grid; background: var(--background-color); }
.hero-cover { order: -1; display: flex; justify-content: center; padding: 56px 20px; background: var(--primary-color); }
.hero-cover img { width: 100%; max-width: 280px; border-radius: 6px; box-shadow: var(--shadow-lg); }
.hero-text { padding: 56px 20px 88px; }
.hero-author { margin-bottom: 32px; font-weight: 600; color: rgba(42,34,24,0.8); }

/* ---------- Split blocks (arch photos) ---------- */
.split-grid { display: grid; gap: 48px; align-items: center; }
.split-media { overflow: hidden; border-radius: 999px 999px 32px 32px; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform .6s; }
.split-media:hover img { transform: scale(1.02); }
.split-text { max-width: 560px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 44px; margin-bottom: 18px; }
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--accent-color); }

/* ---------- E. Excerpt ---------- */
.excerpt { text-align: center; background: var(--secondary-color); color: #FFF4E0; }
.excerpt blockquote { max-width: 900px; margin: 0 auto; }
.excerpt .quote-mark { display: block; height: 0.55em; font-family: var(--main-font); font-size: 9rem; line-height: 1; color: #F2B880; opacity: 0.5; }
.excerpt p { margin-bottom: 32px; font-family: var(--main-font); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 48px); line-height: 1.3; }
.excerpt cite { font-style: normal; font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,244,224,0.8); }

/* ---------- H. Book Details ---------- */
.details { text-align: center; background: var(--primary-color); color: #fff; }
.details h2 { color: #fff; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; margin-top: 56px; }
.detail-value { display: block; font-family: var(--main-font); font-size: clamp(32px, 5vw, 64px); font-weight: 700; line-height: 1.1; color: #FFD39A; overflow-wrap: anywhere; }
.detail-label { display: block; margin-top: 8px; font-size: 18px; color: rgba(255,255,255,0.9); }

/* ---------- J. Offer ---------- */
.offer { min-height: 80vh; display: flex; align-items: center; }
.offer-grid { display: grid; gap: 56px; align-items: center; }
.offer-cover { justify-self: center; width: 100%; max-width: 300px; }
.offer-cover img { border-radius: 6px; box-shadow: var(--shadow-lg); }
.offer-text { max-width: 560px; }
.offer .price strong { font-size: clamp(48px, 7.5vw, 96px); }

/* ---------- K. FAQ ---------- */
.faq-grid { display: grid; gap: 48px; }
.faq-item p { color: rgba(42,34,24,0.88); }

/* ---------- L. Order ---------- */
.order { min-height: 80vh; display: flex; align-items: center; text-align: center; background: var(--background-color); }
.order-inner { width: 100%; max-width: 560px; margin: 0 auto; }
.order-price { justify-content: center; margin-top: 32px; }
.order-form { display: grid; gap: 12px; margin-top: 40px; text-align: left; }
.order-form label { margin-top: 12px; font-size: 18px; font-weight: 700; }
.order-form input {
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  font-family: var(--alt-font);
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-color);
  background: #fff;
  border: 2px solid rgba(42,34,24,0.2);
  border-radius: 99px;
}
.order-form input::placeholder { color: rgba(42,34,24,0.5); }
.order-form input:focus { border-color: var(--primary-color); outline: 3px solid rgba(31,107,74,0.25); outline-offset: 1px; }
.order-form .btn { width: 100%; margin-top: 28px; }
.form-note { margin-top: 20px; font-size: 15px; color: rgba(42,34,24,0.75); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 20px; text-align: center; font-size: 16px; background: var(--secondary-color); color: #EDE6D8; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.footer-nav a { color: #fff; text-underline-offset: 4px; }
.footer-cookies, .footer-copy { margin: 0 0 8px; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 100vh; max-width: 900px; margin: 0 auto; padding: 88px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.thanks h1 { margin-bottom: 32px; }
.thanks .lead { margin-bottom: 48px; }

/* ---------- Legal pages ---------- */
.legal-page main { max-width: 760px; margin: 0 auto; padding: 72px 20px 96px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.legal-page h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 16px; }
.legal-page p, .legal-page li { font-size: clamp(17px, 1.8vw, 19px); }
.legal-page ul { padding-left: 24px; margin: 0 0 24px; }
.legal-page li { margin-bottom: 8px; }
.legal-meta { color: rgba(42,34,24,0.7); font-size: 16px; }
.back-link { display: inline-block; margin-bottom: 40px; font-size: 17px; font-weight: 700; }

/* ---------- Animations ---------- */
@keyframes reveal-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  section { padding: 160px 32px; }

  .hero {
    padding: 0;
    min-height: 100vh;
    grid-template-columns: 55% 45%;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-color) 55%, var(--background-color) 55%);
  }
  .hero-text {
    order: 0;
    padding: 120px calc(min(440px, 30vw) / 2 + 48px) 120px max(32px, calc((100vw - 1240px) / 2));
    color: #fff;
  }
  .hero-text h1 { color: #fff; font-size: clamp(44px, 5.5vw, 80px); }
  .hero-text .kicker { color: #FFD39A; }
  .hero-text .hero-author { color: rgba(255,255,255,0.88); }
  .hero-text .price s { color: rgba(255,255,255,0.7); }
  .hero-text .price strong { color: #FFD39A; }
  .hero-cover { order: 0; justify-content: flex-start; padding: 0; background: none; }
  .hero-cover img { width: min(440px, 30vw); max-width: none; transform: translateX(-50%); }

  .split-grid { grid-template-columns: 1.1fr 1fr; gap: 120px; }
  .split--reverse .split-grid { grid-template-columns: 1fr 1.1fr; }
  .split--reverse .split-media { order: 2; }
  .details-grid { grid-template-columns: repeat(4, 1fr); }
  .offer-grid { grid-template-columns: 1fr 1.1fr; gap: 120px; }
  .offer-cover { max-width: 420px; }
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 64px 96px; }
  .footer-nav { flex-direction: row; justify-content: center; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
