:root {
  --ink: #2B2028;
  --soft: #6E5964;
  --red: #E63946;
  --red-deep: #C22836;
  --blush: #F4A6B7;
  --faint: #FDF1F4;
  --border: #F9DCE3;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --shadow: 0 12px 32px -16px rgba(230, 57, 70, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5EDF0;
    --soft: #CBB6BF;
    --faint: #2A2024;
    --border: #3A2E33;
    --bg: #171113;
    --card: #221A1E;
    --blush: #C77E90;
    --shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(680px 360px at 50% -120px, var(--faint), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-deep); }

.serif { font-family: 'Fraunces', Georgia, serif; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 22px 90px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  margin-bottom: 8px;
}

.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.brand-mark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--red);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.doc-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 27px;
  color: var(--ink);
  margin: 10px 0 4px;
  letter-spacing: -0.3px;
  text-align: center;
  line-height: 1.25;
}

.doc-subtitle {
  color: var(--soft);
  font-size: 14px;
  font-style: italic;
  margin: 0 0 20px;
  text-align: center;
}

.hero-actions {
  display: flex;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  margin-bottom: 26px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

/* ---------- Callout ---------- */

.callout {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
}

.callout a { color: var(--red-deep); font-weight: 700; text-decoration: none; }
.callout a:hover { text-decoration: underline; }

.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--blush), transparent 85%);
  border: none;
  border-radius: 2px;
  margin: 26px 0 30px;
  opacity: 0.7;
}

/* ---------- Table of contents ---------- */

nav.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}

nav.toc p {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--soft);
}

nav.toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 13.8px;
  display: grid;
  gap: 6px;
}

nav.toc a {
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.toc a:hover { color: var(--red); border-color: var(--border); }

@media (min-width: 620px) {
  nav.toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* ---------- Sections ---------- */

section.doc-section {
  margin-bottom: 30px;
  scroll-margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.section-num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--bg);
  background: var(--red);
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

h2.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }

ul.bullets {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
}

ul.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 14.5px;
}

ul.bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blush);
}

/* ---------- Responsible-party card ---------- */

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  flex-wrap: wrap;
}

.info-row:last-child { border-bottom: none; }

.info-row .k {
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex: none;
}

.info-row .v { color: var(--ink); text-align: right; }
.info-row .v a { color: var(--red-deep); text-decoration: none; font-weight: 700; }
.info-row .v a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

footer {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--soft);
  text-align: center;
}

footer a { color: var(--soft); }
footer .back { display: inline-block; margin-top: 10px; color: var(--red-deep); font-weight: 700; text-decoration: none; }
footer .back:hover { text-decoration: underline; }

/* ---------- Hub links ---------- */

.hub-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hub-link:hover { border-color: var(--blush); transform: translateY(-2px); }
.hub-link .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.hub-link .body { flex: 1; min-width: 0; }
.hub-link .t { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.hub-link .s { font-size: 13px; color: var(--soft); margin-top: 3px; }
.hub-link .arrow { flex: none; color: var(--blush); font-size: 18px; }

.contact-card {
  background: var(--faint);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  margin-top: 6px;
  text-align: center;
  font-size: 13.5px;
  color: var(--soft);
}
.contact-card a { color: var(--red-deep); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* =====================================================
   Marketing landing page (home)
   ===================================================== */

.home-header {
  text-align: center;
  padding: 30px 22px 0;
}

.home-header .brand-mark { font-size: 26px; }

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 26px 22px 8px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  z-index: 0;
  animation: float 16s ease-in-out infinite;
}
.hero-blob.b1 {
  width: 260px; height: 260px;
  background: var(--blush);
  top: -80px; left: -60px;
}
.hero-blob.b2 {
  width: 220px; height: 220px;
  background: var(--red);
  opacity: 0.18;
  top: 40px; right: -70px;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 26px) scale(1.08); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* :not(.hero-blob) é obrigatório aqui: esta regra tem a mesma
   especificidade de .hero-blob e vem depois, então sem a exclusão ela
   sobrescreve o position:absolute dos blobs, jogando-os no fluxo e
   empurrando o conteúdo do hero ~500px para baixo. */
.hero > *:not(.hero-blob) { position: relative; z-index: 1; }

.trust-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.05s forwards;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  white-space: nowrap;
}

/* Em telas estreitas os 3 chips quebravam 2+1, deixando o último
   sozinho e desalinhado. Apertados, cabem os três na mesma linha. */
@media (max-width: 430px) {
  .trust-row { gap: 6px; }
  .trust-chip { padding: 5px 9px; font-size: 10.5px; gap: 4px; }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.15s forwards;
}

.hero h1 .accent { color: var(--red); }

.hero .lede {
  max-width: 520px;
  margin: 0 auto;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.28s forwards;
}

.showcase {
  padding: 34px 0 26px;
  margin-top: 26px;
  transition: background-color 1.1s ease;
}

.carousel-viewport {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* O padding lateral = (viewport - largura do card) / 2, para que o
     primeiro e o último card também consigam centralizar. */
  padding: 16px calc(50vw - min(36vw, 160px)) 20px;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }

@media (min-width: 720px) {
  .carousel-viewport { padding-left: calc(50vw - 180px); padding-right: calc(50vw - 180px); }
}

.slide {
  flex: 0 0 auto;
  width: min(72vw, 320px);
  scroll-snap-align: center;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 50px -22px rgba(43, 32, 40, 0.4);
  opacity: 0.4;
  transform: scale(0.92);
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform, opacity;
}

/* O card ativo domina: os cards da loja têm headline embutida e ficam
   ilegíveis se todos competirem pelo mesmo peso visual. */
.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 720px) {
  .slide { width: 360px; }
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
}

.dot-track {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.dot.active { background: var(--red); transform: scale(1.35); }

.features {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 22px 10px;
}

.features h2 {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 30px;
  letter-spacing: -0.3px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-card.in-view { opacity: 1; transform: translateY(0); }

.feature-card .fi {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
}

.feature-card p {
  font-size: 13.6px;
  color: var(--soft);
  margin: 0;
}

.closing {
  text-align: center;
  max-width: 480px;
  margin: 46px auto 0;
  padding: 0 22px;
  color: var(--soft);
  font-size: 14px;
}

footer.home-footer { max-width: 720px; margin: 40px auto 0; padding: 24px 22px 60px; }

.footer-links {
  display: flex;
  gap: 6px 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0;
  font-size: 12.8px;
}
.footer-links a { color: var(--soft); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--red-deep); text-decoration: underline; }
.footer-links .lang-note { color: var(--soft); opacity: 0.65; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .trust-row, .hero h1, .hero .lede { animation: none; opacity: 1; }
  .feature-card { transition: none; opacity: 1; transform: none; }
  .slide { transition: none; }
  .carousel-viewport { scroll-behavior: auto; }
}
