/* Design tokens, taken from the mobile app (design/DESIGN.md). Change colours here only. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); }

:root {
  /* brand */
  --blue900: #1A5FE6;
  --blue600: #2A86F2;
  --cyan500: #22B3E8;
  --mint: #3BD58E;
  --saving700: #0B8457;
  --saving500: #12A36B;
  /* neutrals */
  --ink: #0E2A47;
  --muted: #536781;
  --surface: #FFFFFF;
  --background: #F4F8FD;
  --track: #E3ECF7;
  --tile: #E6F0FF;
  --bar-other: #8FB4E3;
  /* gradients */
  --grad-brand: linear-gradient(150deg, #1A5FE6 0%, #2A86F2 60%, #22B3E8 100%);
  --grad-saving: linear-gradient(140deg, #0B8457, #12A36B);
  --grad-text: linear-gradient(90deg, #1A5FE6, #22B3E8 60%, #3BD58E);
  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.55);
  /* shape and shadow */
  --radius-card: 24px;
  --radius-pill: 99px;
  --shadow-card: 0 10px 30px rgba(14, 42, 71, 0.08);
  --shadow-lift: 0 18px 44px rgba(14, 42, 71, 0.16);
  --shadow-cta: 0 12px 28px rgba(26, 95, 230, 0.35);
  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 0.7s;
  /* layout */
  --nav-h: 68px;
  --wrap: 1120px;
  /* theme-aware roles (flip in dark mode) */
  --link: #1A5FE6;
  --saving: #0B8457;
  --nav-solid: rgba(255, 255, 255, 0.86);
  --footer-bg: #0E2A47;
  color-scheme: light;
}

/* Dark theme. Values are the mobile app's own dark palette (lib/core/theme/tokens.dart,
   AppPalette.dark). Brand gradients stay the same in both themes, as in the app.
   Applied when the visitor chose Dark (data-theme="dark"), or when they have not chosen
   and their system prefers dark. Keep the two blocks identical. */
:root[data-theme="dark"] {
  --background: #0B1626;
  --surface: #142439;
  --ink: #E8F0FA;
  --muted: #A3B5CB;
  --track: #24364F;
  --tile: #1C3352;
  --link: #7DB2FF;
  --saving: #45D99B;
  --bar-other: #4F6F99;
  --nav-solid: rgba(11, 22, 38, 0.86);
  --footer-bg: #070F1B;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0B1626;
    --surface: #142439;
    --ink: #E8F0FA;
    --muted: #A3B5CB;
    --track: #24364F;
    --tile: #1C3352;
    --link: #7DB2FF;
    --saving: #45D99B;
    --bar-other: #4F6F99;
    --nav-solid: rgba(11, 22, 38, 0.86);
    --footer-bg: #070F1B;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
