/* =====================================================================
   Program Finder X · Phase 3
   tokens.css — design foundation (the DNA every component derives from)
   Direction: clean / premium / airy-light. Signature = the Fit Score.
   ===================================================================== */

:root {
  /* ---- ink & surfaces (Fresh Optimist · bright, mint+indigo) ---- */
  --ink:        #101935;   /* headings — deep indigo-navy */
  --ink-2:      #475069;   /* body */
  --ink-3:      #7B8499;   /* secondary */
  --ink-4:      #9AA4BA;   /* muted / placeholder */
  --line:       #E7EBF3;   /* hairline */
  --line-2:     #DBE1EC;   /* stronger border */
  --bg:         #F3F7FB;   /* page (solid fallback; body adds gradient tint) */
  --bg-2:       #ECEFFA;   /* alt band — faint indigo */
  --surface:    #FFFFFF;   /* cards */
  --surface-2:  #F8FAFF;   /* inset */

  /* ---- brand + semantic (matched to the ApplyStudyVisa logo: royal blue + amber) ---- */
  --primary:      #3563C9;  /* logo blue — "Apply" */
  --primary-700:  #2A4FA3;
  --primary-tint: #E8EDF8;
  --amber:        #FBBC24;  --amber-tint: #FEF3D7;  /* logo amber — "Study Visa" (brand accent) */
  --amber-700:    #E3A40C;
  --safe:         #10C98E;  --safe-tint:  #E7FAF3;  /* eligible / Safe — bright mint = "go" */
  --safe-700:     #0BB37E;
  --match:        #3563C9;  --match-tint: #E8EDF8;  /* Match */
  --reach:        #E68A17;  --reach-tint: #FCEFDA;  /* Reach / caution */
  --warn:         #E2514A;  --warn-tint:  #FCEAE9;  /* warnings */
  --gold:         #BE9442;  --gold-tint:  #F6EFDD;  /* partner / recommended */

  /* ---- typography ---- */
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --t-display: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  --t-h1:      clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --t-h2:      clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  --t-h3:      1.25rem;
  --t-lg:      1.125rem;
  --t-base:    1rem;
  --t-sm:      0.9375rem;
  --t-xs:      0.8125rem;
  --t-2xs:     0.6875rem;

  --lh-tight:  1.1;
  --lh-snug:   1.3;
  --lh-base:   1.55;
  --tracking-tight: -0.02em;
  --tracking-wide:   0.06em;

  /* ---- spacing (4px base) ---- */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem;  --s-7: 1.75rem; --s-8: 2rem;
  --s-9: 2.25rem; --s-10: 2.5rem; --s-12: 3rem;   --s-16: 4rem; --s-20: 5rem;

  /* ---- radius ---- */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* ---- elevation (soft, low-spread, premium) ---- */
  --shadow-xs: 0 1px 2px rgba(16,27,46,.05);
  --shadow-sm: 0 2px 10px rgba(16,27,46,.06);
  --shadow-md: 0 10px 28px rgba(16,27,46,.09);
  --shadow-lg: 0 22px 56px rgba(16,27,46,.14);
  --ring:      0 0 0 4px var(--primary-tint);

  /* ---- motion ---- */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: .12s; --dur-2: .2s; --dur-3: .32s; --dur-4: .5s;

  /* ---- layout ---- */
  --maxw: 1280px;
  --rail: 300px;     /* filter rail width */
  --header-h: 64px;
}

/* =====================================================================
   base reset + elements
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-base);
  color: var(--ink-2);
  background: var(--bg);
  background-image:
    linear-gradient(180deg,
      color-mix(in srgb, var(--safe) 7%, transparent) 0%,
      transparent 22%,
      color-mix(in srgb, var(--primary) 6%, transparent) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { line-height: var(--lh-base); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* numbers (fees, scores) line up */
.tnum { font-variant-numeric: tabular-nums; }

/* eyebrow / label utility */
.eyebrow {
  font-size: var(--t-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-4);
}

/* focus: always visible, never ugly */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--primary); color: #fff; }

/* page wrapper */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }

/* respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
