/*
  MEU SDR IMOB: o visual do APP (painel do corretor e landing), pronto para HTML estático.
  Versão 2.0, 19/11/2026: marca nova (creme, mostarda e petróleo). Regras e exemplos: marca/DESIGN-SYSTEM-APP.md.
  Fonte de verdade das cores: docs/planejamento/marca-v2/tokens-v2.json (107 variáveis por tema, contraste
  medido em 162 pares, zero falhas). Os valores abaixo são os de lá; mudou lá, mude aqui.

  Regra-mãe: creme, borda fina, um petróleo, mostarda rara.
    - Petróleo (--primary) é a única cor de ação: botão, link, ícone de ação, eyebrow, item ativo, etapa atual
      e foco. Hover em cor sólida (--primary-hover, o petróleo escuro), nunca transparência.
    - Mostarda só como preenchimento (--highlight: placa, selo Novo/Beta, barra de destaque), com texto noite
      por cima (--highlight-foreground, 7,50:1). Nunca letra mostarda sobre fundo claro (1,72:1). Letra em
      mostarda no claro usa --highlight-ink (a queimada #A87A16) e só em tamanho grande (24px, ou 18,66px em
      negrito). Mostarda nunca indica estado.
    - Verde só para sucesso. Aviso em âmbar puxado para o laranja (--warning*), diferente da mostarda.
      Estado vem sempre com ícone e palavra, nunca só pela cor.
    - Foco igual em todo o app: outline 3px solid var(--focus), 3px afastado. Campo: borda --ring + --focus-shadow.
    - Desabilitado por --disabled-bg e --disabled-foreground, nunca por opacity.

  Temas: claro em :root (padrão). Escuro em .dark (o painel liga pela classe, via @custom-variant dark) ou
  [data-theme="dark"] (HTML estático). No escuro só mudam cores e sombras; tipo, espaço, raio e medidas ficam.
  No escuro a ação vira petróleo claro (#8FCADA) com texto noite, porque o petróleo de marca sobre a noite dá 2,30:1.

  Fontes, todas locais em fontes/ (woff2, licença OFL ao lado em *-LICENSE.txt). Sem Google Fonts: a CSP do
  site (site/_headers) só libera fonte do próprio site.
    Inter Variable  --font-ui       texto e interface (app e corpo da landing), pesos 400 a 600.
    Archivo         --font-display  só título de marketing (landing, abertura do teste grátis, peças), sempre com
                                    font-stretch: var(--font-display-stretch) (125%, a "Archivo larga") e peso
                                    700 a 800. Dentro do painel do corretor o título continua em Inter (máx. 600).
    Caveat          --font-hand     toque humano: no máximo uma palavra por peça, sempre em --highlight-ink.

  Cópia: site/assets/app-tokens.css é cópia idêntica deste arquivo (os url() de fonte são relativos a fontes/,
  que existe nos dois lugares). Mudou aqui, copie de novo. O painel tem o equivalente em painel/src/imob/imob.css
  e painel/src/index.css, migrados à parte.

  Não depende de Tailwind nem de React. Os nomes das variáveis são os mesmos do app
  (--primary, --border, --muted-foreground...), então um trecho copiado do painel funciona aqui.
  Não colide com marca/tokens.css (que usa --p-*, --cor-*, --texto-*): dá para carregar os dois.

  Uso: <body class="app"> (ou qualquer contêiner com class="app"). Tema escuro: <html class="dark">
  ou <html data-theme="dark">.
*/

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fontes/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fontes/inter-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
/* Archivo variável (eixos wght 100-900 e wdth 62-125%): a mesma do SDR do logo. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fontes/archivo-var.woff2") format("woff2");
}
/* Caveat variável (wght 400-700), só latin e latin-ext. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fontes/caveat-var.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* ===== Cor: superfícies (creme leve no fundo, creme de marca na lateral, branco quente no cartão) ===== */
  --background: #FAF6EF;   /* fundo da página: creme leve, um passo mais claro que o creme de marca */
  --surface: #FFFEFA;      /* cartão, topo, campo, painel: branco quente */
  --card: #FFFEFA;         /* igual a surface */
  --subtle: #F2EEE3;       /* linha em hover, esqueleto, fundo do chat, selo neutro */
  --muted: #EFEBDF;        /* bloco de resultado (calculadora) */
  --secondary: #ECE6D7;    /* botão secundário */
  --accent: #DCEAEC;       /* hover de botão, opção marcada, quadrado de ícone: petróleo bem claro */
  --sidebar: #F5F1E6;      /* barra lateral: o creme de marca exato */
  --story: #F3E5C5;        /* metade da tela de entrar: creme puxado para a mostarda */

  /* ===== Cor: texto ===== */
  --foreground: #132C33;             /* texto e título: noite */
  --muted-foreground: #42565C;       /* texto de apoio, legenda, placeholder (6,20 a 7,65:1) */
  --text-soft: #34494F;              /* subtítulo de página */
  --nav-foreground: #384D54;         /* item de menu parado */
  --accent-foreground: #1D454F;      /* texto sobre accent: petróleo escuro */
  --tag-foreground: #34494F;         /* texto do selo neutro (.tag) */
  --nav-label: #42565C;              /* rótulo de grupo do menu */
  --story-foreground: #1D454F;       /* título da tela de entrar */
  --story-foreground-soft: #34494F;  /* parágrafo da tela de entrar */

  /* ===== Cor: borda ===== */
  --border: #D8D0BE;                  /* cartão, divisória, topo (decorativa) */
  --border-strong: #687C82;           /* borda que carrega sentido: checkbox, rádio, campo (3,51 a 4,34:1) */
  --input: #687C82;                   /* borda de campo, igual a border-strong */
  --ring: #2C6777;                    /* borda do campo em foco */
  --focus: #2C6777;                   /* contorno de foco: 3px sólido, 3px afastado */
  --focus-shadow: 0 0 0 2px #2C6777;  /* anel do campo em foco: 2px sólidos + 1px de borda = 3px */
  --story-border: #E0CF9F;            /* linha entre as duas metades da tela de entrar (decorativa) */

  /* ===== Cor: ação (o único petróleo forte da tela) ===== */
  --primary: #2C6777;             /* petróleo: botão, link, ícone, eyebrow, opção marcada, etapa atual */
  --primary-hover: #1D454F;       /* hover do botão em cor sólida: petróleo escuro */
  --primary-foreground: #FFFEFA;  /* texto sobre primary */
  --primary-soft: #D9E9EC;        /* selo do logo, etapa feita, ícone redondo */

  /* ===== Cor: menu ===== */
  --nav-hover: #ECE6D5;               /* hover do item de menu */
  --nav-active: #D4E6EA;              /* fundo do item ativo */
  --nav-active-foreground: #1D454F;   /* texto do item ativo (8,08:1) */

  /* ===== Cor: destaque de marca (mostarda, só preenchimento) ===== */
  --highlight: #E8B13A;             /* placa, selo Novo/Beta, CTA social, barra de destaque */
  --highlight-foreground: #132C33;  /* texto sobre a mostarda: noite (7,50:1) */
  --highlight-soft: #FCEBAE;        /* fundo suave de destaque (selo Novo); diferente do fundo de aviso */
  --highlight-ink: #A87A16;         /* mostarda como LETRA: no claro é a queimada e só em tamanho grande */

  /* ===== Cor: estados (sempre com ícone e palavra) ===== */
  --success: #2A6630;                 /* sucesso: verde-folha, longe do petróleo */
  --success-soft: #E5F2DC;
  --success-border: #ADCF9C;
  --warning: #7A400E;                 /* texto de aviso: âmbar queimado puxado para o laranja */
  --warning-soft: #FFE7CE;            /* fundo de aviso: damasco, não amarelo */
  --warning-border: #F0AD7F;
  --warning-icon: #B5601C;            /* triângulo do aviso */
  --destructive: #AC312C;             /* erro, perdido, botão de excluir */
  --destructive-foreground: #FFFEFA;  /* texto do botão de perigo */
  --danger-soft: #FFEDED;
  --danger-border: #EEB3B1;
  --notice: #1D454F;                  /* aviso informativo: agora petróleo (o verde ficou só para sucesso) */
  --notice-soft: #E4F1F4;
  --notice-border: #B2CDD2;

  /* ===== Cor: desabilitado (no lugar de opacity) ===== */
  --disabled-bg: #E3E9EB;
  --disabled-foreground: #5C6568;   /* 4,86:1: legível de propósito; o estado aparece pelo fundo e pelo cursor */

  /* ===== Cor: marca fixa (não muda com o tema) ===== */
  --brand-cream: #F5F1E6;
  --brand-mustard: #E8B13A;
  --brand-mustard-deep: #A87A16;   /* mostarda queimada: o "meu" do logo no claro */
  --brand-petrol: #2C6777;
  --brand-petrol-dark: #1D454F;
  --brand-night: #132C33;

  /* ===== Tipografia (uma escala só; módulo escolhe papel, não cria tamanho) ===== */
  --font-ui: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Inter Variable", "Arial Black", system-ui, sans-serif; /* só título de marketing */
  --font-display-stretch: 125%;  /* eixo wdth do Archivo: Expanded, a "Archivo larga" */
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; /* uma palavra por peça, em --highlight-ink */
  --font-code: ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-caption: 0.75rem;    /* 12 legenda, eyebrow, selo, texto de apoio (nunca em texto de ação) */
  --text-body: 0.875rem;      /* 14 corpo, botão, item de menu */
  --text-control: 1rem;       /* 16 campo no celular, texto de abertura, h3 */
  --text-subheading: 1.25rem; /* 20 h2, título de cartão */
  --text-heading: 1.75rem;    /* 28 h1 de página, número de métrica */
  --text-display: 2.5rem;     /* 40 título de abertura (teste grátis); 32 no celular */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;     /* peso máximo do app; o display de marketing (Archivo) vai a 700-800 */
  --leading-body: 1.5;
  --leading-heading: 1.2;
  --leading-display: 1.08;
  --tracking-heading: -0.9px;  /* h1 */
  --tracking-display: -1.8px;  /* título de abertura em Inter; em Archivo larga usar 0 a -0.5px */
  --tracking-eyebrow: 1.8px;   /* eyebrow em caixa alta */
  --control-font-size: var(--text-body);

  /* ===== Espaço (o app usa px soltos; estes são os degraus que se repetem) ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 56px;

  /* ===== Raio ===== */
  --radius: 0.6rem;          /* 9.6px base do shadcn no app */
  --radius-sm: 5px;          /* selo (.tag) */
  --radius-control: 7.6px;   /* botão e campo (rounded-md = radius - 2px) */
  --radius-card: 10px;       /* cartão, aviso de página, lista */
  --radius-card-lg: 12px;    /* cartão de calculadora, ícone de seção */
  --radius-panel: 15px;      /* painel central do teste grátis */
  --radius-pill: 999px;

  /* ===== Sombra (quase não existe: cartão usa borda), com tinta noite ===== */
  --shadow-card: 0 3px 16px rgb(19 44 51 / 6%);     /* cartão de calculadora e plano */
  --shadow-panel: 0 10px 34px rgb(29 69 79 / 5%);   /* painel do teste grátis */
  --shadow-float: 0 8px 20px rgb(19 44 51 / 15%);   /* menu e balão que flutua */
  --shadow-phone: 0 14px 50px rgb(19 44 51 / 7%);   /* moldura do chat */

  /* ===== Medidas de componente ===== */
  --sidebar-width: 212px;     /* no computador; abaixo de 701px a lateral some e o app usa barra de baixo */
  --topbar-height: 73px;
  --content-max: 1500px;
  --button-height: 38px;      /* no celular, botão de ação principal com no mínimo 44px */
  --button-height-sm: 34px;   /* só no computador */
  --button-height-lg: 46px;   /* CTA e botão principal no celular */
  --input-height: 42px;
  --duration: 160ms;
}

/* ===== Tema escuro: base noite e petróleo escuro. Só cores e sombras mudam. ===== */
.dark,
[data-theme="dark"] {
  color-scheme: dark;

  /* superfícies */
  --background: #0C1E23;   /* um passo abaixo da noite (petróleo 950) */
  --surface: #132C33;      /* a noite exata da marca */
  --card: #132C33;
  --subtle: #17343C;
  --muted: #193840;
  --secondary: #1A3B44;
  --accent: #1D454F;       /* petróleo escuro */
  --sidebar: #0F252B;
  --story: #1D454F;

  /* texto */
  --foreground: #F5F1E6;   /* creme */
  --muted-foreground: #BDC8C9;
  --text-soft: #CDD8D9;
  --nav-foreground: #C4CFD0;
  --accent-foreground: #F5F1E6;
  --tag-foreground: #CDD8D9;
  --nav-label: #BDC8C9;
  --story-foreground: #F5F1E6;
  --story-foreground-soft: #CDD8D9;

  /* borda */
  --border: #2A505A;
  --border-strong: #6B8D96;
  --input: #6B8D96;
  --ring: #8FCADA;
  --focus: #8FCADA;
  --focus-shadow: 0 0 0 2px #8FCADA;
  --story-border: #2C535E;

  /* ação: petróleo claro com texto noite (9,48:1) */
  --primary: #8FCADA;
  --primary-hover: #B3DDE8;
  --primary-foreground: #0C1E23;
  --primary-soft: #1D454F;

  /* menu */
  --nav-hover: #183740;
  --nav-active: #1D454F;
  --nav-active-foreground: #F5F1E6;

  /* destaque: no escuro a mostarda cheia serve de letra em qualquer tamanho */
  --highlight-soft: #3F350A;
  --highlight-ink: #E8B13A;

  /* estados */
  --success: #A8E6A1;
  --success-soft: #163420;
  --success-border: #2F6338;
  --warning: #FFBE98;
  --warning-soft: #391F05;
  --warning-border: #834F24;
  --warning-icon: #FFB07F;
  --destructive: #FF7B73;              /* salmão */
  --destructive-foreground: #0C1E23;   /* botão de perigo com texto noite (6,79:1) */
  --danger-soft: #422426;
  --danger-border: #873E3E;
  --notice: #BFE0E8;
  --notice-soft: #173A43;
  --notice-border: #3A6B78;

  /* desabilitado: cinza neutro, para não parecer o botão secundário */
  --disabled-bg: #2B3232;
  --disabled-foreground: #9AAAA8;

  /* sombra preta */
  --shadow-card: 0 3px 16px rgb(0 0 0 / 30%);
  --shadow-panel: 0 10px 34px rgb(0 0 0 / 30%);
  --shadow-float: 0 8px 20px rgb(0 0 0 / 45%);
  --shadow-phone: 0 14px 50px rgb(0 0 0 / 35%);
}

@media (max-width: 768px) {
  :root {
    --control-font-size: var(--text-control); /* 16px no celular: o iPhone não dá zoom no campo */
    --text-display: 2rem;
  }
}

/* ============================== Base ============================== */
.app, .app *, .app *::before, .app *::after { box-sizing: border-box; }
.app {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
.app :is(h1, h2, h3, p) { margin: 0; overflow-wrap: anywhere; }
.app h1 { font-size: var(--text-heading); line-height: var(--leading-heading); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); }
.app h2 { font-size: var(--text-subheading); line-height: 1.4; font-weight: var(--weight-semibold); letter-spacing: -0.3px; }
.app h3 { font-size: var(--text-control); font-weight: var(--weight-semibold); }
.app :is(strong, b) { font-weight: var(--weight-semibold); }
.app small { font-size: var(--text-caption); }
.app :where(a) { color: inherit; text-decoration: none; } /* :where zera a especificidade: .btn-primary ganha */
.app :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.app img, .app svg { display: block; max-width: 100%; }

/* Título de abertura (o h1 grande do teste grátis) */
.app .display { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); font-weight: var(--weight-semibold); }
/* Texto de abertura logo abaixo do display */
.app .lead { color: var(--muted-foreground); font-size: var(--text-control); max-width: 54ch; }
.app .muted { color: var(--muted-foreground); font-size: var(--text-caption); }
/* Eyebrow: rótulo em petróleo, caixa alta, acima do título */
.app .eyebrow { color: var(--primary); font-size: var(--text-caption); line-height: 1.5; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }

/* Título de marketing em Archivo larga (landing, abertura do teste grátis). Nunca dentro do painel do corretor. */
/* .app .display-brand: vence o .app h1 (peso 600); sem isso o título em Archivo sai magro. */
.display-brand, .app .display-brand { font-family: var(--font-display); font-stretch: var(--font-display-stretch); font-weight: 800; letter-spacing: -0.5px; line-height: 1.04; }
/* Toque humano em Caveat: no máximo uma palavra por peça, sempre em mostarda (queimada no claro, e só em tamanho grande). */
.hand { font-family: var(--font-hand); font-weight: 700; color: var(--highlight-ink); letter-spacing: 0; }

/* Ícone Lucide colado como SVG: viewBox 0 0 24 24, traço 2, cantos redondos. 16px é o padrão. */
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 14px; height: 14px; }
.ico-md { width: 18px; height: 18px; }
.ico-lg { width: 22px; height: 22px; }
.ico-xl { width: 25px; height: 25px; }

/* ============================== Marca (o logo do app) ============================== */
/* O logo é o SVG de marca/logo, sempre inteiro (meu-sdr-imob-claro.svg no claro, -escuro.svg no escuro):
   nunca montado com texto, nunca desmontado. O .wordmark abaixo é o arranjo antigo em texto
   (ícone + "MEU SDR" / "IMOB"), mantido só até cada tela trocar pelo SVG. */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.wordmark > span { font-size: var(--text-control); font-weight: var(--weight-semibold); line-height: 1; letter-spacing: -0.6px; }
.wordmark small { display: block; margin-top: 5px; font-size: var(--text-caption); letter-spacing: 4px; font-weight: var(--weight-semibold); }
/* Versão do teste grátis: ícone dentro de um quadrado petróleo-claro */
.brand-chip { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }

/* ============================== Botões ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--button-height); padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-family: var(--font-ui); font-size: var(--text-body); font-weight: var(--weight-medium); line-height: 1.2;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration), border-color var(--duration), color var(--duration);
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-secondary { background: var(--secondary); color: var(--foreground); }
.btn-secondary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-link { background: none; color: var(--primary); padding: 0; min-height: 0; font-weight: var(--weight-semibold); }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { background: var(--destructive); color: var(--destructive-foreground); }
/* Desabilitado: fundo cinza, texto legível, sem hover, cursor proibido. Nunca opacity. */
.btn:is(:disabled, [aria-disabled="true"]),
.btn:is(:disabled, [aria-disabled="true"]):hover { background: var(--disabled-bg); color: var(--disabled-foreground); border-color: var(--disabled-bg); text-decoration: none; cursor: not-allowed; }
a.btn[aria-disabled="true"] { pointer-events: none; }
.btn-sm { min-height: var(--button-height-sm); padding: 0 12px; gap: 6px; }
.btn-lg { min-height: var(--button-height-lg); padding: 0 20px; }
.btn-block { width: 100%; }

/* ============================== Campos ============================== */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.field > label { font-size: var(--text-body); font-weight: var(--weight-medium); }
.field small { color: var(--muted-foreground); font-size: var(--text-caption); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; min-width: 0; min-height: var(--input-height); padding: 8px 12px;
  border: 1px solid var(--input); border-radius: var(--radius-control);
  background: var(--surface); color: var(--foreground);
  font-family: var(--font-ui); font-size: var(--control-font-size); font-weight: var(--weight-regular); line-height: var(--leading-body);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.select { padding-right: 30px; }
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--focus-shadow); }
.input[aria-invalid="true"] { border-color: var(--destructive); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--disabled-bg); color: var(--disabled-foreground); border-color: var(--border); cursor: not-allowed; }
.fields-2 { display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields-3 { display: grid; gap: 0 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .fields-2, .fields-3 { grid-template-columns: 1fr; } }
/* Opção grande clicável (rádio ou caixa), como no teste grátis */
.option { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.option:has(input:checked) { border-color: var(--primary); background: var(--accent); }
.option input { margin-top: 5px; accent-color: var(--primary); }
.option span { display: grid; gap: 3px; }
.option small { color: var(--muted-foreground); }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--muted-foreground); font-size: var(--text-caption); }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ============================== Selos ============================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; width: fit-content;
  padding: 3px 7px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--subtle); color: var(--tag-foreground);
  font-size: var(--text-caption); font-weight: var(--weight-medium); line-height: 1.4;
}
.tag-success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.tag-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); }
.tag-danger { background: var(--danger-soft); color: var(--destructive); border-color: var(--danger-border); }
/* Selo de marca (Novo, Beta): mostarda cheia com texto noite. Nunca para estado. */
.tag-highlight { background: var(--highlight); color: var(--highlight-foreground); border-color: var(--highlight); font-weight: var(--weight-semibold); }
.tag-pill { border-radius: var(--radius-pill); padding: 3px 10px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--muted-foreground); font-size: var(--text-caption); }

/* ============================== Cartões ============================== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; min-width: 0; }
.card-lg { padding: 28px; }
.card-raised { border-radius: var(--radius-card-lg); box-shadow: var(--shadow-card); }
.card > header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--primary); }
.card > header h2, .card > header h3 { color: var(--foreground); }
.card-dashed { border-style: dashed; text-align: center; padding: 35px 25px; }
/* Ícone de seção: quadrado petróleo-claro com o ícone em petróleo */
.icon-tile { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--primary); }
.icon-round { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }

/* Faixa de métricas (Início): um cartão com 4 colunas divididas por espaço, sem borda entre elas */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.metrics > div { position: relative; min-width: 0; padding: 18px 18px 16px; }
.metrics dt { color: var(--muted-foreground); font-size: var(--text-caption); }
.metrics dd { margin: 5px 0; font-size: var(--text-heading); font-weight: var(--weight-semibold); line-height: 1.3; }
.metrics small { display: block; color: var(--muted-foreground); font-size: var(--text-caption); line-height: 1.5; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lista em linhas dentro de cartão (checklist do Início, agenda) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-top: 1px solid var(--border); }
.rows > li:first-child { border-top: 0; }
.rows > li:hover { background: var(--subtle); }
.step { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: var(--subtle); color: var(--muted-foreground); font-size: var(--text-caption); }
.step.is-done { background: var(--primary-soft); color: var(--primary); }
.step.is-active { background: var(--primary); color: var(--primary-foreground); }

/* ============================== Tabela ============================== */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
.table th { text-align: left; padding: 10px 12.8px; color: var(--muted-foreground); font-size: var(--text-caption); font-weight: var(--weight-medium); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { text-align: left; vertical-align: top; padding: 12.8px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--subtle); }
.table td small { display: block; color: var(--muted-foreground); }

/* ============================== Avisos (sempre com ícone e palavra) ============================== */
.notice { display: flex; gap: 9px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--notice-border); border-radius: 8px; color: var(--notice); background: var(--notice-soft); font-size: var(--text-body); line-height: 1.6; }
.notice .ico { margin-top: 3px; }
.notice.is-warning { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-border); }
.notice.is-warning .ico { color: var(--warning-icon); }
.notice.is-success { color: var(--success); background: var(--success-soft); border-color: var(--success-border); }
.notice.is-error { color: var(--destructive); background: var(--danger-soft); border-color: var(--danger-border); }
/* Aviso de borda (lateral de aviso), usado em importação e arquivos */
.notice-edge { padding: 8px 12px; border-left: 3px solid var(--warning); background: var(--warning-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--text-caption); line-height: 1.5; }

/* ============================== Casca do painel ============================== */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); flex-shrink: 0; border-right: 1px solid var(--border); background: var(--sidebar); }
.sidebar-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; padding: 22px 12px 16px; }
.sidebar-inner > .wordmark { padding: 0 10px; margin-bottom: 26px; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-label { margin: 0 10px 3px; color: var(--nav-label); font-size: 0.72rem; font-weight: var(--weight-semibold); letter-spacing: 0.4px; }
.nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--nav-foreground); font-family: var(--font-ui); font-size: var(--text-body); line-height: 1.25; text-align: left; cursor: pointer; transition: background var(--duration); }
.nav-item:hover { background: var(--nav-hover); }
.nav-item[aria-current] { color: var(--nav-active-foreground); background: var(--nav-active); font-weight: var(--weight-semibold); }
.nav-item[aria-current] > .ico:last-child:not(:first-child) { margin-left: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 34px; border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar > div { display: flex; align-items: center; gap: 10px; font-size: var(--text-caption); min-width: 0; }
.topbar .sep { align-self: stretch; width: 1px; background: var(--border); }
.content { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 20px 38px 55px; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-head :is(h1, h2) + p { margin-top: 6px; max-width: 65ch; color: var(--text-soft); font-size: var(--text-body); }
.app-footer { margin: 0 38px; padding: 17px 0 22px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: var(--text-caption); }
@media (max-width: 700px) {
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 40px; }
}

/* ============================== Padrão da tela do teste grátis ============================== */
/* Cabeçalho fino: marca à esquerda, selo no meio, link à direita, linha embaixo */
.site-header { max-width: 960px; height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.site-header .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--primary); }
.site-header .brand b { font-size: var(--text-body); letter-spacing: -0.2px; }
.site-header .brand small { display: block; margin-top: 1px; font-size: var(--text-caption); letter-spacing: 2.8px; }
.site-header .private { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: var(--text-caption); }
.site-header .private .ico { color: var(--primary); }
.site-header .login { color: var(--primary); font-size: var(--text-body); font-weight: var(--weight-medium); }
/* Abertura: coluna estreita, alinhada à esquerda, centrada na altura */
.welcome { max-width: 680px; min-height: calc(100vh - 68px); margin: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.welcome .display { max-width: 640px; margin: 14px 0; }
.welcome .lead { margin-bottom: 21px; }
.welcome > small { margin-top: 12px; color: var(--muted-foreground); }
/* Etapas numeradas com linha entre elas */
.progress { max-width: 760px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4, 1fr); }
.progress > div { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--muted-foreground); font-size: var(--text-caption); }
.progress > div::after { content: ""; position: absolute; left: 38px; right: -3px; top: 14px; height: 1px; background: var(--border); }
.progress > div:last-child::after { display: none; }
.progress > div > span { position: relative; z-index: 1; width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--background); }
.progress > div > b { position: relative; z-index: 1; padding-right: 5px; background: var(--background); font-weight: var(--weight-medium); }
.progress > .is-active { color: var(--primary); }
.progress > .is-active > span { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.progress > .is-done > span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
/* Painel central em branco quente com sombra quase invisível */
.panel { max-width: 760px; margin: 0 auto; padding: 28px clamp(18px, 4.5vw, 40px) 24px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-panel); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 5px 0 3px; letter-spacing: -0.5px; }
.panel-head p { color: var(--muted-foreground); font-size: var(--text-caption); }
.panel-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
@media (max-width: 600px) {
  .site-header { height: 58px; }
  .panel { padding: 21px 16px 18px; border-radius: 12px; }
}

/* ============================== Tela de entrar (duas metades) ============================== */
.split { display: grid; grid-template-columns: minmax(360px, 0.95fr) minmax(400px, 1.05fr); min-height: 100vh; }
.split-story { display: flex; flex-direction: column; justify-content: space-between; padding: 54px 64px 38px; background: var(--story); border-right: 1px solid var(--story-border); }
.split-story h1 { color: var(--story-foreground); letter-spacing: -1.8px; line-height: 1.16; }
.split-story p { max-width: 41ch; color: var(--story-foreground-soft); line-height: 1.85; }
.split-form { display: flex; align-items: center; justify-content: center; padding: 60px 50px; }
.split-form > div { width: 100%; max-width: 370px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-story { padding: 32px 24px; } }

@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before, .app *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
