/* Geist 1.9.2 (OFL, Vercel; app/assets/fonts/Geist-OFL.txt), subsetada em WOFF2 para latim, latim estendido A, acentos
   combinantes, pontuação tipográfica, setas e o ponto médio, com os numerais tabulares (tnum). ◆, ✓ e o hífen sem
   quebra (U+2011) não existem na Geist 1.9.2 e vêm da fonte do sistema. Três pesos, e nenhum outro: 400, 600 e 800
   (design.md, Marca e tipografia). Um 700 cairia na face 800, por isso o negrito do navegador também fica em 600. */
@font-face {
  font-family: Geist;
  src: url("/assets/Geist-Regular-ce55b516.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/assets/Geist-SemiBold-5bf3258d.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/assets/Geist-ExtraBold-68a07b52.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #f7f5f2;
  --surface: #fff;
  --raised: #fff;
  --field: #fff;
  --text: #1c1814;
  --muted: #6b6660;
  --faded: #b6b1aa;
  --line: #8a857e;
  --hairline: #dedad4;
  --accent: #c2410c;
  --action: #c2410c;
  --on-action: #fff;
  --action-hover: #a8380a;
  --focus: #1c1814;
  --selected: #1c1814;
  --on-selected: #fff;
  --on-selected-muted: #d9d3cb;
  --selected-subtle: #efebe5;
  --success-bg: #e2efe6;
  --success: #1f5a39;
  --warning-bg: #fcebc6;
  --warning: #6b4a0f;
  --error-bg: #fde8e4;
  --error: #a12a1a;
  --bg-transparent: #f7f5f200;
  --radius: 16px;
  --radius-field: 14px;
  --radius-surface: 20px;
  --radius-block: 28px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --motion: 160ms;
  --celebration-short: 400ms;
  --celebration-long: 1200ms;
  --celebration-peak: 2400ms;
  --elevation: inset 0 0 0 1px var(--hairline), 0 1px 2px #1c18140d, 0 6px 18px -6px #1c181424;
  --elevation-bar: 0 2px 6px #1c181414, 0 10px 24px -8px #1c181438;
  --elevation-action: 0 1px 2px #1c181424, 0 4px 12px -2px #c2410c47;
  --elevation-block: none;
  --font-size-body: 16px;
  --font-size-support: 14px;
  --font-size-caption: 12px;
  --font-size-page-title: 44px;
  --font-size-page-title-mobile: 40px;
  --font-size-section: 24px;
  --font-size-card: 20px;
  --font-size-hour: 24px;
  --font-size-hour-block: clamp(44px, 12vw, 60px);
  --font-size-display: clamp(40px, 3.4vw + 28px, 84px);
  --font-size-display-section: clamp(32px, 3.2vw + 20px, 60px);
  --control-min-height: 48px

}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #151210;
  --surface: #211c18;
  --raised: #2a241f;
  --field: #1d1916;
  --text: #f5efe7;
  --muted: #b0a79c;
  --faded: #6a6259;
  --line: #857c72;
  --hairline: #37302a;
  --accent: #ff8f52;
  --action: #ff8f52;
  --on-action: #1c1410;
  --action-hover: #ffa573;
  --focus: #f5efe7;
  --selected: #f5efe7;
  --on-selected: #1c1814;
  --on-selected-muted: #5d564e;
  --selected-subtle: #2f2822;
  --success-bg: #173a29;
  --success: #b3e6c4;
  --warning-bg: #46321a;
  --warning: #ffdf9e;
  --error-bg: #4a211c;
  --error: #ffb4a6;
  --bg-transparent: #15121000;
  --elevation: inset 0 0 0 1px #3d352e;
  --elevation-bar: inset 0 0 0 1px #3d352e, 0 10px 24px -8px #0009;
  --elevation-action: 0 1px 2px #0006, 0 6px 16px -4px #00000080;
  --elevation-block: inset 0 0 0 1px #5a5148

}

/* Bloco de destaque (design.md, Bloco de destaque): o elemento redeclara os tokens em si, e o que está dentro se adapta
   sem regra por componente. action e accent continuam os do tema da tela; a forma fica em components/block.css. */
.block {
  --bg: #1c1814;
  --surface: #28221d;
  --raised: #28221d;
  --field: #231e1a;
  --text: #f7f2ea;
  --muted: #bdb5aa;
  --faded: #7a7268;
  --line: #8f877c;
  --hairline: #3a342d;
  --focus: #f7f2ea;
  --selected: #f5efe7;
  --on-selected: #1c1814;
  --on-selected-muted: #5d564e;
  --selected-subtle: #2c2621;
  --success-bg: #173a29;
  --success: #b3e6c4;
  --warning-bg: #46321a;
  --warning: #ffdf9e;
  --error-bg: #4a211c;
  --error: #ffb4a6;
  --bg-transparent: #1c181400;
  --elevation: inset 0 0 0 1px #4a4239;
  --elevation-action: none
}

/* No tema escuro o bloco não inverte para creme: sobe um degrau de superfície; o contorno vem de elevation-block. */
:root[data-theme="dark"] .block {
  --bg: #2b2520;
  --surface: #362f29;
  --raised: #362f29;
  --field: #241f1b;
  --line: #9a9186;
  --hairline: #4a4239;
  --selected-subtle: #3a332c;
  --bg-transparent: #2b252000
}

* {
  box-sizing: border-box;
  scrollbar-color: var(--line) var(--bg);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}

body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--bg);
  color: var(--text);
  font: var(--font-size-body)/1.55 Geist,system-ui,sans-serif;
}

/* Horas e datas em numerais tabulares, para a coluna de horários não dançar (spec #994, Tipografia). */
time {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button,input,select,textarea {
  font: inherit;
}

button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color: transparent;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

dl {
  margin: 0 0 var(--space-6);
}

dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--hairline);
}

/* A última linha não leva divisória (design.md, Divisórias e superfícies). */
dl > div:last-child {
  border-bottom: 0;
}

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

dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,
/* O título da seção legal que recebe o foco pela âncora (#619); com :where fica abaixo da regra do toque, abaixo. */
:where(.legal-page h2[tabindex="-1"]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Foco por toque ou clique não mostra anel (#304): o Safari pinta o padrão em seções, âncoras e resumos tocados.
   A modalidade vem de input_modality.js; com teclado, os anéis acima e os dos componentes continuam. */
html[data-input="pointer"] :focus,
html[data-input="pointer"] .option:has(input:focus) {
  outline: none;
}

::selection {
  /* stylelint-disable-next-line declaration-property-value-disallowed-list -- a seleção de texto do navegador usa o tom de seleção, nunca a ação */
  background: var(--selected-subtle);
  color: var(--text);
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  flex-shrink: 0;
}

p {
  color: var(--muted);
  max-width: 70ch;
}

:where(h1,h2,h3,p) {
  margin-top: 0;
}

/* Ritmo (design.md, Espaçamento): 32 px antes do título de uma seção que vem depois de conteúdo. Com :where, qualquer
   regra de página ou de componente prevalece. */
:where(main) :where(* + h2, * + section:has(> h2:first-child)) {
  margin-top: var(--space-8);
}

h1,h2,h3 {
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* Página e seção em 800; o título de card e o negrito do navegador em 600. Sem esta regra, o bold do navegador (700)
   cairia na face 800. Fica em :where para qualquer componente mudar o peso. */
h1,h2 {
  font-weight: 800;
}

:where(h3, h4, h5, h6, b, strong, th) {
  font-weight: 600;
}

/* Na Geist 800 a 40 px, uma palavra longa como "indisponibilidade?" passa de 288 px, a largura útil a 320 px: só a
   palavra que não cabe na linha quebra, em vez de rolar a página de lado. Sem hifenização automática, que partia
   palavras curtas como "perder" só para encher a linha (P2-2 do PD na #1006). */
h1 {
  overflow-wrap: break-word;
  hyphens: manual;
  margin-bottom: var(--space-6);
  font-size: var(--font-size-page-title);
}

h2 {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-section);
}

h3 {
  font-size: var(--font-size-card);
}

/* Ênfase em texto corrido fica em text, pela regra de um acento só (spec #994): accent como texto não chega a 4,5:1 sobre
   os fundos de tom nem dentro do bloco. Só a ênfase de um título de página, texto grande, leva accent. */
em {
  font-style: normal;
}

h1 em {
  color: var(--accent);
}

small,.help {
  font-size: var(--font-size-support);
  color: var(--muted);
}

/* Linha de destaque, o par de .help: o teste grátis e a comparação do plano na landing e em Assinatura (#279). O destaque
   é o peso, em text (spec #994, um acento só). */
.emphasis {
  color: var(--text);
  font-weight: 600;
}

[hidden] {
  display: none!important;
}

.site-header {
  max-width: 1120px;
  margin: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
}

/* Shells: app (navegação), focused (fluxo com voltar) e public. */

.app {
  max-width: 900px;
  padding: var(--space-8) var(--space-6) 0;
  margin: auto;
}

.app h1 {
  font-size: var(--font-size-page-title);
}

.flow-heading {
  margin: var(--space-8) 0;
}

.flow-heading h1 {
  max-width: 680px;
  margin-bottom: var(--space-4);
}

label {
  display: block;
  margin: var(--space-4) 0 var(--space-2);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

fieldset {
  margin: var(--space-6) 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: var(--space-3);
  padding: 0;
}

input[type="radio"],
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--selected);
}

/* Sem foco, sobe a própria altura e fica inteiro acima da página, em qualquer tamanho de fonte (#619). */
.skip {
  position: absolute;
  top: 0;
  transform: translateY(calc(-100% - 1px));
  left: var(--space-4);
  z-index: 40;
  max-width: calc(100% - 2 * var(--space-4));
  padding: var(--space-3);
  background: var(--action);
  color: var(--on-action);
}

.skip:focus {
  top: var(--space-3);
  transform: none;
}

.no-break {
  white-space: nowrap;
}

/* A barra de progresso do Turbo injeta o próprio estilo (azul #0076ff) antes desta folha; a cor vem de `accent`, nos dois
   temas, e altura e tempo seguem os do Turbo (#600). */
.turbo-progress-bar {
  background: var(--accent);
}

@media (width <= 760px) {
  .shell-app {
    padding-bottom: calc(var(--space-12) + var(--space-8) + env(safe-area-inset-bottom));
  }

  /* O foco e o scrollIntoView param acima da barra de navegação fixa: a folga do fim da página mais o anel de foco. A seta
     da semana, focada depois do Enter, ficava atrás da barra a 320 e 390 px (parecer do PD na #1005, P2-3 e P3-4). */
  html:has(.shell-app) {
    scroll-padding-bottom: calc(var(--space-12) + var(--space-8) + var(--space-2) + env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: 76px;
    padding: var(--space-3) var(--space-4);
  }

  .app {
    padding: var(--space-6) var(--space-4) 0;
  }

  h1,
  .app h1 {
    font-size: var(--font-size-page-title-mobile);
  }

  .flow-heading {
    margin: var(--space-4) 0 var(--space-6);
  }

  dd {
    max-width: 60%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Ícone do Instagram antes do texto nos rodapés (#475): 1em, na cor do link (currentColor, também em forced-colors). */
.instagram-link {
  gap: var(--space-2);
}

.instagram-link svg {
  flex: none;
  width: 1em;
  height: 1em;
}

@media (forced-colors: active) {
  button,
  a.primary,
  a.secondary,
  input,
  textarea,
  select {
    border: 1px solid ButtonText;
  }
}
