/* Componentes do portal. Classes locais prefixadas w- (spec §4). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal-a30ddcd3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/host-grotesk-latin-600-normal-91897e9f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--woba-color-background-default);
  color: var(--woba-color-content-default);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

::selection {
  background: var(--woba-color-surface-accent-primary);
  color: var(--woba-color-content-accent-primary);
}

.w-shell {
  width: 100%;
  max-width: 416px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.w-logo {
  display: block;
  width: 66px;
  height: 20px;
  color: var(--woba-color-content-default);
}

.w-overline {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--woba-color-content-subtle);
}

.w-h1 {
  margin: 16px 0 0;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0;
}

.w-h1--display {
  font-family: "Noticia Text", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  line-height: 28px;
}

.w-state + .w-h1 { margin-top: 16px; }

.w-h2 {
  margin: 0;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
}

.w-lead {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--woba-color-content-subtle);
}

.w-caption,
.w-footer p,
.w-alert__support {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--woba-color-content-subtle);
}

.w-code {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
}

.w-footer { margin-top: 32px; }
.w-footer p { margin: 0; }
.w-footer p + p { margin-top: 4px; }
.w-footer .w-sofia { margin-top: 0; }
.w-footer .w-sofia + p { margin-top: 16px; }

.w-sofia {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(var(--woba-color-surface-intelligence-01-subtle), var(--woba-color-surface-intelligence-01-subtle)) padding-box,
    conic-gradient(from 210deg, var(--woba-color-stroke-intelligence-03-selected) 0 5%, var(--woba-color-stroke-intelligence-01-selected) 90%, var(--woba-color-stroke-intelligence-02-selected) 100%) border-box;
}

.w-sofia__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-sofia__icon {
  display: flex;
  flex: none;
  color: var(--woba-color-content-intelligence-01);
}

.w-sofia__badge {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--woba-color-surface-default);
  color: var(--woba-color-content-subtle);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
}

.w-sofia__title {
  margin: 12px 0 0;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: var(--woba-color-content-default);
}

.w-sofia__desc {
  margin: 4px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-subtle);
}

a.w-sofia__cta {
  margin-top: 16px;
  background: var(--woba-color-surface-default);
  color: var(--woba-color-content-default);
  border: 1px solid var(--woba-color-stroke-intelligence-01-selected);
}

button.w-sofia__cta:disabled {
  margin-top: 16px;
  border: 1px solid var(--woba-color-stroke-common-disabled);
}

.w-sofia--compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--woba-color-content-subtle);
}

.w-sofia--compact .w-sofia__icon {
  width: 20px;
  height: 20px;
}

.w-sofia--compact .w-sofia__title,
.w-sofia--compact .w-sofia__compact-link {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-subtle);
}

.w-sofia--compact .w-sofia__compact-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.w-sofia--compact .w-sofia__badge {
  flex: none;
  background: var(--woba-color-surface-subtle);
}

.w-form { margin-top: 16px; }

.w-field + .w-field { margin-top: 16px; }

.w-label {
  display: block;
  margin: 0 0 4px;
  padding: 2px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  color: var(--woba-color-content-default);
}

.w-field__control { position: relative; }

.w-input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--portal-field-stroke);
  border-radius: 999px;
  background: var(--woba-color-surface-default);
  color: var(--woba-color-content-default);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  -webkit-appearance: none;
  appearance: none;
}

.w-input::placeholder { color: var(--woba-color-content-subtle); }

.w-input:focus {
  outline: 2px solid transparent;
  border-color: var(--woba-color-stroke-common-active);
  box-shadow: 0 0 0 1px var(--woba-color-elevation-focus-ring-01), 0 0 0 3px var(--woba-color-elevation-focus-ring-02);
}

.w-input:disabled {
  background: var(--woba-color-surface-common-disabled);
  color: var(--woba-color-content-common-disabled);
}

.w-input[readonly] { background: var(--woba-color-surface-common-disabled); }

.w-input:-webkit-autofill {
  -webkit-text-fill-color: var(--woba-color-content-default);
  box-shadow: 0 0 0 1000px var(--woba-color-surface-default) inset;
}

.w-field--invalid .w-input {
  border-color: var(--woba-color-stroke-feedback-critical);
  padding-right: 44px;
}

.w-field--reveal .w-input { padding-right: 108px; }
.w-field--reveal.w-field--invalid .w-input { padding-right: 140px; }

.w-field__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  color: var(--woba-color-content-feedback-critical);
  pointer-events: none;
}

.w-field--reveal .w-field__icon { right: 104px; }

.w-field__error {
  margin: 8px 0 0;
  padding: 0 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-feedback-critical);
}

.w-reveal {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--woba-color-content-default);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
}

.w-reveal { display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.w-reveal[hidden] { display: none; }
.w-reveal svg[hidden] { display: none; }
.w-subtitle { margin: 4px 0 12px; }

.w-privacy { margin-top: 12px; }

.w-privacy__line {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.w-privacy__summary {
  display: inline;
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-subtle);
}

.w-bullets {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-default);
}

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

.w-check-wrap { margin-top: 4px; }

.w-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 2px 0;
  cursor: pointer;
}

.w-check__input {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  appearance: none;
}

.w-check__box {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 1px solid var(--portal-field-stroke);
  border-radius: 8px;
  background: var(--woba-color-surface-default);
  color: var(--woba-color-content-common-selected);
}

.w-check__box svg { opacity: 0; }

.w-check__input:checked + .w-check__box {
  background: var(--woba-color-surface-common-selected);
  border-color: var(--woba-color-surface-common-selected);
}

.w-check__input:checked + .w-check__box svg { opacity: 1; }

.w-check__input:focus-visible + .w-check__box {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--woba-color-elevation-focus-ring-01), 0 0 0 3px var(--woba-color-elevation-focus-ring-02);
}

.w-check--invalid .w-check__box { border-color: var(--woba-color-surface-feedback-critical); }

.w-check__text {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-default);
}

.w-details { display: inline; }
.w-details[open] { display: block; margin-top: 8px; }

.w-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin-left: 6px;
  padding: 2px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-default);
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style: none;
}

.w-summary::-webkit-details-marker { display: none; }
.w-summary::marker { content: ""; }

.w-chevron {
  flex: none;
  /* fallback: not in DS — motion */
  transition: transform 120ms ease;
}

details[open] .w-chevron { transform: rotate(90deg); }

.w-prose p {
  margin: 12px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.w-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--woba-color-stroke-default);
  border-radius: 24px;
}

.w-privacy .w-alert { margin-top: 16px; }

.w-alert__icon {
  flex: none;
  width: 20px;
  height: 20px;
  display: flex;
}

.w-alert__title {
  margin: 0;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
}

.w-alert__desc {
  margin: 4px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-subtle);
}

.w-alert--critical {
  background: var(--woba-color-surface-feedback-critical-subtle);
  color: var(--woba-color-content-feedback-critical);
}

.w-alert--warning {
  background: var(--woba-color-surface-feedback-warning-subtle);
  color: var(--woba-color-content-feedback-warning);
}

.w-alert--info {
  background: var(--woba-color-surface-feedback-info-subtle);
  color: var(--woba-color-content-feedback-info);
}

.w-alert--success {
  background: var(--woba-color-surface-feedback-success-subtle);
  color: var(--woba-color-content-feedback-success);
}

.w-alert--secondary {
  background: var(--woba-color-surface-accent-secondary);
  color: var(--woba-color-content-default);
}

.w-alert--intelligence {
  background:
    linear-gradient(var(--woba-color-surface-default), var(--woba-color-surface-default)) padding-box,
    conic-gradient(from 210deg, var(--woba-color-stroke-intelligence-03-selected) 0 5%, var(--woba-color-stroke-intelligence-01-selected) 90%, var(--woba-color-stroke-intelligence-02-selected) 100%) border-box;
  border: 1px solid transparent;
  color: var(--woba-color-content-intelligence-01);
}

.w-alert__action { margin: 12px 0 0; }

.w-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
}

.w-submit { margin-top: 8px; }

.w-sso { margin-top: 16px; }

.w-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--woba-color-content-subtle);
}

.w-divider::before,
.w-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--woba-color-stroke-default);
}

.w-btn--primary {
  background: var(--woba-color-surface-accent-primary);
  color: var(--woba-color-content-accent-primary);
  position: relative;
}

.w-btn--tertiary {
  background: transparent;
  color: var(--woba-color-content-default);
  border: 1px solid var(--woba-color-stroke-default);
}

.w-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
}

/* fallback: not in DS — motion */
.w-btn,
.w-input,
.w-check__box,
.w-reveal,
.w-link,
.w-summary {
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

@media (hover: hover) {
  .w-btn--primary:hover::before { background: var(--woba-color-surface-common-hover); }
  .w-btn--primary:hover {
    box-shadow: 0 0 1px 0 var(--woba-color-elevation-shadow-hover-02), 0 1px 1px 0 var(--woba-color-elevation-shadow-hover-01);
  }
  .w-btn--tertiary:hover::before,
  .w-btn--tertiary:hover { background: var(--woba-color-surface-common-hover); }
  a.w-sofia__cta:hover { background: var(--woba-color-surface-common-hover); }
  .w-input:hover { border-color: var(--woba-color-content-subtle); }
  .w-summary:hover { opacity: .8; }
  .w-sofia__compact-link:hover { opacity: .8; }
}

.w-btn--primary:active::before { background: var(--woba-color-surface-common-pressed); }
.w-btn--tertiary:active { background: var(--woba-color-surface-common-pressed); }

.w-btn:focus-visible,
.w-reveal:focus-visible,
.w-link:focus-visible,
.w-summary:focus-visible,
.w-sofia__compact-link:focus-visible,
a.w-sofia__cta:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--woba-color-elevation-focus-ring-01), 0 0 0 3px var(--woba-color-elevation-focus-ring-02);
}

.w-btn.is-loading {
  background: var(--woba-color-surface-common-loading);
  color: var(--woba-color-content-subtle);
  pointer-events: none;
}

.w-btn.is-loading::before { background: transparent; }

.w-btn:disabled {
  background: var(--woba-color-surface-common-disabled);
  color: var(--woba-color-content-common-disabled);
  cursor: not-allowed;
}

.w-progress {
  margin: 12px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-subtle);
}

.w-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.w-actions .w-caption { margin: 0; text-align: center; }

.w-state {
  width: 64px;
  height: 64px;
  margin-top: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.w-state svg { width: 32px; height: 32px; }

.w-state--success {
  background: var(--woba-color-surface-feedback-success-subtle);
  color: var(--woba-color-content-feedback-success);
}

.w-state--critical {
  background: var(--woba-color-surface-feedback-critical-subtle);
  color: var(--woba-color-content-feedback-critical);
}

.w-next {
  margin-top: 24px;
  padding: 16px;
  border-radius: 24px;
  background: var(--woba-color-surface-subtle);
}

.w-next .w-bullets { margin-top: 12px; }

.w-link {
  color: var(--woba-color-content-default);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  text-decoration: none;
  border-radius: 8px;
}

.w-link:hover { opacity: .8; text-decoration: underline; }
.w-link:active { opacity: .64; }

.w-link--inline,
.w-prose a {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--woba-color-content-default);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.w-link--inline:hover,
.w-prose a:hover { opacity: .8; }

.w-link--inline:active,
.w-prose a:active { opacity: .64; }

.w-index {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.w-index a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.w-spinner {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
  color: var(--woba-color-content-subtle);
  /* fallback: not in DS — motion; 12 passos como o Spinner do DS */
  animation: w-spin 1s steps(12) infinite;
}

.w-spinner span {
  position: absolute;
  left: 9px;
  top: 1px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: 1px 9px;
}

.w-spinner span:nth-child(1) { opacity: 1; transform: rotate(0deg); }
.w-spinner span:nth-child(2) { opacity: .92; transform: rotate(30deg); }
.w-spinner span:nth-child(3) { opacity: .84; transform: rotate(60deg); }
.w-spinner span:nth-child(4) { opacity: .75; transform: rotate(90deg); }
.w-spinner span:nth-child(5) { opacity: .67; transform: rotate(120deg); }
.w-spinner span:nth-child(6) { opacity: .58; transform: rotate(150deg); }
.w-spinner span:nth-child(7) { opacity: .5; transform: rotate(180deg); }
.w-spinner span:nth-child(8) { opacity: .42; transform: rotate(210deg); }
.w-spinner span:nth-child(9) { opacity: .33; transform: rotate(240deg); }
.w-spinner span:nth-child(10) { opacity: .25; transform: rotate(270deg); }
.w-spinner span:nth-child(11) { opacity: .17; transform: rotate(300deg); }
.w-spinner span:nth-child(12) { opacity: .1; transform: rotate(330deg); }

@keyframes w-spin { to { transform: rotate(360deg); } }

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

.w-brand__bar,
.w-brand__body { display: none; }

.w-brand__place {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--woba-color-surface-accent-primary);
  color: var(--woba-color-content-accent-primary);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.w-brand__title {
  margin: 0;
  max-width: 16ch;
  font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
}

.w-brand__lead {
  margin: 12px 0 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 24px;
  color: var(--woba-color-content-subtle);
}

.w-brand .w-sofia { margin-top: 32px; }

.w-stage__inner { width: 100%; }

/* fallback: not in DS — breakpoint (o DS novo não publica breakpoints).
   Até 879px o portal continua em uma coluna. A partir de 880px (notebook
   e a janela do CNA do macOS, ~900px) vira duas colunas em tela cheia. */
@media (min-width: 480px) and (max-width: 879px) {
  body { background: var(--woba-color-background-subtle); }
  .w-shell {
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 32px;
    background: var(--woba-color-surface-default);
    border: 1px solid var(--woba-color-stroke-default);
    border-radius: 24px;
  }
}

@media (min-width: 880px) {
  body { background: var(--woba-color-background-subtle); }
  .w-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .w-brand {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 40px 48px 32px;
    background: var(--woba-color-surface-accent-secondary-subtle);
  }
  .w-brand__bar {
    display: block;
    height: 8px;
    margin: -40px -48px 32px;
    background: var(--woba-color-surface-accent-primary);
  }
  .w-brand__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 32px;
  }
  .w-logo { width: 92px; height: auto; }
  .w-brand .w-sofia { margin-top: auto; }
  .w-stage {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 56px;
    background: var(--woba-color-surface-default);
  }
  .w-stage__inner { max-width: 480px; }
  .w-stage .w-sofia { display: none; }
  /* O alvo de 44px fica num pseudo-elemento: a frase continua em 14/20. */
  .w-summary {
    position: relative;
    min-height: 0;
    padding: 0;
    line-height: 20px;
  }
  .w-summary::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    /* 44px no total, folga para cima: não cobre o checkbox logo abaixo. */
    top: -20px;
    bottom: -4px;
  }
  .w-h1 { font-size: 32px; line-height: 36px; }
  .w-h1--display { font-size: 40px; line-height: 44px; }
}

@media (min-width: 880px) and (max-height: 700px) {
  .w-brand { padding: 20px 32px 16px; }
  .w-brand__bar { margin: -20px -32px 16px; }
  .w-brand__title { font-size: 24px; line-height: 28px; }
  .w-brand__lead { margin-top: 8px; }
  .w-brand .w-sofia { margin-top: 16px; padding: 16px; }
  .w-stage { padding: 16px 32px; }
  .w-h1 { margin-top: 0; font-size: 24px; line-height: 28px; }
  .w-h1--display { font-size: 32px; line-height: 36px; }
}

/* Telas altas (1366×768, 1440×900 e acima): marca, título, texto e Sofia
   num bloco centrado, alinhado ao formulário. A faixa amarela fica no topo.
   A janela do CNA (altura ≤ 700px) não entra aqui. */
@media (min-width: 880px) and (min-height: 760px) {
  .w-brand { position: relative; justify-content: center; }
  .w-brand__bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: 0;
  }
  .w-brand__body { flex: 0 1 auto; }
  .w-brand .w-sofia { margin-top: 32px; }
}

@media (max-width: 340px) {
  .w-shell { padding-left: 16px; padding-right: 16px; }
  .w-h1 { font-size: 20px; line-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .w-btn,
  .w-input,
  .w-check__box,
  .w-alert,
  .w-sofia {
    border: 1px solid ButtonText;
  }
  .w-btn:focus-visible,
  .w-input:focus,
  .w-reveal:focus-visible,
  .w-link:focus-visible,
  .w-summary:focus-visible,
  .w-check__input:focus-visible + .w-check__box {
    outline: 2px solid Highlight;
  }
}

.w-sofia-chat__log { max-height: 220px; overflow-y: auto; margin: 8px 0; }
.w-sofia-chat__msg { margin: 4px 0; font-size: 14px; }
.w-sofia-chat__msg--assistant { font-weight: 600; }
.w-sofia-chat__form { display: flex; gap: 8px; align-items: stretch; }
.w-sofia-chat__form .w-input { flex: 1 1 auto; min-width: 0; width: auto; }
.w-sofia-chat__form .w-btn { flex: 0 0 auto; width: auto; padding-left: 16px; padding-right: 16px; }
.w-sofia-chat, .w-more { margin-top: 12px; }
/* Links secundários ("Ver detalhes", "Falar com a Sofia") ficam com a introdução:
   no celular sob o cabeçalho, acima do formulário; no desktop na coluna da esquerda. */
.w-brand__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 16px 0 24px; }
.w-brand__links .w-details[open] { align-self: stretch; }
.w-brand__links .w-sofia-chat, .w-brand__links .w-more { margin-top: 0; }
.w-signup { margin: 24px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--woba-color-content-subtle); }
@media (min-width: 880px) {
  .w-brand__links { margin: 24px 0 0; max-width: 420px; }
}
.w-more .w-prose { margin-top: 8px; }
