/* 1:1 with lib/core/constants.dart + lib/core/theme/motion.dart (the redesign,
   light mode = default). Palette: neon D3FA53, forest 144425, sage 657D6E,
   lime E4E9D5, mist EDF2E9, white, grey EAEAEA, stone D2DBD0.
   Token names are kept from the old kit; their VALUES follow the app's light
   tokens: --white = main text (forest), --bg = forest (text on neon).
   Scopes: :root and .screen = light, .screen.dark and .stage = dark. */
:root, .screen {
  --neon: #d3fa53; --forest: #144425; --sage: #657d6e; --lime: #e4e9d5; --mist: #edf2e9; --grey-e: #eaeaea; --stone: #d2dbd0;
  --primary: #d3fa53;
  --primary-50: #f6fedc; --primary-100: #edfdb9; --primary-200: #e9fca9; --primary-300: #e0fb8a; --primary-400: #dbfa6f;
  --primary-600: #a9cc44; --primary-700: #7e9e3c; --primary-800: #527033; --primary-900: #2a5a2f;
  --page: #edf2e9;                                  /* pageBackgroundColor */
  --bg: #144425;                                    /* backgroundColor = forest, text on neon */
  --on-primary: #144425;
  --card-bg: #ffffff;                               /* cardBackgroundColor */
  --scroll-bg: #eaeaea;                             /* scrollBackgroundColor */
  --card-featured-bg: #e4e9d5;                      /* cardFeaturedBackgroundColor */
  --card-danger-bg: rgba(234, 91, 91, 0.1);
  --card-bg-opaque: #eaeaea;                        /* cardBackgroundWithOpacity */
  --pill-bg: #e4e9d5;                               /* pillBackgroundColor */
  --input-fill: #e4e9d5;                            /* inputFillColor */
  --icon-btn: #e4e9d5;                              /* iconButtonColor */
  --hero: #144425;                                  /* heroCardColor */
  --hero-pill: rgba(101, 125, 110, 0.55);
  --on-hero: #ffffff; --on-hero-muted: #d2dbd0;
  --selected-pill: #144425; --on-selected-pill: #ffffff;
  --on-selected-choice: #d3fa53;
  --switch-track: #144425; --switch-thumb: #ffffff;
  --filter-btn: #144425; --on-filter-btn: #ffffff;
  --indicator-off: #657d6e;
  --sheet: #edf2e9;
  --black: #144425;
  --white: #144425;                                 /* whiteColor */
  --white-80: rgba(20, 68, 37, .8);
  --white-60: #657d6e;
  --white-40: rgba(101, 125, 110, .7);
  --white-20: #d2dbd0;
  --white-10: #e4e9d5;
  --white-5: #edf2e9;
  --pure-white: #ffffff;
  --accent: #144425;                                /* accentColor: forest on light, neon on dark/forest */
  --white-12a: rgba(20, 68, 37, 0.08);
  --white-24a: rgba(20, 68, 37, 0.12);
  --white-38a: rgba(20, 68, 37, 0.19);
  --border: transparent;
  --border-white: transparent;
  --grey: #657d6e; --grey-500: #657d6e; --dark-grey: #144425;
  --success: #0e7c3a; --warning: #8a5f00; --error: #c62828; --amber-600: #ffb300;
  --receipt-read: #0b7fb5;
  color: var(--white);
}
/* dark: login, onboarding, splash (always forest) and the video stage */
.screen.dark, .stage, .demo-layout {
  --page: #144425;
  --bg: #144425;
  --card-bg: rgba(101, 125, 110, .35);
  --scroll-bg: rgba(101, 125, 110, .45);
  --card-featured-bg: rgba(101, 125, 110, .6);
  --card-bg-opaque: #3a5e47;
  --pill-bg: rgba(101, 125, 110, .6);
  --input-fill: rgba(101, 125, 110, .35);
  --icon-btn: #e4e9d5;
  --hero: rgba(101, 125, 110, .6);
  --selected-pill: #d3fa53; --on-selected-pill: #144425;
  --on-selected-choice: #144425;
  --switch-track: #d3fa53; --switch-thumb: #144425;
  --filter-btn: #d3fa53; --on-filter-btn: #144425;
  --indicator-off: rgba(101, 125, 110, .7);
  --sheet: #144425;
  --accent: #d3fa53;
  --white: #ffffff;
  --white-80: #edf2e9;
  --white-60: #d2dbd0;
  --white-40: #657d6e;
  --white-20: rgba(101, 125, 110, .6);
  --white-10: rgba(101, 125, 110, .4);
  --white-5: rgba(101, 125, 110, .25);
  --white-12a: rgba(255, 255, 255, 0.12);
  --white-24a: rgba(255, 255, 255, 0.24);
  --white-38a: rgba(255, 255, 255, 0.38);
  --grey: #d2dbd0; --grey-500: #d2dbd0;
  --success: #2ed573; --warning: #ffbe21; --error: #ea5b5b;
  --receipt-read: #53bdeb;
  color: var(--white);
}
/* forest surfaces on light screens read neon */
.app-card.hero, .app-card.forest, .on-forest { --accent: #d3fa53; }
/* login + onboarding fields: sage pill, mist text, lime hint */
.screen.dark { --auth-field: #657d6e; --auth-text: #edf2e9; --auth-hint: #e4e9d5; --auth-card: #ffffff; --input-fill: #657d6e; }
:root {
  /* layout */
  --pad: 16px;              /* defaultPadding */
  --radius: 32px;           /* defaultBorderRadious */
  --btn-h: 52px;            /* buttonHeight */
  --screen-w: 390px;
  --screen-h: 844px;
  --safe-top: 47px;
  --safe-bottom: 34px;

  /* motion */
  --fast: 150ms;
  --normal: 250ms;
  --slow: 350ms;
  --default-duration: 300ms;
  --stagger: 50ms;
  --enter: cubic-bezier(0.215, 0.61, 0.355, 1);      /* Curves.easeOutCubic */
  --exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);    /* Curves.easeInCubic */
  --emphasized: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Curves.easeOutBack */
  --home-phase-gap: 200ms;
}
