/* SyncTap: valores compartilhados. O CSS legado da home mantém suas exceções até a 10D. */
@font-face {
  font-family: Michroma;
  src: url("/assets/fontes/michroma.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/assets/fontes/geist.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fontes/jetbrains-mono.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  /* Paleta da home, com os nomes do DESIGN.md. */
  --night: #0E0A15;
  --ink: #F2EBFC;
  --ink-soft: #C9B8E6;
  --signal-lilac: #C4A2FF;
  --panel-purple: #6438CE;
  --action-violet: #7444ED;
  --action-violet-deep: #6B3ED9;
  --action-edge: #9F7BFF;
  --deep-plum: #412658;
  --deep-aubergine: #241438;
  --hairline: rgba(217,190,255,.22);
  --logo-mist: #E6DCF8;
  --rare-pink: #FF5BAF;
  --white: #FFFFFF;

  /* Superfícies e estados da referência aprovada em 20/10/2026. */
  --surface: #151020;
  --surface-raised: #1B1428;
  --surface-input: #0B0812;
  --hairline-soft: rgba(217,190,255,.12);
  --success: #7FE0B0;
  --attention: #FFCF7A;
  --error: #FF9BA5;
  --danger-edge: rgba(255,155,165,.4);
  --brand-signal: var(--signal-lilac);
  --brand-hover: var(--signal-lilac);
  --brand-active: var(--white);
  --action-text: var(--white);
  --outline-background: rgba(21,13,32,.42);
  --outline-edge: var(--hairline);
  --outline-hover: rgba(196,162,255,.12);
  --current-page: rgba(196,162,255,.06);
  --sidebar-glow: radial-gradient(circle, rgba(100,56,206,.12), transparent 66%);

  /* Michroma: só marca/títulos; Geist: interface; Mono: só código de placa. */
  --font-display: Michroma, Geist, sans-serif;
  --font-body: Geist, Arial, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, monospace;
  --font-weight-regular: 400;
  --font-weight-item: 680;
  --font-weight-label: 750;
  --font-weight-price: 700;
  --numbers-features: "tnum";
  --type-display-size: clamp(35px, 3.8vw, 55px);
  --type-display-height: 1.19;
  --type-display-tracking: -.035em;
  --type-headline-size: clamp(34px, 3.3vw, 47px);
  --type-headline-size-mobile: clamp(27px, 7.5vw, 40px);
  --type-headline-height: 1.23;
  --type-headline-tracking: -.027em;
  --type-title-size: 17px;
  --type-title-height: 1.3;
  --type-title-tracking: -.02em;
  --type-body-size: 16px;
  --type-body-lead-size: 17px;
  --type-body-height: 1.55;
  --type-item-size: 17px;
  --type-item-height: 1.28;
  --type-label-size: 13px;
  --type-label-size-desktop: 14px;
  --type-label-height: 1.2;
  --type-price-size: clamp(34px, 10vw, 43px);
  --type-price-height: 1.1;
  --type-price-tracking: -.02em;
  --type-wordmark-size: 22px;
  --type-wordmark-size-mobile: 19px;
  --type-wordmark-size-small: 17px;
  --type-wordmark-height: 1;
  --type-wordmark-tracking: -.035em;
  /* Escala compacta para Operate: sem Michroma nos dados. */
  --type-data-xs: 12px;
  --type-data-sm: 13px;
  --type-data-md: 14px;
  --type-data-lg: 15px;
  --type-data-height: 1.5;
  --type-page-size-mobile: 23px;
  --type-page-size: 28px;
  --type-page-size-large: 30px;
  --type-page-height: 1.15;
  --type-page-tracking: -.03em;
  --type-public-title-size: 24px;
  --type-public-title-size-large: 28px;

  /* Só estes cinco raios para componentes novos. */
  --radius-button: 11px;
  --radius-control: 12px;
  --radius-card: 20px;
  --radius-device: 28px;
  --radius-pill: 999px;

  /* Vocabulário da home no DESIGN.md. */
  --shadow-object: 0 1px 0 #ffffff3b inset, 0 22px 56px #05030b66;
  --shadow-device: 0 1px 0 #ffffff70 inset, 0 26px 54px #05020b9e;
  --shadow-plan: 0 1px 0 #ffffff24 inset, 0 20px 42px #05020c4d;
  --shadow-plan-featured: 0 1px 0 #ffffff4d inset, 0 21px 50px #05020c80;
  --shadow-button: 0 1px 0 #ffffff49 inset, 0 9px 26px #05020c80;
  --shadow-button-hover: 0 1px 0 #ffffff67 inset, 0 13px 30px #05020c99;
  --shadow-fixed-bar: 0 -12px 36px #05020c65;
  /* Cartão e botão compacto da referência do painel. */
  --shadow-card: 0 1px 0 #ffffff14 inset, 0 12px 28px #05020c40;
  --shadow-button-operate: 0 1px 0 #ffffff30 inset, 0 8px 22px rgba(116,68,237,.35);

  --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-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --gutter-mobile: 18px;
  --gutter-desktop: 32px;
  --container: 1220px;
  --header-height: 68px;
  --section-mobile: 96px;
  --section-desktop: 124px;
  --touch-min: 44px;
  --button-height: 48px;
  --button-gap: 8px;
  --button-padding-block: 12px;
  --button-padding-inline: 16px;
  --button-padding-inline-desktop: 19px;
  --button-padding-block-compact: 10px;
  --list-row-height: 60px;
  --list-row-padding-block: 10px;
  --list-gap: 14px;
  --stroke-hairline: 1px;
  --icon-size: 18px;
  --icon-whatsapp-size: 20px;
  --icon-stroke: 1.5;
  --icon-whatsapp-stroke: 1.6;

  --focus-color: var(--signal-lilac);
  --focus-width: 3px;
  --focus-offset: 4px;
  --motion-ease: cubic-bezier(.16,1,.3,1);
  --motion-state: .2s;
  --motion-chrome: .22s;
  --motion-hover-lift: -2px;
  --motion-press: 1px;
  --motion-icon-shift: 3px;
  /* Operate: casca e aliases sem uma segunda paleta. */
  --link-color: var(--signal-lilac);
  --surface-tint: color-mix(in srgb, var(--action-violet) 8%, var(--surface));
  --surface-hover: color-mix(in srgb, var(--signal-lilac) 7%, var(--surface));
  --success-tint: color-mix(in srgb, var(--success) 10%, var(--surface));
  --attention-tint: color-mix(in srgb, var(--attention) 10%, var(--surface));
  --error-tint: color-mix(in srgb, var(--error) 8%, var(--surface));
  --chrome-background: rgba(14,10,21,.82);
  --sidebar-background: rgba(14,10,21,.55);
  --scrim-background: rgba(5,2,12,.65);
  --avatar-background: var(--deep-plum);
  --avatar-ink: var(--signal-lilac);
  --auth-atmosphere: radial-gradient(ellipse 80% 55% at 85% 0%, rgba(100,56,206,.31), transparent 70%), radial-gradient(ellipse 70% 45% at 0% 100%, rgba(116,68,237,.19), transparent 72%);
  --font-weight-medium: 550;
  --font-weight-semibold: 650;
  --type-body-tracking: normal;
  --type-caption-tracking: .12em;
  --type-section-size: 20px;
  --type-stat-size: 30px;
  --sidebar-width: 248px;
  --mobile-header-height: 56px;
  --operate-width: 1080px;
  --nav-indicator-width: 2px;
  --chrome-blur: 14px;
  /* Home: título móvel e reserva da barra de contato. */
  --home-hero-mobile-height: 1.31;
  --home-contact-padding: 9px;
  --home-contact-reserve: calc(var(--button-height) + 2 * var(--home-contact-padding) + var(--stroke-hairline));
  /* Telas públicas da placa: atmosfera e proporções da referência. */
  --public-atmosphere: radial-gradient(ellipse 80% 45% at 85% 0%, rgba(100,56,206,.32), transparent 70%), radial-gradient(ellipse 70% 40% at 0% 100%, rgba(116,68,237,.16), transparent 72%);
  --public-halo: radial-gradient(circle, rgba(196,162,255,.14), transparent 65%);
  --public-emblem-background: linear-gradient(150deg, rgba(100,56,206,.35), rgba(36,20,56,.6));
  --public-width: 420px;
  --public-copy-width: 330px;
  --public-gutter: 22px;
  --public-padding-top: 56px;
  --public-halo-size: 260px;
  --public-emblem-size: 76px;
  --public-emblem-icon: 34px;
  --public-qr-size: 196px;
  --public-button-height: 52px;
  /* Miolo Operate: faixas, arte e prévia, derivados da referência. */
  --content-gap: 18px;
  --thumb-width: 64px;
  --thumb-height: 52px;
  --actions-width: 360px;
  --preview-width: 220px;
  --preview-height: 300px;
  --preview-qr: 180px;
  --type-summary-size: 22px;
  --balance-highlight: linear-gradient(135deg, color-mix(in srgb, var(--action-violet) 22%, transparent), transparent 70%);
  --chart-gradient: linear-gradient(180deg, var(--signal-lilac), var(--action-violet));
  --success-edge: color-mix(in srgb, var(--success) 40%, transparent);
  --attention-edge: color-mix(in srgb, var(--attention) 40%, transparent);
}

/* Opt-in do painel; não altera a home nem escolhe tema automaticamente. */
[data-theme="light"] {
  --night: #F6F3FB;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-input: #FFFFFF;
  --ink: #1D1428;
  --ink-soft: #62516F;
  --brand-signal: var(--action-violet);
  --brand-hover: #6B3ED9;
  --brand-active: #1D1428;
  --link-color: var(--panel-purple);
  --surface-tint: color-mix(in srgb, var(--panel-purple) 6%, var(--surface));
  --surface-hover: color-mix(in srgb, var(--panel-purple) 8%, var(--surface));
  --success-tint: color-mix(in srgb, var(--success) 8%, var(--surface));
  --attention-tint: color-mix(in srgb, var(--attention) 8%, var(--surface));
  --error-tint: color-mix(in srgb, var(--error) 6%, var(--surface));
  --chrome-background: rgba(246,243,251,.92);
  --sidebar-background: rgba(246,243,251,.82);
  --avatar-background: color-mix(in srgb, var(--panel-purple) 10%, var(--surface));
  --avatar-ink: var(--panel-purple);
  --auth-atmosphere: radial-gradient(ellipse 80% 55% at 85% 0%, rgba(100,56,206,.12), transparent 70%), radial-gradient(ellipse 70% 45% at 0% 100%, rgba(116,68,237,.08), transparent 72%);
  --hairline: rgba(65,38,88,.22);
  --hairline-soft: rgba(65,38,88,.12);
  --action-violet: #6438CE;
  --action-violet-deep: #6B3ED9;
  --action-edge: #6438CE;
  --action-text: #FFFFFF;
  --outline-background: transparent;
  --outline-edge: #6438CE;
  --outline-hover: rgba(100,56,206,.1);
  --focus-color: #6B3ED9;
  --current-page: rgba(100,56,206,.1);
  --success: #176B46;
  --attention: #805400;
  --error: #A3263E;
  --danger-edge: rgba(163,38,62,.5);
  --shadow-card: 0 1px 2px #1d14280f, 0 8px 24px #1d14280d;
  --shadow-button: 0 1px 2px #1d14280f, 0 8px 24px #1d14280d;
  --shadow-button-hover: 0 1px 2px #1d14280f, 0 8px 24px #1d14280d;
  --shadow-button-operate: 0 1px 2px #1d14280f, 0 8px 24px #1d14280d;
}
