/* =============================================================
   Simplifi Commerce — Design Tokens
   Source: marketing site React build (new-pages/assets/*.css, *.js)
   Fonts loaded from Google Fonts — Inter (body) + Manrope (display numbers/UI accents)
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Manrope:wght@200..800&display=swap");

:root {
  /* ---------- BRAND CORE ----------
     The brand lives in two anchor colors:
       --primary  Deep navy (used for nav, dark hero gradients, headings on light bg)
       --accent   Teal — the only color that says "act now"
     Accent variants are used sparingly: accent-2 for hover, accent-soft as muted tint,
     accent-bright for dark surfaces (electric teal) */
  --primary: #001b3d;        /* deep navy — primary brand color */
  --primary-deep: #04152d;   /* slightly cooler navy used for headings on light surfaces */
  --primary-shade: #001a2e;  /* darker navy used in hero gradient stops */
  --accent: #006875;         /* deep teal — primary CTA / link color */
  --accent-2: #00807f;       /* teal hover / secondary tint */
  --accent-soft: #66a5a0;    /* desaturated teal */
  --accent-bright: #22c4cc;  /* electric teal — used on dark surfaces & dark theme */
  --accent-bright-2: #5ecfda;/* lighter cyan used in detail-hero gradients & accents */

  /* ---------- INDUSTRY ACCENTS ----------
     Each case study carries an industry-keyed accent.
     Use ONLY for case-study contexts — never as a general brand color. */
  --industry-ecommerce: #2B7DE9;   /* blue */
  --industry-healthcare: #006875;  /* same as accent */
  --industry-energy: #F5A623;      /* warm amber */
  --industry-saas: #6b5ee8;        /* indigo */
  --industry-green: #50C878;       /* renadyl green */

  /* ---------- SEMANTIC / STATUS ----------- */
  --success: #4ade80;
  --error: #dc3545;
  --warning: #ffc850;

  /* ---------- SURFACES (light theme) ---------- */
  --bg-page: #ffffff;
  --bg-alt: #f7fbff;           /* the signature "icy blue" section background */
  --bg-soft: #f4f9ff;          /* lighter blue used for hub sections */
  --bg-card: #ffffff;
  --bg-card-subtle: #fafcff;
  --bg-chip: #f0f5fb;          /* small chip/tag fill */
  --bg-pill: #f4f8fd;          /* pill row background */
  --surface: #ffffff;          /* legacy alias */
  --surface-low: #f7fbff;      /* legacy alias */

  /* ---------- DARK SURFACES (always-dark sections) ----------
     Used inside hero gradients, navigation, problem section, etc. */
  --dark-page: #020817;
  --dark-page-2: #020c1e;
  --dark-alt: #04112a;
  --dark-alt-2: #041630;
  --dark-card: #ffffff0d;      /* 5% white over dark */
  --dark-card-strong: #ffffff14;
  --dark-card-hover: #ffffff21;

  /* ---------- TYPE COLORS ---------- */
  --text-h: #04152d;           /* headings on light */
  --text: #10263f;             /* default body */
  --text-mid: #2c4466;         /* body emphasis / chip text */
  --text-body: #586a7c;        /* body paragraph */
  --text-subtle: #5a6e82;      /* secondary muted text */
  --text-muted: #5d6f84;       /* footer / quietest text */
  --text-soft: #8a9ab0;        /* labels, breadcrumbs */
  --text-on-dark: #ffffff;
  --text-on-dark-mid: #ffffffd1;
  --text-on-dark-soft: #ffffffad;
  --text-on-dark-quiet: #ffffff8c;

  /* ---------- LINES & BORDERS ---------- */
  --line: #0f172a14;
  --border-subtle: #0d284714;  /* most card borders ≈ 8% navy */
  --border-card: #0d284717;
  --border-accent-tint: #00687524;
  --border-on-dark: #ffffff1f;

  /* ---------- ELEVATION / SHADOWS ----------
     Note: shadows always carry a hint of navy (#001b3d) — never pure black on light surfaces. */
  --shadow-xs: 0 4px 20px #001b3d14;
  --shadow-sm: 0 6px 22px #001b3d0f;
  --shadow: 0 8px 28px #001b3d0f;          /* default card shadow */
  --shadow-md: 0 22px 46px #0d28470d;      /* prebuilt cards */
  --shadow-lg: 0 24px 50px #0d28470f;
  --shadow-xl: 0 24px 70px #001b3d1f;
  --shadow-hover: 0 32px 70px #001b3d24;   /* hover lift */
  --shadow-dark: 0 24px 60px #001b3d2e;    /* shadows under dark cards */
  --shadow-cta: 0 18px 34px #0068753d;     /* primary button teal shadow */
  --shadow-cta-hover: 0 22px 42px #00687547;

  /* ---------- RADII ---------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;               /* default — buttons, cards, chips */
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-pill: 99px;
  --radius-circle: 50%;

  /* ---------- SPACING ----------
     Site uses non-linear scale — these are the values that actually appear. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 92px;            /* default section padding-y */
  --space-30: 120px;           /* hero padding-top */

  /* container width target */
  --container: 1180px;
  --container-gutter: 40px;

  /* ---------- TYPE ---------- */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;   /* used for big numerals (approach-number) */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;

  /* Letter spacing — display uses tight tracking, eyebrows use wide */
  --tracking-tightest: -0.05em;   /* hero H1 */
  --tracking-tighter: -0.045em;   /* hub-hero / detail-hero */
  --tracking-tight: -0.03em;      /* H2 */
  --tracking-snug: -0.02em;       /* H3 / card titles */
  --tracking-normal: 0;
  --tracking-eyebrow: 0.18em;     /* primary eyebrow */
  --tracking-eyebrow-wide: 0.24em;/* section label */
  --tracking-loose: 0.14em;       /* chips, industry tags */

  /* Font weights actually used in the system */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;            /* default for H1–H3 and CTAs */
  --fw-black: 900;                /* approach-number, fcs-stat */

  /* ---------- MOTION / EASING ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.2s;     /* hover color / fill */
  --dur-base: 0.25s;    /* card hover lift */
  --dur-med: 0.3s;
  --dur-slow: 0.45s;
}

/* ---------- DARK THEME OVERRIDES ----------
   Triggered by <html data-theme="dark"> — used only in light/dark toggle pages.
   Cards become translucent white over a deep navy page. */
[data-theme="dark"] {
  --bg-page: #020817;
  --bg-alt: #04112a;
  --bg-soft: #04112a;
  --bg-card: #ffffff0d;
  --bg-card-subtle: #ffffff0a;
  --text-h: #e8edf5;
  --text-body: #ffffffa6;
  --text-subtle: #ffffff8c;
  --text-mid: #ffffffd1;
  --border-subtle: #ffffff14;
  --border-card: #ffffff1a;
}

/* =============================================================
   SEMANTIC TYPE STYLES
   Apply via class — sot raw HTML tag — so they work inside any tree.
   Sizes use clamp() so they remain responsive without media queries.
   ============================================================= */

.sc-display {
  font-family: var(--font-sans);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tightest);
  line-height: 0.98;
  color: var(--text-h);
  margin: 0;
}

.sc-h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.0;
  color: var(--text-h);
  margin: 0;
}

.sc-h2 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
  color: var(--text-h);
  margin: 0;
}

.sc-h3 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-snug);
  line-height: 1.22;
  color: var(--text-h);
  margin: 0;
}

.sc-h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--text-h);
  margin: 0;
}

.sc-body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: var(--fw-regular);
  line-height: 1.8;
  color: var(--text-body);
}

.sc-body-sm {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 1.75;
  color: var(--text-body);
}

.sc-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1.6;
  color: var(--text-subtle);
}

/* Eyebrow label — every section opens with one of these. ALWAYS uppercase. */
.sc-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-eyebrow-wide);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Pill eyebrow — chip-style eyebrow used at top of hero */
.sc-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #0068751f;
  border: 1px solid #0068752e;
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* Big metric numeral — uses Manrope for that slightly architectural feel */
.sc-numeral {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Industry/category chip text */
.sc-chip-text {
  font-size: 11px;
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
}