/* DS_VERSION: 4.0.0-alpha */
/* ================================================================
 * Inter — self-hosted (latin + latin-ext, variable woff2)
 * 1 arquivo woff2 cobre todos os weights 100–900.
 * ================================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  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;
}

/* ================================================================
 * theme.css — Brand override para andrealvespd.com.br
 * ----------------------------------------------------------------
 * Sobrescreve tokens canônicos do DS v4 (tokens.css). Nada de
 * componentes ou utilities aqui — somente paleta, tipografia e
 * sombras que carregam a identidade da marca.
 *
 * Identidade (resumo):
 *   - Dark-first: tinta azul profunda (#010E22) + off-white modulado
 *     por alpha + accent gold único (#EDB852).
 *   - Light derivado: off-white warm (#FBFAF7) + DNA do dark
 *     primário (#0E1A2E) modulado por alpha.
 *   - Tipografia: Inter única (400 / 500 / 600 / 700).
 *   - Status: paleta warm gold-tinted — success oliva, warning gold,
 *     danger terracota, info petróleo.
 * ================================================================ */

:root {
  /* ----- Escala da marca (gold) -------------------------------- */
  --brand-50:  #fdf7e8;
  --brand-100: #fbeec7;
  --brand-200: #f7e1a1;
  --brand-300: #f3d27a;
  --brand-400: #f0c462;
  --brand-500: #edb852;   /* base — accent principal */
  --brand-600: #d89830;   /* hover */
  --brand-700: #b07a1f;   /* pressed */
  --brand-800: #845a17;
  --brand-900: #563b0e;

  /* ----- Tipografia — Inter única ------------------------------ */
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent:  "Inter", system-ui, -apple-system, sans-serif;

  /* ----- Sombras (light) — tint do primário dark --------------- */
  --shadow-tint-light: 14 26 46;   /* rgb(--text-primary light) */

  /* ----- Focus ring -------------------------------------------- */
  --focus-ring: 0 0 0 3px rgba(237, 184, 82, 0.40);
}

/* ================================================================
 * LIGHT — off-white warm + DNA do dark
 * ================================================================ */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Superfícies */
  --bg-base:            #fbfaf7;   /* off-white warm */
  --bg-surface:         #ffffff;
  --bg-surface-raised:  #f4f0e8;
  --bg-surface-overlay: #ede6d4;
  --bg-deep:            #efe9dc;
  --bg-warm:            #fbf5e8;
  --bg-hover:           rgba(14, 26, 46, 0.05);
  --bg-active:          rgba(237, 184, 82, 0.10);
  --bg-input:           #ffffff;
  --bg-disabled:        rgba(14, 26, 46, 0.06);
  --bg-overlay:         rgba(14, 26, 46, 0.55);

  /* Texto — DNA do dark primário clareado, modulado por alpha */
  --text-primary:       #0e1a2e;
  --text-secondary:     rgba(14, 26, 46, 0.72);
  --text-muted:         rgba(14, 26, 46, 0.50);
  --text-disabled:      rgba(14, 26, 46, 0.28);
  --text-inverted:      #fbfaf7;
  --text-accent:        var(--brand-700);
  --text-accent-hover:  var(--brand-800);
  --text-script:        var(--brand-700);

  /* Bordas */
  --border-default:     rgba(14, 26, 46, 0.14);
  --border-subtle:      rgba(14, 26, 46, 0.08);
  --border-strong:      rgba(14, 26, 46, 0.28);
  --border-focus:       var(--brand-500);
  --border-accent:      rgba(237, 184, 82, 0.45);
  --border-error:       rgba(166, 68, 50, 0.50);
  --border-success:     rgba(90, 110, 47, 0.50);

  /* Accent / CTA */
  --accent-base:        var(--brand-500);
  --accent-hover:       var(--brand-600);
  --accent-pressed:     var(--brand-700);
  --accent-deep:        var(--brand-800);
  --accent-muted:       rgba(237, 184, 82, 0.12);
  --accent-text:        #0e1a2e;
  --accent-shadow:      0 6px 20px rgba(237, 184, 82, 0.30);
  --accent-shadow-hover:0 10px 32px rgba(237, 184, 82, 0.50);

  /* Status — paleta warm gold-tinted */
  --success-bg:         rgba(90, 110, 47, 0.12);
  --success-border:     rgba(90, 110, 47, 0.45);
  --success-text:       #5a6e2f;

  --warning-bg:         rgba(216, 152, 48, 0.14);
  --warning-border:     rgba(216, 152, 48, 0.50);
  --warning-text:       #b07a1f;

  --danger-bg:          rgba(166, 68, 50, 0.12);
  --danger-border:      rgba(166, 68, 50, 0.50);
  --danger-text:        #a64432;

  --info-bg:            rgba(44, 88, 116, 0.12);
  --info-border:        rgba(44, 88, 116, 0.45);
  --info-text:          #2c5874;

  /* Card */
  --bg-card:           #ffffff;
  --bg-card-deep:      #f4f0e8;
  --bg-card-overlay:   #ede6d4;
  --text-on-card:      #0e1a2e;
  --text-on-card-muted:rgba(14, 26, 46, 0.65);
  --accent-on-card:    var(--brand-700);
  --border-on-card:    rgba(14, 26, 46, 0.12);
}

/* ================================================================
 * DARK — tinta azul + off-white modulado por alpha + accent gold
 * Briefing extraído de bcockpit-overview.html (legacy reference).
 * ================================================================ */
[data-theme="dark"] {
  color-scheme: dark;

  /* Superfícies — tinta escura azul, não cinza neutro */
  --bg-base:            #010e22;
  --bg-surface:         #0a1f40;
  --bg-surface-raised:  #122541;
  --bg-surface-overlay: #1a3052;
  --bg-deep:            #00081a;
  --bg-warm:            #1a1408;
  --bg-hover:           rgba(246, 246, 246, 0.04);
  --bg-active:          rgba(237, 184, 82, 0.10);
  --bg-input:           #0a1f40;
  --bg-disabled:        rgba(246, 246, 246, 0.04);
  --bg-overlay:         rgba(0, 0, 0, 0.65);

  /* Texto — off-white #F6F6F6 modulado por alpha */
  --text-primary:       #f6f6f6;
  --text-secondary:     rgba(246, 246, 246, 0.72);
  --text-muted:         rgba(246, 246, 246, 0.48);
  --text-disabled:      rgba(246, 246, 246, 0.28);
  --text-inverted:      #010e22;
  --text-accent:        var(--brand-400);
  --text-accent-hover:  var(--brand-300);
  --text-script:        var(--brand-300);

  /* Bordas — neutras (alpha off-white) + accent gold pontual */
  --border-default:     rgba(246, 246, 246, 0.12);
  --border-subtle:      rgba(246, 246, 246, 0.06);
  --border-strong:      rgba(246, 246, 246, 0.24);
  --border-focus:       var(--brand-400);
  --border-accent:      rgba(237, 184, 82, 0.40);
  --border-error:       rgba(220, 110, 90, 0.50);
  --border-success:     rgba(140, 170, 80, 0.50);

  /* Accent / CTA — gold com glow */
  --accent-base:        var(--brand-500);
  --accent-hover:       var(--brand-400);
  --accent-pressed:     var(--brand-600);
  --accent-deep:        var(--brand-700);
  --accent-muted:       rgba(237, 184, 82, 0.14);
  --accent-text:        #0a0500;
  --accent-shadow:      0 0 20px rgba(237, 184, 82, 0.30), 0 0 40px rgba(237, 184, 82, 0.10);
  --accent-shadow-hover:0 0 30px rgba(237, 184, 82, 0.50), 0 0 60px rgba(237, 184, 82, 0.20);

  /* Status — warm gold-tinted (clareados para legibilidade em dark) */
  --success-bg:         rgba(140, 170, 80, 0.14);
  --success-border:     rgba(140, 170, 80, 0.45);
  --success-text:       #b9d27a;

  --warning-bg:         rgba(237, 184, 82, 0.14);
  --warning-border:     rgba(237, 184, 82, 0.45);
  --warning-text:       #f6d794;

  --danger-bg:          rgba(220, 110, 90, 0.14);
  --danger-border:      rgba(220, 110, 90, 0.45);
  --danger-text:        #e89a86;

  --info-bg:            rgba(110, 160, 200, 0.12);
  --info-border:        rgba(110, 160, 200, 0.45);
  --info-text:          #9bbed8;

  /* Card */
  --bg-card:           #0a1f40;
  --bg-card-deep:      #00081a;
  --bg-card-overlay:   #122541;
  --text-on-card:      #f6f6f6;
  --text-on-card-muted:rgba(246, 246, 246, 0.65);
  --accent-on-card:    var(--brand-400);
  --border-on-card:    rgba(246, 246, 246, 0.10);

  /* Sombras tint preto profundo + focus ring mais visível */
  --shadow-tint-dark:  0 0 0;
  --focus-ring:        0 0 0 3px rgba(237, 184, 82, 0.55);
}

/* ================================================================
 * Hierarquia tipográfica — brand override (andrealvespd)
 * ----------------------------------------------------------------
 * Inter only — peso enxuto, hierarquia por tamanho + leading.
 * H1/H2 em medium (500), H3 em semibold (600). Fluido via clamp().
 * Não toca em components.css (canônico do squad).
 * ================================================================ */

/* Hero */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

/* Section heads (h2) */
.section-head h2,
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-head p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

/* Cards (h3) */
.feature-card__title,
.pricing-card__title,
.testimonial-card__name,
h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.feature-card__desc,
.pricing-card__desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

/* H4 */
h4,
.footer__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Body / small / caption — defaults globais */
body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}
small,
.text-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Badge / eyebrow genérico */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
