/* ==========================================================================
   JPS Clean — Design Tokens
   Every value in the theme comes from this file. Nothing is hand-picked.
   ========================================================================== */

:root {

  /* --- Color -------------------------------------------------------------
     One brand hue (trust blue), one support hue (eco green) used sparingly
     so it stays a focal point, and a single neutral ramp for everything else.
     Figure/ground depends on exactly three surfaces — no more.            */

  --ink-900: #0a1a28;
  --ink-800: #12293b;
  --ink-700: #1f3c52;
  --ink-600: #3a5670;
  --ink-500: #5e7689;
  --ink-400: #8ca0b0;
  --ink-300: #b9c7d2;

  --line:        #dce5ec;
  --line-strong: #c3d1db;

  --surface-1: #ffffff;   /* cards, page ground                            */
  --surface-2: #f5f8fa;   /* alternating section ground                    */
  --surface-3: #ebf1f5;   /* recessed wells, table headers                 */

  /* Brand ramp built from the logo droplet (#0ea6de). The logo cyan itself
     is too light to carry white text (2.8:1), so it stays decorative and the
     ramp darkens for anything that has to be read.                        */
  --brand-700: #064c68;   /* hover / deep ground     — 9.4:1 on white      */
  --brand-600: #0a7099;   /* primary actions         — 5.5:1 on white      */
  --brand-500: #0ea6de;   /* the logo cyan — glows, rails, icon accents    */
  --brand-200: #a9def4;
  --brand-100: #e2f4fc;

  /* Lime from the logo leaf and sparkles (#c2d54f). Decorative at full
     strength; darkened when it has to carry meaning.                      */
  --lime-500: #c2d54f;
  --eco-700: #4f6410;
  --eco-600: #6b8417;     /* check marks, eco badges                       */
  --eco-100: #f2f7dd;

  /* Success is a true green, kept separate from the lime brand accent so a
     confirmation never reads as decoration.                               */
  --ok-700: #0f6b45;
  --ok-600: #14855a;
  --ok-100: #e3f4ec;

  --star: #e0952a;

  --focus: #0a7099;
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--focus);

  /* --- Type --------------------------------------------------------------
     Modular scale, ratio 1.25, fluid between 380px and 1280px viewports.  */

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   clamp(1.25rem,  1.10rem + 0.65vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem,   1.24rem + 1.10vw, 2rem);
  --fs-3xl:  clamp(1.875rem, 1.45rem + 1.85vw, 2.75rem);
  --fs-4xl:  clamp(2.25rem,  1.55rem + 3.05vw, 3.75rem);

  --lh-tight: 1.12;
  --lh-snug:  1.25;
  --lh-body:  1.65;

  --ls-tight: -0.022em;
  --ls-flat:  -0.011em;
  --ls-wide:   0.08em;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* --- Space -------------------------------------------------------------
     4px base. The names encode the Gestalt proximity rule: elements inside
     a group NEVER use a gap larger than --space-inner, and groups are NEVER
     separated by less than --space-group. That single constraint is what
     makes the page read as discrete chunks instead of a wall.             */

  --space-1: 0.25rem;   /*  4 */
  --space-2: 0.5rem;    /*  8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */

  --space-inner-tight: var(--space-2);  /* label → value                   */
  --space-inner:       var(--space-4);  /* inside one card / one group     */
  --space-group:       var(--space-6);  /* between sibling groups          */
  --space-section:     clamp(3.5rem, 2rem + 6vw, 7rem);

  /* --- Layout ------------------------------------------------------------ */

  --measure:      68ch;   /* max line length for reading                   */
  --container:    1200px;
  --container-wide: 1360px;
  --gutter:       clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);
  --grid-cols:    12;
  --grid-gap:     clamp(1.25rem, 0.8rem + 1.6vw, 2rem);

  /* --- Shape & depth ----------------------------------------------------- */

  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(10, 26, 40, 0.06), 0 1px 3px rgba(10, 26, 40, 0.05);
  --shadow-2: 0 4px 12px rgba(10, 26, 40, 0.07), 0 14px 32px rgba(10, 26, 40, 0.07);
  --shadow-3: 0 8px 20px rgba(10, 26, 40, 0.09), 0 28px 56px rgba(10, 26, 40, 0.10);

  /* --- Motion ------------------------------------------------------------ */

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 380ms;

  /* --- Controls ---------------------------------------------------------- */

  --tap: 44px;            /* minimum touch target                          */
  --header-h: 72px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
}
