/* ==========================================================================
   Desafiei — landing + páginas legais
   Paleta amostrada dos screenshots reais do app (o lime #A3E635 é o chip de
   meta ativa; os fundos #08090B/#101317 são o preto real do app, não o cinza
   #25292e que o site usava antes).
   ========================================================================== */

:root {
  /* Tokens novos */
  --ink: #08090b;
  --panel: #101317;
  --panel-hi: #171c21;
  --line: #232a30;
  --line-soft: #171b20;
  --lime: #a3e635;
  --lime-dim: #86bc24;
  --lime-deep: #3d5303;
  --paper: #f3f6f0;
  --muted: #8c958a;
  --muted-dim: #6a736a;

  /* Aliases legados — privacy.html, terms.html, delete-account.html e
     confirm-deletion.html referenciam estes nomes nos seus <style> inline. */
  --primary: var(--lime);
  --primary-darker: var(--lime-dim);
  --background: var(--ink);
  --surface: var(--panel);
  --surface-lighter: var(--panel-hi);
  --text: var(--paper);
  --text-secondary: var(--muted);
  --text-on-primary: #0a0f02;
  --border: var(--line);
  --gradient-primary: linear-gradient(135deg, #a3e635, #6ba50f);
  --gradient-surface: linear-gradient(180deg, #101317, #08090b);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(18px, 5vw, 40px);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Escala tipográfica ------------------------------------------------------ */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.t-hero {
  font-size: clamp(2.9rem, 9.2vw, 5.4rem);
  font-weight: 800;
  text-transform: none;
}

.t-section {
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  font-weight: 700;
}

.t-row {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 46ch;
  line-height: 1.62;
}

/* Cabeçalho --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-right: auto;
}

.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.masthead nav {
  display: none;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.masthead nav a {
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.masthead nav a:hover {
  color: var(--paper);
  border-bottom-color: var(--lime);
}

.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

.langs a,
.langs span {
  padding: 4px 7px;
  border-radius: 6px;
  text-decoration: none;
}

.langs a:hover {
  color: var(--paper);
  background: var(--panel-hi);
}

.langs [aria-current] {
  color: var(--lime);
  font-weight: 600;
}

.masthead .pill {
  display: none;
}

/* Botão sólido ------------------------------------------------------------ */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: #0a0f02;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.pill:hover {
  background: #b6f24f;
}

.pill:active {
  transform: translateY(1px);
}

.pill-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.pill-ghost:hover {
  background: var(--panel-hi);
  border-color: var(--muted-dim);
}

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

.hero {
  padding-block: clamp(38px, 7vw, 76px) clamp(30px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 45% auto -30%;
  height: 130%;
  background: radial-gradient(
    closest-side,
    rgba(163, 230, 53, 0.09),
    transparent 72%
  );
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  gap: clamp(34px, 6vw, 52px);
}

/* Itens de grid nascem com min-width:auto, então a faixa de telas (3 x 216px)
   esticava a coluna e empurrava o hero inteiro para fora da tela no mobile. */
.hero-in > *,
.pillar > * {
  min-width: 0;
}

.hero-copy > * + * {
  margin-top: 22px;
}

.hero .t-hero {
  max-width: 15ch;
}

/* A faixa da semana: elemento de UI real do app, renderizado em HTML.
   O JS acende o dia de hoje do visitante; sem JS a faixa continua legível. */

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  max-width: 430px;
}

.week-day {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 9px 2px 10px;
  text-align: center;
  line-height: 1.15;
}

.week-day .dow {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  color: var(--muted-dim);
}

.week-day .dom {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--muted);
  min-height: 1.2em;
}

.week-day.is-today {
  background: var(--lime);
  border-color: var(--lime);
}

.week-day.is-today .dow {
  color: #24380b;
}

.week-day.is-today .dom {
  color: #0a0f02;
}

.week-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 44ch;
}

.week-note b {
  color: var(--paper);
  font-weight: 600;
}

/* Botões de loja — SVG inline, sem dependência externa ---------------------
   Os endpoints de badge do Google (play.google.com/intl/.../badges/...) foram
   descontinuados e retornam 404. Os badges agora são SVG inline. */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  border: 1px solid #33383c;
  border-radius: 12px;
  padding: 9px 17px 9px 14px;
  text-decoration: none;
  color: #fff;
  min-height: 54px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.store:hover {
  border-color: var(--lime);
  background: #0b0d08;
}

.store:active {
  transform: translateY(1px);
}

.store svg {
  flex: none;
}

.store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.store-txt .over {
  font-size: 0.63rem;
  color: #c8ccc4;
  letter-spacing: 0.03em;
}

.store-txt .name {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Plataforma detectada pelo JS: a loja do aparelho vem primeiro e destacada */
.store[data-primary="true"] {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.35);
  order: -1;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust .stars {
  color: var(--lime);
  letter-spacing: 0.08em;
}

.trust b {
  color: var(--paper);
  font-weight: 600;
}

/* Galeria do hero */

.shots {
  display: flex;
  min-width: 0;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shots picture {
  flex: none;
  display: block;
  width: 216px;
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

/* Métricas — livro-razão com fios, sem cards ------------------------------- */

.ledger {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.ledger div {
  padding: 20px 4px 18px;
  border-right: 1px solid var(--line);
}

.ledger div:nth-child(2n) {
  border-right: 0;
}

.ledger div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.ledger dt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.ledger dd {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6.4vw, 2.9rem);
  font-weight: 800;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 6px;
}

.ledger dd em {
  font-style: normal;
  color: var(--lime);
}

.ledger-src {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted-dim);
}

/* Seções ------------------------------------------------------------------ */

.band {
  padding-block: clamp(50px, 8vw, 92px);
}

.band-line {
  border-top: 1px solid var(--line-soft);
}

.band-head {
  max-width: 30ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.band-head .lead {
  margin-top: 14px;
}

/* Como funciona — sequência real, então numeração é informação */

.steps {
  display: grid;
  gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
}

.step-item {
  background: var(--ink);
  padding: 26px 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: start;
}

.step-item .n {
  grid-row: span 2;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 0.85;
  width: 1.4ch;
}

.step-item h3 {
  font-size: 1.32rem;
  align-self: center;
}

.step-item p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* Pilares — linhas assimétricas, sem chrome de card */

.pillar {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding-block: clamp(30px, 5vw, 54px);
}

.pillar + .pillar {
  border-top: 1px solid var(--line-soft);
}

.pillar-txt > * + * {
  margin-top: 16px;
}

.pillar-txt p {
  color: var(--muted);
  max-width: 48ch;
}

.pillar-shot picture {
  display: block;
  width: min(232px, 70vw);
  margin-inline: auto;
}

.pillar-shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tags li {
  font-size: 0.82rem;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* Recursos secundários — lista, não cards */

.more {
  display: grid;
  gap: 0;
  list-style: none;
}

.more li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.more li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
  transform: translateY(-2px);
}

.more b {
  font-weight: 600;
}

.more span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 3px;
}

/* PRO — o conteúdo é uma comparação, então é uma tabela de verdade --------- */

.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.plans caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 16px;
  max-width: 56ch;
}

.plans th,
.plans td {
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
}

.plans thead th {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--paper);
  border-bottom-color: var(--line);
  padding-bottom: 10px;
}

.plans thead th:nth-child(3) {
  color: var(--lime);
}

.plans tbody th {
  font-weight: 400;
  color: var(--muted);
  width: 46%;
}

.plans td {
  width: 27%;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.plans td.no {
  color: var(--muted-dim);
}

.plans td.yes {
  color: var(--paper);
}

.plans-foot {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 56ch;
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 40px 19px 0;
  position: relative;
  font-weight: 500;
  font-size: 1.03rem;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq p {
  color: var(--muted);
  padding-bottom: 20px;
  max-width: 68ch;
}

/* Fechamento -------------------------------------------------------------- */

.closer {
  text-align: center;
  padding-block: clamp(54px, 9vw, 104px);
  border-top: 1px solid var(--line);
  background: radial-gradient(
    ellipse at 50% 120%,
    rgba(163, 230, 53, 0.1),
    transparent 62%
  );
}

.closer .t-section {
  max-width: 18ch;
  margin-inline: auto;
}

.closer .lead {
  margin: 16px auto 28px;
  text-align: center;
}

.closer .stores {
  justify-content: center;
}

/* Rodapé ------------------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 34px 90px;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-in {
  display: grid;
  gap: 20px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.foot a {
  text-decoration: none;
  color: var(--muted);
}

.foot a:hover {
  color: var(--lime);
}

.foot .legal {
  color: var(--muted-dim);
  font-size: 0.82rem;
}

/* Barra fixa de download no mobile ---------------------------------------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.24s ease;
}

.dock.is-up {
  transform: translateY(0);
}

.dock img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.dock .dock-txt {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.dock .dock-txt b {
  display: block;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
}

.dock .dock-txt span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Respiro para a barra fixa não cobrir o rodapé */
@media (max-width: 819px) {
  body.has-dock {
    padding-bottom: 4px;
  }
}

/* Breakpoints ------------------------------------------------------------- */

@media (min-width: 560px) {
  .ledger {
    grid-template-columns: repeat(4, 1fr);
  }

  .ledger div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .ledger div:nth-child(4n),
  .ledger div:last-child {
    border-right: 0;
  }

  .ledger div:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .more {
    grid-template-columns: 1fr 1fr;
    column-gap: 34px;
  }
}

@media (min-width: 820px) {
  .masthead nav {
    display: flex;
  }

  .masthead .pill {
    display: inline-flex;
  }

  .dock {
    display: none;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .shots {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    justify-content: flex-end;
  }

  .shots picture:nth-child(3) {
    display: none;
  }

  .shots picture:first-child {
    margin-top: 40px;
  }

  .pillar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  }

  .pillar:nth-of-type(even) .pillar-txt {
    order: 2;
  }

  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .foot nav {
    justify-content: flex-end;
  }
}

@media (min-width: 1080px) {
  .shots picture {
    width: 246px;
  }
}

/* Movimento: um único momento orquestrado, na faixa da semana ------------- */

@media (prefers-reduced-motion: no-preference) {
  .week-day {
    animation: weekIn 0.44s both;
  }

  .week-day:nth-child(1) {
    animation-delay: 0.02s;
  }
  .week-day:nth-child(2) {
    animation-delay: 0.06s;
  }
  .week-day:nth-child(3) {
    animation-delay: 0.1s;
  }
  .week-day:nth-child(4) {
    animation-delay: 0.14s;
  }
  .week-day:nth-child(5) {
    animation-delay: 0.18s;
  }
  .week-day:nth-child(6) {
    animation-delay: 0.22s;
  }
  .week-day:nth-child(7) {
    animation-delay: 0.26s;
  }

  @keyframes weekIn {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Utilidade compartilhada com as páginas legais --------------------------- */

.back-link {
  display: inline-block;
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 18px;
}

.back-link:hover {
  text-decoration: underline;
}
