/*
 * SlingCX design tokens.
 *
 * Every value carries where it came from:
 *   [spec]       the brand guideline, a Figma variable or a supplied file
 *                (the logo SVGs)
 *   [extracted]  measured off a screenshot: the Figma home frame (2026-10-20),
 *                1440 wide, read at 1.276 screenshot px per design px, or a
 *                guideline slide. Close, not exact; confirm against the source.
 *   [derived]    filled in by me because nothing has decided it yet.
 *                Replace freely when a design decides it.
 *
 * Names follow the Figma variables (Sling-navy-blue/900 is
 * --sling-navy-blue-900) so design and code say the same thing.
 */

:root {
  color-scheme: light;

  /* ── Brand colour: the guideline palette ──────────────────── */
  --sling-navy-blue-900: #0B1F3A; /* [spec] Figma Sling-navy-blue/900; guideline Midnight Blue */
  --sling-navy-blue-50: #ECF1FC;  /* [spec] Figma Sling-navy-blue/50; the guideline's light logo ground, unnamed there */
  --sling-cyan-200: #22D3EE;      /* [spec] Figma sling-cyan/200; guideline Bright Cyan, the "signature colour" */
  --sling-blue-bell: #A1BDF5;     /* [spec] guideline Blue Bell, printed "A1B?F5" with one character blurred; sampled #A1BCF3 */
  --sling-black: #000000;         /* [spec] guideline Black */
  --sling-white: #FFFFFF;         /* [spec] guideline White */
  --sling-cloud: #F7F7F7;         /* [derived] cloudy white, the page ground (user, 2026-10-20: "not full white") */

  --sling-midnight-blue: var(--sling-navy-blue-900); /* [spec] the guideline's name */
  --sling-bright-cyan: var(--sling-cyan-200);        /* [spec] the guideline's name */

  /* Type pairings on the guideline's "Type and Colour" slide, not in its
     printed palette. */
  --sling-periwinkle: #D0DBF9;    /* [extracted] sampled off the slide; pairs with Midnight Blue */
  --sling-deep-teal: #064E5A;     /* [extracted] sampled off the slide; pairs with Bright Cyan */

  /* Seen in the website frame. Not in the guideline palette; confirm with
     the designer. */
  --sling-ink: #030F1E;           /* [extracted] headline, nav links, button text. Darker than Midnight Blue */
  --sling-slate: #3D4758;         /* [extracted] hero subline */
  --sling-cyan-cta: #65D0EA;      /* [extracted] hero button fill. Lighter than Bright Cyan */
  --sling-tint: #E5EFFD;          /* [extracted] icon tile on the floating card */

  /* ── Roles ────────────────────────────────────────────────── */
  --sling-page: var(--sling-cloud);              /* [derived] cloudy white, not full white (user, 2026-10-20); raised surfaces stay white */
  --sling-mist: #F5FAFE;          /* [derived] user-supplied (2026-10-26): the top of the page's closing ground (user, 2026-10-26) */
  --sling-ground-close: linear-gradient(180deg, var(--sling-mist) 0%, var(--sling-navy-blue-50) 100%); /* [derived] user-supplied: the FAQ and the photo banner: #F5FAFE to #ECF1FC (user, 2026-10-26) */
  --sling-band: var(--sling-navy-blue-50);       /* [extracted] nav bar ground (#EDF1FB sampled) */
  --sling-surface: var(--sling-white);           /* [extracted] floating cards */
  --sling-text: var(--sling-ink);
  --sling-text-subtle: var(--sling-slate);
  --sling-action: var(--sling-cyan-cta);         /* primary button fill, with --sling-ink text */
  --sling-action-hover: color-mix(in srgb, var(--sling-cyan-cta) 80%, white); /* [derived] lighter on hover, #84D9EE, 12.05:1 with ink */
  --sling-hairline: rgb(11 31 58 / 0.12);        /* [derived] navy at 12%, #E2E4E7 on white; dividers and card edges */
  --sling-hover-fill: rgb(255 255 255 / 0.7);    /* [derived] nav link hover, lifts toward white like the outline button; 18.57:1 with ink */
  --sling-focus: var(--sling-navy-blue-900);     /* [derived] focus ring; cyan fails 3:1 on white */
  --sling-focus-width: 2px;                      /* [derived] */
  --sling-focus-offset: 3px;                     /* [derived] */
  --sling-line-art: var(--sling-navy-blue-50);   /* [extracted] the logo line in the hero (#EDF1FC sampled) */
  --sling-success: #13714A;                      /* [derived] 6.02:1 on white */
  --sling-danger: #B4232A;                       /* [derived] 6.53:1 on white; form errors later */
  --sling-danger-vivid: #E0302A;                 /* [derived] a brighter red for marks that must pop (the old way's crosses); 3.8:1 on its tint */
  --sling-danger-tint: #FDE7E6;                  /* [derived] the tile behind it */
  --sling-coral: #FF7A59;                         /* [user] 2026-10-26, Who We Serve's E-commerce tag; not in the guideline's palette, confirm with the client. 7.4:1 with ink */
  --sling-coral-hover: color-mix(in srgb, var(--sling-coral) 82%, var(--sling-surface)); /* [derived] the coral button's hover, lighter (#FF9273), 8.6:1 with ink */
  --sling-coral-gradient: linear-gradient(135deg, var(--sling-coral), color-mix(in srgb, var(--sling-coral) 55%, var(--sling-surface))); /* [derived] coral to a soft peach (#FFB6A4), ink text on it throughout */

  /* ── Type ─────────────────────────────────────────────────── */
  /* Guideline section 04: Gabarito for headlines (Google Fonts), SF Pro
     Rounded for subheadings and body. [spec]
     Apple's licence bars serving SF Pro Rounded as a web font, so it shows
     only where ui-rounded reaches it (Safari on Apple devices) or it is
     installed. Everyone else gets Inter, the closest free face in the
     glyph comparison (2026-10-20). [derived] */
  --sling-font-heading: "Gabarito", system-ui, sans-serif;
  --sling-font-body: ui-rounded, "SF Pro Rounded", Inter, system-ui, sans-serif;
  --sling-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --sling-weight-regular: 400;   /* [spec] SF Pro Rounded 55 Roman */
  --sling-weight-medium: 500;    /* [spec] SF Pro Rounded 65 Medium; the only two approved weights */
  --sling-heading-weight: 400;   /* [extracted] the frame's headline is Gabarito Regular (glyph comparison). The guideline's samples are bold: see Open questions */

  --sling-track-heading: -0.03em;    /* [spec] guideline "Heading -30" */
  --sling-track-subheading: -0.02em; /* [spec] guideline "Subheading -20" */
  --sling-track-body: -0.01em;       /* [spec] guideline "Body -10" */
  --sling-track-small: 0;            /* [spec] small text "0 to -10" */



  --sling-body-size: 16px;       /* [extracted] card text */
  --sling-body-leading: 24px;    /* [extracted] */

  --sling-nav-size: 14px;        /* [extracted] nav links and Book a Call: 10px caps */
  --sling-nav-leading: 20px;     /* [derived] */
  --sling-nav-weight: var(--sling-weight-medium); /* [spec] SF Pro Rounded; the frame sets the nav in Plus Jakarta Sans 500 */


  --sling-note-size: 15px;       /* user, 2026-10-20: the note and the tagline badge at 15, a deliberate exception to the scale */
  --sling-note-leading: 22px;    /* [derived] */



  --sling-button-track: var(--sling-track-body);
  --sling-nav-track: var(--sling-track-small);

  --sling-mono-size: 13px;       /* [derived] code and labels on the design system page; the one size under 14, as mono reads larger */
  --sling-mono-leading: 20px;    /* [derived] */

  /* ── Space and size ───────────────────────────────────────── */
  /* A 4px grid [derived]; every measured size sits on it or near it. */
  --sling-space-1: 4px;
  --sling-space-2: 8px;
  --sling-space-3: 12px;
  --sling-space-4: 16px;
  --sling-space-5: 24px;
  --sling-space-6: 32px;
  --sling-space-7: 40px;
  --sling-space-8: 64px;
  --sling-space-9: 96px;
  --sling-space-10: 112px;

  --sling-title-em: 8.994;       /* [derived] the hero headline's longest line ("operational headache.", Gabarito 400, -0.03em, with its full stop since 2026-10-24) in ems: sizes .sling-title-fit to whole columns. Re-measure if the headline changes */
  --sling-hero-measure: 620px;   /* [derived] one max width for the hero headline and its description (user, 2026-10-20) */
  --sling-frame: 1440px;         /* [extracted] the Figma frame width: the nav bar alone now */
  --sling-frame-content: 1280px; /* [derived] the page: the hero, its tool logos and every section (user, 2026-10-24: "reduce the site max width", then "let the hero max width drop too"); only the nav keeps 1440 */
  --sling-edge-start: 40px;      /* [extracted] logo in from the left */
  --sling-edge-end: 40px;        /* [derived] even with the left (user, 2026-10-20: follow the grid); the frame's 24 was the reference nav's quirk */
  --sling-nav-height: 64px;      /* [extracted] 63.3 measured */
  --sling-stick-top: calc(var(--sling-nav-height) + var(--sling-space-5)); /* [derived] where sticky heads and folding cards stop: 24 under the sticky nav, so a stack never touches it (user, 2026-10-24: "fix gap above the card when stacking") */

  /* Layout grid [derived]. Placeholders so the Grid button has something
     to draw: the Figma layout grid replaces them. It sits inside the
     frame's edges, up to --sling-frame. */
  --sling-grid-columns: 4;       /* [derived] below 768px; 8 from 768px, 12 from 1024px (below) */
  --sling-grid-gap: 24px;        /* [derived] */

  --sling-button-height: 44px;   /* [derived] one height for every button (user, 2026-10-20: consistent buttons); the frame's hero pill was 48 */
  --sling-button-height-sm: 44px; /* [extracted] Book a Call, 138 wide */

  --sling-button-pad: 24px;      /* [derived] pill buttons, label only (user, 2026-10-20) */
  --sling-button-height-lg: 56px; /* [derived] the hero's call to action (user, 2026-10-22: "too small and isolated") */
  --sling-button-pad-lg: 32px;    /* [derived] */
  --sling-cta-cols: 4;            /* [derived] page columns a standalone call to action spans (the hero's, the footer's, a section's): 4 below 1280, 3 from 1280; full width on phones (user, 2026-10-24: "make sure all section buttons are consistent") */
  --sling-logo-height: 36px;     /* [derived] user, 2026-10-20: the frame's 26 read too small; on the 4px grid, well over the 20px minimum */
  --sling-nav-link-height: 36px; /* [derived] */
  --sling-nav-link-pad: var(--sling-space-3); /* [derived] was 10 */
  --sling-avatar: 40px;          /* [derived] user, 2026-10-20: faces were too small at 32 */
  --sling-avatar-sm: 32px;       /* [derived] the note's face; user: 24 was too small */

  /* Icons [derived] until the brand's icon set is known. */
  --sling-icon-sm: 14px;         /* [derived] inside buttons and nav links */
  --sling-icon: 16px;            /* [derived] */
  --sling-icon-lg: 24px;         /* [derived] the card tile; was 22 */

  /* ── Radius ───────────────────────────────────────────────── */
  --sling-radius-xs: 4px;        /* [extracted, by eye] tags (the Who We Serve reference) */
  --sling-radius-sm: 8px;        /* [extracted, by eye] Book a Call, icon tile */
  --sling-radius-card: 12px;     /* [extracted, by eye] floating cards */
  --sling-radius-pill: 999px;    /* [extracted] hero button */
  --sling-button-radius: var(--sling-radius-sm); /* 8px: square-cornered buttons, as variation E's (client, 2026-10-22; were pills) */
  /* Form controls (2026-11-16: the planner's fields, after the user's "follow design system") */
  --sling-field-height: 48px;                    /* [derived] inputs and the dropdown's button */
  --sling-field-edge: rgb(11 31 58 / 0.20);      /* [derived] a field's resting edge: firmer than the card hairline, so a field reads as one */
  --sling-field-edge-hover: rgb(11 31 58 / 0.40);/* [derived] */
  --sling-field-halo: rgb(11 31 58 / 0.10);      /* [derived] the soft ring round a focused field, outside its navy edge */

  /* ── Elevation ────────────────────────────────────────────── */

  /* ── Staging review tools ─────────────────────────────────── */
  /* Not brand colours: the Grid and Variation buttons from Browns & Co,
     the red darkened so white text on it passes 4.5:1. Never on the live site. */
  --sling-review-grid: rgb(200 45 45);     /* [derived] 5.4:1 with white */
  --sling-review-variant: rgb(40 110 220); /* [derived] 4.8:1 with white */
  --sling-review-space: rgb(15 118 110);   /* [derived] teal, 5.5:1 with white */
  --sling-review-type: rgb(110 70 190);    /* [derived] violet, 6.6:1 with white */

  /* ── Motion: the transitions.dev scale ────────────────────── */
  /* From .agents/skills/transitions-dev/_root.css. Windhoek's rule on
     top: no bounce or spring unless the design asks for it. */
  --duration-stagger: 40ms;
  --reveal-duration: 600ms; /* the scroll reveal: long enough to be seen as it happens (user, 2026-10-24: "make sure all motion has time to be seen"); over the 200ms cap by the user's call */
  --reveal-stagger: 80ms;   /* between items revealed together */
  --reveal-distance: 24px;  /* how far an item rises */
  --duration-micro: 80ms;
  --duration-press: 100ms;     /* button press */
  --duration-quick: 150ms;     /* close, text swap, colour */
  --duration-fast: 200ms;      /* open: menus, dialogs. transitions.dev says 250; windhoek caps at 200 */
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --scale-press: 0.97;
  --distance-micro: 4px;
  --distance-base: 8px;
  --blur-small: 2px;

  /* ── Web type scale (user, 2026-10-20: "follow a principle") ──
     Every piece of text on the site uses one of these eight steps and
     nothing else. A major-third rhythm (about x1.25) from a 16px base,
     rounded to whole pixels. Never smaller than 14px: 14 is for small
     supporting text only (captions, card sublines, labels); reading text is
     16 or larger. Leading tightens as size grows. Display and headings in
     Gabarito, everything else in the body face. [derived] */
  --sling-text-xs: 14px;   --sling-text-xs-leading: 20px;   /* captions, card sublines, labels, notes */
  --sling-text-sm: 16px;   --sling-text-sm-leading: 24px;   /* body, nav links, buttons, card text */
  --sling-text-md: 18px;   --sling-text-md-leading: 28px;   /* the guideline's 18pt body; lead text on small screens */
  --sling-text-lg: 20px;   --sling-text-lg-leading: 30px;   /* lead text under a headline */
  --sling-text-xl: 24px;   --sling-text-xl-leading: 32px;   /* card headings, the tool names */
  --sling-text-2xl: 32px;  --sling-text-2xl-leading: 40px;  /* section headings on small screens */
  --sling-text-3xl: 48px;  --sling-text-3xl-leading: 52px;  /* the hero headline on tablets; the footer's closing call to action */
  --sling-heading-measure: 30rem; /* [derived] every section heading's max width, 480px (five columns of the 1280 frame, 486), so each breaks into two balanced lines (user, 2026-10-24: "make sure all headers have the same max width and break") */
  --sling-tag-size: 12px; --sling-tag-leading: 16px; /* the hero's tag (user, 2026-10-24: "reduce font to 12px with 0.24em spacing"); under the 14 floor by the user's call, uppercase and tracked only */
  --sling-section-heading: 2.7rem; --sling-section-heading-leading: 3rem; /* section headings, 43.2 on 48 (user, 2026-10-24: "use 2.7rem for section headings"); off the scale by the user's call */
  --sling-text-4xl: 64px;  --sling-text-4xl-leading: 68px;  /* the hero headline on desktop */

  /* Menu dropdown: it closes with a quick fade.
     The soft open (user, 2026-10-21: "the animation is for the dropdown
     itself, not the content; it is too rigid to open"): the panel unfolds
     down from the bar on a long, soft ease-out while it fades in; its
     content is still. Longer than the 200ms cap, by the user's call. */
  --dropdown-close-dur: var(--duration-quick);
  --dropdown-ease: var(--ease-smooth-out);
  --dropdown-unfold-dur: 320ms;
  --dropdown-fade-dur: 220ms;
  --dropdown-soft-ease: cubic-bezier(0.16, 1, 0.3, 1); /* [derived] a gentle expo-style ease-out */
  --dropdown-morph-dur: 340;     /* ms; switching menus: the frame glides from one panel to the next (user, 2026-10-21) */

  /* The service pages' How we help accordion (user, 2026-10-28: "not soft",
     "slow", "dropdown too laggy"): one service closes while the next opens,
     both over the same long ease-in-out, so the list keeps its height and
     the motion starts and lands gently. The open service moves on after
     --accordion-dwell (user: "loading too fast"; it was 6s). Longer than
     the 200ms cap, by the user's call. [derived] */
  --accordion-dur: 400ms;
  --accordion-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --accordion-dwell: 10s;
  /* The About page's letter, played once per load as it comes into view
     (user, 2026-10-29: "let the signature animate", "write it out, not fade
     out", "play when I load the site and scroll to that section"): the
     signature writes itself out stroke by stroke over --sign-duration
     (pen lifts included), the time a quick hand takes to sign; the corner
     turns down over --reveal-duration after a short beat. Longer than the
     200ms cap, by the user's call. [derived] */
  --sign-duration: 2000ms;
  --sign-corner-delay: 200ms;
}

/* The layout grid's columns at wider widths [derived], until the Figma
   layout grid replaces them. */
/* Phones: 24px edges, so text keeps its measure. [derived] */
@media (max-width: 767px) {
  :root { --sling-edge-start: 24px; --sling-edge-end: 24px; }
}

@media (min-width: 768px) {
  :root { --sling-grid-columns: 8; }
}

@media (min-width: 1024px) {
  :root { --sling-grid-columns: 12; }
}

@media (min-width: 1280px) {
  :root { --sling-cta-cols: 3; }
}

