/*
  Mesmo visual do app (src/ui/theme.ts): Fraunces nos títulos e preços, Nunito
  no texto, rosa da marca, cartões com contorno fino e sombra rosada.

  O site é servido com uma política de segurança que só aceita estilos deste
  arquivo (ver _headers): nada de atributo style="" nem de imagem em data: URI.
*/
@font-face {
  font-family: "Fraunces";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Fraunces_600SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Nunito_400Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Nunito_700Bold.ttf") format("truetype");
}

:root {
  --bg: #fff7f3;
  --surface: #ffffff;
  --border: #f1e3dd;
  --border-strong: #e3d0c8;
  --text: #3b2a2a;
  --muted: #665650;
  --primary: #a63d54;
  --primary-pressed: #8a3045;
  --primary-soft: #fbe9ed;
  --success: #2f6b4f;
  --success-soft: #e3f1e9;
  --warning: #8a5a0a;
  --shadow: 0 6px 18px rgba(166, 61, 84, 0.08);
  --shadow-lg: 0 22px 50px rgba(59, 42, 42, 0.22);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  /* em página curta, o rodapé fica no pé da tela */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.2px;
  margin: 0;
}

p,
ul {
  margin: 0 0 14px;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-pressed);
}

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

svg {
  display: block;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: 760px;
}

/* ---------- cabeçalho e rodapé ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 21px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.site-header nav {
  display: flex;
  gap: 6px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 16px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- página inicial ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-pressed) 100%);
  color: #fff;
}

/* dois círculos claros, só de enfeite, como novelos ao fundo */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -120px;
}

.hero::after {
  width: 300px;
  height: 300px;
  bottom: -170px;
  left: -90px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 60px;
}

.hero-text {
  text-align: center;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 7vw, 52px);
}

.lead {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 20px;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

/* cartão de exemplo: uma ficha de peça em miniatura */
.demo {
  margin: 0 auto;
  width: 100%;
  max-width: 380px;
  padding: 22px;
  background: var(--surface);
  color: var(--text);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.demo figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-photo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.demo-name {
  font-weight: 700;
  line-height: 1.25;
}

.demo-muted {
  font-size: 15px;
  color: var(--muted);
}

.demo-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 16px;
  color: var(--muted);
}

.demo-row b {
  color: var(--text);
  font-weight: 400;
}

.demo-row.total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.demo-row.total b {
  font-weight: 700;
}

.demo-price {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--primary-soft);
  text-align: center;
}

.demo-price span {
  display: block;
  font-size: 15px;
  color: var(--primary);
}

.demo-price strong {
  display: block;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.15;
  color: var(--primary);
  font-variant-numeric: lining-nums;
}

.rise {
  padding: 10px 0;
}

.rise + .rise {
  border-top: 1px solid var(--border);
}

.rise-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.rise-head b {
  color: var(--warning);
}

.bar {
  height: 10px;
  margin: 8px 0 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.bar-100 i {
  width: 100%;
}

.bar-68 i {
  width: 68%;
}

.bar-32 i {
  width: 32%;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.choices li {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.choices li:first-child {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

/* seções */
.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(27px, 5vw, 36px);
}

.section-intro {
  max-width: 34em;
  margin: 12px 0 0;
  color: var(--muted);
}

.center {
  text-align: center;
}

.center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: passo;
}

.steps li {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  counter-increment: passo;
}

.steps li::after {
  content: counter(passo);
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  color: var(--border-strong);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.icon.green {
  background: var(--success-soft);
  color: var(--success);
}

.steps h3,
.points h3 {
  margin: 16px 0 6px;
  font-size: 21px;
}

.steps p,
.points p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.ticks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ticks svg {
  flex: none;
  margin-top: 3px;
  color: var(--success);
}

.points {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.points h3 {
  font-size: 19px;
}

.offer {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.offer h2 {
  color: var(--primary);
}

.offer p {
  margin: 12px auto 0;
  max-width: 28em;
}

.offer .small {
  font-size: 16px;
  color: var(--muted);
}

.offer .badge {
  background: var(--primary-soft);
}

/* ---------- páginas de texto (política, termos, 404) ---------- */

.doc {
  padding-top: 44px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(32px, 6vw, 42px);
  margin-bottom: 12px;
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 24px;
}

.doc ul {
  padding-left: 24px;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--primary);
}

.updated {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.summary {
  margin: 26px 0 8px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.doc .summary h2 {
  margin-top: 0;
  font-size: 21px;
}

.summary ul {
  margin-bottom: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.doc .links {
  padding-left: 0;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.links li:first-child a {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* celular: marca e menu na mesma linha */
@media (max-width: 479px) {
  .brand {
    font-size: 19px;
    gap: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-header nav {
    gap: 2px;
  }

  .site-header nav a {
    padding: 0 8px;
    font-size: 15px;
  }

  .wide {
    display: none;
  }
}

@media (min-width: 720px) {
  .steps,
  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  .points.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    padding-top: 76px;
    padding-bottom: 84px;
  }

  .hero-text {
    text-align: left;
  }

  .lead {
    margin-left: 0;
  }

  .hero .demo {
    transform: rotate(2deg);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .points.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 84px 0;
  }
}

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