/* ==========================================================================
   LightYears — public marketing site
   Design tokens → base → layout → components → pages → utilities
   No external dependencies. Light + dark themes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramp */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  /* Accent (used sparingly: highlights, badges, chart marks) */
  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;

  --success-500: #10b981;
  --warning-500: #f59e0b;
  --danger-500:  #ef4444;

  /* Neutral ramp */
  --gray-0:   #ffffff;
  --gray-25:  #fcfcfd;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Semantic surface + text (light theme defaults) */
  --bg:            var(--gray-0);
  --bg-subtle:     var(--gray-50);
  --bg-muted:      var(--gray-100);
  --surface:       var(--gray-0);
  --surface-raised:var(--gray-0);
  --border:        var(--gray-200);
  --border-strong: var(--gray-300);

  --text:          var(--gray-900);
  --text-muted:    var(--gray-600);
  --text-subtle:   var(--gray-500);
  --text-inverse:  var(--gray-0);

  --primary:       var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-soft:  var(--brand-50);
  --on-primary:    #ffffff;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10), 0 4px 8px rgba(15, 23, 42, .04);
  --shadow-xl: 0 24px 56px rgba(15, 23, 42, .14), 0 8px 16px rgba(15, 23, 42, .06);
  --shadow-brand: 0 10px 30px rgba(79, 70, 229, .28);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Spacing scale */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0:  clamp(.9375rem, .91rem + .12vw, 1rem);
  --step-1:  clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  --step-2:  clamp(1.25rem, 1.17rem + .38vw, 1.5rem);
  --step-3:  clamp(1.5rem, 1.36rem + .68vw, 2rem);
  --step-4:  clamp(1.875rem, 1.6rem + 1.3vw, 2.75rem);
  --step-5:  clamp(2.25rem, 1.75rem + 2.4vw, 3.75rem);

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .35s;
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg:            var(--gray-950);
  --bg-subtle:     #0a1020;
  --bg-muted:      #111a2e;
  --surface:       #0d1526;
  --surface-raised:#141d33;
  --border:        #1e293b;
  --border-strong: #2b3a52;

  --text:          #e9eef7;
  --text-muted:    #a3b0c4;
  --text-subtle:   #7c8ba3;
  --text-inverse:  var(--gray-950);

  --primary:       var(--brand-400);
  --primary-hover: var(--brand-300);
  --primary-soft:  rgba(99, 102, 241, .14);
  --on-primary:    #0b1020;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .5);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  --shadow-xl: 0 28px 64px rgba(0, 0, 0, .6);
  --shadow-brand: 0 10px 30px rgba(99, 102, 241, .35);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -.035em; }
h2 { font-size: var(--step-4); letter-spacing: -.03em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-hover); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-12) 0; }

strong { font-weight: 650; color: var(--text); }

code, kbd { font-family: var(--font-mono); font-size: .9em; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-200); color: var(--gray-900); }
:root[data-theme="dark"] ::selection { background: rgba(129, 140, 248, .35); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--subtle { background: var(--bg-subtle); }
.section--muted  { background: var(--bg-muted); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); margin-bottom: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-primary); }

/* --------------------------------------------------------------------------
   4. Components — buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 38px rgba(79, 70, 229, .38); }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { color: var(--text); border-color: var(--primary); background: var(--primary-soft); }

.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); background: var(--bg-muted); }

.btn--light { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-md); }
.btn--light:hover { color: var(--brand-800); }

.btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { color: #fff; background: rgba(255,255,255,.18); border-color: #fff; }

.btn--lg { padding: 15px 30px; font-size: var(--step-1); }
.btn--sm { padding: 8px 16px; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Components — badges, eyebrow, pills
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--step--1); font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--accent-500));
}
.section-head .eyebrow::before { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px;
  font-size: var(--step--1); font-weight: 600;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid transparent;
}
.badge--dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success-500) 22%, transparent);
}
.badge--glass {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.badge--success { background: color-mix(in srgb, var(--success-500) 14%, transparent); color: var(--success-500); }
.badge--warning { background: color-mix(in srgb, var(--warning-500) 16%, transparent); color: var(--warning-500); }

/* --------------------------------------------------------------------------
   6. Components — cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--text-muted); margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .3);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--teal { background: linear-gradient(135deg, var(--accent-400), var(--accent-600)); box-shadow: 0 6px 18px rgba(6,182,212,.3); }
.card-icon--amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 18px rgba(217,119,6,.3); }
.card-icon--rose { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 6px 18px rgba(225,29,72,.3); }
.card-icon--emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 18px rgba(5,150,105,.3); }
.card-icon--violet { background: linear-gradient(135deg, #c084fc, #7c3aed); box-shadow: 0 6px 18px rgba(124,58,237,.3); }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--s-6);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.0625rem; letter-spacing: -.02em;
  color: var(--text); flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand span small {
  display: block; font-size: .625rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-subtle); line-height: 1;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  padding: 8px 14px;
  font-size: .9375rem; font-weight: 550;
  color: var(--text-muted);
  border-radius: var(--r-full);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--bg-muted); }
.nav a.is-active { color: var(--primary); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: var(--s-4); }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-muted); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--s-4) var(--s-6) var(--s-6);
    margin-left: 0;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin-top: var(--s-3); }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 720px;
  background:
    radial-gradient(48% 55% at 22% 12%, rgba(99,102,241,.30), transparent 65%),
    radial-gradient(42% 48% at 82% 6%, rgba(6,182,212,.22), transparent 62%),
    radial-gradient(38% 42% at 60% 42%, rgba(168,85,247,.16), transparent 60%);
  z-index: -2;
  filter: blur(6px);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 25%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 25%, #000 20%, transparent 78%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; max-width: 720px; margin-inline: auto; }
  .hero-copy .btn-row, .hero-copy .hero-meta { justify-content: center; }
  .hero-copy .eyebrow { justify-content: center; }
}

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-500) 10%, var(--accent-500) 55%, #a855f7 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--s-8);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  margin-top: var(--s-6);
  font-size: var(--step--1); color: var(--text-subtle);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--success-500); flex-shrink: 0; }

/* Hero product mock */
.mock {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.mock:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
@media (max-width: 1020px) { .mock { transform: none; } .mock:hover { transform: translateY(-4px); } }

.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px var(--s-5);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar .mock-url {
  margin-left: var(--s-3);
  font-family: var(--font-mono); font-size: .6875rem;
  color: var(--text-subtle);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px 12px;
}

.mock-body { padding: var(--s-5); display: grid; gap: var(--s-4); background: var(--bg-subtle); }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.kpi-label { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); }
.kpi-value { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi-delta { font-size: .6875rem; font-weight: 600; color: var(--success-500); display: inline-flex; align-items: center; gap: 3px; }
.kpi-delta.is-down { color: var(--danger-500); }

.mock-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.mock-panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-4);
}
.mock-panel-head h4 { font-size: .875rem; margin: 0; }
.mock-panel-head span { font-size: .6875rem; color: var(--text-subtle); }

/* Bar chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.chart .bar {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  transform-origin: bottom;
  animation: grow .9s var(--ease) both;
  min-height: 6px;
}
.chart .bar:nth-child(2n) { background: linear-gradient(180deg, var(--accent-400), var(--accent-600)); }
@keyframes grow { from { transform: scaleY(.02); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }

.chart-axis {
  display: flex; gap: 8px; margin-top: var(--s-2);
  font-size: .625rem; color: var(--text-subtle);
}
.chart-axis span { flex: 1; text-align: center; }

/* Mini list rows */
.mock-rows { display: grid; gap: 10px; }
.mock-row { display: flex; align-items: center; gap: var(--s-3); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .625rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  flex-shrink: 0;
}
.avatar--teal { background: linear-gradient(135deg, var(--accent-400), var(--accent-600)); }
.avatar--amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.mock-row-main { flex: 1; min-width: 0; }
.mock-row-main b { display: block; font-size: .75rem; font-weight: 600; }
.mock-row-main small { font-size: .6875rem; color: var(--text-subtle); }
.pill {
  font-size: .625rem; font-weight: 650;
  padding: 3px 9px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--success-500) 14%, transparent);
  color: var(--success-500);
  white-space: nowrap;
}
.pill--warn { background: color-mix(in srgb, var(--warning-500) 16%, transparent); color: var(--warning-500); }
.pill--info { background: var(--primary-soft); color: var(--primary); }

/* Floating stat card on the mock */
.float-card {
  position: absolute;
  bottom: -18px; left: -26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--s-3);
  animation: float 5s ease-in-out infinite;
}
.float-card .card-icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.float-card .card-icon svg { width: 18px; height: 18px; }
.float-card b { display: block; font-size: .8125rem; line-height: 1.3; }
.float-card small { font-size: .6875rem; color: var(--text-subtle); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 1020px) { .float-card { display: none; } }

/* --------------------------------------------------------------------------
   9. Logo strip
   -------------------------------------------------------------------------- */
.logos { padding-block: var(--s-10); border-block: 1px solid var(--border); background: var(--bg-subtle); }
.logos p {
  text-align: center; font-size: var(--step--1); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-subtle);
  margin-bottom: var(--s-6);
}
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 56px);
}
.logo-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  color: var(--text-subtle);
  opacity: .75;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.logo-item:hover { opacity: 1; color: var(--text-muted); }
.logo-item svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   10. Stats band
   -------------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-4); } }
.stat-value {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 750; letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { margin-top: var(--s-2); font-size: var(--step--1); color: var(--text-muted); font-weight: 550; }

/* --------------------------------------------------------------------------
   11. Feature / module grid
   -------------------------------------------------------------------------- */
.module-card { display: flex; flex-direction: column; height: 100%; }
.module-card ul {
  list-style: none; padding: 0;
  margin: var(--s-4) 0 0;
  display: grid; gap: 7px;
}
.module-card li {
  position: relative; padding-left: 22px; margin: 0;
  font-size: var(--step--1); color: var(--text-muted);
}
.module-card li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); opacity: .6;
}

/* Split feature rows */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split--reverse .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .split--reverse .split-media { order: 0; }
}
.split-copy ul { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.split-copy li { display: flex; gap: var(--s-3); margin: 0; color: var(--text-muted); }
.split-copy li svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px;
  color: var(--success-500);
}
.split-copy li b { color: var(--text); font-weight: 600; }

.split-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.split-media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 0%, var(--primary-soft), transparent 70%);
  pointer-events: none;
}

/* Timetable widget */
.timetable { display: grid; gap: 6px; position: relative; }
.tt-head { display: grid; grid-template-columns: 56px repeat(4, 1fr); gap: 6px; }
.tt-head span {
  font-size: .625rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-subtle); text-align: center; padding-bottom: 4px;
}
.tt-row { display: grid; grid-template-columns: 56px repeat(4, 1fr); gap: 6px; align-items: stretch; }
.tt-time { font-size: .625rem; color: var(--text-subtle); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.tt-cell {
  border-radius: var(--r-xs);
  padding: 8px 9px;
  font-size: .6875rem; line-height: 1.3;
  min-height: 46px;
  border: 1px solid transparent;
}
.tt-cell b { display: block; font-size: .6875rem; font-weight: 650; }
.tt-cell small { font-size: .625rem; opacity: .8; }
.tt-cell--a { background: color-mix(in srgb, var(--brand-500) 12%, transparent); color: var(--brand-700); border-color: color-mix(in srgb, var(--brand-500) 25%, transparent); }
.tt-cell--b { background: color-mix(in srgb, var(--accent-500) 14%, transparent); color: var(--accent-600); border-color: color-mix(in srgb, var(--accent-500) 28%, transparent); }
.tt-cell--c { background: color-mix(in srgb, #a855f7 13%, transparent); color: #7c3aed; border-color: color-mix(in srgb, #a855f7 26%, transparent); }
.tt-cell--d { background: color-mix(in srgb, var(--success-500) 13%, transparent); color: #047857; border-color: color-mix(in srgb, var(--success-500) 26%, transparent); }
.tt-cell--empty { background: var(--bg-muted); border-style: dashed; border-color: var(--border); }
:root[data-theme="dark"] .tt-cell--a { color: var(--brand-300); }
:root[data-theme="dark"] .tt-cell--b { color: var(--accent-400); }
:root[data-theme="dark"] .tt-cell--c { color: #c084fc; }
:root[data-theme="dark"] .tt-cell--d { color: #34d399; }

/* Fee / receipt widget */
.receipt { display: grid; gap: var(--s-3); position: relative; }
.receipt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s-3); border-bottom: 1px dashed var(--border);
}
.receipt-head b { font-size: .875rem; }
.receipt-line { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--text-muted); }
.receipt-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.receipt-total {
  display: flex; justify-content: space-between;
  padding-top: var(--s-3); border-top: 1px solid var(--border);
  font-weight: 700; font-size: .9375rem;
}
.receipt-total span:last-child { font-variant-numeric: tabular-nums; color: var(--primary); }
.pay-methods { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.pay-methods span {
  font-size: .625rem; font-weight: 650;
  padding: 5px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--border); color: var(--text-subtle);
  background: var(--bg-subtle);
}

/* Attendance widget */
.att-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.att-cell { aspect-ratio: 1; border-radius: 3px; background: var(--bg-muted); }
.att-cell.l1 { background: color-mix(in srgb, var(--brand-500) 25%, transparent); }
.att-cell.l2 { background: color-mix(in srgb, var(--brand-500) 45%, transparent); }
.att-cell.l3 { background: color-mix(in srgb, var(--brand-500) 68%, transparent); }
.att-cell.l4 { background: var(--brand-600); }
.att-cell.absent { background: color-mix(in srgb, var(--danger-500) 55%, transparent); }
.att-legend {
  display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-4); font-size: .625rem; color: var(--text-subtle);
}
.att-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* --------------------------------------------------------------------------
   12. Role tabs
   -------------------------------------------------------------------------- */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2);
  margin-bottom: var(--s-10);
}
.tab {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 10px 20px;
  font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.tab-panel { display: none; animation: fadeUp .45s var(--ease) both; }
.tab-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.role-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .role-panel { grid-template-columns: minmax(0, 1fr); } }
.role-panel h3 { font-size: var(--step-3); }

.checklist { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); margin: 0; color: var(--text-muted); font-size: var(--step-0); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--primary); }

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.quote-card { display: flex; flex-direction: column; gap: var(--s-5); height: 100%; }
.quote-card blockquote {
  margin: 0; font-size: var(--step-1); line-height: 1.55; color: var(--text);
  letter-spacing: -.012em;
}
.quote-card blockquote::before { content: "\201C"; color: var(--primary); font-size: 2.5em; line-height: 0; vertical-align: -.35em; margin-right: .06em; }
.quote-meta { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.quote-meta .avatar { width: 42px; height: 42px; font-size: .8125rem; }
.quote-meta b { display: block; font-size: var(--step--1); }
.quote-meta small { font-size: .75rem; color: var(--text-subtle); }
.stars { display: flex; gap: 2px; color: var(--warning-500); }
.stars svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.billing-switch {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 5px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  margin: 0 auto var(--s-10);
}
.billing-switch button {
  padding: 9px 20px;
  font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--text-muted);
  background: transparent; border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .22s var(--ease);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.billing-switch button[aria-pressed="true"] {
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
}
.switch-wrap { display: flex; justify-content: center; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); align-items: stretch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } }

.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  position: relative;
}
.price-card--featured::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 50% at 50% 0%, var(--primary-soft), transparent 70%);
  pointer-events: none;
}
@media (min-width: 981px) { .price-card--featured { transform: scale(1.035); z-index: 1; } }
.price-tag { position: absolute; top: var(--s-5); right: var(--s-5); }

.price-name { font-size: var(--step-1); font-weight: 700; margin-bottom: var(--s-2); }
.price-desc { font-size: var(--step--1); color: var(--text-muted); min-height: 44px; margin-bottom: var(--s-5); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s-1); }
.price-amount .cur { font-size: var(--step-1); font-weight: 650; color: var(--text-muted); }
.price-amount .num { font-size: clamp(2.25rem, 1.9rem + 1.6vw, 3rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.price-amount .per { font-size: var(--step--1); color: var(--text-subtle); }
.price-note { font-size: .75rem; color: var(--text-subtle); margin-bottom: var(--s-6); }
.price-card .btn { margin-bottom: var(--s-6); }
.price-features { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.price-features li { display: flex; gap: 10px; margin: 0; font-size: var(--step--1); color: var(--text-muted); }
.price-features svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--success-500); }
.price-features li.muted { color: var(--text-subtle); opacity: .65; }
.price-features li.muted svg { color: var(--text-subtle); }
.price-divider {
  margin: var(--s-6) 0 var(--s-4);
  font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-subtle);
}

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: var(--step--1); }
table.compare th, table.compare td { padding: 14px var(--s-5); text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th {
  position: sticky; top: 0;
  background: var(--bg-muted);
  font-weight: 650; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover { background: var(--bg-subtle); }
table.compare td:first-child { font-weight: 550; color: var(--text); }
.tick { color: var(--success-500); display: inline-block; }
.cross { color: var(--text-subtle); opacity: .5; }
table.compare .row-group td {
  background: var(--bg-subtle); font-weight: 700; font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  font-weight: 600; font-size: var(--step-0);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-item summary .chev {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--text-subtle);
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--primary); }
.faq-body { padding: 0 var(--s-6) var(--s-5); color: var(--text-muted); font-size: var(--step-0); }

/* --------------------------------------------------------------------------
   16. Integrations / marquee
   -------------------------------------------------------------------------- */
.chip-cloud { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--step--1); font-weight: 550; color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: all .25s var(--ease);
}
.chip:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--text); box-shadow: var(--shadow-md); }
.chip svg { width: 17px; height: 17px; color: var(--primary); }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600) 45%, var(--accent-600));
  color: #fff;
  box-shadow: var(--shadow-xl);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(60% 80% at 12% 10%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(50% 70% at 88% 90%, rgba(255,255,255,.14), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-4); }
.cta-band p { color: rgba(255,255,255,.88); font-size: var(--step-1); max-width: 62ch; margin-inline: auto; margin-bottom: var(--s-8); }
.cta-note { margin-top: var(--s-6); font-size: var(--step--1); color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field label .req { color: var(--danger-500); }
.field .hint { font-size: .75rem; color: var(--text-subtle); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger-500); }
.field .error-msg { font-size: .75rem; color: var(--danger-500); display: none; }
.field.has-error .error-msg { display: block; }

.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.check-row label { font-size: var(--step--1); font-weight: 450; color: var(--text-muted); }

.form-status {
  display: none;
  align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  font-size: var(--step--1);
  margin-bottom: var(--s-5);
}
.form-status.is-visible { display: flex; }
.form-status--ok {
  background: color-mix(in srgb, var(--success-500) 12%, transparent);
  color: var(--success-500);
  border: 1px solid color-mix(in srgb, var(--success-500) 30%, transparent);
}
.form-status--err {
  background: color-mix(in srgb, var(--danger-500) 10%, transparent);
  color: var(--danger-500);
  border: 1px solid color-mix(in srgb, var(--danger-500) 28%, transparent);
}
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* Contact side panel */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.contact-item { display: flex; gap: var(--s-4); margin-bottom: var(--s-6); }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .card-icon { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex-shrink: 0; }
.contact-item .card-icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: var(--step-0); margin-bottom: 2px; }
.contact-item p { font-size: var(--step--1); color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   19. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.page-hero::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 560px; z-index: -1;
  background:
    radial-gradient(45% 55% at 30% 60%, rgba(99,102,241,.22), transparent 65%),
    radial-gradient(40% 50% at 72% 55%, rgba(6,182,212,.18), transparent 62%);
}
.page-hero p { color: var(--text-muted); font-size: var(--step-1); max-width: 62ch; margin-inline: auto; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--step--1); color: var(--text-subtle);
  margin-bottom: var(--s-5);
}
.breadcrumb svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) var(--s-8);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: var(--s-12);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-about { max-width: 34ch; }
.footer-about p { font-size: var(--step--1); color: var(--text-muted); margin: var(--s-4) 0 var(--s-5); }
.footer-col h5 {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col li { margin: 0; }
.footer-col a { font-size: var(--step--1); color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }

.social { display: flex; gap: var(--s-2); }
.social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  background: var(--surface);
  transition: all .22s var(--ease);
}
.social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  font-size: var(--step--1); color: var(--text-subtle);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-bottom a { color: var(--text-subtle); }
.footer-bottom a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   21. Scroll reveal + misc utilities
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--primary); border-color: var(--primary); }
.to-top svg { width: 19px; height: 19px; }

.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page { display: flex; flex-direction: column; min-height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .mock { transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}
