/* ==========================================================================
   AirGo Design Tokens — CSS custom properties
   Generated from design-tokens.json · v1.0.0 · 2026-07-30

   The prototype uses inline styles (literal values) so pages paint immediately.
   This file is the production hand-off: import it once and replace literals
   with var(--ag-*) references during the build.
   ========================================================================== */

:root {
  /* ---- Brand ---- */
  --ag-navy:  #0B2038;   /* structure */
  --ag-azure: #1F73F1;   /* interaction */
  --ag-coral: #FF5C39;   /* primary action ONLY */

  /* ---- Azure ramp ---- */
  --ag-azure-50:  #F4F8FF;
  --ag-azure-100: #EDF4FF;
  --ag-azure-200: #C9DDFF;
  --ag-azure-300: #B8D6FF;
  --ag-azure-400: #8FC2FF;
  --ag-azure-500: #1F73F1;
  --ag-azure-600: #1A5FCC;

  /* ---- Navy ramp ---- */
  --ag-navy-600:  #123C7A;
  --ag-navy-800:  #0B2038;
  --ag-navy-900:  #081726;
  --ag-navy-hover:#12293F;

  /* ---- Coral ramp ---- */
  --ag-coral-50:     #FFF1EC;
  --ag-coral-400:    #FF8A5B;
  --ag-coral-500:    #FF5C39;
  --ag-coral-600:    #F0492A;
  --ag-coral-shadow: rgba(255,92,57,.30);

  /* ---- Neutrals ---- */
  --ag-ink:         #1D2A39;
  --ag-slate:       #33475B;
  --ag-muted:       #5B6B7C;
  --ag-faint:       #94A3B4;
  --ag-line-strong: #CBD6E0;
  --ag-line:        #E4EAF0;
  --ag-hover-fill:  #F0F5F9;
  --ag-page:        #F5F8FB;
  --ag-card:        #FFFFFF;

  /* ---- On dark surfaces ---- */
  --ag-on-dark-body:   #B9C7D6;  /* NOT pure white */
  --ag-on-dark-accent: #8FC2FF;
  --ag-on-dark-muted:  #8FA3B6;
  --ag-on-dark-meta:   #6B7E92;

  /* ---- Semantic ---- */
  --ag-success:         #14A44D;
  --ag-success-dot:     #2FD07E;
  --ag-success-surface: #E7F8EE;
  --ag-success-border:  #B7E7C9;

  --ag-warning:         #F0A020;
  --ag-warning-text:    #8A5410;  /* canonical; #B06A12 / #7A6023 retired */
  --ag-warning-surface: #FFF4E6;
  --ag-warning-border:  #F5D9A8;

  --ag-error:           #D8412F;
  --ag-error-text:      #B23225;
  --ag-error-surface:   #FEF1EF;
  --ag-error-border:    #F6C9C0;
  --ag-error-input:     #E88A7D;

  /* ---- Gradients (exactly three approved) ---- */
  --ag-gradient-hero:   radial-gradient(900px 420px at 78% -30%, #123C7A, #0B2038 55%, #081726);
  --ag-gradient-panel:  linear-gradient(120deg, #0B2038, #123C7A);
  --ag-gradient-action: linear-gradient(120deg, #FF5C39, #FF8A5B);

  /* ---- Typography ---- */
  --ag-font-display: 'Sora', system-ui, sans-serif;
  --ag-font-body:    'Manrope', system-ui, sans-serif;
  --ag-font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ag-text-h1-hero: 46px;
  --ag-text-h1:      40px;
  --ag-text-h2:      28px;
  --ag-text-h3:      18px;
  --ag-text-h4:      16px;
  --ag-text-lead:    17px;
  --ag-text-base:    15px;
  --ag-text-small:   13.5px;
  --ag-text-caption: 12px;
  --ag-text-micro:   11.5px;

  --ag-tracking-tight: -0.02em;
  --ag-leading-heading: 1.15;
  --ag-leading-body:    1.6;

  /* ---- Space ---- */
  --ag-space-0-5: 4px;
  --ag-space-1:   8px;
  --ag-space-1-5: 12px;
  --ag-space-2:   16px;
  --ag-space-2-5: 20px;
  --ag-space-3:   24px;
  --ag-space-4:   32px;
  --ag-space-5:   40px;
  --ag-space-6:   48px;
  --ag-space-7:   56px;
  --ag-space-8:   64px;

  /* ---- Radius ---- */
  --ag-radius-sm:   8px;
  --ag-radius-md:   11px;
  --ag-radius-lg:   14px;
  --ag-radius-xl:   18px;
  --ag-radius-2xl:  22px;
  --ag-radius-pill: 100px;

  /* ---- Shadow ---- */
  --ag-shadow-card:       0 12px 30px rgba(11,32,56,.06);
  --ag-shadow-card-hover: 0 20px 44px rgba(11,32,56,.10);
  --ag-shadow-raised:     0 24px 60px rgba(11,32,56,.10);
  --ag-shadow-overlay:    0 30px 70px rgba(11,32,56,.30);
  --ag-shadow-primary:    0 8px 20px rgba(255,92,57,.30);
  --ag-shadow-sticky:     0 -6px 20px rgba(11,32,56,.12);

  /* ---- Border ---- */
  --ag-border:          1px solid #E4EAF0;
  --ag-border-input:    1.5px solid #E4EAF0;
  --ag-border-emphasis: 2px solid #E4EAF0;

  /* ---- Motion ---- */
  --ag-motion-fast:  150ms;
  --ag-motion-base:  180ms;
  --ag-motion-enter: 250ms;
  --ag-motion-panel: 300ms;

  /* ---- Layout ---- */
  --ag-content-max:  1240px;
  --ag-prose-max:    900px;
  --ag-form-max:     440px;
  --ag-gutter:       24px;
  --ag-header-height:70px;
}

@media (max-width: 768px) {
  :root { --ag-gutter: 16px; }
}

/* ==========================================================================
   Base primitives
   ========================================================================== */

body {
  font-family: var(--ag-font-body);
  color: var(--ag-ink);
  background: var(--ag-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ag-font-display);
  line-height: var(--ag-leading-heading);
  letter-spacing: var(--ag-tracking-tight);
  color: var(--ag-navy);
}

a { color: var(--ag-azure-600); text-decoration: none; }
a:hover { color: var(--ag-navy); }

/* Focus ring — required on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ag-azure);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen-reader-only utility */
.ag-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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