/*
 * Landing da Conta da Roça. Mesmos tokens de libs/ui-tokens (verde-floresta + lima, fundo névoa)
 * e as mesmas fontes da web (Fraunces nos títulos, Plus Jakarta Sans no texto).
 * Sem JavaScript, exceto nas calculadoras e na lista de espera.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f2f4ee;
  --surface: #ffffff;
  --surface-2: #e8ece3;
  --text: #1a1d1a;
  --muted: #434a42;
  --line: #d4dacd;
  --primary: #1f5436;
  --primary-hover: #173f2a;
  --on-primary: #ffffff;
  --link: #1f5436;
  --hero: #173f2a;
  --hero-deep: #0f2e1f;
  --on-hero: #ffffff;
  --on-hero-muted: #bfd3c5;
  --hero-tile: rgba(255, 255, 255, 0.09);
  --accent: #b5e26a;
  --on-accent: #0f2e1f;
  --lime-soft: #dcf1b4;
  --wheat: #e3a92b;
  --wheat-soft: #fff3d6;
  --income: #237a3b;
  --income-soft: #ddefe0;
  --expense: #b3261e;
  --expense-soft: #fbe3df;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(15, 46, 31, 0.06), 0 8px 24px rgba(15, 46, 31, 0.06);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1411;
    --surface: #19201b;
    --surface-2: #262e28;
    --text: #e1e5de;
    --muted: #c0c9bf;
    --line: #3a433c;
    --primary: #b5e26a;
    --primary-hover: #dcf1b4;
    --on-primary: #0f2e1f;
    --link: #9bd3a6;
    --hero: #1f3d2c;
    --hero-deep: #152c20;
    --lime-soft: #3a4f22;
    --wheat-soft: #3e2e00;
    --income: #86d397;
    --income-soft: #1e3a26;
    --expense: #ffb4ab;
    --expense-soft: #4a1f1b;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 7vw, 60px);
}

h2 {
  font-size: clamp(28px, 4.5vw, 40px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

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

.mt {
  margin-top: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.lead {
  font-size: clamp(19px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}

.site-header .btn {
  margin-left: auto;
}

/* Celular de 360px: marca e botão cabem na mesma linha. */
@media (max-width: 399px) {
  .brand {
    gap: 8px;
    font-size: 19px;
  }

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

  .site-header .btn {
    padding: 8px 14px;
    font-size: 15px;
  }
}

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

  .site-header .btn {
    margin-left: 8px;
  }
}

/* Navegação curta no celular, rolável na horizontal. */
.mobile-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav a {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
}

.mobile-nav a[aria-current='page'] {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

/* ------------------------------------------------------------------- Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover {
  background: #c7ec8a;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 18px;
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 14px;
  background: #0b0f0c;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}

.store-badge small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.store-badge strong {
  display: block;
  font-size: 19px;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.hero {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checks li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--income-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23237A3B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Celular desenhado em CSS com a tela de Início do app. */
.phone {
  position: relative;
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: #0b0f0c;
  box-shadow: 0 30px 60px -20px rgba(15, 46, 31, 0.45);
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #f2f4ee;
  color: #1a1d1a;
  padding: 22px 16px 18px;
  font-size: 14px;
  line-height: 1.4;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.phone-top small {
  display: block;
  color: #434a42;
}

.phone-top strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.phone-sync {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ddefe0;
  color: #1f5436;
  font-size: 12px;
  font-weight: 700;
}

.phone-hero {
  padding: 16px;
  border-radius: 22px;
  background: #173f2a;
  color: #fff;
}

.phone-hero small {
  color: #bfd3c5;
}

.phone-hero .big {
  display: block;
  margin: 2px 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: #b5e26a;
  font-variant-numeric: tabular-nums;
}

.phone-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-tiles div {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
}

.phone-tiles span {
  display: block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.phone-tiles .in {
  color: #b5e26a;
}

.phone-tiles .out {
  color: #ffb4a8;
}

.phone-list {
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 18px;
  background: #fff;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e8ece3;
}

.phone-row:last-child {
  border-bottom: 0;
}

.phone-row i {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  background: #d9ebdd;
}

.phone-row i.w {
  background: #fff3d6;
}

.phone-row i.r {
  background: #fbe3df;
}

.phone-row b {
  display: block;
  font-weight: 700;
}

.phone-row small {
  color: #434a42;
}

.phone-row .v {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phone-row .v.plus {
  color: #237a3b;
}

.phone-row .v.minus {
  color: #b3261e;
}

.phone-fab {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.phone-fab span {
  padding: 10px 18px;
  border-radius: 16px;
  background: #b5e26a;
  color: #0f2e1f;
  font-weight: 800;
}

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

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 40px 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--bg);
  box-shadow: none;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 20px;
  margin: 12px 0 0;
  color: var(--muted);
}

.card li + li {
  margin-top: 4px;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--on-accent);
}

@media (prefers-color-scheme: dark) {
  .card .icon {
    color: var(--accent);
  }
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
}

/* Bloco de definição curta (o que é), fácil de citar. */
.answer {
  padding: 24px;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 19px;
}

.answer p:last-child {
  margin-bottom: 0;
}

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

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

.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--hero);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.steps h3 {
  margin-bottom: 6px;
}

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

/* Fórmulas: termo, conta e exemplo. */
.formulas {
  display: grid;
  gap: 16px;
  margin: 0;
}

@media (min-width: 800px) {
  .formulas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.formulas div {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.formulas dt {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.formulas dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.formulas code,
.calc-result code {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

/* Tabela comparativa. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 15px;
  color: var(--muted);
  background: var(--surface-2);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 700;
}

td.hl,
th.hl {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-weight: 700;
}

/* Perguntas frequentes. */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
}

.faq details[open] summary::after {
  content: '–';
}

.faq .faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

.faq h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Faixa de chamada final. */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  border-radius: 32px;
  background: var(--hero);
  color: var(--on-hero);
  text-align: center;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--on-hero-muted);
}

.cta-band .actions {
  justify-content: center;
}

.cta-band a:not(.btn):not(.store-badge) {
  color: var(--accent);
}

/* Trilha de navegação. */
.breadcrumb {
  padding-top: 24px;
  font-size: 15px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
}

.page-hero {
  padding: 24px 0 40px;
}

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

/* Texto corrido (páginas legais e explicações longas). */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  margin-top: 40px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 6px;
}

.note {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--wheat-soft);
  color: var(--text);
  font-size: 17px;
}

/* ------------------------------------------------------------ Calculadoras */

.calc {
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .calc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 32px;
  }
}

.calc fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.calc legend {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 16px;
}

.field .hint {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.input {
  position: relative;
  display: flex;
  align-items: center;
}

.input input,
.input select {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.input select {
  font-size: 18px;
}

.input input:focus,
.input select:focus {
  outline: none;
  border-color: var(--primary);
}

[hidden] {
  display: none !important;
}

.input .prefix,
.input .suffix {
  position: absolute;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

.input .prefix {
  left: 16px;
}

.input .prefix + input {
  padding-left: 52px;
}

.input .suffix {
  right: 16px;
}

.calc-result {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--hero);
  color: var(--on-hero);
}

.calc-result h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.calc-result .main {
  display: block;
  margin: 4px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.calc-result dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.calc-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--hero-tile);
}

.calc-result dt {
  color: var(--on-hero-muted);
}

.calc-result dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-result .status {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--on-hero-muted);
}

.calc-result .good {
  color: var(--accent);
}

.calc-result .bad {
  color: #ffb4a8;
}

/* --------------------------------------------------------- Lista de espera */

html.waitlist-open {
  overflow: hidden;
}

.waitlist-dialog {
  width: min(calc(100% - 32px), 480px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(15, 46, 31, 0.3);
  overflow-y: auto;
}

.waitlist-dialog::backdrop {
  background: rgba(15, 46, 31, 0.6);
}

.waitlist-dialog .waitlist {
  padding: 28px 20px 24px;
}

@media (min-width: 640px) {
  .waitlist-dialog .waitlist {
    padding: 32px 32px 28px;
  }
}

.waitlist-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.waitlist-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.waitlist h2 {
  margin-bottom: 8px;
  padding-right: 40px;
  font-size: clamp(26px, 5vw, 30px);
}

.waitlist h2:focus {
  outline: none;
}

.waitlist-lead {
  color: var(--muted);
  font-size: 17px;
}

.waitlist-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.waitlist-form .input input {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: normal;
}

.waitlist-form .input input[aria-invalid='true'] {
  border-color: var(--expense);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--expense);
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--expense-soft);
  font-size: 16px;
}

.waitlist-form .btn,
.waitlist-done .btn {
  width: 100%;
}

.fine-print {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Campo-isca para robôs: fora da tela, nunca visível. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-done {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--income-soft);
}

.waitlist-done p {
  font-weight: 600;
}

/* Página /lista-de-espera/. */
.waitlist-page {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .waitlist-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px;
  }
}

.waitlist-card {
  padding: 28px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .waitlist-card {
    padding: 32px;
  }
}

.waitlist-card h2 {
  padding-right: 0;
}

.waitlist-perks {
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
}

.waitlist-perks li {
  align-items: flex-start;
}

.waitlist-perks li::before {
  margin-top: 4px;
}

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

.site-footer {
  margin-top: 64px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .fine {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.h3 {
  font-size: 22px;
}

.card .btn {
  margin-top: 8px;
}
