/* ===== Global ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Fluid base font between 18–20px */
  font-size: clamp(18px, 2.6vw, 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 1rem;
  margin: 0;
  background: #f2f4f3;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* rotating eyebrow words */
.eyebrow .word {
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}
.eyebrow .word.active { color: orange; opacity: 1; }

.page {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 8px; gap: 28px; animation: fadeInPage 0.6s ease;
}
@keyframes fadeInPage { from {opacity:0} to {opacity:1} }

/* ===== Card ===== */
.card {
  background: #fff; border-radius: 30px; padding: 28px 20px;
  width: 100%; max-width: 720px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 2px solid rgba(11,107,87,0.15);
  text-align: justify;
  opacity: 0; transform: translateY(16px); animation: cardIn 0.6s ease forwards;
}
@keyframes cardIn { to { opacity:1; transform:none; } }

.card:nth-child(1){animation-delay:.1s}
.card:nth-child(2){animation-delay:.2s}
.card:nth-child(3){animation-delay:.3s}
.card:nth-child(4){animation-delay:.4s}
.card:nth-child(5){animation-delay:.5s}
.card:nth-child(6){animation-delay:.6s}
.card:nth-child(7){animation-delay:.7s}

.card h2{
  font-size: 1.25rem; margin-bottom: 14px; font-weight: 600;
  color:#fff; background:#FF9900; padding:6px 12px; border-radius:6px; display:inline-block;
}

/* ===== Hero ===== */
.hero, .hero-card { text-align:center !important; }

.hero .eyebrow {
  font-size: .875rem; letter-spacing:.15em; text-transform:uppercase;
  color:#131921; margin-bottom:10px;
}

.hero .title,
.hero-card .title {
  font-size: 3.125rem; font-weight:700; margin:10px 0; color:#111;
  background:#FF9900 !important; /* Amazon Yellow */
  padding:8px 14px; border-radius:9px; display:inline-block; transform:rotate(-2deg);
}

.hero .positioning,
.hero-card .positioning {
  font-size: 1.125rem; margin:10px 0; color:#333;
  background:#D0F5A9 !important; /* Lime Pastel */
  padding:6px 12px; border-radius:8px; display:inline-block; font-weight:bold;
}

.hero .tagline {
  font-size: 1rem;
  margin: 6px 0 20px;
  color: #fff; /* white text looks clean on teal */
  background: #2F8F83 !important; /* muted teal background */
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

.cover{
  width:95%; max-width:600px; margin:20px auto; border-radius:20px;
  box-shadow:0 12px 32px rgba(0,0,0,0.1); display:block; animation:fadeInImage .8s ease;
}
@keyframes fadeInImage { from{opacity:0;transform:scale(.98)} to{opacity:1;transform:scale(1)} }

/* Section titles */
.section-title,.section-title-highlight,.second-title { display:block; text-align:center; margin:0 auto 16px; }

/* ===== Buttons ===== */
.cta-row{ margin:20px 0 8px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.btn{
  position:relative; overflow:hidden; padding:10px 18px; border-radius:999px;
  font-weight:600; font-size:.9375rem; text-decoration:none;
  transition:background .2s ease, color .2s ease; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn--buy{ background:#0b6b57; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,.08); padding:8px 16px; font-size:.875rem; }
.btn--buy:hover{ background:#0d7a63; }
.btn--outline{ border:2px solid #0b6b57; color:#0b6b57; background:#fff; }
.btn--outline:hover{ background:#0b6b57; color:#fff; }

/* Ripple */
.btn::after{
  content:""; position:absolute; border-radius:50%; transform:scale(0);
  background:rgba(255,255,255,.5); width:100%; height:100%; top:0; left:0; opacity:0; transition:transform .4s, opacity .8s;
}
.btn:active::after{ transform:scale(2.5); opacity:1; transition:0s; }

/* ===== Special Cards ===== */
.free-card{ background:#f9fdfa; border:2px dashed #0b6b57; }
.free-card .note{ font-size:.875rem; color:#666; margin-top:10px; }

.chapter-card{ text-align:left; border-left:6px solid #0b6b57; }
.chapter-card h2{ text-align:center; margin-bottom:16px; }
.chapter-card p{ font-size:1rem; line-height:1.7; color:#333; margin-bottom:18px; }

.final-card{ border:2px solid #0b6b57; }
.final-card h2{ font-size:1.5rem; margin-bottom:18px; color:white; }

/* ===== Logo Card ===== */
.logo-card{ background:#fdfefe; border:2px solid rgba(11,107,87,.15); }
.logo-card h2{ font-size:1.125rem; margin-bottom:16px; color:white; }
.logo-row {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 16px;
}
.logo-row img {
  max-width:160px;
  max-height:180px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:grayscale(0.4) opacity(0.8);
  transition:all 0.3s ease;
  border-radius:6px;
}
.logo-row img:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Modal ===== */
.modal{
  display:none; position:fixed; z-index:9999; inset:0; width:100%; height:100%;
  background:rgba(0,0,0,.6); overflow-y:auto;
}
.modal-content{
  background:#fff; margin:60px auto; padding:30px; border-radius:24px; width:90%; max-width:720px;
  box-shadow:0 8px 28px rgba(0,0,0,.2); animation:slideUp .4s ease;
  position:relative; padding-bottom:80px; text-align:justify;
}
@keyframes slideUp{ from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:none} }
.modal-content h2{ color:#0b6b57; margin-top:0; }
.modal-content p{ color:#333; margin-bottom:16px; line-height:1.7; }
.sticky-buy{ position:sticky; bottom:0; background:#fff; padding:16px 0 0; box-shadow:0 -2px 8px rgba(0,0,0,.05); }
.close{ float:right; font-size:28px; font-weight:bold; color:#999; cursor:pointer; }
.close:hover{ color:#0b6b57; }

/* ===== Footer ===== */
footer{
  text-align:center; padding:24px; font-size:.875rem; color:#555; background:#fff;
  border-top:1px solid #eee; box-shadow:0 -2px 6px rgba(0,0,0,.04);
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

/* ===== Mobile (≤767px) ===== */
@media (max-width: 767px) {
  .page { padding: 20px 6px; align-items: stretch; }
  .card:not(.hero):not(.hero-card) { text-align:left; } /* left-align normal cards, keep hero centered */

  /* Hero */
  .eyebrow { font-size: 1.25rem; }
  .hero .title { font-size: 3.0625rem; }
  .hero .positioning { font-size: 1.3125rem; }
  .hero .tagline { font-size: 1.125rem; }

  .cover { width:100%; max-width:none; }

  .card h2 { font-size: 1.75rem; }
.chapter-card p {
  font-size: 1.375rem;
  text-align: justify;
}

  .btn { font-size: .875rem; padding: 13px 20px; }
  footer { font-size: 1rem; }

  .modal-content p { font-size: 1.25rem; }
  .modal-content h2 { font-size: 1.625rem; }

  .logo-row img { max-width:160px; max-height:30px; }
}

/* ===== Tablet (768–1023px) ===== */
@media (min-width:768px) and (max-width:1023px) {
  .page { padding: 24px 8px; }
  .card { max-width: 840px; }

  .hero .title { font-size: 2.625rem; }
  .hero .positioning { font-size: 1.5rem; }
  .hero .tagline { font-size: 1.25rem; }

  .cover { width:96%; max-width:720px; }

  .card h2 { font-size: 1.75rem; }
  .chapter-card p { font-size: 1.6875rem; }

  .btn { font-size: 1rem; padding: 12px 22px; }

  .modal-content p { font-size: 1.5rem; }
  .modal-content h2 { font-size: 1.75rem; }
}

/* ===== Desktop (≥1024px) ===== */
@media (min-width:1024px) {
  .page { padding: 28px 12px; }
  .card { max-width: clamp(820px, 88vw, 1040px); }
  .cover { max-width: clamp(700px, 82vw, 960px); }

  .hero .title { font-size: 3rem; }
}

/* ===== Large Desktop (≥1440px) ===== */
@media (min-width:1440px) {
  html { font-size: 20px; }
  .hero .title { font-size: 3.25rem; }
}

/* ===== Mobile Font Hotfix ===== */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 115% !important; text-size-adjust: 115% !important; }
}

/* iOS specific nudge */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    html { -webkit-text-size-adjust: 120% !important; }
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; }
}
