/* Outfit (OFL, app/assets/fonts/Outfit-OFL.txt) subsetada em WOFF2 para latim, latim estendido A e pontuação tipográfica. */
@font-face {
  font-family: Outfit;
  src: url("/assets/Outfit-Regular-9fc070e9.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("/assets/Outfit-Bold-625ce451.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #fffbf5;
  --surface: #f2e9df;
  --raised: #fff;
  --text: #32281f;
  --muted: #685442;
  --line: #9a7f65;
  --accent: #93480f;
  --action: #32281f;
  --on-action: #fff8ed;
  --focus: #995018;
  --selected: #483222;
  --selected-subtle: #f8e6d2;
  --field: #fff;
  --success-bg: #e1eee6;
  --success: #215c3b;
  --warning-bg: #fff0d2;
  --warning: #654715;
  --error-bg: #ffe6df;
  --error: #9f2818;
  --bg-transparent: #fffbf500;
  --radius: 12px;
  --radius-field: 8px;
  --radius-surface: 16px;
  --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;
  --elevation: 0 8px 24px #32281f0c;
  --font-size-body: 16px;
  --font-size-support: 14px;
  --font-size-page-title: 40px;
  --font-size-page-title-mobile: 32px;
  --font-size-section: 24px;
  --font-size-card: 20px;
  --control-min-height: 48px

}

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

  --bg: #1c1713;
  --surface: #30251e;
  --raised: #382b22;
  --text: #fff3e5;
  --muted: #d4bba4;
  --line: #ab896d;
  --accent: #ffc38b;
  --action: #f4b577;
  --on-action: #281b10;
  --focus: #ffc38b;
  --selected: #f2dcc6;
  --selected-subtle: #4d3828;
  --field: #241c17;
  --success-bg: #193d2b;
  --success: #b6e7c6;
  --warning-bg: #4a3418;
  --warning: #ffe0a0;
  --error-bg: #4c211b;
  --error: #ffb8a9;
  --bg-transparent: #1c171300;
  --elevation: 0 8px 24px #0002

}

* {
  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 Outfit,sans-serif;
}

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(--line);
}

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 {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::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;
}

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

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

h1 {
  margin-bottom: var(--space-6);
  font-size: var(--font-size-page-title);
}

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

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

em {
  font-style: normal;
  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). */
.emphasis {
  color: var(--accent);
  font-weight: 700;
}

[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);
}

.icon {
  width: var(--control-min-height);
  padding: var(--space-3);
  border-radius: 50%;
}

/* 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);
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 40;
  padding: var(--space-3);
  background: var(--action);
  color: var(--on-action);
}

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

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

@media (width <= 760px) {
  .shell-app {
    padding-bottom: calc(var(--space-12) + var(--space-8) + 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;
  }
}

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