/* CDSC Mobile App — design tokens & base — v3: Navy + Yellow theme (CDSC brand) */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-light.otf"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-medium.otf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-semibold.otf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-bold.otf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-extrabold.otf"); font-weight: 800; font-display: swap; }

:root {
  /* Page + surfaces — bright, airy */
  --bg-page: #F2F2F7;
  --bg-app: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-raised: #F6F5FD;
  --bg-sunken: #F1F0F8;

  /* Ink scale */
  --ink: #0D0D1A;
  --ink-2: #1F1F33;
  --ink-3: #6B6B82;
  --ink-4: #9C9CB0;
  --ink-5: #C8C8D6;
  --divider: #ECEBF3;
  --divider-strong: #DCDBE6;

  /* Brand — Navy + Yellow (CDSC) */
  --brand: #1E3A8A;
  --brand-2: #2D4FA8;
  --brand-3: #5874C2;
  --brand-deep: #0F2563;
  --brand-tint: #EAEEF9;
  --brand-tint-2: #D7DEF2;
  --brand-fg: #FFFFFF;
  --brand-grad: linear-gradient(135deg, #2D4FA8 0%, #1E3A8A 55%, #102561 100%); /* @kind color */
  --brand-grad-soft: linear-gradient(135deg, #EAEEF9 0%, #D7DEF2 50%, #BAC5EA 100%); /* @kind color */
  --hero-grad: linear-gradient(140deg, #EAEEF9 0%, #D7DEF2 45%, #B7C2E9 100%); /* @kind color */

  /* Accent — Gold/Yellow (CDSC) */
  --accent: #F4B41B;
  --accent-2: #E0A111;
  --accent-tint: #FFF6DC;
  --accent-ink: #7A5800;

  /* Secondary brand notes from logo */
  --leaf-brand: #8BBA2C;     /* green from logo */
  --sky-brand: #1EA0DA;      /* light blue from logo */

  /* Status colors — tuned to live with navy */
  --leaf: #1F9D6A;
  --leaf-tint: #E2F6EE;
  --leaf-ink: #126B47;

  --signal: #E1364D;        /* the red used in the reference */
  --signal-tint: #FDE3E7;
  --signal-ink: #A6182C;

  --honey: #C4811F;
  --honey-tint: #FBEED2;
  --honey-ink: #7D4F08;

  --sky: #2A5DB0;
  --sky-tint: #DDE5F6;
  --sky-ink: #143C82;

  /* Radii — softer, more modern */
  --radius-card: 28px;
  --radius-tile: 22px;
  --radius-input: 18px;
  --radius-pill: 999px;

  /* Shadows — bluish, soft */
  --shadow-card: 0 1px 0 rgba(20,22,60,.02), 0 12px 28px rgba(20,22,60,.05);
  --shadow-raised: 0 1px 0 rgba(20,22,60,.03), 0 22px 50px rgba(20,22,60,.10);
  --shadow-brand: 0 12px 28px rgba(30,58,138,.30);
  --shadow-pop: 0 16px 40px rgba(30,58,138,.20);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body {
  margin: 0; padding: 0;
  font-family: "Manrope", -apple-system, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11", "tnum" 0;
  letter-spacing: -0.005em;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
input:focus, textarea:focus, select:focus { outline: none; }

.tnum { font-feature-settings: "tnum", "lnum"; font-variant-numeric: tabular-nums; }

.phone-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.phone-scroll::-webkit-scrollbar { display: none; }

.screen { animation: screen-in 320ms cubic-bezier(.2,.7,.2,1); }
@keyframes screen-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.fade-in { animation: fade-in 220ms ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pulse-dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.press { transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.press:active { transform: scale(0.98); }

.shimmer {
  background: linear-gradient(90deg, var(--bg-sunken) 0%, var(--bg-raised) 50%, var(--bg-sunken) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
