/* ==========================================================================
   Nossa Maternidade — design system
   Direção: editorial acolhedor. Creme quente, ameixa profunda, rosa-pele,
   lilás (herança do app) e um toque de ouro. Serif expressiva + sans limpa.
   ========================================================================== */

:root {
  --cream: #FBF6F0;
  --cream-2: #F5ECE2;
  --paper: #FFFDFA;
  --plum: #3A1F3D;
  --plum-2: #5B3A5E;
  --ink-soft: #6F5A70;
  --rose: #E7A7B6;
  --rose-2: #D98196;
  --rose-deep: #B85C74;
  --lilac: #B9A5E3;
  --lilac-2: #8C74C9;
  --lilac-soft: #EFE9FA;
  --gold: #D6A95C;
  --sage: #A9C4B0;
  --line: rgba(58, 31, 61, 0.12);
  --line-soft: rgba(58, 31, 61, 0.07);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 60px -30px rgba(58, 31, 61, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(58, 31, 61, 0.3);
  --max: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--plum);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lilac-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--rose); color: var(--plum); }

/* grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0 0.24 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 100; width: auto; height: auto; overflow: visible;
  padding: .75rem 1rem; border-radius: 999px; background: var(--plum); color: var(--cream);
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-soft);
}

.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--rose-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.italic { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: var(--cream); box-shadow: 0 14px 30px -14px rgba(58,31,61,.6); }
.btn-primary:hover { box-shadow: 0 20px 36px -14px rgba(58,31,61,.6); }
.btn-ghost { border-color: var(--line); color: var(--plum); background: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.store-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.15rem .7rem .95rem;
  border-radius: 14px; background: var(--plum); color: var(--cream); line-height: 1.1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 14px 30px -16px rgba(58,31,61,.7);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -16px rgba(58,31,61,.7); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.store-btn strong { display: block; font-size: 1.02rem; font-weight: 600; }
.store-btn.light { background: var(--paper); color: var(--plum); border: 1.5px solid var(--line); box-shadow: none; }
.store-btn-wrap { position: relative; display: inline-block; }
.store-soon {
  position: absolute; top: -10px; right: -6px; z-index: 2;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-deep), var(--lilac-2));
  color: #fff; box-shadow: 0 6px 16px -8px rgba(58,31,61,.5);
  pointer-events: none;
}

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--rose-deep), var(--lilac-2), var(--gold));
  box-shadow: 0 0 12px rgba(184,92,116,.35);
  pointer-events: none;
}

/* social proof ribbon */
.social-proof {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(231,167,182,.12), rgba(185,165,227,.12));
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--plum-2);
}
.social-proof .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1.4rem; padding: .55rem 0; text-align: center;
}
.social-proof strong { color: var(--plum); font-weight: 700; }
.social-proof .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rose-deep); opacity: .5; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(251,246,240,.78); border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.header.is-scrolled {
  box-shadow: 0 12px 40px -28px rgba(58,31,61,.35);
  background: rgba(251,246,240,.92);
}
@media (max-width: 980px) {
  .header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--cream);
  }
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.nav-links { display: flex; gap: 1.6rem; font-size: .95rem; font-weight: 500; color: var(--plum-2); }
.nav-links a { position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--rose-deep); transition: right .35s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav .btn { padding: .65rem 1.1rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--plum); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header.open .nav-links {
    display: flex; flex-direction: column; gap: .2rem;
    position: absolute; left: 0; right: 0; top: 72px; padding: 1rem 1.25rem 1.4rem;
    background: var(--cream); border-bottom: 1px solid var(--line-soft); font-size: 1.1rem;
  }
  .header.open .nav-links a { padding: .6rem 0; }
}

/* ---------- footer ---------- */
.footer { margin-top: 6rem; padding: 4rem 0 2.5rem; border-top: 1px solid var(--line-soft); background: var(--cream-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; color: var(--plum-2); }
.footer ul a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
.footer-brand p { color: var(--ink-soft); font-size: .95rem; max-width: 36ch; margin-top: .9rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; color: var(--ink-soft); }
.footer-medical { margin-top: 2.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.55); border: 1px solid var(--line-soft); font-size: .88rem; color: var(--plum-2); display: flex; gap: .8rem; align-items: flex-start; }
.footer-medical svg { width: 20px; height: 20px; flex: none; color: var(--rose-deep); margin-top: .15rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- doc pages (suporte / privacy / terms) ---------- */
.doc-hero { padding: 4.5rem 0 2.5rem; }
.doc-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: 1rem; }
.doc-hero .meta { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
.doc-toc { position: sticky; top: 96px; font-size: .9rem; }
.doc-toc h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: .8rem; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: .3rem 0 .3rem 1rem; color: var(--plum-2); border-left: 2px solid transparent; margin-left: -1px; transition: all .25s; }
.doc-toc a:hover, .doc-toc a.active { color: var(--plum); border-left-color: var(--rose-deep); }
.doc {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3.2rem); box-shadow: var(--shadow-card);
}
.doc h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.doc h2:first-of-type { margin-top: 1.4rem; padding-top: 0; border-top: 0; }
.doc h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; color: var(--plum-2); }
.doc p { margin: .7rem 0; color: #4A3550; }
.doc ul { margin: .6rem 0 .6rem 1.2rem; padding: 0; color: #4A3550; }
.doc li { margin: .35rem 0; padding-left: .2rem; }
.doc li::marker { color: var(--rose-deep); }
.doc a { color: var(--lilac-2); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--plum); }
.callout { border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1.2rem 0; display: flex; gap: .85rem; align-items: flex-start; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: .15rem; }
.callout p, .callout ul { margin: .2rem 0; }
.callout-warn { background: #FFF3E8; border: 1px solid #F3D3B4; color: #6A3D12; }
.callout-warn svg { color: #C9762A; }
.callout-info { background: var(--lilac-soft); border: 1px solid #DDD3F3; color: #3E2B6E; }
.callout-info svg { color: var(--lilac-2); }
.contact-card {
  margin-top: 1.4rem; border-radius: var(--radius-sm); padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, var(--cream-2), var(--lilac-soft)); border: 1px solid var(--line-soft);
  display: grid; gap: .5rem;
}
.contact-card p { margin: 0; }
.doc-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--ink-soft); text-align: center; }
.faq-list { display: grid; gap: .75rem; margin-top: .5rem; }
.faq-list details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--paper); padding: 0 1.2rem; transition: background .3s; }
.faq-list details[open] { background: #fff; }
.faq-list summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--rose-deep); line-height: 1; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 1.1rem; color: #4A3550; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .doc-toc { position: static; }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; }
  .doc-toc a { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: .82rem; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
