/* ==========================================================================
   Tokens do redesign TourFácil (TF-051)
   Origem: Figma "[Tour Fácil] UI Design" e biblioteca "Design System",
   extraídos em 02/11/2026 (docs/frentes/redesign/INVENTARIO-FIGMA-2026-11-02.md).

   Só declara variáveis: carregar este arquivo não muda a aparência de nada.
   Prefixo --tf- para não colidir com o Bootstrap 4 nem com a camada 0.25.

   Ajustes de acessibilidade feitos sobre o Figma (marcados com "ajuste"):
   cores de texto/fundo de botão com contraste mínimo AA (4,5:1) e bordas de
   campo com 3:1. As cores originais continuam disponíveis como --tf-brand-*.
   ========================================================================== */

/* Fontes hospedadas no próprio site (TF-050, D65, D66).
   Satoshi: licença ITF Free Font License; arquivo oficial da Fontshare, sem
   alteração (a licença proíbe subset e conversão).
   Plus Jakarta Sans: SIL Open Font License (ver /fonts/PlusJakartaSans-OFL.txt). */
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ---- Fontes --------------------------------------------------------
       O Figma usa Neuzeit Grotesk nos títulos (paga, sem licença). Decisões do
       proprietário: Plus Jakarta Sans nos títulos (D66, 11/11/2026) e Satoshi
       nos textos (D49, D65). Arquivos oficiais, sem alteração, em /fonts. */
    --tf-font-heading: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
    --tf-font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;

    /* ---- Marca (valores originais do Figma) --------------------------- */
    --tf-brand-purple: #482776;
    --tf-brand-purple-dark: #170237;
    --tf-brand-pink: #E73778;
    --tf-brand-pink-light: #FF76AE;
    --tf-brand-blue: #40BDED;

    /* ---- Texto -------------------------------------------------------- */
    --tf-text: #2F2F2F;
    --tf-text-secondary: #6B6B6B;
    --tf-text-muted: #A9A9A9;          /* só para estado desabilitado: 2,3:1 */
    --tf-text-inverse: #FFFFFF;
    --tf-text-link: var(--tf-brand-purple);

    /* ---- Superfícies e bordas ----------------------------------------- */
    --tf-surface: #FFFFFF;
    --tf-surface-subtle: #F3F3F3;
    --tf-surface-raised: #FCFCFE;
    --tf-border: #E9E9E9;              /* divisórias */
    --tf-border-strong: #D1D1D1;       /* contornos decorativos */
    --tf-border-field: #8A8A8A;        /* ajuste: campo de formulário, 3,4:1 */

    /* ---- Ação (botão principal) --------------------------------------- */
    --tf-action: #D62A6A;              /* ajuste: #E73778 dava 4,0:1 com branco */
    --tf-action-hover: #BC1F5A;
    --tf-action-text: #FFFFFF;
    --tf-action-secondary: var(--tf-brand-purple);
    --tf-focus: var(--tf-brand-purple);

    /* ---- Feedback ----------------------------------------------------- */
    --tf-success: #187A2D;             /* ajuste: #1D9135 dava 4,1:1 */
    --tf-success-bg: #E6F4E9;
    --tf-discount-bg: #50DE6E;         /* com texto --tf-text: 7,7:1 */
    --tf-highlight-bg: rgba(255, 201, 17, 0.3);
    --tf-warning: #A15F00;             /* ajuste: #E89502 servia só como fundo */
    --tf-warning-bg: #FFF4DC;
    --tf-danger: #B4361F;
    --tf-danger-bg: #FCE9E6;

    /* ---- Tipografia (tamanho / altura de linha) -----------------------
       Escala completa em figma-export/tokens-figma-2026-11-02.json.
       Aqui ficam os tamanhos usados nas telas de 375 e 1512 px. */
    --tf-display-sm: 900 48px/1.16 var(--tf-font-heading);
    --tf-display-xs: 900 36px/1.16 var(--tf-font-heading);
    --tf-heading-md: 700 36px/1.24 var(--tf-font-heading);
    --tf-heading-sm: 700 28px/1.24 var(--tf-font-heading);
    --tf-heading-xs: 700 24px/1.24 var(--tf-font-heading);
    --tf-heading-xxs: 700 20px/1.24 var(--tf-font-heading);
    --tf-heading-xxxs: 700 16px/1.24 var(--tf-font-heading);
    --tf-paragraph-md: 500 20px/1.4 var(--tf-font-body);
    --tf-paragraph-sm: 500 16px/1.4 var(--tf-font-body);
    --tf-paragraph-xs: 500 13px/1.4 var(--tf-font-body);
    --tf-label-sm: 700 16px/1 var(--tf-font-heading);
    --tf-label-xs: 700 13px/1 var(--tf-font-heading);
    --tf-label-min: 700 12px/1 var(--tf-font-heading);  /* ajuste: Figma usa 10 e 8 px */
    --tf-tracking-tight: -0.015em;
    --tf-tracking-label: 0.08em;

    /* ---- Raios -------------------------------------------------------- */
    --tf-radius-sm: 4px;
    --tf-radius-md: 8px;
    --tf-radius-lg: 16px;
    --tf-radius-xl: 24px;
    --tf-radius-pill: 999px;

    /* ---- Espaçamento -------------------------------------------------- */
    --tf-space-2: 2px;
    --tf-space-4: 4px;
    --tf-space-6: 6px;
    --tf-space-8: 8px;
    --tf-space-10: 10px;
    --tf-space-12: 12px;
    --tf-space-16: 16px;
    --tf-space-20: 20px;
    --tf-space-24: 24px;
    --tf-space-32: 32px;
    --tf-space-48: 48px;

    /* ---- Sombras ------------------------------------------------------ */
    --tf-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.15);
    --tf-shadow-divider: 0 1px 0 #898A8D;
    --tf-shadow-sheet: 0 -4px 16px rgba(0, 0, 0, 0.12);

    /* ---- Interação ---------------------------------------------------- */
    --tf-touch-min: 44px;              /* alvo mínimo de toque no celular */
    --tf-transition: 150ms ease;
}
