/**
 * ============================================================
 * SAIGE ANALYTICS — DESIGN SYSTEM STYLESHEET
 * ============================================================
 * Version: 1.0
 * Extracted from: index.html, pricing model, profitability model
 *
 * TABLE OF CONTENTS
 * -----------------
 * 1.  CSS Custom Properties (Tokens)
 * 2.  Reset & Base
 * 3.  Typography
 * 4.  Layout & Containers
 * 5.  Navigation / Header
 * 6.  Tab Navigation
 * 7.  Buttons
 * 8.  Badges & Kickers
 * 9.  Cards
 * 10. KPI Cards
 * 11. Stat Blocks
 * 12. Tables (Data Tables)
 * 13. Forms & Inputs
 * 14. Dividers & Pull Quotes
 * 15. Upload Zone
 * 16. Status Indicators
 * 17. Grid Utilities
 * 18. Reveal Animation
 * 19. Hero Section
 * 20. Responsive Breakpoints
 * ============================================================
 */


/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
  /* ── Brand Colors ── */
  --blue:        #003a8e;    /* Primary brand blue */
  --orange:      #ff625a;    /* Accent / CTA / alert */
  --mint:        #d7e3c0;    /* Soft green tint */
  --cadet-dark:  #70989e;    /* Secondary muted teal */
  --cadet:       #85adaf;    /* Lighter teal variant */
  --green:       #2e7d5e;    /* Success / positive */
  --yellow:      #efef67;    /* Data highlight (charts) */
  --gold:        #d4a017;    /* Warning / neutral accent */

  /* ── Neutrals ── */
  --black:       #020400;
  --white:       #ffffff;
  --gray:        #f2f2eb;    /* Page background tint */
  --surface:     #ffffff;    /* Card / panel background */
  --surface2:    #eaeae2;    /* Subtle secondary surface */
  --bg:          #eef0f4;    /* App canvas background */

  /* ── Semantic Colors ── */
  --text:        #020400;
  --text-muted:  #5a6a7a;
  --border:      rgba(0, 58, 142, 0.15);
  --line:        rgba(2, 4, 0, 0.10);

  /* ── State Colors ── */
  --green-bg:    rgba(215, 227, 192, 0.6);
  --red-bg:      rgba(255, 98, 90, 0.12);
  --blue-bg:     rgba(0, 58, 142, 0.07);

  /* ── Shadows ── */
  --shadow:      0 16px 50px rgba(2, 4, 0, 0.10);
  --shadow-md:   0 10px 22px rgba(2, 4, 0, 0.08);
  --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-blue: 0 8px 24px rgba(0, 58, 142, 0.12);
  --shadow-nav:  0 2px 12px rgba(0, 58, 142, 0.25);

  /* ── Spacing ── */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    32px;
  --space-2xl:   48px;
  --space-3xl:   84px;

  /* ── Border Radius ── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  /* ── Typography ── */
  --font-sans:   'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif:  'Georgia', 'Times New Roman', serif;

  /* ── Layout ── */
  --max-width:   1120px;
  --max-width-lg: 1400px;
  --max-width-xl: 1500px;

  /* ── Transitions ── */
  --ease:        0.18s ease;
  --ease-md:     0.22s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* Page background (website variant) */
body.page-variant {
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(0, 58, 142, 0.18), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(112, 152, 158, 0.22), transparent 62%),
    linear-gradient(180deg, var(--gray) 0%, #fff 55%, var(--gray) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1 {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.03;
  color: var(--blue);
  margin: 0 0 18px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.35px;
  margin: 0 0 14px;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}

p {
  margin: 0;
  line-height: 1.65;
}

.text-muted {
  color: var(--text-muted);
}

.text-blue {
  color: var(--blue);
}

.text-orange {
  color: var(--orange);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--orange); /* brand uses orange as "red" */
}

/* Subtitle / description under headings */
.sub {
  color: var(--text-muted);
  max-width: 860px;
  line-height: 1.75;
  font-size: 15px;
}

/* Section description (smaller) */
.section-desc {
  color: var(--text-muted);
  font-size: 13px;
}

/* Body copy, lead paragraph */
.lead {
  font-size: 18px;
  color: rgba(2, 4, 0, 0.74);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
}

/* Uppercase label / eyebrow */
.label-upper {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cadet-dark);
}

/* Orange dot accent used in headings (e.g. "Saige Analytics.") */
.dot {
  color: var(--orange);
}


/* ============================================================
   4. LAYOUT & CONTAINERS
   ============================================================ */

/* Standard page wrapper */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* App canvas wrapper (wider, for tool UIs) */
.main {
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl);
}

/* Content section */
section {
  padding: var(--space-3xl) 0;
}

.section-head {
  margin-bottom: 34px;
}

/* Panel (tab content visibility) */
.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* Page tab content visibility */
.page {
  display: none;
  padding: 28px 32px;
  max-width: var(--max-width-xl);
  margin: 0 auto;
}

.page.active {
  display: block;
}


/* ============================================================
   5. NAVIGATION / HEADER
   ============================================================ */

/* Sticky top nav bar */
.nav,
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: none;
  box-shadow: var(--shadow-nav);
}

/* Inner nav flex row */
.navinner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 14px;
}

/* Full-width header inner */
.header {
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

/* Logo image */
.brand img,
.logo img {
  height: 34px;
  display: block;
}

/* Logo wordmark (text-only variant) */
.logo-wordmark span {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: var(--font-serif);
  display: block;
  line-height: 1.15;
}

/* Nav links */
.links a {
  margin-left: 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  letter-spacing: 0.01em;
  transition: color var(--ease);
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width var(--ease-md);
  border-radius: var(--radius-pill);
}

.links a:hover {
  color: var(--white);
}

.links a:hover::after {
  width: 100%;
}

/* Header center block (title + client name) */
.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: var(--space-lg);
  padding-left: var(--space-lg);
  gap: 3px;
}

.header-model-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.header-client-name {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header right-side slot */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* "LIVE MODEL" badge */
.header-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Pulsing live dot */
.live-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Separator in logo area */
.logo-sep {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 var(--space-sm);
}


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

.tabs {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  display: flex;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 56px;       /* Adjust to header height */
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}

.tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  user-select: none;
}

.tab:hover {
  color: var(--blue);
}

.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}


/* ============================================================
   7. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  font-family: var(--font-sans);
}

/* Primary CTA */
.btn.primary,
.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.primary:hover,
.btn-primary:hover {
  background: #e0544d;
  border-color: #e0544d;
}

/* Small action button (inside cards/tables) */
.em-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--ease);
}

.em-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.em-btn.em-active,
.em-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Toggle / segment button (placement type, etc.) */
.toggle-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  color: var(--text-muted);
  transition: all var(--ease);
  font-family: var(--font-sans);
}

.toggle-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Reset / utility button */
.btn-util {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--ease);
}

.btn-util:hover {
  color: var(--blue);
  border-color: var(--blue);
}


/* ============================================================
   8. BADGES & KICKERS
   ============================================================ */

/* Eyebrow kicker label with pip */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 58, 142, 0.07);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.kicker .pip {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  flex-shrink: 0;
}

/* Section sub-header label (data table style) */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

/* Status pill badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-success { background: #d7f0e4; color: #1a6e44; }
.badge-error   { background: #fde8e8; color: #b91c1c; }
.badge-info    { background: #e8eeff; color: var(--blue); }
.badge-warning { background: rgba(212, 160, 23, 0.15); color: var(--gold); }
.badge-neutral { background: var(--surface2); color: var(--text-muted); }


/* ============================================================
   9. CARDS
   ============================================================ */

/* Base card */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  overflow: visible;  /* Allow scrollbars inside table-wrap to be visible */
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

/* Radial glow on card corner */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(380px 240px at 0% 0%, rgba(0, 58, 142, 0.08), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  border-radius: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Card color accent variants */
.card.green-top  { border-top-color: var(--green); }
.card.orange-top { border-top-color: var(--orange); }
.card.gold-top   { border-top-color: var(--gold); }
.card.cadet-top  { border-top-color: var(--cadet-dark); }

/* Card title (uppercase eyebrow inside card) */
.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cadet-dark);
  margin-bottom: 12px;
}

/* Larger card (profitability model variant, no glow pseudo) */
.card-lg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}


/* ============================================================
   10. KPI CARDS
   ============================================================ */

/* Individual KPI metric card */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* Full-size KPI variant */
.kpi-card-lg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  border-top: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.kpi-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* Small KPI number */
.kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

/* Large KPI number */
.kpi-value-lg {
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

/* Value state modifiers */
.kpi-value.positive,
.kpi-value-lg.positive { color: var(--green); }
.kpi-value.negative,
.kpi-value-lg.negative { color: var(--orange); }
.kpi-value.neutral,
.kpi-value-lg.neutral  { color: var(--blue); }
.kpi-value.gold        { color: var(--gold); }

.kpi-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sticky KPI bar (sticks below the main header) */
.kpi-sticky {
  position: sticky;
  top: 112px;
  z-index: 90;
  background: var(--bg);
  padding: 12px 32px;
  margin: 0 -32px 20px -32px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* KPI grid layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }


/* ============================================================
   11. STAT BLOCKS
   ============================================================ */

/* Simple centered stat */
.stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat .value {
  font-size: 38px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.stat .label {
  margin-top: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Chart wrapper */
.chart-wrap {
  margin-top: 26px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chart-wrap .title {
  font-weight: 700;
  color: rgba(2, 4, 0, 0.78);
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ============================================================
   12. TABLES (DATA TABLES)
   ============================================================ */

/* Scrollable table container */
.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  scrollbar-gutter: stable;
}

/* Scrollbar styling */
.table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-track { background: var(--surface2); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--cadet-dark); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--blue); }
.table-wrap::-webkit-scrollbar-corner { background: var(--surface2); }

/* Base table */
table,
.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* Table header */
table thead th,
.dt th {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Table cells */
table tbody td,
.dt td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 58, 142, 0.07);
  vertical-align: middle;
  font-size: 12px;
}

/* Right-align numeric columns */
table thead th.right,
.dt th.r,
table tbody td.right,
.dt td.r {
  text-align: right;
}

/* Hover row */
table tbody tr:hover {
  background: rgba(0, 58, 142, 0.04);
}

/* Row variants */
.dt tr.tr-total td {
  background: #f0f4ff;
  font-weight: 700;
  border-top: 2px solid var(--blue);
}

.dt tr.tr-sec td {
  background: #eef2fb;
  font-weight: 700;
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
}

.dt tr.tr-sub td {
  background: #f8faff;
  font-weight: 600;
}

.dt tr.tr-profit td {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.dt tr.tr-loss td {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
}

/* Computed / muted cell value */
.dt td.computed {
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

/* Positive / negative value colouring in cells */
.cell-positive { color: var(--green); font-weight: 600; }
.cell-negative { color: var(--orange); font-weight: 600; }
.cell-neutral  { color: var(--blue); font-weight: 600; }


/* ============================================================
   13. FORMS & INPUTS
   ============================================================ */

.input-group {
  margin-bottom: 10px;
}

.input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: block;
}

.input-field {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 142, 0.08);
}

.input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

/* Range / Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Contact form */
.form-field {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

.form-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 142, 0.08);
}

textarea.form-field {
  resize: vertical;
  min-height: 100px;
}


/* ============================================================
   14. DIVIDERS & PULL QUOTES
   ============================================================ */

/* Decorative gradient divider */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 58, 142, 0.18),
    rgba(255, 98, 90, 0.18),
    transparent
  );
  margin: 0;
  border: none;
}

/* Pull quote / highlight block */
.pull {
  border-left: 4px solid var(--orange);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.70);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 18px;
  max-width: 860px;
}

.pull strong {
  color: var(--blue);
}

/* Info callout block (inside card) */
.info-box {
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mint-tinted description sidebar */
.sidebar-info {
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.sidebar-info .sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #3a5a1a;
  margin-bottom: var(--space-sm);
}

.sidebar-info p {
  font-size: 12px;
  color: #3d4a2e;
  line-height: 1.65;
  margin-bottom: 10px;
}


/* ============================================================
   15. UPLOAD ZONE
   ============================================================ */

.upload-bar {
  background: #f0f4ff;
  border-bottom: 1px solid var(--border);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-drop-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border: 1.5px dashed #7a9fd4;
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  transition: all var(--ease);
  flex: 1;
  max-width: 480px;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
  background: #e6eeff;
  border-color: var(--blue);
}

.upload-icon {
  font-size: 16px;
}


/* ============================================================
   16. STATUS INDICATORS
   ============================================================ */

.upload-status {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  display: none;
}

.upload-status.success { background: #d7f0e4; color: #1a6e44; display: inline-block; }
.upload-status.error   { background: #fde8e8; color: #b91c1c; display: inline-block; }
.upload-status.loading { background: #e8eeff; color: var(--blue); display: inline-block; }


/* ============================================================
   17. GRID UTILITIES
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Benefits / 2-col feature grid */
.grid-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-benefits,
  .stat-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   18. REVEAL ANIMATION
   ============================================================ */

/* Add class="reveal" to any element, then toggle "in" via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Floating orb animation (hero decorative elements) */
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(18px); }
}

.orb {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(18px);
  opacity: 0.45;
  background: radial-gradient(circle at 30% 30%, rgba(255, 98, 90, 0.35), rgba(0, 58, 142, 0.25), transparent 70%);
  width: 520px;
  height: 520px;
  left: -220px;
  top: -220px;
  animation: floaty 10s ease-in-out infinite;
  pointer-events: none;
}

.orb-2 {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(18px);
  opacity: 0.40;
  background: radial-gradient(circle at 30% 30%, rgba(112, 152, 158, 0.40), rgba(0, 58, 142, 0.18), transparent 70%);
  width: 520px;
  height: 520px;
  right: -220px;
  top: -260px;
  animation: floaty 12s ease-in-out infinite reverse;
  pointer-events: none;
}


/* ============================================================
   19. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  padding: 92px 0 68px;
  text-align: center;
  overflow: hidden;
}

/* Noise texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz4KICA8ZmlsdGVyIGlkPSduJz4KICAgIDxmZVR1cmJ1bGVuY2UgdHlwZT0nZnJhY3RhbE5vaXNlJyBiYXNlRnJlcXVlbmN5PScuOCcgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0nbWF0cml4JyB2YWx1ZXM9JzEgMCAwIDAgMCAgMCAxIDAgMCAwICAwIDAgMSAwIDAgIDAgMCAwIC4xOCAwJy8+CiAgPC9maWx0ZXI+CiAgPHJlY3Qgd2lkdGg9JzE2MCcgaGVpZ2h0PScxNjAnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nLjM1Jy8+Cjwvc3ZnPg==");
  opacity: 0.18;
  pointer-events: none;
}

/* Radial gradient overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(0, 58, 142, 0.12), transparent 60%),
    radial-gradient(700px 420px at 15% 25%, rgba(255, 98, 90, 0.10), transparent 62%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
}

.hero p {
  position: relative;
  z-index: 1;
}

.hero .cta-row {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ============================================================
   20. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  h1 { font-size: 36px; }
  h2 { font-size: 22px; }

  .hero { padding: 60px 0 44px; }

  .kpi-sticky { top: 0; }

  .main { padding: var(--space-md) var(--space-md); }
  .page { padding: var(--space-md) var(--space-md); }

  .tabs { padding: 0 var(--space-md); }

  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 600px) {
  h1 { font-size: 28px; }

  .navinner { flex-wrap: wrap; }
  .links a  { margin-left: 10px; font-size: 12px; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  .stat .value { font-size: 28px; }
}
