/* SiteLine Design System — "Job site confidence"
   Single source of truth. Mirrors VitalCoach structure.
   Brand: Home Depot orange (#F96302) + steel (#1C2B3A).
*/

:root {
  /* Light tokens */
  --sl-bg: #FFFFFF;
  --sl-bg-elev: #FFFFFF;
  --sl-surface: #F7F9FB;
  --sl-ink: #1C2B3A;
  --sl-ink-2: #2A3A4F;
  --sl-ink-3: #5A6B7D;
  --sl-ink-4: #9AA5B1;
  --sl-line: rgba(28,43,58,0.08);
  --sl-line-2: rgba(28,43,58,0.14);

  /* Accents */
  --sl-orange: #F96302;
  --sl-orange-ink: #FFFFFF;
  --sl-orange-dark: #D94E00;
  --sl-steel: #1C2B3A;
  --sl-steel-soft: #2A3A4F;
  --sl-accent: #FFB37A;
  --sl-amber: #F2B84B;
  --sl-success: #10B981;

  /* BizBot parent (used sparingly for cross-links) */
  --bizbot-green: #00E87A;

  /* Type */
  --sl-font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sl-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sl-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Radii */
  --sl-r-sm: 8px;
  --sl-r: 14px;
  --sl-r-lg: 20px;
  --sl-r-xl: 28px;

  /* Shadow */
  --sl-shadow-sm: 0 2px 8px rgba(28,43,58,0.06);
  --sl-shadow: 0 8px 24px rgba(28,43,58,0.08);
  --sl-shadow-orange: 0 8px 20px rgba(249,99,2,0.28);

  /* Layout */
  --sl-container: 1100px;
}

[data-theme="dark"] {
  --sl-bg: #0B1220;
  --sl-bg-elev: #121B2B;
  --sl-surface: #172234;
  --sl-ink: #F5F7FA;
  --sl-ink-2: #D4D9E0;
  --sl-ink-3: #9AA5B1;
  --sl-ink-4: #5A6B7D;
  --sl-line: rgba(255,255,255,0.08);
  --sl-line-2: rgba(255,255,255,0.14);
}

/* Base */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--sl-font-sans);
  -webkit-font-smoothing: antialiased;
  color: var(--sl-ink);
  background: var(--sl-bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Type utilities */
.sl-display {
  font-family: var(--sl-font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.sl-mono { font-family: var(--sl-font-mono); font-feature-settings: 'ss01' 1, 'ss02' 1; }
.sl-eyebrow {
  font-family: var(--sl-font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sl-ink-3);
}

/* Container */
.sl-container { width: 100%; max-width: var(--sl-container); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; cursor: pointer;
  font-family: var(--sl-font-sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px;
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
  text-decoration: none;
}
.sl-btn:active { transform: scale(0.97); }
.sl-btn-primary { background: var(--sl-orange); color: var(--sl-orange-ink); }
.sl-btn-primary:hover { background: var(--sl-orange-dark); box-shadow: var(--sl-shadow-orange); }
.sl-btn-dark { background: var(--sl-steel); color: #FFFFFF; }
.sl-btn-dark:hover { background: #000814; }
.sl-btn-ghost { background: transparent; color: var(--sl-ink); border: 1px solid var(--sl-line-2); }
.sl-btn-ghost:hover { background: var(--sl-line); border-color: var(--sl-orange); color: var(--sl-orange); }
.sl-btn-sm { padding: 10px 16px; font-size: 13px; }

/* Cards / chips / pills */
.sl-card { background: var(--sl-bg-elev); border-radius: var(--sl-r-lg); border: 1px solid var(--sl-line); box-shadow: var(--sl-shadow-sm); }
.sl-pro-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--sl-steel); color: var(--sl-accent);
  font-family: var(--sl-font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; padding: 3px 7px; border-radius: 4px; text-transform: uppercase;
}
.sl-free-pill {
  display: inline-flex; align-items: center;
  background: var(--sl-line); color: var(--sl-ink-3);
  font-family: var(--sl-font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; padding: 3px 7px; border-radius: 4px; text-transform: uppercase;
}
.sl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--sl-surface); color: var(--sl-ink-2);
  font-size: 12px; font-weight: 500; border: 1px solid var(--sl-line);
}
.sl-chip--solid { background: var(--sl-steel); color: #FFFFFF; border-color: transparent; }
.sl-chip--orange { background: var(--sl-orange); color: var(--sl-orange-ink); border-color: transparent; }

.sl-progress { height: 6px; background: var(--sl-line); border-radius: 999px; overflow: hidden; }
.sl-progress > span { display: block; height: 100%; background: var(--sl-orange); border-radius: inherit; }

/* ===== NAV ===== */
.sl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sl-line);
}
.sl-nav-inner {
  max-width: var(--sl-container);
  margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sl-nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--sl-ink);
  font-family: var(--sl-font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em;
}
.sl-nav-logo .accent { color: var(--sl-orange); }
.sl-nav-links { display: flex; align-items: center; gap: 22px; }
.sl-nav-links a { color: var(--sl-ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.sl-nav-links a:hover { color: var(--sl-orange); }
.sl-nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 768px) {
  .sl-nav-links { display: none; }
}

/* ===== HERO (steel w/ orange blob) ===== */
.sl-hero {
  background: linear-gradient(135deg, var(--sl-steel) 0%, var(--sl-steel-soft) 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.sl-hero-blob {
  position: absolute;
  top: -160px; right: -140px;
  width: 480px; height: 480px;
  border-radius: 999px;
  background: var(--sl-orange);
  opacity: 0.85;
  pointer-events: none;
  filter: blur(4px);
}
.sl-hero-inner { position: relative; z-index: 2; max-width: var(--sl-container); margin: 0 auto; padding: 0 24px; }
.sl-hero-kicker {
  font-family: var(--sl-font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.sl-hero h1 {
  font-family: var(--sl-font-display);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.94;
  margin: 18px 0 0;
}
.sl-hero h1 .accent { color: var(--sl-orange); }
.sl-hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 18px; line-height: 1.5;
  max-width: 540px; margin-top: 22px;
}
.sl-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.sl-hero .sl-btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.25); }
.sl-hero .sl-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; border-color: rgba(255,255,255,0.5); }
.sl-hero-micro {
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin-top: 14px; font-family: var(--sl-font-mono); letter-spacing: 0.06em;
}

/* ===== STAT STRIP ===== */
.sl-stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--sl-container);
  margin: -40px auto 0; padding: 0 24px;
  position: relative; z-index: 3;
}
.sl-stat {
  background: var(--sl-bg-elev);
  border: 1px solid var(--sl-line);
  border-top: 3px solid var(--sl-steel);
  padding: 18px 20px;
  border-radius: var(--sl-r);
  box-shadow: var(--sl-shadow-sm);
}
.sl-stat:nth-child(1) { border-top-color: var(--sl-orange); }
.sl-stat:nth-child(2) { border-top-color: var(--sl-accent); }
.sl-stat:nth-child(3) { border-top-color: var(--sl-amber); }
.sl-stat:nth-child(4) { border-top-color: var(--sl-success); }
.sl-stat-n {
  font-family: var(--sl-font-display);
  font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.sl-stat-l { font-size: 12px; color: var(--sl-ink-3); margin-top: 6px; line-height: 1.35; }
@media (max-width: 768px) {
  .sl-stat-strip { grid-template-columns: 1fr 1fr; }
}

/* ===== SECTIONS ===== */
.sl-section { max-width: var(--sl-container); margin: 0 auto; padding: 72px 24px; }
.sl-section-gray { background: var(--sl-surface); }
.sl-section-gray-inner { max-width: var(--sl-container); margin: 0 auto; padding: 72px 24px; }
.sl-section h2, .sl-section-gray-inner h2 {
  font-family: var(--sl-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.sl-section h2 .accent, .sl-section-gray-inner h2 .accent { color: var(--sl-orange); }

/* PAIN GRID */
.sl-pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.sl-pain {
  padding: 18px 20px; background: var(--sl-bg-elev);
  border: 1px solid var(--sl-line); border-radius: var(--sl-r);
}
.sl-pain-before {
  font-size: 13px; color: var(--sl-ink-3);
  text-decoration: line-through; text-decoration-color: var(--sl-orange);
  margin-bottom: 8px;
}
.sl-pain-after { font-size: 15px; font-weight: 600; line-height: 1.4; }
@media (max-width: 768px) { .sl-pain-grid { grid-template-columns: 1fr; } }

/* FEATURE GRID */
.sl-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.sl-feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px;
  background: var(--sl-bg-elev); border: 1px solid var(--sl-line);
  border-radius: var(--sl-r);
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.sl-feature:hover { border-color: var(--sl-orange); transform: translateY(-2px); box-shadow: var(--sl-shadow); }
.sl-feature-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--sl-steel); color: var(--sl-orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; font-weight: 700;
}
.sl-feature-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.sl-feature-desc { font-size: 13px; color: var(--sl-ink-3); margin-top: 4px; line-height: 1.4; }
@media (max-width: 768px) { .sl-feature-grid { grid-template-columns: 1fr; } }

/* PRICING */
.sl-pricing {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 14px;
}
.sl-plan {
  border: 1px solid var(--sl-line); border-radius: var(--sl-r-lg);
  padding: 28px 26px; background: var(--sl-bg-elev);
  position: relative; display: flex; flex-direction: column;
}
.sl-plan.pro {
  background: var(--sl-steel); color: #FFFFFF;
  border-color: var(--sl-steel);
  transform: scale(1.02);
}
.sl-plan-name {
  font-family: var(--sl-font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sl-ink-3);
}
.sl-plan.pro .sl-plan-name { color: var(--sl-orange); }
.sl-plan-price {
  font-family: var(--sl-font-display);
  font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  margin-top: 6px;
}
.sl-plan-price span {
  font-size: 14px; color: var(--sl-ink-3);
  font-weight: 500; letter-spacing: 0;
}
.sl-plan.pro .sl-plan-price span { color: rgba(255,255,255,0.55); }
.sl-plan ul {
  margin: 18px 0 24px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.sl-plan li {
  font-size: 14px; line-height: 1.4;
  padding-left: 20px; position: relative;
}
.sl-plan li::before {
  content: ''; position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 2px; background: var(--sl-steel);
}
.sl-plan.pro li::before { background: var(--sl-orange); }
.sl-plan-best {
  position: absolute; top: -10px; right: 18px;
  background: var(--sl-orange); color: var(--sl-orange-ink);
  font-family: var(--sl-font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; padding: 4px 10px;
  border-radius: 4px; text-transform: uppercase;
}
.sl-plan .sl-btn { width: 100%; }
@media (max-width: 900px) {
  .sl-pricing { grid-template-columns: 1fr; }
  .sl-plan.pro { transform: none; }
}

/* QUOTES */
.sl-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sl-q {
  padding: 22px 24px; background: var(--sl-bg-elev);
  border-radius: var(--sl-r); border-left: 4px solid var(--sl-orange);
}
.sl-q-text { font-size: 15px; font-style: italic; line-height: 1.5; color: var(--sl-ink); }
.sl-q-who {
  font-size: 11px; color: var(--sl-ink-3); margin-top: 12px;
  font-family: var(--sl-font-mono); letter-spacing: 0.06em;
}
@media (max-width: 768px) { .sl-quote-grid { grid-template-columns: 1fr; } }

/* FAQ */
.sl-faq { display: flex; flex-direction: column; gap: 10px; }
.sl-faq details {
  background: var(--sl-bg-elev); border: 1px solid var(--sl-line);
  border-radius: var(--sl-r); padding: 18px 22px;
}
.sl-faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
.sl-faq details[open] summary { margin-bottom: 10px; }
.sl-faq p { color: var(--sl-ink-3); font-size: 14px; line-height: 1.5; margin: 0; }

/* FOOTER */
.sl-footer {
  border-top: 1px solid var(--sl-line);
  margin-top: 48px;
  padding: 36px 24px;
  background: var(--sl-bg);
}
.sl-footer-inner {
  max-width: var(--sl-container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.sl-footer-brand { font-family: var(--sl-font-display); font-weight: 700; font-size: 15px; }
.sl-footer-meta { font-size: 12px; color: var(--sl-ink-3); margin-top: 4px; }
.sl-footer-meta a { color: var(--bizbot-green); text-decoration: none; }
.sl-footer-meta a:hover { text-decoration: underline; }
.sl-footer-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* AUTH (login/signup) */
.sl-auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: var(--sl-surface);
}
.sl-auth-card {
  width: 100%; max-width: 420px;
  background: var(--sl-bg-elev);
  border: 1px solid var(--sl-line);
  border-radius: var(--sl-r-lg);
  padding: 36px 32px;
  box-shadow: var(--sl-shadow);
}
.sl-auth-card h1 {
  font-family: var(--sl-font-display);
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.sl-auth-card p.sl-auth-sub { color: var(--sl-ink-3); margin: 0 0 24px; font-size: 14px; }
.sl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.sl-field label {
  font-family: var(--sl-font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sl-ink-3);
}
.sl-field input, .sl-field select, .sl-field textarea {
  font-family: var(--sl-font-sans);
  padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--sl-line-2); border-radius: var(--sl-r-sm);
  background: var(--sl-bg-elev); color: var(--sl-ink);
  outline: none; transition: border-color 0.12s;
}
.sl-field input:focus, .sl-field select:focus, .sl-field textarea:focus {
  border-color: var(--sl-orange);
}
.sl-auth-card .sl-btn { width: 100%; padding: 14px; font-size: 15px; }
.sl-auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--sl-ink-3); }
.sl-auth-foot a { color: var(--sl-orange); font-weight: 600; text-decoration: none; }
.sl-auth-foot a:hover { text-decoration: underline; }

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 900px) {
  .sl-hero { padding: 56px 0 72px; }
  .sl-hero-blob {
    width: 260px; height: 260px;
    top: -120px; right: -100px;
    opacity: 0.55;
  }
  .sl-hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .sl-hero-sub { font-size: 16px; }
}

@media (max-width: 640px) {
  .sl-nav-inner { padding: 0 16px; }
  .sl-nav-links { display: none; }
  .sl-hero { padding: 44px 0 56px; }
  .sl-hero-inner { padding: 0 20px; }
  .sl-hero-blob {
    width: 200px; height: 200px;
    top: -90px; right: -80px;
    opacity: 0.45;
  }
  .sl-hero h1 { font-size: clamp(32px, 10vw, 44px); line-height: 1.02; }
  .sl-hero-sub { font-size: 15px; max-width: 100%; }
  .sl-hero-ctas { flex-direction: column; align-items: stretch; }
  .sl-hero-ctas .sl-btn { width: 100%; justify-content: center; }
  .sl-plan { padding: 24px 20px; }
  .sl-quote-grid, .sl-pricing { grid-template-columns: 1fr; gap: 16px; }
  .sl-footer-inner { flex-direction: column; align-items: flex-start; }
  .sl-auth-card { padding: 28px 22px; border-radius: var(--sl-r); }
  .sl-auth-card h1 { font-size: 26px; }
}

@media (max-width: 430px) {
  .sl-nav-inner { padding: 0 14px; height: 58px; }
  .sl-nav-logo { font-size: 17px; }
  .sl-hero { padding: 36px 0 48px; }
  .sl-hero-blob {
    width: 160px; height: 160px;
    top: -70px; right: -60px;
    opacity: 0.38;
  }
  .sl-hero h1 { font-size: clamp(28px, 10vw, 38px); }
  .sl-hero-kicker { font-size: 11px; letter-spacing: 0.12em; }
  .sl-hero-sub { font-size: 14.5px; line-height: 1.5; margin-top: 16px; }
  .sl-btn { padding: 12px 16px; font-size: 14px; }
  .sl-btn-sm { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 375px) {
  .sl-hero { padding: 28px 0 40px; }
  .sl-hero-blob {
    width: 120px; height: 120px;
    top: -50px; right: -40px;
    opacity: 0.30;
  }
  .sl-hero h1 { font-size: clamp(24px, 9vw, 32px); }
  .sl-hero-sub { font-size: 14px; }
  .sl-auth-card { padding: 22px 18px; }
  .sl-auth-card h1 { font-size: 22px; }
  .sl-field input, .sl-field select, .sl-field textarea { font-size: 16px; }
}

@supports (padding: max(0px)) {
  .sl-nav-inner { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .sl-footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
}

html, body { overflow-x: hidden; }
.sl-hero, .sl-hero-inner { max-width: 100vw; }

@media (max-width: 768px) {
  .sl-btn, .sl-nav-links a, .sl-footer-meta a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ===== ITER: A11y, SEO trust, sticky CTA, skip link ===== */
.sl-skip { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--sl-orange); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none; }
.sl-skip:focus { left: 0; outline: 3px solid #fff; }

*:focus-visible { outline: 3px solid var(--sl-orange); outline-offset: 2px; border-radius: 4px; }
.sl-btn:focus-visible { outline: 3px solid var(--sl-orange); outline-offset: 3px; }

/* Trust strip */
.sl-trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: var(--sl-container); margin: 36px auto 0; padding: 0 24px; }
.sl-trust-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--sl-bg-elev); border: 1px solid var(--sl-line); border-radius: var(--sl-r); box-shadow: var(--sl-shadow-sm); }
.sl-trust-icon { width: 32px; height: 32px; border-radius: 8px; background: #FFF1E8; color: var(--sl-orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; font-weight: 700; }
.sl-trust-text { font-size: 13px; font-weight: 600; color: var(--sl-ink-2); line-height: 1.3; }
@media (max-width: 900px) { .sl-trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 430px) { .sl-trust-strip { grid-template-columns: 1fr; } }

/* Sticky mobile CTA */
.sl-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--sl-line-2);
  padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: none; box-shadow: 0 -4px 16px rgba(28,43,58,0.08);
}
.sl-sticky-cta .sl-btn { width: 100%; padding: 14px; font-size: 15px; }
@media (max-width: 768px) { .sl-sticky-cta { display: block; } body { padding-bottom: 72px; } }

/* Visually-hidden for a11y labels */
.sl-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; }

/* FAQ (extended) */
.sl-faq summary::marker { color: var(--sl-orange); }
.sl-faq summary:focus-visible { outline: 3px solid var(--sl-orange); outline-offset: 3px; }

/* Demo video placeholder */
.sl-demo-video { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sl-steel), var(--sl-steel-soft)); border-radius: var(--sl-r-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; margin: 24px 0; }
.sl-demo-video-play { width: 72px; height: 72px; border-radius: 50%; background: var(--sl-orange); display: flex; align-items: center; justify-content: center; box-shadow: var(--sl-shadow-orange); }
.sl-demo-video-play::after { content: ''; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.sl-demo-video-label { position: absolute; bottom: 16px; left: 20px; font-family: var(--sl-font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Ensure enough contrast on hero sub */
.sl-hero-sub, .hero p { color: rgba(255,255,255,0.92); }


/* ===== SL-APP v1 (shared app utilities, appended 2026-04-23) ===== */

/* Toast */
#sl-toast-host { position: fixed; top: 70px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 32px); }
.sl-toast { pointer-events: auto; background: var(--sl-steel); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; min-width: 220px; }
.sl-toast.is-in { opacity: 1; transform: translateY(0); }
.sl-toast--success { background: #059669; }
.sl-toast--error { background: #DC2626; }
.sl-toast--info { background: var(--sl-steel); }
@media (max-width: 600px) { #sl-toast-host { top: 66px; left: 8px; right: 8px; } .sl-toast { width: 100%; } }

/* Modal */
.sl-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; z-index: 9998; opacity: 0; transition: opacity .2s; padding: 16px; }
.sl-modal-overlay.is-in { opacity: 1; }
.sl-modal { background: #fff; border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.sl-modal h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--sl-ink); }
.sl-modal p { font-size: 14px; color: var(--sl-ink-2); line-height: 1.5; margin: 0 0 20px; }
.sl-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.sl-modal-actions button { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--sl-line-2); background: #fff; color: var(--sl-ink); font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; }
.sl-modal-actions .sl-modal-ok { background: var(--sl-orange); color: #fff; border-color: var(--sl-orange); }
.sl-modal-actions .sl-modal-ok.is-danger { background: #DC2626; border-color: #DC2626; }
.sl-modal-actions .sl-modal-ok:hover { background: var(--sl-orange-dark); }

/* Keyboard shortcut table */
.sl-kbd-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.sl-kbd-table td { padding: 8px 6px; border-bottom: 1px solid var(--sl-line); font-size: 13px; color: var(--sl-ink-2); }
.sl-kbd-table td:first-child { white-space: nowrap; }
kbd { display: inline-block; padding: 2px 8px; border: 1px solid var(--sl-line-2); border-bottom-width: 2px; border-radius: 6px; background: #F3F4F6; font-family: var(--sl-font-mono); font-size: 11px; color: var(--sl-ink); }

/* Offline bar */
#sl-offline-bar { position: fixed; bottom: 72px; left: 0; right: 0; background: #B45309; color: #fff; padding: 10px 14px; text-align: center; font-size: 13px; font-weight: 600; z-index: 95; box-shadow: 0 -2px 8px rgba(0,0,0,.12); }
@media (min-width: 768px) { #sl-offline-bar { bottom: 0; } }

/* Save indicator */
.sl-save-indicator { font-size: 12px; font-weight: 600; color: var(--sl-ink-3); padding: 4px 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.sl-save-indicator.is-saving { color: #B45309; }
.sl-save-indicator.is-saving::before { content: ''; width: 8px; height: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: sl-spin .7s linear infinite; }
.sl-save-indicator.is-saved { color: #059669; }
.sl-save-indicator.is-saved::before { content: '✓'; font-weight: 800; }
.sl-save-indicator.is-error { color: #DC2626; }
@keyframes sl-spin { to { transform: rotate(360deg); } }

/* Empty states */
.sl-empty { text-align: center; padding: 48px 24px; color: var(--sl-ink-3); }
.sl-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.sl-empty-title { font-size: 17px; font-weight: 700; color: var(--sl-ink); margin-bottom: 6px; }
.sl-empty-body { font-size: 14px; line-height: 1.5; max-width: 320px; margin: 0 auto 18px; }
.sl-empty .sl-btn, .sl-empty button { margin: 0 auto; }

/* Skeleton loaders */
.sl-skel { background: linear-gradient(90deg, #F3F4F6 0%, #E5E7EB 50%, #F3F4F6 100%); background-size: 200% 100%; animation: sl-shimmer 1.2s infinite; border-radius: 6px; color: transparent; }
@keyframes sl-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Keyboard hint chip */
.sl-kbd-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sl-ink-3); margin-left: 6px; }

/* Print polish (estimates, change orders, invoices) */
@media print {
  body { background: #fff !important; padding: 0 !important; }
  .topbar, .bottom-nav, .sl-sticky-cta, #sl-toast-host, .sl-modal-overlay,
  #sl-offline-bar, .no-print, [data-no-print], button:not(.do-print),
  .upgrade-banner, .welcome-banner, .chat-widget, #chat-widget { display: none !important; }
  main, .main, .container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .card, .estimate, .change-order, .print-card { box-shadow: none !important; border: 1px solid #E5E7EB !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  tr, li { page-break-inside: avoid; }
  @page { margin: 0.6in; }
}

/* Mobile job-site polish: bigger tap targets, high-contrast focus */
@media (max-width: 768px) {
  button, a.sl-btn, .sl-btn, input[type="button"], input[type="submit"] { min-height: 48px; }
  input, select, textarea { font-size: 16px !important; /* prevent iOS zoom */ }
}

/* Safe-area padding for notched phones on bottom nav */
.bottom-nav, .sl-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }

/* Progress bar utility */
.sl-progress { width: 100%; height: 6px; background: var(--sl-line); border-radius: 999px; overflow: hidden; }
.sl-progress > span { display: block; height: 100%; background: var(--sl-orange); transition: width .3s ease; }

/* Badge variants */
.sl-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.sl-pill--new { background: #FFF1E8; color: var(--sl-orange); }
.sl-pill--ok { background: #ECFDF5; color: #059669; }
.sl-pill--warn { background: #FEF3C7; color: #B45309; }
.sl-pill--danger { background: #FEE2E2; color: #DC2626; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Focus-visible for keyboard users */
:focus-visible { outline: 3px solid var(--sl-orange) !important; outline-offset: 2px; border-radius: 4px; }

/* sl-app utility row */
.sl-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--sl-line); position: sticky; top: 56px; z-index: 90; }
.sl-toolbar button, .sl-toolbar .sl-btn { min-height: 40px; padding: 8px 14px; font-size: 13px; border-radius: 8px; border: 1px solid var(--sl-line-2); background: #fff; color: var(--sl-ink); font-weight: 600; cursor: pointer; }
.sl-toolbar button:hover { border-color: var(--sl-orange); color: var(--sl-orange); }
.sl-toolbar button.is-primary { background: var(--sl-orange); color: #fff; border-color: var(--sl-orange); }

/* ===== ITER 2026-04-23 marketing: mobile tightening + conversion polish (APPEND ONLY) ===== */
@media (max-width: 640px) {
  .sl-trust-strip { margin: 24px auto 0; gap: 8px; padding: 0 16px; }
  .sl-trust-item { padding: 12px 14px; }
  .sl-trust-icon { width: 28px; height: 28px; font-size: 14px; }
  .sl-trust-text { font-size: 12.5px; }
  .sl-pain { padding: 16px 16px; }
  .sl-pain-after { font-size: 14px; }
  .sl-faq details { padding: 14px 18px; }
  .sl-faq summary { font-size: 15px; }
}
@media (max-width: 430px) {
  .sl-sticky-cta { padding: 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .sl-sticky-cta .sl-btn { padding: 12px; font-size: 14px; }
}
@media (max-width: 375px) {
  .sl-trust-strip { padding: 0 14px; }
  .sl-pain-grid { gap: 10px; }
}
/* WCAG 2.3.3 reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.sl-chip:focus-visible { outline: 3px solid var(--sl-orange); outline-offset: 2px; }
button.sl-chip { font-family: inherit; cursor: pointer; }
