/*
 * Festou — tokens do design system
 * Fonte: ds/festou/tokens.json (mesmas cores e tipografia da home nova).
 * Use sempre as variáveis semânticas (--primary, --surface...) nas telas;
 * as --ref-* existem só para compor as semânticas.
 */
:root {
  /* Marca */
  --brand-purple: #7f77bd;
  --brand-teal: #41b8b2;
  --brand-indigo: #5e62ac;
  --brand-ink: #514a70;
  --brand-white: #ffffff;
  --brand-lavender: #efedff;
  --brand-lavender-deep: #e1e0f0;
  --brand-lilac: #b7b3da;
  --brand-teal-soft: #96d5d3;

  /* Paletas de referência */
  --ref-primary-10: #0b154d;
  --ref-primary-30: #423f7f;
  --ref-primary-40: #5c5699;
  --ref-primary-80: #c9bfff;
  --ref-primary-90: #e5deff;
  --ref-primary-100: #ffffff;
  --ref-secondary-10: #00201e;
  --ref-secondary-40: #006a66;
  --ref-secondary-90: #b2eee9;
  --ref-secondary-100: #ffffff;
  --ref-tertiary-10: #00174c;
  --ref-tertiary-40: #5258a0;
  --ref-tertiary-90: #e2dfff;
  --ref-error-10: #390c00;
  --ref-error-40: #b4271f;
  --ref-error-90: #ffdad3;
  --ref-warning-10: #261a00;
  --ref-warning-40: #7d5700;
  --ref-warning-90: #ffddaf;
  --ref-neutral-20: #312f37;
  --ref-neutral-87: #dbd9e2;
  --ref-neutral-95: #f2eff9;
  --ref-neutral-98: #faf8ff;
  --ref-neutral-variant-35: #545063;
  --ref-neutral-variant-50: #797489;
  --ref-neutral-variant-80: #c9c3da;

  /* Papéis de cor */
  --primary: var(--ref-primary-40);
  --on-primary: var(--ref-primary-100);
  --primary-container: var(--ref-primary-90);
  --on-primary-container: var(--ref-primary-10);
  --secondary: var(--ref-secondary-40);
  --on-secondary: var(--ref-secondary-100);
  --secondary-container: var(--brand-teal);
  --on-secondary-container: var(--ref-secondary-10);
  --tertiary-container: var(--ref-tertiary-90);
  --on-tertiary-container: var(--ref-tertiary-10);
  --error: var(--ref-error-40);
  --error-container: var(--ref-error-90);
  --on-error-container: var(--ref-error-10);
  --success: var(--ref-secondary-40);
  --success-container: var(--ref-secondary-90);
  --on-success-container: var(--ref-secondary-10);
  --warning: var(--ref-warning-40);
  --warning-container: var(--ref-warning-90);
  --on-warning-container: var(--ref-warning-10);
  --surface: var(--brand-white);
  --on-surface: var(--brand-ink);
  --on-surface-variant: var(--ref-neutral-variant-35);
  --surface-bright: var(--ref-neutral-98);
  --surface-container-low: var(--brand-lavender);
  --surface-container: var(--brand-lavender-deep);
  --surface-container-high: var(--ref-neutral-87);
  --surface-container-highest: var(--ref-neutral-87);
  --decor-1: var(--brand-teal-soft);
  --decor-2: var(--brand-lilac);
  --outline: var(--ref-neutral-variant-50);
  --outline-variant: var(--ref-neutral-variant-80);
  --inverse-surface: var(--ref-neutral-20);
  --inverse-on-surface: var(--ref-neutral-95);
  --inverse-primary: var(--ref-primary-80);
  --focus-ring: var(--primary);

  /* Elevação */
  --elevation-1: 0 1px 2px rgba(0, 0, 0, .30), 0 1px 3px 1px rgba(0, 0, 0, .15);
  --elevation-2: 0 1px 2px rgba(0, 0, 0, .30), 0 2px 6px 2px rgba(0, 0, 0, .15);
  --elevation-3: 0 1px 3px rgba(0, 0, 0, .30), 0 4px 8px 3px rgba(0, 0, 0, .15);

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

  /* Cantos */
  --corner-xs: 4px;
  --corner-sm: 8px;
  --corner-md: 12px;
  --corner-lg: 16px;
  --corner-xl: 28px;
  --corner-full: 9999px;

  /* Estados */
  --state-hover: .08;
  --state-focus: .10;
  --state-pressed: .10;
  --disabled-content: .38;

  /* Tipografia (mesmas famílias da home) */
  --font-display: "Poetsen One", "Poppins", system-ui, sans-serif;
  --font-text: "Poppins", system-ui, sans-serif;
}

/* Escala tipográfica */
.display-small { font-family: var(--font-display); font-size: 36px; line-height: 44px; font-weight: 400; }
.headline-large { font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 400; }
.headline-medium { font-family: var(--font-display); font-size: 28px; line-height: 36px; font-weight: 400; }
.headline-small { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 400; }
.title-large { font-family: var(--font-text); font-size: 22px; line-height: 28px; font-weight: 500; }
.title-medium { font-family: var(--font-text); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: .15px; }
.title-small { font-family: var(--font-text); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; }
.body-large { font-family: var(--font-text); font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: .5px; }
.body-medium { font-family: var(--font-text); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: .25px; }
.body-small { font-family: var(--font-text); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: .4px; }
.label-large { font-family: var(--font-text); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; }
.label-medium { font-family: var(--font-text); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .5px; }

@media (max-width: 599px) {
  .headline-large { font-size: 28px; line-height: 36px; }
}
