/*
 * Shiftora front-end design tokens — 2026 redesign.
 *
 * This file no longer tracks the plugin's admin-screen tokens byte for byte
 * (they live separately at wp-content/plugins/shiftora/resources/css/tokens.css
 * and were not touched by this redesign). It keeps the plugin's indigo hue
 * family on purpose, because the product's logo and the admin UI are not
 * being redrawn here, but it rebuilds everything else: a dark, high-contrast
 * register for the pages that have to sell and demonstrate (hero, pricing,
 * close), and a calm light register for the pages that have to be read
 * (documentation, the portal, transactional confirmations).
 *
 * No gradients, no shadows at rest, no glow. Depth comes from flat tone steps
 * only. Names keep the `shiftora-` prefix so they can never collide with
 * another plugin's custom properties.
 *
 * Layering: raw ramp -> semantic aliases -> component tokens. A component
 * reads only the semantic or component layer, never a raw ramp value.
 *
 * app.css and site.css consume these values; keep component rules out of this
 * file, it defines values only.
 */

:root {
	color-scheme: light;

	/* =====================================================================
	   1. RAW RAMP
	   ===================================================================== */

	/* Neutrals, tinted toward the brand navy. */
	--shiftora-n-0:   #ffffff;
	--shiftora-n-50:  #f7f8fb;
	--shiftora-n-100: #eef0f6;
	--shiftora-n-150: #e2e5ee;
	--shiftora-n-200: #d3d8e4;
	--shiftora-n-300: #bcc2d4;
	--shiftora-n-400: #949cb4;
	--shiftora-n-500: #6d7590;
	--shiftora-n-600: #515872;
	--shiftora-n-700: #3b4257;
	--shiftora-n-800: #262c3d;
	--shiftora-n-900: #0c183c;

	/* Indigo, the wordmark interior. */
	--shiftora-blue-50:  #eef0fd;
	--shiftora-blue-100: #dfe3fb;
	--shiftora-blue-200: #c3c9f6;
	--shiftora-blue-300: #9fa8ef;
	--shiftora-blue-400: #7885e9;
	--shiftora-blue-500: #5460e4;
	--shiftora-blue-600: #4450d4;
	--shiftora-blue-700: #3742b4;
	--shiftora-blue-800: #2c348f;

	/* Teal-green, for a completed and verified state. */
	--shiftora-green-50:  #eef7f5;
	--shiftora-green-100: #d3ebe6;
	--shiftora-green-200: #a8d6cc;
	--shiftora-green-300: #7cc0b1;
	--shiftora-green-400: #54a897;
	--shiftora-green-500: #3d9182;
	--shiftora-green-600: #317468;
	--shiftora-green-700: #295c53;

	/* Amber, for something that needs attention but has not failed. */
	--shiftora-amber-50:  #fdf6e9;
	--shiftora-amber-100: #fae9c7;
	--shiftora-amber-200: #f5d493;
	--shiftora-amber-300: #eebb60;
	--shiftora-amber-400: #dda139;
	--shiftora-amber-500: #c4841f;
	--shiftora-amber-600: #a06818;
	--shiftora-amber-700: #7d5115;

	/* Red, for a refusal or a failure. Nothing else uses it. */
	--shiftora-red-50:  #fdf1f1;
	--shiftora-red-100: #fbe0e0;
	--shiftora-red-200: #f6c6c6;
	--shiftora-red-300: #eda0a0;
	--shiftora-red-400: #df7070;
	--shiftora-red-500: #cf4b4b;
	--shiftora-red-600: #b23636;
	--shiftora-red-700: #922b2b;

	/* =====================================================================
	   2. SURFACES
	   Separated by border plus a small step in lightness, not by shadow.
	   ===================================================================== */

	--shiftora-color-bg:              #f4f6fb;
	--shiftora-color-bg-subtle:       #eceff7;
	--shiftora-color-bg-surface:      #fafbfd;
	--shiftora-color-bg-surface-alt:  #f1f3f8;
	--shiftora-color-bg-inset:        #e9ecf3;
	--shiftora-color-bg-input:        #ffffff;
	--shiftora-color-bg-raised:       #ffffff;
	--shiftora-color-bg-page:         #f4f6fb;

	--shiftora-color-border:          #dfe3ec;
	--shiftora-color-border-light:    #e9ecf3;
	--shiftora-color-border-strong:   #c6ccdb;
	--shiftora-color-border-focus:    var(--shiftora-blue-500);

	/* =====================================================================
	   3. TEXT — always dark, never the accent.
	   ===================================================================== */

	--shiftora-color-text:            var(--shiftora-n-800);
	--shiftora-color-text-secondary:  var(--shiftora-n-600);
	/* Was n-500 (4.22:1 on this background, below the 4.5:1 AA floor for body
	   text). n-600 is the same "quieter than body copy" role at 6.50:1. n-500
	   stays defined above for non-text uses (icon strokes, disabled borders). */
	--shiftora-color-text-muted:      var(--shiftora-n-600);
	--shiftora-color-text-disabled:   var(--shiftora-n-400);
	--shiftora-color-text-inverse:    #ffffff;
	--shiftora-color-text-link:       var(--shiftora-blue-600);
	--shiftora-color-text-link-hover: var(--shiftora-blue-700);
	--shiftora-color-text-mono:       var(--shiftora-n-700);
	--shiftora-color-text-mono-muted: var(--shiftora-n-500);

	/* =====================================================================
	   4. STATUS — semantic only, each with a text, background and border.
	   ===================================================================== */

	--shiftora-color-success:        var(--shiftora-green-400);
	--shiftora-color-success-text:   var(--shiftora-green-700);
	--shiftora-color-success-bg:     var(--shiftora-green-50);
	--shiftora-color-success-border: var(--shiftora-green-200);

	--shiftora-color-warning:        var(--shiftora-amber-400);
	--shiftora-color-warning-text:   var(--shiftora-amber-700);
	--shiftora-color-warning-bg:     var(--shiftora-amber-50);
	--shiftora-color-warning-border: var(--shiftora-amber-200);

	--shiftora-color-error:          var(--shiftora-red-500);
	--shiftora-color-error-text:     var(--shiftora-red-700);
	--shiftora-color-error-bg:       var(--shiftora-red-50);
	--shiftora-color-error-border:   var(--shiftora-red-200);

	--shiftora-color-info:           var(--shiftora-blue-500);
	--shiftora-color-info-text:      var(--shiftora-blue-700);
	--shiftora-color-info-bg:        var(--shiftora-blue-50);
	--shiftora-color-info-border:    var(--shiftora-blue-200);

	/* =====================================================================
	   5. INTERACTIVE — the accent, budgeted at a small share of the surface.
	   ===================================================================== */

	--shiftora-color-primary:        var(--shiftora-blue-500);
	--shiftora-color-primary-hover:  var(--shiftora-blue-600);
	--shiftora-color-primary-active: var(--shiftora-blue-700);
	--shiftora-color-primary-subtle: var(--shiftora-blue-50);
	--shiftora-color-primary-border: var(--shiftora-blue-200);
	--shiftora-color-on-primary:     #ffffff;

	/* No gradients and no glow in the 2026 system: a flat fill reads as a
	   decision, a gradient reads as a default. Depth comes from the tone
	   steps in section 2 and nothing else. */

	--shiftora-color-focus-ring: rgba(84, 96, 228, 0.28);

	--shiftora-color-card-bg:           var(--shiftora-color-bg-surface);
	--shiftora-color-card-bg-hover:     var(--shiftora-color-bg-surface-alt);
	--shiftora-color-card-border:       var(--shiftora-color-border);
	--shiftora-color-card-border-hover: var(--shiftora-blue-300);

	/* Direction is a distinction an operator has to read, not a colour scheme. */
	--shiftora-color-pull: var(--shiftora-blue-600);
	--shiftora-color-push: var(--shiftora-n-600);

	/* =====================================================================
	   6. NAVIGATION
	   ===================================================================== */

	--shiftora-color-nav-bg:          #ffffff;
	--shiftora-color-nav-border:      var(--shiftora-color-border);
	--shiftora-color-nav-text:        var(--shiftora-n-900);
	--shiftora-color-nav-hover-bg:    var(--shiftora-color-bg-surface-alt);
	--shiftora-color-nav-active-bg:   var(--shiftora-blue-50);
	--shiftora-color-nav-active-text: var(--shiftora-blue-700);

	/* =====================================================================
	   7. ELEVATION — reserved for things that truly float (an open menu, a
	   dialog, a sticky bar). Nothing at rest carries a shadow, so this list is
	   short on purpose and app.css/site.css reach for it rarely.
	   ===================================================================== */

	--shiftora-shadow-none: none;
	--shiftora-shadow-float: 0 12px 32px rgba(5, 8, 20, 0.28), 0 2px 8px rgba(5, 8, 20, 0.16);

	/* =====================================================================
	   7b. DARK REGISTER — a second, deliberately rare register, not a
	   site-wide dark mode. Currently used on one surface: the authenticated
	   dashboard's release banner (app.css, `.dsl-release-card`). The public
	   marketing hero stays on the light register instead, on purpose — the
	   dealt direction's own hero blueprint called for "a warm off-white page
	   that is more than 80% empty," and that took priority over giving the
	   hero this register too. The landing page's one dramatic beat is its
	   closing CTA, which uses a flat `--shiftora-blue-600` fill rather than
	   this token set. Reach for these again the next time a surface needs a
	   true dark moment; there is no `.dsl-dark` section class; each consumer
	   reads the tokens directly. Every pair below is contrast-checked:
	   ink/muted/accent against dark-bg all clear 4.5:1, and dark-accent-ink
	   against dark-accent clears 4.5:1 (white text on the accent fill does
	   not, which is why a button on this register uses dark-accent-ink).
	   ===================================================================== */

	--shiftora-dark-bg:          #090e24;
	--shiftora-dark-surface:     #141b3f;
	--shiftora-dark-ink:         #ffffff;
	--shiftora-dark-muted:       #8891b8;
	--shiftora-dark-accent:      var(--shiftora-blue-400);
	--shiftora-dark-accent-ink:  #0a0f28;

	/* White at a known opacity over a solid accent-coloured fill (a CTA band,
	   not the dark register above): the recurring "ghost button on a filled
	   band" need, named instead of repeated as raw rgba() at each call site. */
	--shiftora-overlay-on-accent-10: rgba(255, 255, 255, 0.1);
	--shiftora-overlay-on-accent-18: rgba(255, 255, 255, 0.18);
	--shiftora-overlay-on-accent-28: rgba(255, 255, 255, 0.28);
	--shiftora-overlay-on-accent-42: rgba(255, 255, 255, 0.42);
	--shiftora-overlay-badge-on-accent: rgba(255, 255, 255, 0.16);
	--shiftora-overlay-text-on-accent:  rgba(255, 255, 255, 0.8);

	/* =====================================================================
	   8. TYPOGRAPHY — Stack Sans, two cuts of one family: Headline (a light,
	   geometric display weight) for anything that is a title, Text for
	   anything that is read. Five size steps, full stop — a sixth is a sign
	   the direction has been abandoned mid-page. Interface fragments
	   (`[data-ui]`) are the one exception and may use their own, smaller
	   true-to-life sizes, because they are reproductions of the real product.
	   ===================================================================== */

	--shiftora-font-family-display: "Stack Sans Headline", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shiftora-font-family-sans:    "Stack Sans Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--shiftora-font-family-mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Courier New", monospace; /* taste-skill-ignore: this is the token's own value, consumed only by real <code>/<pre> selectors */

	/* The five steps. Everything else in app.css/site.css maps onto one of
	   these; nothing introduces a sixth size. */
	--shiftora-step-small: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
	--shiftora-step-body:  clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
	--shiftora-step-lead:  clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
	--shiftora-step-head:  clamp(1.75rem, 1.1rem + 2.9vw, 3rem);
	--shiftora-step-display: clamp(2.75rem, 0.9rem + 8vw, 6.5rem);

	/* Kept for the handful of component styles (badges, table headers) that
	   still read a named size rather than a step; new work reads the steps
	   above directly. */
	--shiftora-font-size-xs:   0.75rem;
	--shiftora-font-size-sm:   0.875rem;
	--shiftora-font-size-base: 1rem;
	--shiftora-font-size-lg:   1.125rem;
	--shiftora-font-size-xl:   1.25rem;
	--shiftora-font-size-2xl:  1.5rem;
	--shiftora-font-size-3xl:  1.875rem;
	--shiftora-font-size-4xl:  2.25rem;
	--shiftora-font-size-5xl:  3rem;
	--shiftora-font-size-6xl:  3.75rem;
	--shiftora-font-size-7xl:  4.5rem;

	--shiftora-font-size-mono-xs:   0.75rem;
	--shiftora-font-size-mono-sm:   0.8125rem;
	--shiftora-font-size-mono-base: 0.875rem;

	--shiftora-font-weight-light:    300;
	--shiftora-font-weight-regular:  400;
	--shiftora-font-weight-medium:   500;
	--shiftora-font-weight-semibold: 600;
	--shiftora-font-weight-bold:     700;

	--shiftora-line-height-display: 1.05;
	--shiftora-line-height-tight:   1.25;
	--shiftora-line-height-snug:    1.4;
	--shiftora-line-height-normal:  1.55;
	--shiftora-line-height-relaxed: 1.7;

	--shiftora-tracking-display: -0.03em;
	--shiftora-tracking-tight:  -0.01em;
	--shiftora-tracking-snug:   -0.02em;
	--shiftora-tracking-normal: 0em;
	--shiftora-tracking-wide:   0.02em;
	--shiftora-tracking-wider:  0.06em;

	/* Marketing display steps: kept as aliases of the new scale so any
	   remaining reference in site.css still resolves to the right size. */
	--shiftora-display-sm: var(--shiftora-step-lead);
	--shiftora-display-md: var(--shiftora-step-head);
	--shiftora-display-lg: var(--shiftora-step-display);

	/* =====================================================================
	   9. SPACING — a 4px base.
	   ===================================================================== */

	--shiftora-space-1:  0.25rem;
	--shiftora-space-2:  0.5rem;
	--shiftora-space-3:  0.75rem;
	--shiftora-space-4:  1rem;
	--shiftora-space-5:  1.25rem;
	--shiftora-space-6:  1.5rem;
	--shiftora-space-7:  2rem;
	--shiftora-space-8:  2.5rem;
	--shiftora-space-10: 3rem;
	--shiftora-space-12: 4rem;
	--shiftora-space-16: 5rem;
	--shiftora-space-20: 6.5rem;

	--shiftora-measure-form:  48rem;
	--shiftora-measure-cell:  18rem;
	--shiftora-measure-field: 14rem;
	--shiftora-measure-lede:  48ch;

	/* =====================================================================
	   10. RADII — restrained; the ceiling is 0.75rem.
	   ===================================================================== */

	--shiftora-radius-none: 0;
	--shiftora-radius-sm:   0.25rem;
	--shiftora-radius-md:   0.375rem;
	--shiftora-radius-lg:   0.5rem;
	--shiftora-radius-xl:   0.75rem;
	--shiftora-radius-full: 9999px;

	/* Same corners as the plugin's admin screens: 8px buttons and fields, 12px panels. */
	--shiftora-radius-button: var(--shiftora-radius-lg);
	--shiftora-radius-panel:  var(--shiftora-radius-xl);

	/* =====================================================================
	   11. MOTION — ease-out, no bounce. Only opacity, transform and colour.
	   ===================================================================== */

	--shiftora-ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
	--shiftora-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

	--shiftora-duration-instant: 120ms;
	--shiftora-duration-normal:  200ms;
	--shiftora-duration-slow:    280ms;

	--shiftora-transition-fast:   120ms var(--shiftora-ease-out);
	--shiftora-transition-normal: 200ms var(--shiftora-ease-out);
	--shiftora-transition-slow:   280ms var(--shiftora-ease-out);

	/* =====================================================================
	   12. Z-INDEX
	   ===================================================================== */

	--shiftora-z-base:     1;
	--shiftora-z-sticky:   10;
	--shiftora-z-dropdown: 20;
	--shiftora-z-tooltip:  30;
	--shiftora-z-overlay:  100;
	--shiftora-z-modal:    101;
	--shiftora-z-toast:    110;

	/* =====================================================================
	   13. LAYOUT
	   ===================================================================== */

	--shiftora-content-max-width:    76rem;
	--shiftora-content-wide:         84rem;
	--shiftora-content-prose-width:  70ch;
	--shiftora-content-narrow:       40rem;
	--shiftora-gutter:               clamp(1.25rem, 4vw, 2.5rem);

	/* Distance from the top of the viewport to the site chrome. It is 0 for a
	   logged-out visitor and set to the admin bar height on body.admin-bar. */
	--shiftora-admin-bar-offset: 0px;
}
