/* Churrapp — the app's own look on the web: dark, full-bleed photo headers
   under a darkening gradient, the panel that rises over them (radius 36),
   #262626 cards, gradient pill buttons, Unbounded titles, a floating bar. */

:root {
  --bg: #121212;
  --surface: #262626;
  --raised: #2e2e2e;
  --control: #383838;
  --divider: #333333;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --body: #d6d6d6;
  --muted: #a3a3a3;
  --subtle: #8a8a8a;
  --accent: #f26b6b;
  --pink: #fbe3e3;
  --grad: linear-gradient(135deg, #e5545a, #9e1f2b);
  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --card: 30px;
  --sheet: 36px;
  --col: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.miolo {
  width: min(var(--col), 100% - 32px);
  margin-inline: auto;
}

/* ---------- Floating bar (the app's tab bar) ---------- */

.topo {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--col), 100% - 32px);
  height: 64px;
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(38, 38, 38, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.topo nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topo nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 28px;
}

.topo nav a:hover {
  background: var(--control);
}

.topo nav a.cheio,
.pilula {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}

.topo nav a.cheio:hover {
  background: var(--grad);
  filter: brightness(1.08);
}

@media (max-width: 720px) {
  .topo nav a:not(.cheio) {
    display: none;
  }
}

/* ---------- Photo header + rising panel ---------- */

.foto-topo {
  position: relative;
  min-height: max(640px, 92vh);
  padding-top: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.foto-topo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-topo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.8) 0%,
    rgba(18, 18, 18, 0.35) 32%,
    rgba(18, 18, 18, 0.45) 62%,
    rgba(18, 18, 18, 0.97) 100%
  );
}

.foto-topo .titulo {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 120px;
  max-width: 860px;
}

.foto-topo h1 {
  font-size: clamp(38px, 6.2vw, 72px);
}

.foto-topo .sub {
  margin: 20px auto 0;
  max-width: 600px;
  color: var(--body);
  font-size: clamp(16px, 2vw, 19px);
}

.foto-topo.baixa {
  min-height: max(420px, 56vh);
}

.foto-topo.baixa h2 {
  font-size: clamp(34px, 5.6vw, 60px);
}

.painel {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  background: var(--bg);
  border-radius: var(--sheet) var(--sheet) 0 0;
  padding: 56px 0 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(46, 46, 46, 0.9);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 20px;
}

.chip svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
}

/* ---------- Buttons ---------- */

.lojas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.botao {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.botao.pilula {
  border: 0;
  background: var(--grad);
}

.botao svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.botao small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.1;
}

.botao span {
  line-height: 1.15;
  text-align: left;
}

.preco-linha {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.secao {
  padding: 56px 0;
}

.secao > .miolo > header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.secao h2 {
  font-size: clamp(30px, 4.4vw, 48px);
}

.secao header p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.card {
  background: var(--surface);
  border-radius: var(--card);
}

/* Como funciona: three cards, each with its screen */

.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.passo {
  padding: 28px 24px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.passo .num {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

.passo h3 {
  margin-top: 18px;
  font-size: 22px;
}

.passo p {
  margin-top: 10px;
  color: var(--muted);
}

.passo .tela {
  margin: auto auto -40px;
  width: 78%;
}

.passo p {
  margin-bottom: 28px;
}

.tela {
  border-radius: 36px;
  border: 6px solid #050505;
  box-shadow:
    0 0 0 1px #2a2a2a,
    0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 860px) {
  .passos {
    grid-template-columns: 1fr;
  }
  .passo .tela {
    width: min(300px, 80%);
  }
}

/* The calculator, drawn the way the app draws it */

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.linhas {
  padding: 8px 8px 8px 24px;
}

.linha {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.linha .nome {
  flex: 1;
}

.linha .nome b {
  display: block;
  font-weight: 500;
  font-size: 17px;
}

.linha .nome small {
  color: var(--subtle);
  font-size: 13px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper i {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--control);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 22px;
  color: var(--text);
}

.stepper b {
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.resultado {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.resultado .grande {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--accent);
  line-height: 1.1;
}

.resultado p {
  margin-top: 10px;
  color: var(--body);
}

.resultado .link {
  margin-top: 16px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .demo {
    grid-template-columns: 1fr;
  }
}

/* Lista: the shopping list card */

.lado-a-lado {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.lado-a-lado .texto h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.lado-a-lado .texto p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.lado-a-lado .tela {
  width: min(320px, 100%);
  margin-inline: auto;
}

@media (max-width: 860px) {
  .lado-a-lado {
    grid-template-columns: 1fr;
  }
  .lado-a-lado .texto {
    text-align: center;
  }
}

.estimado {
  padding: 20px 24px;
  margin-top: 28px;
  display: inline-block;
  text-align: left;
}

.estimado small {
  display: block;
  color: var(--subtle);
  font-size: 13px;
}

.estimado b {
  font-family: var(--display);
  font-size: 30px;
  color: var(--accent);
}

/* Conta: the guests, drawn like the app's rows */

.convidados {
  padding: 4px 8px 4px 22px;
}

.convidado {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.convidado .nome {
  flex: 1;
}

.convidado .nome b {
  display: block;
  font-weight: 500;
}

.convidado .nome small {
  color: var(--subtle);
  font-size: 13px;
}

.convidado .nome small.deve {
  color: var(--accent);
}

.circulo {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--control);
  display: grid;
  place-items: center;
}

.circulo svg {
  width: 19px;
  height: 19px;
  stroke: #fff;
}

.circulo.pago {
  background: var(--accent);
}

.circulo.pago svg {
  stroke: #121212;
}

.total {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.total small {
  display: block;
  color: var(--subtle);
  font-size: 13px;
}

.total b {
  font-family: var(--display);
  font-size: 22px;
}

.total .por b {
  color: var(--accent);
}

/* O que vem: the paywall's benefits card */

.planos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.plano {
  padding: 28px 24px 12px;
}

.plano header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.plano h3 {
  font-size: 22px;
}

.plano .valor {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}

.plano.pago .valor {
  color: var(--accent);
}

.plano ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plano li {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
}

.plano li + li {
  border-top: 1px solid var(--divider);
}

.plano li svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.plano .nota {
  color: var(--subtle);
  font-size: 13px;
  padding: 14px 0 10px;
}

.plano.pago {
  outline: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
}

@media (max-width: 860px) {
  .planos {
    grid-template-columns: 1fr;
  }
}

/* Perguntas: rows that open */

.perguntas {
  padding: 4px 8px 4px 24px;
  max-width: 760px;
  margin-inline: auto;
}

.perguntas details + details {
  border-top: 1px solid var(--divider);
}

.perguntas summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 16px;
}

.perguntas summary::-webkit-details-marker {
  display: none;
}

.perguntas summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--subtle);
  border-bottom: 2px solid var(--subtle);
  transform: rotate(45deg);
  margin-right: 12px;
  transition: transform 0.2s;
}

.perguntas details[open] summary::after {
  transform: rotate(225deg);
}

.perguntas details p {
  color: var(--muted);
  padding: 0 24px 20px 0;
}

/* Closing: the opening splash */

.fecho {
  position: relative;
  overflow: hidden;
  border-radius: var(--sheet);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

.fecho > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.fecho::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.85) 0%,
    rgba(18, 18, 18, 0.4) 45%,
    rgba(18, 18, 18, 0.5) 65%,
    rgba(18, 18, 18, 0.95) 100%
  );
}

.fecho .titulo {
  position: relative;
  z-index: 1;
  padding: 0 20px 56px;
}

.fecho .marca-grande {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1;
}

.fecho p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

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

.rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--divider);
  color: var(--subtle);
  font-size: 14px;
}

.rodape .marca {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rodape .logo {
  font-size: 15px;
}

.rodape .logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.rodape nav a {
  color: var(--body);
}

/* ---------- Legal pages ---------- */

.documento {
  max-width: 720px;
  margin: 0 auto;
  padding: 128px 0 56px;
}

.documento h1 {
  font-size: clamp(30px, 5vw, 44px);
}

.documento .vigencia {
  margin-top: 12px;
  color: var(--subtle);
  font-size: 14px;
}

.documento .resumo {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--card);
  color: var(--body);
}

.documento h2 {
  margin-top: 40px;
  font-size: 20px;
}

.documento p,
.documento li {
  color: var(--body);
}

.documento p {
  margin-top: 14px;
}

.documento ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.documento li + li {
  margin-top: 8px;
}

.documento a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
