/* ─── V4L OS / FitBusiness Design Tokens — single source of truth ───────────
   Every color, radius and shadow the app uses resolves from this file.
   A palette change edits this file only: tailwind.config.js maps utilities to
   these custom properties and the component classes consume them via var().
   Imported (and inlined) at the top of app/assets/tailwind/application.css by the
   tailwindcss-rails CLI; the four [data-theme] blocks drive light/dark for
   both shells (client + nutri).
   ─────────────────────────────────────────────────────────────────────────── */

:root,
[data-theme="client"],
[data-theme="nutri"] {
  color-scheme: light;

  /* App do aluno (decisão do dono 2026-11-26): visual de aplicativo — Plus Jakarta
     Sans, cantos bem arredondados, sombras suaves, grafite + laranja da marca. */
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

  --black: #010101;
  --graphite: #171717;
  --technical-gray: #939598;
  --champagne: #F4F2EE;
  --gold: #E5530A;
  --bronze: #E5530A;
  --bg: #F4F5F7;
  --bg-2: #EBEDF0;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --input: #F4F5F7;
  --text: #15171B;
  --text-soft: rgba(21, 23, 27, 0.76);
  --text-mute: rgba(21, 23, 27, 0.56);
  --text-faint: rgba(21, 23, 27, 0.40);
  --line: rgba(21, 23, 27, 0.08);
  --line-2: rgba(21, 23, 27, 0.15);
  --accent: #FF6A1A;
  --accent-deep: #E5530A;
  --accent-tint: #FFF1E8;
  --accent-tint-2: #FFE2CF;
  --primary: #15171B;
  --primary-2: #26292E;
  --primary-ink: #FFFFFF;
  --brand-a: #B36D3A;
  --brand-b: #FF5E00;
  /* Gold/champagne — FitBusiness LP metallic CTA + serif headline accent (additive,
     does not replace --accent/--brand-a/--brand-b). Same value in both theme blocks
     below: it's a fixed brand color, not a per-theme semantic token. */
  --grad-gold: linear-gradient(135deg, #FF8A4A, #FF6A1A 55%, #E5530A);
  --success: #16834D;
  --success-tint: #E4F4EA;
  --warn: #A2620A;
  --warn-tint: #FCF0D9;
  --warn-review-bg: #FEF3C7;
  --warn-review-ink: #B45309;
  --warn-changes-bg: #FFEDD5;
  --warn-changes-ink: #C2410C;
  --danger: #B54234;
  --danger-tint: rgba(181, 66, 52, 0.14);
  --danger-alert-bg: #FEF2F2;
  --danger-alert-ink: #B91C1C;
  --danger-alert-line: #FECACA;
  --danger-overdue-bg: #FEE2E2;
  --danger-overdue-ink: #DC2626;
  --info: #5B7A99;
  --info-tint: rgba(91, 122, 153, 0.14);

  /* Type scale (theme-independent: no dark overrides needed) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-display: 2.25rem;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --tracking-eyebrow: 0.08em;

  /* Spacing rhythm — 4px base scale + layout rhythm */
  --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;
  --stack-section: var(--space-10);
  --stack-card: var(--space-4);
  --page-pad: var(--space-6);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 27, 0.05);
  --shadow: 0 6px 18px rgba(21, 23, 27, 0.07);
  --shadow-lg: 0 18px 44px rgba(21, 23, 27, 0.14);
  --gold-cta-shadow: 0 6px 18px rgba(255, 106, 26, 0.28);
  --gold-cta-shadow-lg: 0 8px 24px rgba(255, 106, 26, 0.34);
  --on-dark: #FFFFFF;

  /* Auth and consent are intentionally fixed light surfaces, including when
     the surrounding client shell uses its dark theme. Their values still live
     here so every design token has one source of truth. */
  --auth-bg: #010101;
  --auth-surface: #FFFFFF;
  --auth-text: #010101;
  --auth-muted: #6F7174;
  --auth-line: rgba(1, 1, 1, 0.14);
  --auth-accent: #FF5E00;
  --auth-accent-deep: #B36D3A;
  --auth-warm: #9A4F17;
  --drawer-scrim: rgba(0, 0, 0, 0.45);
  --auth-brand-overlay: linear-gradient(135deg, rgba(1, 1, 1, 0.98), rgba(23, 23, 23, 0.92));
  --auth-media-overlay: linear-gradient(135deg, rgba(1, 1, 1, 0.94), rgba(23, 23, 23, 0.55) 45%, rgba(1, 1, 1, 0.92)), linear-gradient(to top, rgba(1, 1, 1, 0.88) 0%, rgba(1, 1, 1, 0.15) 55%, rgba(1, 1, 1, 0.40) 100%);
  --auth-on-dark-muted: rgba(255, 255, 255, 0.70);
  --auth-on-dark-soft: rgba(255, 255, 255, 0.78);
  --auth-input-bg: rgba(255, 255, 255, 0.72);
  --auth-input-focus-bg: #FFFFFF;
  --auth-focus-ring: 0 0 0 3px rgba(255, 94, 0, 0.18);
  --auth-r-lg: 28px;
  --auth-shadow: 0 24px 70px rgba(1, 1, 1, 0.18);
  --consent-bg: #FFFFFF;
  --consent-surface: #FFFFFF;
  --consent-text: #010101;
  --consent-muted: #6F7174;
  --consent-line: rgba(1, 1, 1, 0.14);
  --consent-accent: #B36D3A;
  --consent-accent-deep: #9A4F17;
  --consent-progress-track: rgba(179, 109, 58, 0.16);
  --consent-card-shadow: 0 18px 48px rgba(1, 1, 1, 0.10);
  --consent-checkbox-bg: #FFFFFF;
  --consent-required-bg: rgba(179, 109, 58, 0.14);
  --client-hero-ink: #FFFFFF;
  --app-hero-ink: #FFFFFF;
  --app-hero-muted: rgba(255, 255, 255, 0.72);
  --app-hero-glass: rgba(255, 255, 255, 0.12);
  --app-hero-ring: rgba(255, 255, 255, 0.35);
  --app-avatar-bg: linear-gradient(135deg, #FF8A4A, #E5530A);
  --app-online: #4FD18B;
  --app-on-accent: #FFFFFF;
  --app-hero: radial-gradient(120% 90% at 85% -10%, rgba(255, 106, 26, 0.55), rgba(255, 106, 26, 0) 55%), linear-gradient(160deg, #1D1F23 0%, #0E0F11 100%);
  --client-hero-muted: rgba(255, 255, 255, 0.68);
}

[data-theme="client-dark"],
[data-theme="nutri-dark"] {
  color-scheme: dark;

  --black: #010101;
  --graphite: #171717;
  --technical-gray: #939598;
  --champagne: #F4F2EE;
  --gold: #FF8A4A;
  --bronze: #FF8A4A;
  --bg: #0E0F11;
  --bg-2: #1D2024;
  --surface: #17191C;
  --surface-2: #1D2024;
  --input: #1D2024;
  --text: #F3F4F6;
  --text-soft: rgba(243, 244, 246, 0.80);
  --text-mute: rgba(243, 244, 246, 0.58);
  --text-faint: rgba(243, 244, 246, 0.40);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #FF6A1A;
  --accent-deep: #FF8A4A;
  --accent-tint: rgba(255, 106, 26, 0.14);
  --accent-tint-2: rgba(255, 106, 26, 0.24);
  --primary: #F3F4F6;
  --primary-2: #D7D9DD;
  --primary-ink: #15171B;
  --brand-a: #B36D3A;
  --brand-b: #FF5E00;
  --grad-gold: linear-gradient(135deg, #FF8A4A, #FF6A1A 55%, #E5530A);
  --success: #4FD18B;
  --success-tint: rgba(79, 209, 139, 0.14);
  --warn: #FFC23D;
  --warn-tint: rgba(255, 194, 61, 0.14);
  --warn-review-bg: #FEF3C7;
  --warn-review-ink: #B45309;
  --warn-changes-bg: #FFEDD5;
  --warn-changes-ink: #C2410C;
  --danger: #D0604F;
  --danger-tint: rgba(208, 96, 79, 0.18);
  --danger-alert-bg: #FEF2F2;
  --danger-alert-ink: #B91C1C;
  --danger-alert-line: #FECACA;
  --danger-overdue-bg: #FEE2E2;
  --danger-overdue-ink: #DC2626;
  --info: #7C9BBA;
  --info-tint: rgba(124, 155, 186, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.45);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
