/* ============================================================
   Digestyn · Bônus E-books · Design System
   Editorial Apothecary · Teal & Gold · Cream Paper
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --teal-deepest: #0C2725;
  --teal-deep: #143a38;
  --teal: #1b4d4a;
  --teal-mid: #2e6b68;
  --teal-bright: #3e8e89;
  --gold: #c9a227;
  --gold-bright: #ddb957;
  --gold-leaf: #b8902f;
  --gold-dark: #a6831c;
  --cream: #faf7f1;
  --cream-light: #fcfaf6;
  --cream-deep: #efe8da;
  --sage: #8FB3A4;
  --text-primary: #143E3A;
  --text-secondary: #2E5854;
  --text-muted: #7C8C86;
  --ink: #0C2725;
  --warn: #B45309;
  --warn-soft: #FEF6E7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--teal-deep);
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4.5vw, 2.5rem); margin-bottom: 1rem; }
h2 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(180deg, var(--gold-leaf), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin: 1.75rem 0 0.5rem; color: var(--teal); }
h4 { font-size: 1.125rem; margin: 1rem 0 0.5rem; color: var(--teal); }
p { margin-bottom: 1rem; }
strong { font-weight: 700; color: var(--teal-deep); }
em { font-style: italic; }
a { color: var(--teal-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

.container { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem; }
.page { padding: 3.5rem 0 2.5rem; }

.lead {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.18rem;
  line-height: 1.55; color: var(--text-secondary); margin-bottom: 1.25rem;
}
.lead em { font-style: italic; color: var(--gold-dark); }

/* ============================================================
   CAPA MAGAZINE · foto + cream block + gold rule + teal band
   ============================================================ */
.cover-magazine {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream-deep) 100%);
  overflow: hidden;
}
.cover-magazine-photo {
  position: relative; width: 100%; height: 56vh; min-height: 360px; max-height: 540px;
  overflow: hidden; background: var(--cream-deep);
}
.cover-magazine-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.cover-magazine-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,39,37,0.18) 0%, transparent 28%, transparent 70%, var(--cream-light) 100%);
  pointer-events: none;
}
.cover-magazine-inner { position: relative; z-index: 2; padding: 0 1.5rem 2rem; margin-top: -3.5rem; }

.cover-magazine-author {
  display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: rgba(255,253,247,0.9); border: 1px solid rgba(201,162,39,0.4); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(12,39,37,0.18); backdrop-filter: blur(8px); margin-bottom: 1.25rem;
}
.cover-magazine-author-img { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--gold); flex-shrink: 0; }
.cover-magazine-author-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.cover-magazine-author-name { font-family: 'Fraunces', serif; font-size: 13.5px; font-weight: 600; color: var(--teal-deep); line-height: 1.1; }
.cover-magazine-author-title { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-top: 2px; }

.cover-magazine-eyebrow {
  font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold-dark);
  font-weight: 700; margin-bottom: 0.75rem;
}
.cover-magazine-title {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 0.92; color: var(--teal-deep); letter-spacing: -0.03em; margin-bottom: 1rem;
}
.cover-magazine-title em {
  display: block; font-style: italic; font-weight: 500;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 0.05em; padding-bottom: 0.08em;
}
.cover-magazine-rule { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.cover-magazine-rule::before, .cover-magazine-rule::after { content: ''; height: 1px; flex: 1; max-width: 70px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cover-magazine-rule-mark { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(201,162,39,0.5); }
.cover-magazine-subtitle {
  font-family: 'Fraunces', serif; font-weight: 300; font-style: italic; font-size: 1.05rem;
  line-height: 1.5; color: var(--text-secondary); max-width: 30rem;
}
.cover-magazine-promise { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(201,162,39,0.25); }
.cover-magazine-promise-line { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--teal); line-height: 1.4; margin: 0; }
.cover-magazine-promise-em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--gold-dark); }

.cover-magazine-band {
  display: flex; align-items: center; gap: 1rem; padding: 1.5rem; justify-content: center; text-align: left;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%); color: var(--cream);
}
.cover-magazine-band-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(201,162,39,0.45); display: flex; align-items: center; justify-content: center; }
.cover-magazine-band-icon svg { width: 24px; height: 24px; }
.cover-magazine-band-text { font-family: 'Fraunces', serif; font-weight: 300; font-size: 0.95rem; line-height: 1.4; }
.cover-magazine-band-text em { font-style: italic; color: var(--gold-bright); }

/* ============================================================
   HERO ILLUSTRATION + ORNAMENTS
   ============================================================ */
.hero-illustration { max-width: 220px; margin: 0 auto 1.5rem; }
.hero-illustration svg { width: 100%; height: auto; display: block; }
.ornament { text-align: center; color: var(--gold); letter-spacing: 0.6em; font-size: 0.7rem; margin: 1rem 0 0.5rem; opacity: 0.7; }
hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,162,39,0.35), transparent); margin: 0.5rem 0; }

.section-num {
  display: inline-block; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 0.75rem;
}

.chapter-divider { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.chapter-num { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.chapter-divider svg { width: 80px; height: 16px; }

/* ============================================================
   QUICK FACT · pill row
   ============================================================ */
.quick-fact {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; margin: 1rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border: 1px solid rgba(201,162,39,0.3); border-radius: 16px; box-shadow: 0 4px 16px rgba(12,39,37,0.05);
}
.quick-fact-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: rgba(46,107,104,0.1); display: flex; align-items: center; justify-content: center; }
.quick-fact-icon svg { width: 20px; height: 20px; stroke: var(--teal-mid); }
.quick-fact-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.quick-fact-value { font-family: 'Fraunces', serif; font-size: 1.02rem; font-weight: 500; color: var(--teal-deep); line-height: 1.25; margin-top: 2px; }

/* ============================================================
   BOXES (callouts)
   ============================================================ */
.box { padding: 1.2rem 1.3rem; border-radius: 16px; margin: 1.25rem 0; position: relative; border-left: 3px solid var(--teal-mid); background: var(--cream); }
.box p { margin: 0; }
.box-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; margin-bottom: 0.5rem; color: var(--teal-mid); }
.box-dra { background: linear-gradient(135deg, #133F3B 0%, #1B4D4A 100%); border-left-color: var(--gold); color: var(--cream); box-shadow: 0 10px 30px rgba(12,39,37,0.25); }
.box-dra .box-title { color: var(--gold-bright); }
.box-dra strong, .box-dra em { color: var(--gold-bright); }
.box-tip { background: linear-gradient(180deg, #FBF3DE 0%, #F6EBCF 100%); border-left-color: var(--gold); }
.box-tip .box-title { color: var(--gold-dark); }
.box-info { background: linear-gradient(180deg, #E9F2EF 0%, #DDEBE7 100%); border-left-color: var(--teal-bright); }
.box-info .box-title { color: var(--teal-mid); }
.box-warning { background: var(--warn-soft); border-left-color: var(--warn); }
.box-warning .box-title { color: var(--warn); }
.box-warning strong { color: var(--warn); }

/* ============================================================
   FEATURE ROW · numbered blocks
   ============================================================ */
.feature-row { display: grid; gap: 0.9rem; margin: 1.25rem 0; }
.feature-row-3 { grid-template-columns: repeat(3, 1fr); }
.feature-row-2 { grid-template-columns: repeat(2, 1fr); }
.feature-block { padding: 1.1rem 1rem; background: var(--cream); border: 1px solid rgba(201,162,39,0.22); border-radius: 14px; text-align: center; }
.feature-block-number { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-mid), var(--teal)); color: var(--cream-light); font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-block h4 { margin: 0.25rem 0; font-size: 0.95rem; }
.feature-block p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* ============================================================
   VISUAL GRID · icon cards
   ============================================================ */
.visual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.25rem 0; }
.visual-grid-item { text-align: center; padding: 0.5rem 0.25rem; }
.visual-grid-illustration { width: 56px; height: 56px; margin: 0 auto 0.5rem; }
.visual-grid-illustration svg { width: 100%; height: 100%; display: block; }
.visual-grid-name { font-family: 'Fraunces', serif; font-size: 0.82rem; font-weight: 600; color: var(--teal-deep); line-height: 1.15; }
.visual-grid-desc { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-top: 2px; }

/* ============================================================
   SECTION HERO PHOTO
   ============================================================ */
.section-hero-photo { margin: 1.5rem 0; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(12,39,37,0.16); aspect-ratio: 3/2; }
.section-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   VISUAL STEPS
   ============================================================ */
.visual-steps { margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.visual-step { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 1rem; background: var(--cream); border: 1px solid rgba(201,162,39,0.2); border-radius: 14px; }
.visual-step-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--cream-light); font-family: 'Fraunces', serif; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; box-shadow: 0 3px 8px rgba(138,106,28,0.3); }
.visual-step-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; color: var(--teal-deep); line-height: 1.2; }
.visual-step-desc { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; margin: 0.2rem 0 0; }
.visual-step-desc em { color: var(--gold-dark); }

/* ============================================================
   CHIPS
   ============================================================ */
.chips-heading { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin: 1.25rem 0 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--cream-deep); color: var(--teal-deep); border: 1px solid rgba(46,107,104,0.18); }
.chip--gold { background: linear-gradient(180deg, #F6EBCF, #EFDFB6); color: var(--gold-dark); border-color: rgba(201,162,39,0.4); }
.chip--leaf { background: #E4F0EB; color: var(--teal-mid); border-color: rgba(63,142,137,0.3); }

/* ============================================================
   TABLE
   ============================================================ */
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; background: var(--cream-light); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(12,39,37,0.06); }
thead th { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%); color: var(--cream-light); font-family: 'Inter', sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.7rem 0.9rem; text-align: left; }
tbody td { padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(46,107,104,0.1); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--cream); }
tbody tr:last-child td { border-bottom: none; }
tbody td strong { color: var(--teal); }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote { font-family: 'Cormorant Garamond', 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1.4; text-align: center; color: var(--teal-deep); max-width: 36rem; margin: 2rem auto 1rem; position: relative; }
.pull-quote::before { content: '\201C'; display: block; font-size: 3rem; color: var(--gold); line-height: 0.5; margin-bottom: 0.5rem; }

/* ============================================================
   SYNERGY DIAGRAM
   ============================================================ */
.synergy-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: center; margin: 1.5rem 0; }
.synergy-side { text-align: center; padding: 1.1rem 0.9rem; background: linear-gradient(135deg, var(--teal-deep), var(--teal)); border-radius: 18px; color: var(--cream); }
.synergy-icon { width: 44px; height: 44px; margin: 0 auto 0.6rem; border-radius: 50%; background: rgba(201,162,39,0.2); border: 1px solid rgba(201,162,39,0.4); display: flex; align-items: center; justify-content: center; }
.synergy-icon svg { width: 22px; height: 22px; }
.synergy-side h4 { color: var(--gold-bright); margin: 0 0 0.35rem; font-size: 1rem; }
.synergy-side p { font-size: 0.8rem; line-height: 1.45; margin: 0; color: rgba(251,246,236,0.85); }
.synergy-side strong { color: var(--cream-light); }
.synergy-plus { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--gold); font-weight: 300; }

/* ============================================================
   CLOSING MARK
   ============================================================ */
.closing-mark { text-align: center; margin: 3rem auto 1rem; max-width: 30rem; }
.closing-mark-symbol { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(12,39,37,0.2); }
.closing-mark-symbol img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.closing-mark p { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 1.3rem; line-height: 1.4; color: var(--teal-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: linear-gradient(135deg, var(--teal-deepest) 0%, var(--teal-deep) 100%); color: var(--cream); text-align: center; padding: 3rem 1.5rem 2.5rem; margin-top: 2rem; }
.footer h3 { color: var(--cream-light); font-size: 1.6rem; margin-bottom: 0.25rem; letter-spacing: 0.04em; }
.footer-tagline { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-bright); font-size: 0.95rem; }
.footer-divider { width: 50px; height: 1px; background: var(--gold); margin: 1.25rem auto; opacity: 0.6; }
.footer p { color: rgba(251,246,236,0.7); font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-meta { font-size: 0.7rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,246,236,0.4) !important; }

/* ============================================================
   GENDER GATE (Sono & Vitalidade)
   ============================================================ */
.gender-gate {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 20% 15%, rgba(46,107,104,0.5), transparent 60%),
    radial-gradient(ellipse 80% 60% at 85% 80%, rgba(201,162,39,0.18), transparent 65%),
    linear-gradient(180deg, var(--teal-deepest) 0%, var(--teal-deep) 60%, var(--teal) 100%);
  color: var(--cream);
}
.gender-gate-eyebrow { font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; margin-bottom: 1rem; }
.gender-gate h1 { color: var(--cream-light); font-weight: 300; font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 0.75rem; }
.gender-gate h1 em { font-style: italic; color: var(--gold-bright); }
.gender-gate-sub { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: rgba(251,246,236,0.8); max-width: 26rem; margin-bottom: 2rem; line-height: 1.5; }
.gender-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 30rem; }
.gender-option {
  cursor: pointer; padding: 1.75rem 1rem; border-radius: 20px; background: rgba(255,253,247,0.06);
  border: 1px solid rgba(201,162,39,0.35); backdrop-filter: blur(8px); transition: transform 0.2s, border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--cream);
}
.gender-option:hover, .gender-option:active { transform: translateY(-3px); border-color: var(--gold); background: rgba(255,253,247,0.1); }
.gender-option-icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(201,162,39,0.4); display: flex; align-items: center; justify-content: center; }
.gender-option-icon svg { width: 30px; height: 30px; stroke: var(--gold-bright); }
.gender-option-name { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; }
.gender-option-tag { font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(251,246,236,0.65); }
.gender-gate-note { margin-top: 1.5rem; font-size: 0.78rem; color: rgba(251,246,236,0.5); }

/* troca de gênero · re-escolher */
.gender-switch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--teal-mid); background: var(--cream-deep); border: 1px solid rgba(46,107,104,0.2); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; margin: 0 auto; }
.gender-switch svg { width: 13px; height: 13px; }

/* blocos específicos por gênero · escondidos por padrão, mostrados via [data-gender] no <html> */
[data-for-gender] { display: none; }
html[data-gender="f"] [data-for-gender="f"],
html[data-gender="m"] [data-for-gender="m"] { display: block; }
.gender-pill { display: inline-block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem; }
.gender-pill--f { background: #F4E3EE; color: #9D3B6E; }
.gender-pill--m { background: #E2EDEF; color: #2E6B68; }

@media (max-width: 480px) {
  .visual-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
