/* Rx & Reality — brand palette from COLORS-FONTS.jpg */
:root {
  --teal: #019AB2;
  --mauve: #B1487B;
  --magenta: #8E1394;
  --purple: #540071;
  --ink: #241b2e;
  --paper: #ffffff;
  --paper-soft: #f7f4fa;
  --blush: #fdf2f8;
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--purple); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
a { color: var(--magenta); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.75rem 0; }
.section-soft { background: var(--blush); }
.center { text-align: center; }
.small { font-size: 0.9rem; }
.muted { color: #5d5468; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: linear-gradient(90deg, var(--mauve), var(--magenta), var(--purple)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: #fff; color: var(--purple); border-color: var(--purple); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #eee4f2; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; padding-bottom: 0.6rem; gap: 1rem; }
.brand-logo { height: 48px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.site-nav a:hover { color: var(--magenta); }
.site-nav .nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--purple); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--paper-soft), #fdeef7); padding: 4rem 0; }
.hero h1 { margin-top: 0; }
.hero .lede { font-size: 1.15rem; max-width: 46rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }

/* Section heading accent */
.h-accent { position: relative; padding-bottom: 0.7rem; }
.h-accent::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px;
  border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--magenta));
}
.center .h-accent::after, .h-accent.h-accent-center::after { left: 50%; transform: translateX(-50%); }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid #f3e8f5; padding: 1.4rem 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--purple); }
.trust-item svg { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.card { background: #fff; border: 1px solid #eee4f2; border-radius: 14px; padding: 1.5rem; }
.card h3 { margin-top: 0; color: var(--teal); }

/* Principle cards (Prepare / Advocate / Empower) */
.principle-card {
  background: #fff; border: 1px solid #f0e2ef; border-radius: 16px; padding: 2rem 1.6rem 1.6rem;
  position: relative; overflow: hidden; text-align: center;
  box-shadow: 0 4px 14px rgba(84, 0, 113, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.principle-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--mauve), var(--magenta), var(--purple));
}
.principle-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(84, 0, 113, 0.12); }
.principle-card h3 { margin: 0.9rem 0 0.5rem; color: var(--purple); font-size: 1.3rem; }
.principle-icon {
  width: 64px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: linear-gradient(135deg, #e8f6f9, #fdeef7); color: var(--teal);
}
.principle-icon svg { width: 32px; height: 32px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: 0.7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* Book cover framing */
.cover-wrap { position: relative; max-width: 340px; margin: 0 auto; }
.cover-wrap::before {
  content: ""; position: absolute; inset: -14px;
  background: linear-gradient(135deg, rgba(1, 154, 178, 0.18), rgba(142, 19, 148, 0.18));
  border-radius: 20px; filter: blur(2px); z-index: 0;
}
.cover-wrap img {
  position: relative; z-index: 1; border-radius: 10px; display: block;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgba(84, 0, 113, 0.22), 0 24px 56px rgba(84, 0, 113, 0.18);
}

/* Headshot */
.headshot { border-radius: 50%; width: 260px; height: 260px; object-fit: cover; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(84, 0, 113, 0.2); }
.headshot-wrap { position: relative; display: inline-block; padding: 1.5rem; }
.headshot-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(1, 154, 178, 0.22), rgba(177, 72, 123, 0.2) 55%, rgba(84, 0, 113, 0.16));
}
.headshot-wrap img { position: relative; }

/* FAQ */
.faq details { border-bottom: 1px solid #eee4f2; padding: 0.9rem 0; }
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; color: var(--purple); }
.faq p { margin: 0.6rem 0 0; }

/* Forms */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.75rem; border: 1px solid #cbb8d9; border-radius: 8px; font-size: 1rem; font-family: var(--font-body);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.hidden { display: none !important; }
.notice { border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; }
.notice-info { background: #e8f6f9; border: 1px solid var(--teal); }
.notice-warn { background: #fdf0e6; border: 1px solid #d97a2b; }
.notice-ok { background: #eef9ef; border: 1px solid #3a9a4b; }

/* Footer (dark, per layout direction) */
.site-footer { background: #2a1136; color: #e9def2; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #e9def2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-disclaimer { border-top: 1px solid #4b2761; padding-top: 1.5rem; font-size: 0.85rem; color: #cbb6dc; }
.footer-copyright { font-size: 0.8rem; color: #a98cc0; margin-top: 1.5rem; }

/* Legal pages */
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.legal h3 { margin-top: 1.4rem; }

/* Launch pricing + countdown */
.launch-pricing { margin: 0 0 1.4rem; }
.launch-card {
  background: linear-gradient(165deg, #fff, var(--paper-soft) 75%);
  border: 1px solid #eee4f2;
  border-top: 4px solid #d4af37;
  border-radius: 20px;
  padding: 1.6rem 1.75rem 1.75rem;
  box-shadow: 0 10px 30px rgba(84, 0, 113, 0.12);
}
.price-line {
  font-family: var(--font-display); margin: 0 0 0.4rem;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.65rem;
}
.price-old { color: #8a7d95; text-decoration: line-through; font-weight: 600; font-size: 1rem; }
.price-new { color: var(--magenta); font-weight: 800; font-size: 1.6rem; }
.launch-card .price-new { font-size: 1.8rem; }
.price-deadline { font-size: 0.92rem; color: #5d5468; margin: 0; }
.launch-card .price-deadline { margin-bottom: 1.4rem; }
.price-regular { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--purple); margin: 0 0 0.9rem; }

.format-badge {
  display: block; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--purple);
  background: #f4e9f9; border-radius: 12px; padding: 0.55rem 1rem;
  margin: 0.9rem 0 1.1rem; white-space: nowrap;
}
.format-badge svg { vertical-align: -2px; margin-right: 0.45rem; }

@media (max-width: 560px) {
  .format-badge { white-space: normal; font-size: 0.82rem; }
}

.countdown-clock { margin: 0; }
.countdown-label {
  font-family: var(--font-display); font-weight: 700; color: var(--purple);
  margin: 0 0 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.countdown-boxes { display: flex; gap: 0.9rem; flex-wrap: nowrap; }
.countdown-box {
  background: linear-gradient(160deg, #fff, var(--paper-soft));
  border: 1px solid #eee4f2; border-radius: 16px; padding: 1rem 0.6rem;
  min-width: 84px; min-height: 84px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 6px 16px rgba(84, 0, 113, 0.1);
}
.countdown-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.3rem; line-height: 1; color: var(--magenta);
}
.countdown-unit {
  display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--purple); margin-top: 0.4rem;
}

@media (max-width: 560px) {
  .launch-card { padding: 1.3rem 1.1rem 1.4rem; }
  .countdown-boxes { gap: 0.5rem; }
  .countdown-box { min-width: 68px; min-height: 68px; padding: 0.7rem 0.4rem; }
  .countdown-num { font-size: 1.7rem; }
  .launch-card .price-new { font-size: 1.5rem; }
}

/* Access controls (thank-you page) */
.reader-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; margin: 1rem 0; }
.reader-controls .btn { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-grid .cover-wrap { max-width: 250px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid #eee4f2; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .grid-3, .grid-2, .footer-cols { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
}
