/* AncyraLove — folha de estilo do site (landing + páginas de documento).
   Paleta e tipografia da marca: cream/wine/gold, Cormorant Garamond (títulos)
   + Manrope (corpo). Compartilhada por index.html e pelas páginas geradas por
   build_legal_pages.py. */

:root {
  --cream: #FAF3E9;
  --cream-2: #F3E4CE;
  --wine: #7B2D5E;
  --wine-hover: #4A1B39;
  --gold: #C9932E;
  --gold-light: #F2C879;
  --night: #1E1330;
  --dark: #2B1420;
  --body-text: #5B4450;
  --muted: #8A6B78;
  --line: rgba(123, 45, 94, 0.14);
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--gold-light); color: var(--dark); }
a { color: var(--wine); }
a:hover { color: var(--wine-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navegação ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(250, 243, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-logo span { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 22px; letter-spacing: 0.02em; color: var(--wine); }
.nav-logo span em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links > a:not(.btn-pill) { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--body-text); }
.nav-links > a:not(.btn-pill):hover { color: var(--wine); }
@media (max-width: 600px) {
  .nav-links > a:not(.btn-pill) { display: none; }
}

.btn-pill, .btn-cta, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-pill { background: var(--wine); color: var(--cream); padding: 10px 20px; font-size: 14px; }
.btn-pill:hover { background: var(--wine-hover); color: var(--cream); }
.btn-cta { background: var(--wine); color: var(--cream); padding: 16px 30px; font-size: 16px; box-shadow: 0 10px 24px rgba(123, 45, 94, 0.28); }
.btn-cta:hover { background: var(--wine-hover); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--wine); padding: 15px 26px; font-size: 15px; border: 1.5px solid rgba(123, 45, 94, 0.35); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine-hover); }

/* ---------- Tipografia de seção ---------- */
.section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--dark);
}
.section-intro { color: var(--body-text); max-width: 62ch; margin: 0 0 40px; font-size: 17px; }
.centered { text-align: center; }
.centered .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { aspect-ratio: 4 / 3; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 45, 94, 0.08);
  border: 1px solid rgba(123, 45, 94, 0.25);
  color: var(--wine);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--dark);
}
h1 em { color: var(--wine); font-style: italic; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--body-text); margin: 0 0 32px; max-width: 52ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.hero-photo-wrap { position: relative; }
.hero-photo-frame { position: absolute; inset: -16px; border: 1.5px solid rgba(242, 200, 121, 0.55); border-radius: 28px; pointer-events: none; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }

/* ---------- Como funciona ---------- */
.how-section { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; counter-reset: step; }
.step { background: #fff; border-radius: 20px; padding: 30px; border: 1px solid var(--line); position: relative; }
.step .num { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; color: var(--gold); margin: 0 0 10px; line-height: 1; }
.step h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; margin: 0 0 10px; color: var(--wine); }
.step p { margin: 0; color: var(--body-text); font-size: 15px; line-height: 1.6; }
.step p + p { margin-top: 10px; }
.cyra-quote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(242, 200, 121, 0.16);
  border-radius: 0 16px 16px 0;
  color: var(--dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
}
.cyra-quote cite { display: block; margin-top: 8px; font-family: 'Manrope', sans-serif; font-style: normal; font-size: 13px; color: var(--muted); }

/* ---------- Índice Âncora (bloco escuro) ---------- */
.anchor-section { background: var(--night); padding: clamp(56px, 7vw, 96px) var(--gutter); color: var(--cream); }
.anchor-section h2 { color: var(--cream); }
.anchor-section .section-label { color: var(--gold-light); }
.anchor-section .section-intro { color: rgba(250, 243, 233, 0.72); }
.anchor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: rgba(242, 200, 121, 0.18); border-radius: 20px; overflow: hidden; }
.anchor-cell { background: var(--night); padding: 32px 26px; }
.anchor-cell .num { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--gold-light); margin: 0 0 12px; font-weight: 600; }
.anchor-cell .title { font-size: 18px; font-weight: 700; color: var(--cream); margin: 0 0 8px; }
.anchor-cell .desc { font-size: 14px; color: rgba(250, 243, 233, 0.68); line-height: 1.6; margin: 0; }
.anchor-foot { margin: 28px 0 0; font-size: 14px; color: rgba(250, 243, 233, 0.6); max-width: 70ch; }
.anchor-foot a { color: var(--gold-light); }

/* ---------- Segurança ---------- */
.safety-section { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.safety-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.safety-card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(123, 45, 94, 0.08); color: var(--wine); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.safety-card .icon svg { width: 22px; height: 22px; }
.safety-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--dark); }
.safety-card p { margin: 0; color: var(--body-text); font-size: 15px; line-height: 1.6; }
.safety-foot { margin: 28px 0 0; font-size: 14px; color: var(--muted); max-width: 72ch; }

/* ---------- Gratuito no lançamento ---------- */
.free-section { padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.free-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(123, 45, 94, 0.18); }
@media (max-width: 720px) { .free-card { grid-template-columns: minmax(0, 1fr); } }
.free-copy { background: linear-gradient(160deg, var(--wine), var(--wine-hover)); padding: clamp(36px, 4vw, 56px); color: var(--cream); }
.free-copy .section-label { color: var(--gold-light); }
.free-copy h2 { color: var(--cream); font-size: clamp(26px, 3vw, 34px); margin-bottom: 22px; }
.free-list { display: flex; flex-direction: column; gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.free-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; font-size: 15.5px; }
.free-list .check { color: var(--gold-light); font-size: 18px; line-height: 1.4; }
.free-note { font-size: 13px; color: rgba(250, 243, 233, 0.65); margin: 0; }
.free-note a { color: var(--gold-light); }
.free-photo { position: relative; min-height: 280px; }
.free-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Baixar / abrir ---------- */
.get-section { background: var(--cream-2); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.get-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.get-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 10px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--cream);
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  min-width: 190px;
  border: 1px solid transparent;
}
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge small { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; line-height: 1.2; }
.store-badge strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.store-badge:hover { color: var(--cream); background: #3b1c2d; }
.store-badge.is-soon { background: transparent; color: var(--dark); border-color: rgba(43, 20, 32, 0.25); cursor: default; }
.store-badge.is-soon:hover { background: transparent; color: var(--dark); }
.store-badge.is-soon small { opacity: 0.65; }
.get-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-section { max-width: 800px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--wine); font-size: 20px; flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--body-text); font-size: 14.5px; line-height: 1.65; }
.faq-item p a { font-weight: 600; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 22px; height: 22px; object-fit: contain; }
.footer-logo span { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 16px; color: var(--wine); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-company p { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-company strong { color: var(--body-text); font-weight: 700; }

/* ---------- Páginas de documento (privacidade, termos, excluir-conta, suporte) ---------- */
.doc { max-width: 780px; padding: clamp(32px, 6vw, 64px) var(--gutter) 72px; }
.doc-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.doc h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; }
.doc-related { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc-related a { text-decoration: none; font-weight: 600; color: var(--muted); }
.doc-related a:hover, .doc-related a[aria-current="page"] { color: var(--wine); }
.doc-related a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.doc-body { color: var(--body-text); font-size: 16px; line-height: 1.7; }
.doc-body > p:first-child { color: var(--dark); }
.doc-body h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; scroll-margin-top: 80px; }
.doc-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--wine); margin: 28px 0 10px; scroll-margin-top: 80px; }
.doc-body p { margin: 0 0 14px; }
.doc-body strong { color: var(--dark); }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: rgba(123, 45, 94, 0.08); padding: 1px 6px; border-radius: 6px; color: var(--wine); }
.doc-body a { word-break: break-word; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 24px; }
.doc-body li { margin: 0 0 8px; }
.doc-body li > ul, .doc-body li > ol { margin: 8px 0 0; }
.doc-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.doc-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; line-height: 1.55; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc-body th { background: rgba(123, 45, 94, 0.06); color: var(--dark); font-weight: 700; }
.doc-body tr:last-child td { border-bottom: none; }
.doc-see-also { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--body-text); }
.doc-see-also a { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
