/* ============================================================
   NewDerm · Bônus E-books · Design System v1.0
   ============================================================ */

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

:root {
  --burgundy-deep: #3F0F2C;
  --burgundy: #5C1A41;
  --magenta: #BE185D;
  --pink: #E11D74;
  --pink-light: #F472B6;
  --cream: #FFF5F0;
  --cream-light: #FFFBF7;
  --gold: #D4A574;
  --champagne: #E8D5B7;
  --text-primary: #3F0F2C;
  --text-secondary: #5C1A41;
  --text-muted: #8B6F7A;
}

* { 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; /* previne scroll horizontal causado por section-hero-photo overflow */
}

/* Display heading */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--burgundy-deep);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1.125rem; margin: 1rem 0 0.5rem; }

p { margin-bottom: 1rem; }
strong { font-weight: 700; color: var(--burgundy-deep); }
em { font-style: italic; }

a { color: var(--magenta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink); }

/* ============================================================
   LAYOUT
   ============================================================ */

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

.page {
  padding: 4rem 0 3rem;
}

/* ============================================================
   COVER (capa)
   ============================================================ */

.cover {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(244, 114, 182, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(225, 29, 116, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #3F0F2C 0%, #5C1A41 50%, #BE185D 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   CAPA MAGAZINE PREMIUM · cover-magazine
   inspirado em editorial print: foto + cream-block + gold rule + burgundy band
   ============================================================ */
.cover-magazine {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFF5F0 0%, #FBE9D9 100%);
  overflow: hidden;
}

/* Foto editorial · ocupa metade superior em mobile, lado direito em desktop */
.cover-magazine-photo {
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 360px;
  max-height: 540px;
  overflow: hidden;
  background: #FBE9D9;
}

.cover-magazine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Cardápio: still life cookbook cover · bowl hero no centro */
.cover-magazine--cardapio .cover-magazine-photo img {
  object-position: center 40%;
}

/* K-Beauty: rosto centralizado mid-top · cropa um pouco mais */
.cover-magazine--kbeauty .cover-magazine-photo img {
  object-position: center 18%;
}

/* Fade suave da foto pra cor de fundo · mobile vertical (cream entra de baixo) */
.cover-magazine-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 45%,
    rgba(255, 245, 240, 0.12) 60%,
    rgba(255, 245, 240, 0.35) 75%,
    rgba(255, 245, 240, 0.7) 88%,
    rgba(255, 245, 240, 0.92) 96%,
    #FFF5F0 100%
  );
  pointer-events: none;
}

/* Fade secundário (segunda camada) · suaviza ainda mais o início da transição */
.cover-magazine-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center 110%,
    rgba(255, 245, 240, 0.4) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Conteúdo cream com tipografia */
.cover-magazine-inner {
  position: relative;
  padding: 1.5rem 1.75rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Bloco do autor (substitui o antigo .author card) */
.cover-magazine-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
  margin-bottom: 1.5rem;
}

.cover-magazine-author-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 4px 16px rgba(63, 15, 44, 0.18), 0 0 0 1px rgba(212, 165, 116, 0.4);
  background: linear-gradient(135deg, #FFF5F0, #F4D9C4);
}

.cover-magazine-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.cover-magazine-author-info {
  flex: 1;
  min-width: 0;
}

.cover-magazine-author-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--burgundy-deep);
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.cover-magazine-author-title {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.375rem;
}

/* Título grande editorial */
.cover-magazine-title-block {
  margin-bottom: 1.5rem;
}

.cover-magazine-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.cover-magazine-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  line-height: 0.9;
  color: var(--burgundy-deep);
  margin: 0;
  letter-spacing: -0.015em;
}

.cover-magazine-title em {
  display: block;
  font-style: italic;
  background: linear-gradient(180deg, #D4A574 0%, #A87C3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
  margin-top: -0.05em;
}

/* Rule decorativa com diamante (entre título e subtitle) */
.cover-magazine-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.125rem 0 1rem;
  max-width: 200px;
}

.cover-magazine-rule::before,
.cover-magazine-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cover-magazine-rule-mark {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

/* Subtitle abaixo do título */
.cover-magazine-subtitle {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--burgundy);
  margin: 0 0 1.5rem;
  max-width: 380px;
}

/* Promessa final (eyebrow caps + gold italic) */
.cover-magazine-promise {
  margin-bottom: 2rem;
}

.cover-magazine-promise-line {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1.7;
}

.cover-magazine-promise-em {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.875rem;
  background: linear-gradient(180deg, #D4A574 0%, #A87C3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Bottom band burgundy com slogan */
.cover-magazine-band {
  position: relative;
  margin-top: auto;
  background: linear-gradient(180deg, var(--burgundy-deep) 0%, #2A0A1E 100%);
  color: var(--champagne);
  padding: 1.75rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  border-top: 1px solid var(--gold);
  overflow: hidden;
}

/* Lótus decorativa no canto */
.cover-magazine-band::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23D4A574' stroke-width='0.8' opacity='0.55'%3E%3Cpath d='M50 88 C 25 72 18 48 24 28 C 36 38 44 52 50 88 Z'/%3E%3Cpath d='M50 88 C 75 72 82 48 76 28 C 64 38 56 52 50 88 Z'/%3E%3Cpath d='M50 88 C 38 62 36 42 50 18 C 64 42 62 62 50 88 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.cover-magazine-band-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 165, 116, 0.08);
  position: relative;
  z-index: 1;
}

.cover-magazine-band-icon svg {
  width: 28px;
  height: 28px;
}

.cover-magazine-band-text {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.85;
  position: relative;
  z-index: 1;
  color: rgba(232, 197, 160, 0.95);
}

.cover-magazine-band-text em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
  color: var(--gold);
  display: block;
  margin-top: 0.125rem;
}

/* Desktop · side-by-side layout */
@media (min-width: 900px) {
  .cover-magazine {
    flex-direction: row;
    min-height: 100vh;
  }
  .cover-magazine-photo {
    width: 55%;
    height: 100vh;
    max-height: none;
    order: 2;
  }
  .cover-magazine-photo::after {
    background: linear-gradient(90deg,
      #FFF5F0 0%,
      rgba(255, 245, 240, 0.95) 4%,
      rgba(255, 245, 240, 0.7) 10%,
      rgba(255, 245, 240, 0.35) 18%,
      rgba(255, 245, 240, 0.1) 28%,
      transparent 40%,
      transparent 100%
    ), linear-gradient(180deg,
      transparent 0%,
      transparent 80%,
      rgba(63, 15, 44, 0.15) 95%,
      rgba(63, 15, 44, 0.35) 100%
    );
  }
  .cover-magazine-photo::before {
    background: radial-gradient(ellipse at 0% center,
      rgba(255, 245, 240, 0.5) 0%,
      transparent 35%
    );
  }
  .cover-magazine-inner {
    width: 45%;
    order: 1;
    padding: 2.5rem 3rem 0;
    justify-content: flex-start;
  }
  .cover-magazine-band {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ============================================================
   LEGADO · .cover-photo (mantido pra compatibilidade)
   ============================================================ */
.cover-photo {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
  color: white;
}

.cover-photo .cover-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cover-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(63, 15, 44, 0.45) 0%,
      rgba(63, 15, 44, 0.92) 100%
    );
  z-index: 1;
}

.cover-photo .cover-content { position: relative; z-index: 2; text-align: center; max-width: 640px; }

.cover-photo .cover-footer {
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Hero photo dentro de uma section · separador editorial entre capítulos */
.section-hero-photo {
  width: calc(100% + 2.5rem);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

@media (min-width: 768px) {
  .section-hero-photo {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    border-radius: 0;
  }
}

.section-hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.section-hero-photo .caption {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  color: white;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.9375rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.cover .eyebrow {
  color: var(--champagne);
  margin-bottom: 1rem;
}

.cover-photo .eyebrow {
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  background: none;
  color: var(--champagne) !important;
  margin-bottom: 1rem;
}

.cover h1 {
  color: white;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.cover h1 em {
  background: linear-gradient(135deg, #F472B6 0%, #E8D5B7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.cover .subtitle {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-weight: 300;
}

.cover .author {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.cover .author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--burgundy-deep);
  font-size: 1.125rem;
}

.cover .author-info { text-align: left; }
.cover .author-name {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}
.cover .author-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.cover-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ============================================================
   ELEMENTS
   ============================================================ */

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 0.75rem;
  display: block;
}

.section-num {
  font-family: 'Fraunces', serif;
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-weight: 600;
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Section-num seguido de h2 · ambos centrados pra coerência editorial */
.section-num + h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-num + h2 + .lead {
  text-align: center;
}

.lead {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 1.5rem auto;
  font-weight: 400;
  text-align: center;
  max-width: 560px;
}

/* Sublabel · sub-headings dentro de seções · alinhados à esquerda intencionalmente */
.lead.lead-left,
.lead-inline {
  text-align: left;
  max-width: 100%;
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.5rem;
}

.drop-cap::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 4em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.1em 0 0;
  color: var(--magenta);
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-light), transparent);
  margin: 3rem auto;
  max-width: 200px;
}

.ornament {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 1em;
  margin: 2rem 0;
}

/* ============================================================
   BOXES (callouts)
   ============================================================ */

.box {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: 16px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--pink);
  background: linear-gradient(135deg, rgba(255, 240, 246, 0.5), rgba(255, 235, 243, 0.3));
}

.box-title {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.box p:last-child { margin-bottom: 0; }

.box-science {
  border-left-color: #06B6D4;
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.5), rgba(224, 242, 254, 0.3));
}
.box-science .box-title { color: #0E7490; }

.box-tip {
  border-left-color: #10B981;
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.5), rgba(220, 252, 231, 0.3));
}
.box-tip .box-title { color: #047857; }

.box-warning {
  border-left-color: #F59E0B;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5), rgba(254, 249, 195, 0.3));
}
.box-warning .box-title { color: #B45309; }

.box-dra {
  background: linear-gradient(135deg, rgba(63, 15, 44, 0.05), rgba(190, 24, 93, 0.05));
  border-left-color: var(--burgundy-deep);
  position: relative;
}
.box-dra .box-title { color: var(--burgundy-deep); }
.box-dra em {
  font-family: 'Fraunces', serif;
  color: var(--burgundy);
  font-style: italic;
}

/* ============================================================
   LISTS
   ============================================================ */

ul, ol {
  margin: 1rem 0 1rem 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

ul li::marker { color: var(--pink); font-size: 1.1em; }
ol li::marker { color: var(--magenta); font-weight: 700; font-family: 'Fraunces', serif; }

.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
}

.steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 4rem;
  position: relative;
  background: white;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid #FEE2E2;
  box-shadow: 0 2px 8px rgba(63, 15, 44, 0.04);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--pink));
  color: white;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ============================================================
   CARDS (alimentos/rituais)
   ============================================================ */

.card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(244, 114, 182, 0.2);
  box-shadow: 0 8px 32px rgba(190, 24, 93, 0.06);
  margin: 1.5rem 0;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(244, 114, 182, 0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cream), var(--cream-light));
  border: 1px solid var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--cream);
  border-radius: 12px;
  font-size: 0.875rem;
}

.card-meta-item strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
  font-weight: 600;
}

/* ============================================================
   RECIPE CARDS
   ============================================================ */

.recipe {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 1.5rem 0;
  border: 1px solid #FEE2E2;
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.05);
  position: relative;
  page-break-inside: avoid;
}

.recipe-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.recipe-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-breakfast { background: #FEF3C7; color: #92400E; }
.badge-lunch { background: #D1FAE5; color: #065F46; }
.badge-snack { background: #DBEAFE; color: #1E40AF; }
.badge-dinner { background: #E0E7FF; color: #3730A3; }
.badge-smoothie { background: #FCE7F3; color: #831843; }

.recipe-title {
  font-family: 'Fraunces', serif;
  font-size: 1.375rem;
  color: var(--burgundy-deep);
  font-weight: 700;
}

.recipe-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #FEE2E2;
}

.recipe-meta span strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.recipe-section { margin: 1rem 0; }
.recipe-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.recipe ul { margin: 0; padding-left: 1.25rem; }

/* ============================================================
   TOC (sumário)
   ============================================================ */

.toc {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(244, 114, 182, 0.15);
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.05);
}

.toc-title {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list { list-style: none; margin: 0; padding: 0; }

.toc-list li {
  padding: 0.625rem 0;
  border-bottom: 1px dashed rgba(244, 114, 182, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.toc-list li:last-child { border-bottom: 0; }

.toc-list a {
  color: var(--burgundy);
  font-weight: 500;
  flex: 1;
}

.toc-num {
  font-family: 'Fraunces', serif;
  color: var(--gold);
  font-weight: 700;
  min-width: 1.5rem;
}

/* ============================================================
   GRID
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.grid-card {
  background: linear-gradient(135deg, white, var(--cream-light));
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.grid-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.grid-card-title {
  font-weight: 700;
  color: var(--burgundy-deep);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.grid-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   TABLE
   ============================================================ */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.05);
  font-size: 0.875rem;
}

th {
  background: var(--burgundy-deep);
  color: white;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #FEE2E2;
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: var(--cream-light); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--burgundy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  margin-top: 4rem;
}

.footer h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--champagne);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.footer-meta { font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.5; }

/* ============================================================
   QUOTES
   ============================================================ */

blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--burgundy);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 3px solid var(--pink);
  position: relative;
}

blockquote::before {
  content: '"';
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--pink-light);
  position: absolute;
  left: 0.5rem;
  top: -1rem;
  font-weight: 700;
}

blockquote footer {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 600;
}

/* ============================================================
   CONDITIONAL SECTIONS (auto-personalização)
   ============================================================ */

.condition {
  background: linear-gradient(135deg, rgba(255, 240, 246, 0.6), rgba(255, 235, 243, 0.4));
  border: 1.5px solid rgba(244, 114, 182, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.condition-tag {
  display: inline-block;
  background: var(--magenta);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.condition h4 {
  margin-top: 0;
  color: var(--burgundy-deep);
}

/* ============================================================
   VISUAL ENHANCEMENTS · SVG illustrations + cards visuais
   ============================================================ */

/* Hero illustration por seção · grande, vetorial, print-friendly */
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 1rem;
  max-width: 240px;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
}

/* Big number · destaque visual */
.big-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--magenta), var(--pink-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  display: block;
}

/* Quick fact · destaque rápido */
.quick-fact {
  background: linear-gradient(135deg, white, var(--cream-light));
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  border: 1px solid rgba(244, 114, 182, 0.2);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.quick-fact-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cream), var(--cream-light));
  display: flex; align-items: center; justify-content: center;
}

.quick-fact-icon svg { width: 28px; height: 28px; }

.quick-fact-content { flex: 1; }

.quick-fact-label {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 0.125rem;
}

.quick-fact-value {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--burgundy-deep);
  line-height: 1.3;
}

/* Visual step · número grande + ícone */
.visual-steps {
  display: grid;
  gap: 0.875rem;
  margin: 1.5rem 0;
}

.visual-step {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(244, 114, 182, 0.2);
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.04);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  page-break-inside: avoid;
}

.visual-step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--magenta), var(--pink));
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.visual-step-content { flex: 1; }
.visual-step-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--burgundy-deep);
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}
.visual-step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Tag chips · listas compactas inline (editorial) */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0.5rem;
  max-width: 640px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9375rem 0.5rem 0.75rem;
  background:
    linear-gradient(180deg, #FFFAF5 0%, #FBEBDB 100%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.005em;
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1.2;
  box-shadow:
    0 1px 2px rgba(190, 24, 93, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F4B8D0 0%, var(--magenta) 60%, var(--burgundy-deep) 100%);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(190, 24, 93, 0.08);
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(190, 24, 93, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Variantes por tipo · cor do dot muda o sentido visual */
.chip--gold::before {
  background: radial-gradient(circle at 30% 30%, #F4D9B0 0%, var(--gold) 60%, #8B6914 100%);
  box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.12);
}

.chip--leaf::before {
  background: radial-gradient(circle at 30% 30%, #BFE0BF 0%, #6A9E6A 60%, #3D5F3D 100%);
  box-shadow: 0 0 0 2px rgba(106, 158, 106, 0.12);
}

.chip-icon { color: var(--magenta); }

/* Section heading antes de chips · estilo eyebrow editorial */
.chips-heading {
  display: block;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--burgundy-deep);
  margin: 1.75rem auto 0;
  max-width: 640px;
  position: relative;
  padding-bottom: 0.625rem;
}

.chips-heading::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin: 0.625rem auto 0;
}

/* Pull quote · destaque grande */
.pull-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.35;
  text-align: center;
  color: var(--burgundy);
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 540px;
  position: relative;
}

.pull-quote::before, .pull-quote::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink-light), transparent);
  margin: 1rem auto;
}

/* Mini grid pra alimentos/rituais · visual scan-friendly */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.875rem;
  margin: 1.5rem 0;
}

.visual-grid-item {
  background: white;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid rgba(244, 114, 182, 0.2);
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.04);
}

.visual-grid-illustration {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-grid-illustration svg { width: 100%; height: 100%; }

.visual-grid-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.visual-grid-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Subtle chapter divider */
.chapter-divider {
  text-align: center;
  margin: 3rem 0 2rem;
}

.chapter-divider .chapter-num {
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.chapter-divider svg {
  width: 80px;
  height: 16px;
  display: block;
  margin: 0.5rem auto;
}

/* Compact recipe · versão menos texto */
.recipe-compact {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid #FEE2E2;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.04);
  page-break-inside: avoid;
}

.recipe-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.recipe-compact-grid h5 {
  font-family: 'Fraunces', serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recipe-compact-grid ul,
.recipe-compact-grid ol {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .recipe-compact-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   FEATURE BLOCKS · "Como ler" · "Combinação NewDerm"
   ============================================================ */

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-row.feature-row-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-block {
  background: white;
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.05);
  position: relative;
  page-break-inside: avoid;
}

.feature-block-number {
  position: absolute;
  top: -10px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--pink));
  color: white;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(225, 29, 116, 0.3);
}

.feature-block h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--burgundy-deep);
  margin: 0.5rem 0 0.375rem;
  line-height: 1.25;
}

.feature-block p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Diagrama "interno + externo" pra Combinação com NewDerm */
.synergy-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--champagne);
}

@media (max-width: 600px) {
  .synergy-diagram {
    grid-template-columns: 1fr;
  }
}

.synergy-side {
  background: white;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(244, 114, 182, 0.15);
  text-align: center;
}

.synergy-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, var(--magenta), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
}

.synergy-icon svg {
  width: 28px;
  height: 28px;
  color: white;
  stroke: white;
}

.synergy-side h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  color: var(--burgundy-deep);
  font-weight: 700;
  margin: 0 0 0.375rem;
}

.synergy-side p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.synergy-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 600px) {
  .synergy-plus { font-size: 1.5rem; padding: 0.5rem 0; }
}

/* Fechamento visual no final do ebook · "selo de qualidade" */
.closing-mark {
  text-align: center;
  margin: 3rem auto 1rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--cream), var(--cream-light));
  border-radius: 24px;
  border: 1px solid var(--champagne);
  max-width: 560px;
}

.closing-mark-symbol {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.125rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5F0, #F4D9C4);
  border: 2px solid white;
  box-shadow:
    0 6px 20px rgba(63, 15, 44, 0.18),
    0 0 0 1px rgba(212, 165, 116, 0.5);
  position: relative;
}

.closing-mark-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* Linha decorativa sutil abaixo do círculo */
.closing-mark-symbol::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1.125rem;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.closing-mark p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--burgundy);
}

/* ============================================================
   PRINT (PDF export)
   ============================================================ */

@media print {
  body { background: white; font-size: 11pt; }
  .cover { min-height: auto; padding: 4rem 2rem; page-break-after: always; }
  .page { padding: 1.5rem 0; }
  h1, h2 { page-break-after: avoid; }
  .recipe, .card, .box { page-break-inside: avoid; }
  .footer { background: white; color: var(--text-muted); }
  .footer h3 { color: var(--burgundy-deep); }
  a { color: var(--burgundy); text-decoration: none; }
}

@page { margin: 1.5cm; size: A4; }

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

@media (max-width: 600px) {
  .container { padding: 1.5rem 1rem; }
  .card { padding: 1.25rem; }
  .card-header { flex-direction: column; gap: 0.5rem; }
  .recipe { padding: 1.25rem; }
  .recipe-meta { gap: 1rem; flex-wrap: wrap; }
  blockquote { font-size: 1.0625rem; padding-left: 1.25rem; }
  blockquote::before { font-size: 3rem; left: -0.5rem; }
  .toc { padding: 1.5rem; }
}
