/* ============================================
   TSS — Homepage-specific styles
   Linked only from index.html via body.page-home
   ============================================ */

/* ─── Font Override ─── */
.page-home {
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Hero ─── */
.h-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.h-hero > .container {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.h-hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 64px);
  max-width: 820px;
}

.h-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}

.h-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 8rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 28px;
}

.h-title .hero-line {
  display: block;
}

.h-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.52);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
}

.h-hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.h-link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.h-link-arrow:hover { color: #fff; }

/* Hero bottom anchor */
.h-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.h-guarantee-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(45, 99, 216, 0.28);
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(45, 99, 216, 0.07);
  white-space: nowrap;
}
.h-guarantee-chip svg { color: var(--blue); flex-shrink: 0; }

.h-hero-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
  text-align: right;
}

/* ─── Stats Bar ─── */
.h-stats-bar {
  padding: 0;
}

.h-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.h-stat {
  padding: 44px 40px;
  border-right: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}
.h-stat:last-child { border-right: none; }
.h-stat:hover { background: var(--bg-2); }

.h-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.8vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 10px;
}

.h-stat-num span[data-counter] {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.h-stat-suffix {
  font-size: 0.52em;
  color: var(--blue);
  letter-spacing: 0;
  font-weight: 700;
}

.h-stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 5px;
}

.h-stat-source {
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 400;
}

/* ─── Services List ─── */
.h-services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 48px;
}

.h-services-sub {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 220px;
  text-align: right;
  line-height: 1.65;
  flex-shrink: 0;
  margin-bottom: 2px;
  font-weight: 300;
}

.h-srv-list {
  border-top: 1px solid var(--border);
}

.h-srv-row {
  display: grid;
  grid-template-columns: 52px 1fr auto 28px;
  align-items: center;
  gap: 32px;
  padding: 22px 4px 22px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-bottom-color 0.3s;
}

.h-srv-row:hover {
  transform: translateX(14px);
  border-bottom-color: rgba(45, 99, 216, 0.35);
}
.h-srv-row:hover .h-srv-num { color: var(--blue); }
.h-srv-row:hover .h-srv-arrow {
  color: var(--blue);
  transform: translateX(5px);
}

.h-srv-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.h-srv-name {
  font-size: clamp(0.975rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.h-srv-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  max-width: 260px;
  text-align: right;
  line-height: 1.5;
}

.h-srv-arrow {
  font-size: 1.1rem;
  color: var(--text-3);
  transition: color 0.2s, transform 0.25s var(--ease);
}

/* ─── Testimonials (asymmetric layout) ─── */
.h-testy-feature {
  padding: 56px 0 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.h-testy-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.h-testy-stars svg { color: #b8972e; }

.h-testy-quote {
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.58;
  color: var(--text);
  font-weight: 300;
  max-width: 780px;
  margin-bottom: 28px;
  quotes: "\201C" "\201D";
}
.h-testy-quote::before { content: open-quote; }
.h-testy-quote::after { content: close-quote; }

.h-testy-cite {
  font-size: 0.85rem;
  color: var(--text-3);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-testy-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.h-testy-cite strong {
  color: var(--text-2);
  font-weight: 500;
}

.h-testy-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.h-testy-item { padding: 40px 0; }
.h-testy-item:first-child {
  padding-right: 52px;
  border-right: 1px solid var(--border);
}
.h-testy-item:last-child { padding-left: 52px; }

.h-testy-item-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.h-testy-item-stars svg { color: #b8972e; }

.h-testy-item-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 20px;
  font-weight: 300;
}

.h-testy-item-cite {
  font-size: 0.8rem;
  color: var(--text-3);
  font-style: normal;
}
.h-testy-item-cite strong {
  color: var(--text-2);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

/* ─── Small overrides ─── */
.page-home .process-num {
  font-family: var(--font-display);
  font-weight: 800;
}

.page-home .guarantee-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-home .display-xl {
  font-family: var(--font-display);
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .h-srv-desc { display: none; }
  .h-srv-row {
    grid-template-columns: 44px 1fr 24px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .h-hero-inner {
    padding-top: calc(var(--nav-h) + 36px);
    max-width: 100%;
  }

  .h-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .h-hero-meta { text-align: left; }

  .h-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .h-stat {
    padding: 28px 22px;
    border-bottom: 1px solid var(--border);
  }

  .h-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .h-stat:nth-child(even) { border-right: none; }
  .h-stat:nth-child(3),
  .h-stat:nth-child(4) { border-bottom: none; }

  .h-services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }

  .h-services-sub {
    text-align: left;
    max-width: 100%;
  }

  .h-srv-row {
    grid-template-columns: 36px 1fr 22px;
    gap: 14px;
    padding: 18px 4px 18px 0;
  }

  .h-testy-pair {
    grid-template-columns: 1fr;
    border-bottom: none;
  }

  .h-testy-item { padding: 32px 0; }
  .h-testy-item:first-child {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .h-testy-item:last-child {
    padding-left: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .h-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .h-guarantee-chip { white-space: normal; }
}

/* ─── Hero Scarcity Pill ─── */
.hero-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(184, 151, 46, 0.30);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #b8972e;
  background: rgba(184, 151, 46, 0.06);
  text-decoration: none;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.hero-scarcity:hover { background: rgba(184, 151, 46, 0.13); }

.hero-scarcity-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: #b8972e;
  border-radius: 50%;
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 151, 46, 0.45); }
  50%       { box-shadow: 0 0 0 5px rgba(184, 151, 46, 0); }
}

/* ─── Service row — OS badge ─── */
.os-service-row .h-srv-name { display: flex; align-items: center; gap: 10px; }

.h-srv-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(45, 99, 216, 0.20);
  font-family: var(--font-body);
}

/* ─── Staley OS Section ─── */
.os-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.os-intro { max-width: 700px; margin-bottom: 44px; }
.os-headline { margin: 18px 0 14px; }
.os-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.82;
  max-width: 560px;
  font-weight: 300;
}

/* Hero stat bar */
.os-hero-stat {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 40px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
  margin-bottom: 44px;
  overflow: hidden;
  position: relative;
}
.os-hero-stat::before {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(45,99,216,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.os-big-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  flex-shrink: 0;
}
.os-big-unit {
  font-size: 0.42em;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.os-big-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 420px;
  font-weight: 300;
}

/* Two-column body */
.os-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 44px;
}

/* Feature list */
.os-features { display: flex; flex-direction: column; }
.os-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.os-feature:last-child { border-bottom: none; }

.os-feat-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-top: 1px;
}
.os-feat-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.os-feat-desc {
  font-size: 0.80rem;
  color: var(--text-3);
  line-height: 1.62;
}

/* Dashboard mockup */
.os-dashboard {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.os-dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-4);
  border-bottom: 1px solid var(--border);
}
.os-dash-dots { display: flex; gap: 5px; margin-right: 2px; }
.os-dash-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.os-dot-red    { background: #ff5f57; }
.os-dot-yellow { background: #ffbd2e; }
.os-dot-green  { background: #28c840; }
.os-dash-bar-label {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 500;
}
.os-dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.63rem;
  font-weight: 600;
  color: #28c840;
  letter-spacing: 0.04em;
}
.os-dash-live-dot {
  width: 5px;
  height: 5px;
  background: #28c840;
  border-radius: 50%;
  animation: dash-blink 1.6s ease-in-out infinite;
}
@keyframes dash-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.os-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.os-dash-stat {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
}
.os-dash-stat:last-child { border-right: none; }
.os-dash-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 2px;
}
.os-dash-stat-hi .os-dash-stat-num { color: var(--blue); }
.os-dash-stat-lbl { font-size: 0.62rem; color: var(--text-3); }

.os-dash-pipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}
.os-dash-col-hd {
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.os-dash-col-hd span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.58rem;
  letter-spacing: 0;
}
.os-dash-card {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 9px;
  margin-bottom: 5px;
}
.os-card-won {
  border-color: rgba(40, 200, 64, 0.28);
  background: rgba(40, 200, 64, 0.05);
}
.os-card-name { font-size: 0.70rem; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.os-card-meta { font-size: 0.60rem; color: var(--text-3); }
.os-green  { color: #28c840; }
.os-yellow { color: #ffbd2e; }

.os-dash-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--text-3);
  background: var(--bg-4);
}
.os-dash-foot svg { color: #28c840; flex-shrink: 0; }

/* OS bottom pricing row */
.os-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.os-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.os-price-from { font-size: 0.85rem; color: var(--text-3); }
.os-price-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.os-price-mo { font-size: 1rem; color: var(--text-2); }
.os-price-note {
  font-size: 0.76rem;
  color: var(--text-3);
  align-self: flex-end;
  margin-bottom: 3px;
}
.os-bottom-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ─── OS responsive ─── */
@media (max-width: 960px) {
  .os-body { grid-template-columns: 1fr; }
  .os-dashboard { position: static; }
}

@media (max-width: 768px) {
  .os-hero-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 24px;
  }
  .os-big-num { font-size: clamp(4rem, 14vw, 6rem); }
  .os-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .os-bottom-ctas { flex-direction: column; width: 100%; }
  .os-bottom-ctas .btn { width: 100%; text-align: center; justify-content: center; }
}
