/* =====================================================
   Projeto Mari — landing
   Estética: "Doceria de bairro digital"
   ===================================================== */

:root {
  --cream:       #FBF5EC;
  --cream-deep:  #F2E8D5;
  --cocoa-900:   #2A1810;
  --cocoa-700:   #5A3A2A;
  --cocoa-500:   #876553;
  --rose:        #D4A5A0;
  --rose-soft:   #EBD3CC;
  --rose-deep:   #B07560;
  --gold:        #C9A961;
  --gold-soft:   #E8D6A6;
  --berry:       #7A2E3B;
  --whatsapp:    #25D366;
  --whatsapp-dk: #128C7E;
  --chat-out:    #DCF8C6;
  --chat-in:     #FFFFFF;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', monospace;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cocoa-900);
  background-color: var(--cream);
  background-image:
    radial-gradient(at 12% 8%, rgba(212,165,160,0.18) 0px, transparent 50%),
    radial-gradient(at 88% 22%, rgba(201,169,97,0.12) 0px, transparent 55%),
    radial-gradient(at 50% 90%, rgba(176,117,96,0.10) 0px, transparent 50%);
  background-attachment: fixed;
  letter-spacing: -0.005em;
}

/* Grain texture overlay — SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.09  0 0 0 0 0.06  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- TYPOGRAPHY ---------- */

.font-display { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 50, "WONK" 0; }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.label-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  color: var(--rose-deep);
  opacity: 0.55;
}

/* ---------- DECORATIVE RIBBONS ---------- */

.ribbon {
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--rose) 0 14px,
    var(--cream) 14px 18px,
    var(--gold) 18px 32px,
    var(--cream) 32px 36px
  );
  border-radius: 2px;
}
.ribbon-thin {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cocoa-700), transparent);
  opacity: 0.25;
}

/* ---------- BUTTONS ---------- */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 10px 24px -10px rgba(37,211,102,0.55),
    0 2px 0 rgba(18,140,126,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-wa:hover {
  transform: translateY(-2px);
  background: #1FBE5C;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 16px 30px -10px rgba(37,211,102,0.65),
    0 4px 0 rgba(18,140,126,0.45);
}
.btn-wa:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cocoa-700);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-ghost:hover { color: var(--cocoa-900); border-bottom-color: var(--cocoa-700); }

/* ---------- WHATSAPP CHAT MOCKUP ---------- */

.chat-frame {
  background: var(--cocoa-900);
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    0 30px 80px -20px rgba(42,24,16,0.45),
    0 8px 20px -10px rgba(122,46,59,0.20);
  max-width: 360px;
  margin-inline: auto;
  position: relative;
}
.chat-inner {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='%23E1D2C4' fill-opacity='0.4'><circle cx='10' cy='10' r='1.2'/><circle cx='40' cy='30' r='1'/><circle cx='65' cy='15' r='1.5'/><circle cx='20' cy='55' r='1'/><circle cx='70' cy='65' r='1.3'/><path d='M30 60 Q 35 55, 40 60 T 50 60' stroke='%23E1D2C4' stroke-width='0.6' fill='none'/></g></svg>"), linear-gradient(180deg, #ECE0D2, #E5D6C3);
  border-radius: 22px;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: var(--whatsapp-dk);
  color: #fff;
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: var(--cocoa-900);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.chat-body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.bubble {
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 7px 10px 18px;
  border-radius: 8px;
  max-width: 78%;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  word-wrap: break-word;
}
.bubble .time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 0.62rem;
  color: rgba(0,0,0,0.45);
  font-family: var(--font-body);
}
.bubble.in {
  background: var(--chat-in);
  border-top-left-radius: 0;
  color: #111;
  align-self: flex-start;
}
.bubble.out {
  background: var(--chat-out);
  border-top-right-radius: 0;
  color: #111;
  align-self: flex-end;
}
.bubble.in::before {
  /* tail */
  content: "";
  position: absolute;
  top: 0; left: -8px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent var(--chat-in) transparent transparent;
}
.bubble.out::before {
  content: "";
  position: absolute;
  top: 0; right: -8px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent transparent var(--chat-out);
}

.tick {
  display: inline-block;
  width: 14px; height: 8px;
  margin-left: 2px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='%234FC3F7' stroke-width='1.8' stroke-linecap='round'><path d='M1 7l3 3 7-8'/><path d='M7 7l3 3 7-8'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Typing dots */
.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
}
.typing span {
  width: 6px; height: 6px;
  background: var(--cocoa-500);
  border-radius: 999px;
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Stagger bubble appearance */
.bubble {
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 0.42s ease forwards;
}
.bubble:nth-child(1) { animation-delay: 0.20s; }
.bubble:nth-child(2) { animation-delay: 0.70s; }
.bubble:nth-child(3) { animation-delay: 1.20s; }
.bubble:nth-child(4) { animation-delay: 1.70s; }
.bubble:nth-child(5) { animation-delay: 2.20s; }
.bubble:nth-child(6) { animation-delay: 2.70s; }
.bubble:nth-child(7) { animation-delay: 3.20s; }
.bubble:nth-child(8) { animation-delay: 3.70s; }
.bubble:nth-child(9) { animation-delay: 4.20s; }

@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CARDS ---------- */

.card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(122,46,59,0.10);
  border-radius: 20px;
  padding: 1.5rem 1.5rem;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(122,46,59,0.22);
  box-shadow: 0 18px 40px -20px rgba(42,24,16,0.18);
}

.card-pain {
  background: rgba(251,245,236,0.6);
  border: 1px solid rgba(42,24,16,0.10);
  border-radius: 18px;
  padding: 1.3rem;
}

/* Pull-quote */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--berry);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pullquote::before {
  content: "“";
  font-size: 2.4em;
  line-height: 0.1;
  vertical-align: -0.45em;
  margin-right: 0.05em;
  color: var(--rose-deep);
  opacity: 0.55;
}

/* ---------- TIMELINE / FLOW ---------- */

.flow-step {
  position: relative;
  padding: 1.25rem 1rem 1rem;
}
.flow-step .step-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cream-deep);
  border: 1px solid rgba(122,46,59,0.15);
  color: var(--berry);
  margin-bottom: 0.75rem;
}
.flow-line {
  position: absolute;
  top: 47px;
  left: 100%;
  height: 1px;
  width: 100%;
  background: repeating-linear-gradient(90deg, var(--rose-deep) 0 4px, transparent 4px 10px);
  opacity: 0.4;
}

/* ---------- FAQ ---------- */

.faq details {
  border-top: 1px solid rgba(42,24,16,0.12);
  padding: 1.1rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid rgba(42,24,16,0.12); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cocoa-900);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--rose-deep);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding-top: 0.75rem;
  color: var(--cocoa-700);
  line-height: 1.65;
  max-width: 64ch;
}

/* ---------- REVEAL ON SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

/* ---------- FOCUS ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- MOTION PREFERENCES ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- SECTION DIVIDERS ---------- */

.section { padding: 5.5rem 0; }
@media (max-width: 768px) { .section { padding: 3.5rem 0; } }

.container-narrow { max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem; }
@media (max-width: 768px) { .container-narrow { padding-inline: 1.25rem; } }

/* ---------- HERO SPECIFIC ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.hero-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--rose-deep);
  letter-spacing: -0.01em;
}

/* Accent on hero word */
.accent-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.32em;
  background: var(--rose-soft);
  z-index: -1;
  border-radius: 2px;
  transform: skewX(-8deg);
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--cocoa-900);
  color: var(--cream);
}
footer a { color: var(--cream); border-bottom: 1px solid rgba(251,245,236,0.25); }
footer a:hover { border-bottom-color: var(--rose); color: var(--rose-soft); }

/* ---------- NAV ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,245,236,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,24,16,0.06);
}
.topnav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.topnav .brand img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4));
}
@media (max-width: 640px) {
  .topnav .brand img { height: 28px; }
}

/* Footer brand */
.footer-brand img {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

/* ---------- AUDIENCE CARDS ---------- */

.audience-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(251,245,236,0.4));
  border: 1px solid rgba(122,46,59,0.12);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.audience-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose-deep));
}
.audience-card .audience-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--rose-deep);
  opacity: 0.5;
  line-height: 1;
}

/* ---------- GAIN CARDS ---------- */

.gain-card {
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(42,24,16,0.08);
  background: rgba(255,255,255,0.5);
  position: relative;
}
.gain-card .gain-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.9;
  color: var(--rose-deep);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- ICON HELPER ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* =====================================================
   EDITORIAL IMAGE TREATMENTS
   ===================================================== */

/* Mega type — for image overlays */
.mega-type {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.mega-type-italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 300;
}

/* ----- HERO portrait composition ----- */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5/6;
  max-width: 460px;
  margin-inline: auto;
}
@media (min-width: 980px) {
  .hero-stage { max-width: none; aspect-ratio: 4/5; }
}

.portrait-frame {
  position: absolute;
  inset: 0;
  border-radius: 240px 240px 24px 24px;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow:
    0 40px 90px -30px rgba(42,24,16,0.45),
    0 12px 24px -12px rgba(122,46,59,0.25);
  z-index: 1;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }

.hero-bg-name {
  position: absolute;
  top: 4%;
  left: -8%;
  right: -8%;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(7rem, 18vw, 14rem);
  line-height: 0.85;
  color: var(--rose-deep);
  opacity: 0.18;
  letter-spacing: -0.06em;
  z-index: 0;
  pointer-events: none;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-chat-overlay {
  position: absolute;
  right: -6%;
  bottom: -6%;
  width: 64%;
  max-width: 300px;
  z-index: 2;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.hero-chat-overlay:hover { transform: rotate(0deg) scale(1.02); }
@media (max-width: 980px) {
  .hero-chat-overlay { right: -2%; bottom: -4%; width: 60%; }
}

/* Small-form chat used inside the hero overlay — no phone notch, tighter */
.chat-mini {
  background: var(--cocoa-900);
  border-radius: 24px;
  padding: 6px;
  box-shadow:
    0 30px 60px -20px rgba(42,24,16,0.55),
    0 8px 16px -8px rgba(122,46,59,0.3);
}
.chat-mini-inner {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='%23E1D2C4' fill-opacity='0.35'><circle cx='10' cy='10' r='1.2'/><circle cx='40' cy='30' r='1'/><circle cx='65' cy='15' r='1.4'/><circle cx='20' cy='55' r='1'/><circle cx='70' cy='65' r='1.2'/></g></svg>"), linear-gradient(180deg, #ECE0D2, #E5D6C3);
  border-radius: 18px;
  overflow: hidden;
}
.chat-mini-header {
  background: var(--whatsapp-dk);
  color: #fff;
  padding: 12px 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-mini-avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: var(--cocoa-900);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chat-mini-body {
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 180px;
}
.chat-mini .bubble {
  font-size: 0.72rem;
  padding: 6px 9px 16px;
  line-height: 1.3;
  max-width: 82%;
}
.chat-mini .bubble .time { font-size: 0.55rem; bottom: 3px; right: 6px; }
.chat-mini .bubble .tick { width: 11px; height: 7px; }

.hero-badge-floating {
  position: absolute;
  top: 8%;
  left: -10%;
  background: var(--cream);
  border: 1px solid rgba(42,24,16,0.10);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px -12px rgba(42,24,16,0.30);
  z-index: 3;
  transform: rotate(-4deg);
}
.hero-badge-floating .dot-online {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--whatsapp);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.25);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,211,102,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(37,211,102,0.05); }
}

/* ----- Editorial image with caption ----- */
.editorial-photo {
  position: relative;
  display: block;
  overflow: hidden;
}
.editorial-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
}
.editorial-photo:hover img { transform: scale(1.04); }
.editorial-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--cocoa-500);
  margin-top: 0.75rem;
  letter-spacing: -0.005em;
}

/* ----- Pain section full-bleed photo ----- */
.pain-stage {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 540px;
  background: var(--cocoa-900);
}
.pain-stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}
.pain-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42,24,16,0.5) 0%, rgba(42,24,16,0.0) 35%, rgba(42,24,16,0.0) 60%, rgba(42,24,16,0.95) 100%),
    linear-gradient(90deg, rgba(42,24,16,0.6) 0%, rgba(42,24,16,0.0) 50%);
}
.pain-stage-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
}
@media (max-width: 768px) {
  .pain-stage-content { padding: 2rem 1.5rem; }
}

/* ----- Big portrait name treatment (Conheça a Mari) ----- */
.mari-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 980px) {
  .mari-stage { grid-template-columns: 1.05fr 1fr; gap: 5rem; align-items: center; }
}
.mari-portrait-wrap {
  position: relative;
  padding-top: 2.5rem;
  padding-left: 2rem;
}
.mari-portrait-wrap::before {
  /* big "Mari" backdrop type */
  content: "Mari";
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 17rem);
  line-height: 0.85;
  color: var(--rose);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.mari-portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(42,24,16,0.5);
}
.mari-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* Sticker note */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--gold-soft);
  color: var(--cocoa-900);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: rotate(-2deg);
  box-shadow: 0 8px 20px -10px rgba(122,46,59,0.4);
  border: 1px dashed rgba(122,46,59,0.3);
}

/* ----- Audience mega cards (full editorial) ----- */
.aud-mega {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  isolation: isolate;
}
.aud-mega img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1s cubic-bezier(0.2,0.7,0.2,1);
}
.aud-mega:hover img { transform: scale(1.08); }
.aud-mega::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,24,16,0) 35%, rgba(42,24,16,0.4) 60%, rgba(42,24,16,0.92) 100%);
  z-index: 1;
}
.aud-mega-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.75rem 1.5rem;
}
.aud-mega-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--cream);
  opacity: 0.85;
  line-height: 1;
}
.aud-mega-arg {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}

/* ----- Cardápio mosaic (3 product images as a tableau) ----- */
.menu-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 100%;
  min-height: 540px;
}
.menu-mosaic > .m1 { grid-row: span 2; border-radius: 28px 28px 28px 28px; overflow: hidden; }
.menu-mosaic > .m2 { border-radius: 28px 28px 28px 28px; overflow: hidden; }
.menu-mosaic > .m3 { border-radius: 28px 28px 28px 28px; overflow: hidden; }
.menu-mosaic > * img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.menu-mosaic > *:hover img { transform: scale(1.05); }

/* ----- Final CTA / closing portrait ----- */
.closer-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.closer-stage > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.closer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42,24,16,0.95) 0%, rgba(42,24,16,0.78) 50%, rgba(42,24,16,0.55) 100%),
    linear-gradient(180deg, rgba(42,24,16,0.0) 0%, rgba(42,24,16,0.5) 100%);
  z-index: 1;
}
.closer-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 5rem 0;
}

/* ----- Cliente quote with photo cutout ----- */
.client-spot {
  position: relative;
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--cream-deep) 100%);
  border-radius: 32px;
  padding: 3rem 2.5rem 3rem 2.5rem;
  overflow: hidden;
}
.client-spot-img {
  position: absolute;
  right: -2%;
  bottom: -2%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  overflow: hidden;
  border: 8px solid var(--cream);
  box-shadow: 0 30px 60px -20px rgba(122,46,59,0.4);
}
.client-spot-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
@media (max-width: 768px) {
  .client-spot-img { position: relative; right:auto; bottom:auto; width: 160px; height: 160px; margin-top: 1.5rem; }
}

/* ----- Decorative serif ornament (asterisk-style) ----- */
.ornament {
  font-family: var(--font-display);
  color: var(--rose-deep);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.55;
  display: inline-block;
  transform: translateY(-0.1em);
}

/* ----- Inline product tag ----- */
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--cocoa-900);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hero typography refinement */
.hero-headline {
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 0.96;
}
.hero-headline em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--berry);
  font-weight: 400;
}

/* Section number indicator */
.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--rose-deep);
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.section-num::before { content: "—— "; opacity: 0.5; }

/* =====================================================
   SPREADSHEET MOCKUP — "É assim que chega na sua planilha"
   ===================================================== */

.sheet-frame {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 70px -25px rgba(42,24,16,0.30),
    0 4px 10px -4px rgba(42,24,16,0.10);
  border: 1px solid rgba(42,24,16,0.10);
  font-family: var(--font-body);
  position: relative;
}

/* "browser chrome" top bar */
.sheet-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F1ECE3;
  border-bottom: 1px solid rgba(42,24,16,0.08);
}
.sheet-chrome .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(42,24,16,0.18);
}
.sheet-chrome .dot.r { background: #FF5F57; }
.sheet-chrome .dot.y { background: #FEBC2E; }
.sheet-chrome .dot.g { background: #28C840; }
.sheet-chrome .title {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--cocoa-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-chrome .title svg { width: 14px; height: 14px; color: #0F9D58; }
.sheet-chrome .save {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--cocoa-500);
  display: flex; align-items: center; gap: 6px;
}
.sheet-chrome .save::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--whatsapp); box-shadow: 0 0 0 3px rgba(37,211,102,0.2);
}

/* Sheet tabs */
.sheet-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid rgba(42,24,16,0.08);
  font-size: 0.78rem;
  padding: 0 12px;
  overflow: hidden;
}
.sheet-tab {
  padding: 9px 14px;
  color: var(--cocoa-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.sheet-tab.active {
  color: var(--cocoa-900);
  border-bottom-color: #0F9D58;
  font-weight: 500;
  background: rgba(15,157,88,0.06);
}

/* The grid itself */
.sheet-grid { overflow-x: auto; }
.sheet-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-feature-settings: "tnum" 1;
}
.sheet-table thead th {
  background: #F8F5EE;
  color: var(--cocoa-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(42,24,16,0.10);
  border-right: 1px solid rgba(42,24,16,0.06);
}
.sheet-table thead th:first-child {
  width: 32px;
  text-align: center;
  background: #F1ECE3;
  color: var(--cocoa-500);
}
.sheet-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42,24,16,0.06);
  border-right: 1px solid rgba(42,24,16,0.04);
  color: var(--cocoa-900);
  vertical-align: middle;
  white-space: nowrap;
}
.sheet-table tbody tr:nth-child(even) td { background: #FBFAF6; }
.sheet-table tbody td.idx {
  background: #F1ECE3;
  color: var(--cocoa-500);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
}

/* Highlighted "just added" row */
.sheet-table tbody tr.new td {
  background: linear-gradient(90deg, rgba(37,211,102,0.10), rgba(37,211,102,0.04));
  position: relative;
  animation: rowGlow 3s ease-in-out infinite;
}
.sheet-table tbody tr.new td.idx {
  background: #DCFCE7;
  color: #0F9D58;
}
.sheet-table tbody tr.new td.idx::after {
  content: "•";
  margin-left: 3px;
  color: #25D366;
  animation: pulse-dot-text 1.5s infinite;
}
@keyframes pulse-dot-text {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes rowGlow {
  0%, 100% { background: linear-gradient(90deg, rgba(37,211,102,0.10), rgba(37,211,102,0.02)); }
  50%      { background: linear-gradient(90deg, rgba(37,211,102,0.18), rgba(37,211,102,0.05)); }
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
}
.badge.ok      { background: #DCFCE7; color: #166534; }
.badge.ok::before { background: #16A34A; }
.badge.wait    { background: #FEF3C7; color: #92400E; }
.badge.wait::before { background: #D97706; }
.badge.done    { background: #DBEAFE; color: #1E40AF; }
.badge.done::before { background: #2563EB; }

.muted { color: var(--cocoa-500); font-size: 0.76rem; }

/* Floating "Mari" label pointing to new row */
.sheet-pointer {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cream);
  border: 1px solid rgba(122,46,59,0.2);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--cocoa-900);
  box-shadow: 0 12px 30px -12px rgba(42,24,16,0.3);
  display: flex; align-items: center; gap: 8px;
  z-index: 3;
}
@media (max-width: 900px) {
  .sheet-pointer { position: static; transform:none; margin-top: 1rem; display: inline-flex; }
}

/* Right side notification row "novo pedido" — pairs with the spreadsheet */
.email-card {
  background: #fff;
  border: 1px solid rgba(42,24,16,0.10);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 40px -20px rgba(42,24,16,0.25);
  font-size: 0.85rem;
  color: var(--cocoa-700);
  position: relative;
}
.email-card .from {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(42,24,16,0.08);
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
}
.email-card .from .av {
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: var(--cocoa-900);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
}
.email-card .from .meta { line-height: 1.2; }
.email-card .from .meta .name { font-weight: 600; color: var(--cocoa-900); font-size: 0.78rem; }
.email-card .from .meta .addr { font-size: 0.7rem; color: var(--cocoa-500); }
.email-card .subject { font-weight: 600; color: var(--cocoa-900); margin-bottom: 0.4rem; font-size: 0.92rem; font-family: var(--font-display); }
.email-card .row { display: flex; gap: 6px; font-size: 0.78rem; padding: 1px 0; }
.email-card .row .k { color: var(--cocoa-500); width: 70px; flex-shrink: 0; }
.email-card .row .v { color: var(--cocoa-900); }
