/* ============================================================
   Said & Saved — Global Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- Design Tokens --- */
:root {
  /* Book cover palette — midnight navy */
  --book-cover:    #0D1B2A;
  --book-spine:    #0A1520;
  --book-gold:     #C4A45A;
  --book-gold-dim: #3A5070;
  --book-cream:    #F0EAD6;
  --book-parchment:#8A9AAA;

  /* Page palette */
  --page-white:    #FDFBF7;
  --page-cream:    #F7F4EE;
  --ink:           #1C1917;
  --ink-light:     #5C534A;
  --ink-muted:     #9C8E82;
  --rule-gold:     #C9A96E;
  --rule-dark:     #2C2416;
  --rule-page:     #D4C9B8;

  /* Spacing */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-cinzel:  'Cinzel', Georgia, serif;

  /* Max widths */
  --max-content: 1100px;
  --max-prose:   680px;
  --max-narrow:  560px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background-color: var(--page-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography Scale --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: clamp(18px, 2.5vw, 24px); }

p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
}

.prose p + p { margin-top: var(--sp-3); }

strong { font-weight: 600; }
em { font-style: italic; }

/* --- Chapter Openers --- */

.chapter-opener {
  background: var(--page-cream);
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
  border-top: 1px solid var(--rule-page);
  border-bottom: 1px solid var(--rule-page);
}

.chapter-opener__number {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}

.chapter-opener__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.chapter-opener__rule {
  width: 40px;
  height: 1px;
  background: var(--rule-gold);
  margin: 0 auto var(--sp-3);
}

.chapter-opener__epigraph {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-light);
  max-width: var(--max-narrow);
  margin: 0 auto;
}

/* --- Drop Cap --- */

.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 5.5em;
  font-weight: 600;
  float: left;
  line-height: 0.72;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--ink);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--book-gold);
  color: var(--book-cover);
}

.btn-ink {
  background: var(--ink);
  color: var(--page-white);
}

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

.btn-large {
  font-size: 15px;
  padding: 16px 36px;
}

.btn-full { width: 100%; }

/* --- Section Utilities --- */

.section-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.section-inner--narrow {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* --- Running Header (page spread) --- */

.running-header {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule-page);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
}

/* --- Page Number --- */

.page-number {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

/* --- Gold Hairline Rule (on pages) --- */

.rule-page {
  width: 40px;
  height: 1px;
  background: var(--rule-page);
  margin: var(--sp-4) 0;
}

.rule-page--center {
  margin: var(--sp-4) auto;
}

.rule-page--full {
  width: 100%;
}

/* --- Fade-in on scroll --- */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stat Row --- */

.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.03em;
}

.stat-row__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 2px;
}

/* --- Privacy section --- */

.privacy-section {
  background: var(--page-cream);
  padding: var(--sp-12) var(--sp-4);
  text-align: center;
  border-top: 1px solid var(--rule-page);
}

.privacy-section h2 {
  font-size: 28px;
  margin-bottom: var(--sp-2);
}

.privacy-section .subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: var(--sp-8);
}

.privacy-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.privacy-col__icon {
  width: 32px;
  height: 32px;
  color: var(--ink-light);
  margin-bottom: var(--sp-2);
}

.privacy-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

.privacy-col p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.7;
}

/* --- Back Cover CTA --- */

.back-cover {
  background: var(--book-cover);
  padding: var(--sp-16) var(--sp-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.back-cover::before,
.back-cover::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: #C4A45A;
  opacity: 0.2;
}
.back-cover::before { top: 40px; }
.back-cover::after  { bottom: 40px; }

.back-cover__quote {
  font-family: var(--font-display);
  font-size: 52px;
  font-style: italic;
  font-weight: 300;
  color: #F0EAD6;
  max-width: 700px;
  margin: 0 auto var(--sp-3);
  line-height: 1.3;
}

.back-cover__attribution {
  font-family: var(--font-cinzel);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C4A45A;
  opacity: 0.85;
  margin-bottom: var(--sp-8);
}

.back-cover .btn-cta {
  background: #C4A45A;
  color: #0D1B2A;
  font-family: var(--font-cinzel);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 48px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.back-cover .btn-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.back-cover__note {
  font-family: var(--font-cinzel);
  font-size: 9px;
  color: #C4A45A;
  opacity: 0.6;
  margin-top: var(--sp-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.back-cover__privacy {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: #6A8AAA;
  max-width: 520px;
  margin: var(--sp-6) auto 0;
  line-height: 1.8;
}

/* --- Trust badges row --- */

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-4);
  background: var(--page-white);
  border-bottom: 1px solid var(--rule-page);
}

.trust-badge {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
}

/* --- Site Nav (minimal) --- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--sp-4);
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-page);
  transition: opacity 0.3s;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-nav__quill {
  width: 18px;
  height: 24px;
  flex-shrink: 0;
}

.site-nav__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-style: normal;
}

.site-nav__wordmark-and {
  font-style: italic;
  color: #7A6040;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
}

.site-nav__links a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.site-nav__links a:hover { color: var(--ink); }

.site-nav__cta {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  background: var(--ink);
  color: var(--page-white);
  padding: 8px 18px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* --- Comparison Grid --- */

.comparison-section {
  background: var(--page-white);
  padding: var(--sp-12) var(--sp-4);
}

.comparison-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: var(--sp-8);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-page);
  border: 1px solid var(--rule-page);
  max-width: 820px;
  margin: 0 auto;
}

.comparison-card {
  background: var(--page-white);
  padding: var(--sp-6);
}

.comparison-card--highlight {
  background: var(--page-cream);
}

.comparison-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.comparison-card__price {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}

.comparison-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-card li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-light);
  padding-left: 16px;
  position: relative;
}
.comparison-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.comparison-card--highlight li { color: var(--ink); }

.comparison-card--highlight .comparison-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--page-white);
  padding: 2px 8px;
  border-radius: 2px;
}

/* --- Footer --- */

.site-footer {
  background: var(--book-spine);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}

.site-footer p {
  font-family: var(--font-cinzel);
  font-size: 9px;
  color: #3A5070;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: #3A5070;
  text-decoration: none;
}

.site-footer a:hover {
  color: #C4A45A;
}

/* ── WHATSAPP PHONES SECTION ── */
.whatsapp-section {
  padding: 80px 2rem;
  background: var(--page-white);
  text-align: center;
  border-top: .5px solid var(--rule-page);
  border-bottom: .5px solid var(--rule-page);
}
.wa-section-header { margin-bottom: 48px; }
.wa-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.wa-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px; font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.wa-subhead {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px; font-style: italic;
  color: var(--ink-light);
  max-width: 480px; margin: 0 auto;
  line-height: 1.7;
}
.phones-wrap {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.phone-col { display: flex; flex-direction: column; align-items: center; }
.phone-lbl {
  font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 8px;
  font-family: var(--font-ui);
}

/* iPhone shell — 200x434px = iPhone 15 Pro ratio */
.iphone-shell {
  width: 200px; height: 434px;
  background: linear-gradient(160deg, #2A2A2A, #1A1A1A);
  border-radius: 46px;
  padding: 8px;
  box-shadow:
    0 0 0 .5px #555,
    0 0 0 1.5px #222,
    inset 0 0 0 .5px #444,
    0 20px 40px rgba(0,0,0,0.55),
    0 6px 12px rgba(0,0,0,0.3);
  position: relative;
  flex-shrink: 0;
}
.iphone-vol {
  position: absolute; left: -2.5px; top: 88px;
  width: 2.5px; height: 24px;
  background: #333; border-radius: 2px 0 0 2px;
  box-shadow: 0 32px 0 #333, 0 60px 0 #333;
}
.iphone-pwr {
  position: absolute; right: -2.5px; top: 110px;
  width: 2.5px; height: 44px;
  background: #333; border-radius: 0 2px 2px 0;
}
.iphone-screen {
  background: #000; border-radius: 40px;
  overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.iphone-di {
  position: absolute; top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 22px;
  background: #000; border-radius: 11px; z-index: 50;
}

/* Status bar */
.wa-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 38px 16px 4px;
  background: #075E54; flex-shrink: 0;
}
.wa-time { font-size: 12px; font-weight: 600; color: #fff; font-family: -apple-system,sans-serif; letter-spacing: -.3px; }
.wa-status-icons { display: flex; align-items: center; gap: 3px; }

/* WA header */
.wa-chat-header {
  background: #075E54;
  padding: 4px 10px 8px;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.wa-back { color: #25D366; font-size: 16px; font-family: -apple-system,sans-serif; }
.wa-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: #128C7E;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 600;
  font-family: -apple-system,sans-serif; flex-shrink: 0;
}
.wa-contact-info { flex: 1; }
.wa-contact-name { font-size: 12px; font-weight: 600; color: #fff; font-family: -apple-system,sans-serif; line-height: 1.2; }
.wa-contact-status { font-size: 9px; color: rgba(255,255,255,.7); font-family: -apple-system,sans-serif; }

/* Messages */
.wa-messages {
  background: #ECE5DD;
  flex: 1; padding: 6px; overflow: hidden;
  display: flex; flex-direction: column; gap: 3px;
}
.wa-date-pill {
  align-self: center;
  background: rgba(220,208,190,.9);
  font-size: 8.5px; color: #5A5A5A;
  padding: 2px 7px; border-radius: 7px;
  font-family: -apple-system,sans-serif; margin-bottom: 2px;
}
.wa-msg { display: flex; flex-direction: column; }
.wa-msg.wa-recv { align-self: flex-start; max-width: 82%; }
.wa-msg.wa-sent { align-self: flex-end; max-width: 82%; }
.wa-bubble {
  padding: 5px 7px 12px; border-radius: 7px;
  font-family: -apple-system,sans-serif;
  font-size: 9.5px; line-height: 1.38;
  position: relative;
}
.wa-bubble-recv { background: #fff; border-radius: 0 7px 7px 7px; color: #111; }
.wa-bubble-sent { background: #DCF8C6; border-radius: 7px 7px 0 7px; color: #111; }
.wa-ts {
  position: absolute; bottom: 3px; right: 6px;
  font-size: 8px; color: #8A8A8A; white-space: nowrap;
}
.wa-ts-sent { color: #8A8A8A; }
.wa-ticks { color: #34B7F1; }

/* Memoir bubble */
.wa-bubble-memoir {
  background: #fff; border-radius: 0 7px 7px 7px;
  padding: 5px 7px 12px;
}
.wa-memoir-title { font-size: 9.5px; font-weight: 700; color: #075E54; margin-bottom: 2px; font-family: -apple-system,sans-serif; }
.wa-memoir-preview { font-size: 8.5px; color: #555; font-style: italic; line-height: 1.35; margin-bottom: 3px; font-family: -apple-system,sans-serif; }
.wa-memoir-footer { font-size: 8px; color: #8A8A8A; font-family: -apple-system,sans-serif; }

/* Voice note bubble */
.wa-voice-bubble {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 8px 14px !important;
  min-width: 140px; position: relative;
}
.wa-voice-play {
  width: 26px; height: 26px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; flex-shrink: 0;
  padding-left: 2px;
}
.wa-voice-wave { flex: 1; height: 20px; }
.wa-voice-dur { font-size: 8px; color: #8A8A8A; font-family: -apple-system,sans-serif; white-space: nowrap; }

/* Input bar */
.wa-input-bar {
  background: #F0F0F0; padding: 5px 6px;
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.wa-input-field {
  flex: 1; background: #fff; border-radius: 18px;
  padding: 5px 8px; font-size: 9.5px; color: #999;
  font-family: -apple-system,sans-serif;
}
.wa-mic-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

.phone-caption {
  text-align: center; margin-top: 12px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px; font-style: italic; color: #7A6A50; line-height: 1.5;
}
.wa-footer-note {
  margin-top: 40px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px; font-style: italic; color: #8A7A60;
}

/* Mobile */
@media (max-width: 520px) {
  .phones-wrap { gap: 20px; }
  .iphone-shell { width: 160px; height: 347px; border-radius: 36px; padding: 7px; }
  .iphone-di { width: 58px; height: 18px; }
}
