/* ==========================================================================
   Service Strike — dark theme, hand-tuned overrides for inner pages.
   Loaded last on every page. theme-legacy.css handles the bulk palette
   swap automatically; this file reshapes legacy components to match the
   hx-* look from the home page.
   ========================================================================== */

body.ss-dark {
  --bg: var(--hx-bg);
  --bg-soft: var(--hx-bg-2);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.035);
  --text: var(--hx-text);
  --muted: var(--hx-muted);
  --line: var(--hx-border);
  --primary: #38bdf8;
  --accent: #3b82f6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ---------- Typography ---------- */
body.ss-dark h1, body.ss-dark h2, body.ss-dark h3, body.ss-dark h4 {
  font-family: var(--hx-head);
  color: var(--hx-text);
  text-wrap: balance;
}
body.ss-dark main h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
body.ss-dark main h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
body.ss-dark main h3 { font-weight: 650; letter-spacing: -0.015em; }
body.ss-dark main p, body.ss-dark .lead { color: var(--hx-muted); }
body.ss-dark main strong { color: var(--hx-text); }
body.ss-dark main a:not([class]) { color: #7dd3fc; }
body.ss-dark main a:not([class]):hover { color: #bae6fd; }

/* ---------- Page heroes: glow + grid like the home hero ---------- */
body.ss-dark .subhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}
body.ss-dark .contact-hero,
body.ss-dark .pricing-hero,
body.ss-dark .features-overview-hero { background: transparent; border: 0; box-shadow: none; }
body.ss-dark .subhero::before {
  content: "";
  position: absolute;
  inset: -30% -10% 0;
  z-index: -1;
  background:
    radial-gradient(36% 45% at 22% 30%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(30% 40% at 78% 25%, rgba(56, 189, 248, 0.2), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
body.ss-dark .subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* ---------- Eyebrows & tags ---------- */
body.ss-dark .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--hx-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: none;
}
body.ss-dark .tag {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

/* ---------- Feature points -> check pills ---------- */
body.ss-dark .point,
body.ss-dark .subhero .feature-points .point:nth-child(n) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hx-border);
  color: #d3d9ec;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease;
}
body.ss-dark .point::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--hx-grad);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}
body.ss-dark .point:hover { border-color: rgba(56, 189, 248, 0.35); background: rgba(255, 255, 255, 0.06); }

/* ---------- Premium cards ---------- */
body.ss-dark .schedule-story-card,
body.ss-dark .multi-company-card,
body.ss-dark .legal-card,
body.ss-dark .pricing-card,
body.ss-dark .features-showcase-card,
body.ss-dark .support-card,
body.ss-dark .article-card,
body.ss-dark .knowledge-article,
body.ss-dark .comparison-block,
body.ss-dark .how-it-works-card,
body.ss-dark .workflow-flow-card,
body.ss-dark .review-funnel-flow-card,
body.ss-dark .contact-form-card,
body.ss-dark .trial-form-card,
body.ss-dark .about-story-card,
body.ss-dark .about-identity-card,
body.ss-dark .about-highlight-card,
body.ss-dark .about-hero-card,
body.ss-dark .about-company-note,
body.ss-dark .page-hero-card,
body.ss-dark .table-card,
body.ss-dark .chart-card,
body.ss-dark .mini-card,
body.ss-dark .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--hx-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.25);
}
body.ss-dark .schedule-story-card-alt,
body.ss-dark .multi-company-card-alt,
body.ss-dark .pricing-card.featured {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(56, 189, 248, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border-color: rgba(56, 189, 248, 0.22);
}
body.ss-dark .schedule-story-card,
body.ss-dark .multi-company-card { border-radius: 28px; }
body.ss-dark .features-showcase-card,
body.ss-dark .support-card,
body.ss-dark .article-card { transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
body.ss-dark .features-showcase-card:hover,
body.ss-dark .support-card:hover,
body.ss-dark .article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.1);
}

/* Inner highlight panels inside cards */
body.ss-dark .multi-company-highlight,
body.ss-dark .knowledge-callout,
body.ss-dark .sms-consent-example-box {
  background: rgba(6, 10, 20, 0.45);
  border: 1px solid var(--hx-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.ss-dark .multi-company-list li { color: #d3d9ec; font-weight: 500; }
body.ss-dark .multi-company-list li::before,
body.ss-dark .about-check-list li::before {
  background: var(--hx-grad);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

/* Screenshots: crisp edges and depth on dark */
body.ss-dark .schedule-story-image,
body.ss-dark .feature-hero-image,
body.ss-dark .estimates-hero-image,
body.ss-dark .multi-company-summary-image {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- FAQ ---------- */
body.ss-dark .faq-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hx-border);
  box-shadow: none;
}
body.ss-dark .faq-item.open { border-color: rgba(56, 189, 248, 0.3); background: rgba(255, 255, 255, 0.055); }
body.ss-dark .faq-trigger { color: var(--hx-text); font-family: var(--hx-head); }
body.ss-dark .faq-icon { color: #7dd3fc; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.25); }

/* ---------- CTA band -> glowing panel ---------- */
body.ss-dark .cta-band {
  position: relative;
  overflow: hidden;
  width: auto;
  padding: 4.5rem 2rem;
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(60% 80% at 50% 120%, rgba(56, 189, 248, 0.22), transparent 60%),
    #0b1124;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 100px rgba(0, 0, 0, 0.45);
}
body.ss-dark .cta-copy .eyebrow { font-size: 0.78rem; padding: 0.4rem 0.85rem; color: #bae6fd; }
body.ss-dark .cta-copy .lead { font-weight: 400; }

/* ---------- Buttons inside pages ---------- */
body.ss-dark main .button { min-height: 50px; padding: 0 1.5rem; border-radius: 14px; font-size: 0.98rem; }

/* ---------- Forms ---------- */
body.ss-dark main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.ss-dark main select,
body.ss-dark main textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hx-border-2);
  color: var(--hx-text);
  border-radius: 12px;
  box-shadow: none;
  color-scheme: dark;
}
body.ss-dark main input::placeholder,
body.ss-dark main textarea::placeholder { color: var(--hx-dim); }
body.ss-dark main input:focus,
body.ss-dark main select:focus,
body.ss-dark main textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}
body.ss-dark main select option { background: #0d1428; color: var(--hx-text); }
body.ss-dark main label { color: #c8d0e6; }
body.ss-dark input[type="checkbox"] { accent-color: #38bdf8; }

/* ---------- Tables ---------- */
body.ss-dark .comparison-table { color: #d3d9ec; }
body.ss-dark .comparison-table th { color: var(--hx-text); font-family: var(--hx-head); }
body.ss-dark .comparison-table th,
body.ss-dark .comparison-table td { border-color: var(--hx-border); }
body.ss-dark .comparison-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

/* ---------- Start free trial ---------- */
body.ss-dark .trial-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(59, 130, 246, 0.35), transparent 70%),
    radial-gradient(50% 45% at 80% 85%, rgba(56, 189, 248, 0.22), transparent 70%),
    #0a1020;
  border-right: 1px solid var(--hx-border);
}
body.ss-dark .trial-side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
}
body.ss-dark .trial-side .lead,
body.ss-dark .trial-benefit p { color: var(--hx-muted); }
body.ss-dark .trial-benefit strong { color: var(--hx-text); font-family: var(--hx-head); }
body.ss-dark .trial-check {
  color: #fff;
  background: var(--hx-grad);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
}
body.ss-dark .trial-form-wrap { background: var(--hx-bg); }
body.ss-dark .trial-form-card {
  max-width: 720px;
  padding: 2.25rem;
  border-radius: 24px;
}
body.ss-dark .trial-step { background: rgba(255, 255, 255, 0.06); color: var(--hx-muted); border: 1px solid var(--hx-border); }
body.ss-dark .trial-step.active { background: var(--hx-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35); }
body.ss-dark .trial-line { background: var(--hx-border-2); }

/* ---------- Section headings inside story cards ---------- */
body.ss-dark .multi-company-copy h2,
body.ss-dark .schedule-story-copy h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  margin-bottom: 1rem;
}
body.ss-dark .multi-company-copy .eyebrow,
body.ss-dark .schedule-story-copy .eyebrow { margin-bottom: 1.1rem; }

/* ---------- Knowledge articles ---------- */
body.ss-dark .knowledge-article {
  max-width: 860px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: 28px;
}
body.ss-dark .knowledge-article p,
body.ss-dark .knowledge-article li { line-height: 1.75; }
body.ss-dark .knowledge-article h2 { margin-top: 2.6rem; }
body.ss-dark .knowledge-article h3 { margin: 1.6rem 0 0.4rem; color: var(--hx-text); }
body.ss-dark .knowledge-callout {
  border-left: 3px solid #38bdf8;
  border-radius: 0 16px 16px 0;
  background: rgba(56, 189, 248, 0.07);
}
body.ss-dark .knowledge-callout strong { color: #7dd3fc; }

/* ---------- Feature hero images: no box behind the artwork ---------- */
body.ss-dark .feature-hero-section .visual-panel,
body.ss-dark .feature-hero-section .visual-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body.ss-dark .feature-hero-section .visual-panel::before,
body.ss-dark .feature-hero-section .visual-panel::after,
body.ss-dark .feature-hero-section .visual-shell::before,
body.ss-dark .feature-hero-section .visual-shell::after { display: none; }
/* Device mockups (transparent PNGs) get a soft glow, not a frame */
body.ss-dark .feature-hero-section .feature-hero-image {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}
/* Flat app screenshots get a framed window look */
body.ss-dark .feature-hero-section .hero-screenshot {
  border-radius: 14px;
  border: 1px solid var(--hx-border-2);
  filter: none;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(59, 130, 246, 0.12);
}

/* ---------- Pricing ---------- */
body.ss-dark .pricing-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hx-border-2);
  box-shadow: none;
}
body.ss-dark .pricing-toggle-option { color: var(--hx-muted); font-weight: 600; transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease; }
body.ss-dark .pricing-toggle-option.active {
  color: #fff;
  background: var(--hx-grad);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}
body.ss-dark .pricing-toggle-note { color: var(--hx-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; }
body.ss-dark .pricing-save-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

body.ss-dark .pricing-grid { gap: 1.1rem; align-items: stretch; padding-top: 1.25rem; }
body.ss-dark .pricing-card {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
body.ss-dark .pricing-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.14); }
body.ss-dark .pricing-card h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
body.ss-dark .plan-desc { margin: 0.35rem 0 0; min-height: 2.8em; font-size: 0.92rem; line-height: 1.45; color: var(--hx-muted); }

/* Pro: the card the eye lands on first */
body.ss-dark .pricing-card.featured {
  z-index: 1;
  transform: translateY(-14px);
  padding-top: 2.4rem;
  padding-bottom: 2rem;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(125, 211, 252, 0.55);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(56, 189, 248, 0.18);
}
body.ss-dark .pricing-card.featured:hover { transform: translateY(-18px); border-color: rgba(125, 211, 252, 0.8); }
body.ss-dark .pricing-card-badge {
  top: 0;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--hx-grad);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.45);
  white-space: nowrap;
}

/* Price + annual savings */
body.ss-dark .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 0.9rem;
  font-family: var(--hx-head);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hx-text);
  font-variant-numeric: tabular-nums;
}
body.ss-dark .price small { color: var(--hx-muted); font-family: var(--hx-body); font-size: 0.95rem; letter-spacing: 0; }
body.ss-dark .price-was {
  display: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hx-dim);
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(248, 113, 113, 0.8);
}
body.ss-dark .price-was.is-visible { display: inline; animation: price-was-in 0.35s ease; }
@keyframes price-was-in { from { opacity: 0; transform: translateY(-6px); } }
body.ss-dark .price-note { min-height: 1.3rem; margin: -0.5rem 0 1.1rem; font-size: 0.85rem; font-weight: 500; color: var(--hx-muted); }
body.ss-dark .price-save { color: #6ee7b7; font-weight: 600; }

/* Features: light-blue checks, regular weight */
body.ss-dark .pricing-feature-list { gap: 0.75rem; padding-top: 1.2rem; border-top: 1px solid var(--hx-border); }
body.ss-dark .pricing-feature-list span {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #c8d0e6;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.4;
}
body.ss-dark .pricing-feature-list span:first-child { color: var(--hx-text); font-weight: 600; }
body.ss-dark .pricing-feature-list span::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%237dd3fc' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
body.ss-dark .pricing-card-button { margin-top: 1.6rem; }

/* Trust strip + app badges under the cards */
body.ss-dark .pricing-trust {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  color: var(--hx-muted);
  font-size: 0.95rem;
}
body.ss-dark .pricing-trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
body.ss-dark .pricing-trust svg { width: 18px; height: 18px; color: #34d399; }
body.ss-dark .pricing-apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.4rem; }
body.ss-dark .pricing-apps a { transition: transform 0.2s ease; }
body.ss-dark .pricing-apps a:hover { transform: translateY(-2px); }
body.ss-dark .pricing-apps img { height: 46px; width: auto; }

@media (max-width: 1100px) {
  body.ss-dark .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  body.ss-dark .pricing-card.featured { transform: none; }
  body.ss-dark .pricing-card.featured:hover { transform: translateY(-4px); }
}
@media (max-width: 640px) {
  body.ss-dark .pricing-grid { grid-template-columns: 1fr; }
  body.ss-dark .plan-desc { min-height: 0; }
  body.ss-dark .pricing-trust { flex-direction: column; align-items: center; gap: 0.5rem; }
}

/* Comparison tables: same type and check style as the pricing cards */
body.ss-dark .comparison-table thead th {
  background: rgba(10, 16, 32, 0.96);
  color: var(--hx-text);
  font-family: var(--hx-head);
  font-size: 0.85rem;
  font-weight: 600;
}
body.ss-dark .comparison-table tbody td {
  color: #c8d0e6;
  font-family: var(--hx-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}
body.ss-dark .comparison-table tbody td:first-child { color: #c8d0e6; font-weight: 400; }
body.ss-dark .tbl-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%237dd3fc' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
body.ss-dark .tbl-none { color: var(--hx-dim); opacity: 0.6; }
body.ss-dark .tbl-note { margin-left: 2px; color: #7dd3fc; font-size: 0.75rem; }
body.ss-dark .tbl-footnote { margin: 0.6rem 0 0; padding: 0 1rem; color: var(--hx-muted); font-size: 0.85rem; }
body.ss-dark .comparison-table th { word-break: normal; overflow-wrap: normal; hyphens: none; }
@media (max-width: 640px) {
  body.ss-dark .comparison-table thead th { font-size: 0.72rem; padding-left: 0.3rem; padding-right: 0.3rem; }
  body.ss-dark .comparison-table tbody td { font-size: 0.86rem; }
}

/* Mobile App page: larger realistic phone in the hero */
body.ss-dark .mobile-app-page .feature-hero-section .mobile-app-hero-shell { justify-content: center; align-items: center; padding: 1rem 0; }
body.ss-dark .mobile-app-page .feature-hero-section .mobile-app-hero-image {
  height: 640px;
  max-height: none;
  width: auto;
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 40px rgba(56, 189, 248, 0.22)) drop-shadow(0 50px 60px rgba(0, 0, 0, 0.6));
}
@media (max-width: 980px) { body.ss-dark .mobile-app-page .feature-hero-section .mobile-app-hero-image { height: 540px; } }
@media (max-width: 640px) { body.ss-dark .mobile-app-page .feature-hero-section .mobile-app-hero-image { height: 460px; } }

/* ---------- Schedule & Dispatching: animated card visuals ---------- */
.sp-demo {
  --sp: 8s;
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  color: #10213b;
  font-family: var(--hx-body);
  font-size: 0.78rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sp-demo * { box-sizing: border-box; animation-duration: var(--sp); animation-iteration-count: infinite; animation-timing-function: ease; }
.schedule-story-card:not(.is-in) .sp-demo * { animation-play-state: paused; }
.sp-cursor {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #0f172a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}
.sp-toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  animation-name: sp-toast;
}
.sp-toast svg, .sp-badge svg { width: 14px; height: 14px; }
@keyframes sp-toast { 0%, 55% { opacity: 0; transform: translate(-50%, 10px); } 59%, 88% { opacity: 1; transform: translate(-50%, 0); } 93%, 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* 1. Drag & drop calendar */
.sp-cal { --cw: calc((100% - 28px - 46px) / 5); height: 316px; }
.sp-cal-head { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-bottom: 6px; }
.sp-cal-head b { font-size: 0.95rem; }
.sp-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #e2e8f0; }
.sp-seg i { padding: 0.15rem 0.5rem; border-radius: 6px; font-style: normal; font-size: 0.66rem; font-weight: 600; color: #64748b; }
.sp-seg i.on { color: #fff; background: #2563eb; }
.sp-cal-grid { display: grid; grid-template-columns: 46px repeat(5, 1fr); grid-template-rows: 24px repeat(4, 52px); }
.sp-day { display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: #475569; }
.sp-hr { font-size: 0.6rem; color: #94a3b8; padding-top: 2px; }
.sp-cell { border-top: 1px solid #e2e8f0; border-left: 1px solid #e2e8f0; }
.sp-target { animation-name: sp-target; }
@keyframes sp-target { 0%, 26% { background: transparent; } 32%, 50% { background: rgba(59, 130, 246, 0.12); box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.5); } 56%, 100% { background: transparent; box-shadow: none; } }
.sp-ev {
  position: absolute;
  left: calc(60px + (var(--c) - 1) * var(--cw) + 3px);
  top: calc(82px + (var(--r) - 1) * 52px);
  width: calc(var(--cw) - 6px);
  height: 44px;
  padding: 0.3rem 0.4rem;
  border-radius: 7px;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  background: color-mix(in srgb, var(--col) 16%, #fff);
  border-left: 3px solid var(--col);
}
.sp-ev small { display: block; font-weight: 500; color: #475569; }
.sp-drag {
  z-index: 3;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  animation-name: sp-drag;
}
@keyframes sp-drag {
  0%, 18% { left: calc(60px + 1 * var(--cw) + 3px); top: 82px; transform: none; opacity: 1; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15); }
  22% { left: calc(60px + 1 * var(--cw) + 3px); top: 82px; transform: scale(1.06) rotate(-2deg); box-shadow: 0 16px 30px rgba(15, 23, 42, 0.3); }
  50% { left: calc(60px + 3 * var(--cw) + 3px); top: 134px; transform: scale(1.06) rotate(-2deg); box-shadow: 0 16px 30px rgba(15, 23, 42, 0.3); }
  55%, 90% { left: calc(60px + 3 * var(--cw) + 3px); top: 134px; transform: none; opacity: 1; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15); }
  94% { left: calc(60px + 3 * var(--cw) + 3px); top: 134px; opacity: 0; }
  95% { left: calc(60px + 1 * var(--cw) + 3px); top: 82px; opacity: 0; }
  100% { left: calc(60px + 1 * var(--cw) + 3px); top: 82px; opacity: 1; }
}
.sp-cal .sp-cursor { animation-name: sp-cal-cursor; }
@keyframes sp-cal-cursor {
  0%, 6% { left: 88%; top: 88%; transform: scale(1); }
  18% { left: calc(60px + 1.55 * var(--cw)); top: 104px; transform: scale(1); }
  21% { left: calc(60px + 1.55 * var(--cw)); top: 104px; transform: scale(0.82); }
  50% { left: calc(60px + 3.55 * var(--cw)); top: 156px; transform: scale(0.82); }
  55% { left: calc(60px + 3.55 * var(--cw)); top: 156px; transform: scale(1); }
  70%, 100% { left: 88%; top: 88%; transform: scale(1); }
}

/* 2. Automatic reminder: SMS thread on a phone */
.sp-sms { display: grid; place-items: center; height: 430px; background: radial-gradient(70% 60% at 50% 40%, #e0ecff, #f8fafc); }
.sp-phone {
  width: 214px;
  height: 392px;
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(145deg, #d1d5db, #7d8594 45%, #d1d5db);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.sp-phone-screen { height: 100%; border-radius: 30px; overflow: hidden; background: #fff; border: 4px solid #0b0b0d; }
.sp-ph-top { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 0.8rem; font-size: 0.6rem; font-weight: 700; }
.sp-island { width: 56px; height: 16px; border-radius: 999px; background: #0b0b0d; }
.sp-ph-contact { display: grid; justify-items: center; gap: 1px; padding: 0.3rem 0 0.5rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.sp-ph-contact b { font-size: 0.68rem; }
.sp-ph-contact small { font-size: 0.54rem; color: #94a3b8; }
.sp-ph-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 0.7rem; background: linear-gradient(135deg, #60a5fa, #2563eb); }
.sp-thread { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.6rem 0.55rem; }
.sp-msg { max-width: 84%; padding: 0.45rem 0.6rem; border-radius: 14px; font-size: 0.62rem; line-height: 1.38; opacity: 0; transform: translateY(8px) scale(0.96); }
.sp-msg.in { align-self: flex-start; background: #e5e7eb; color: #111827; border-bottom-left-radius: 4px; }
.sp-msg.out { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.sp-msg.m1 { animation-name: sp-m1; }
.sp-msg.m2 { animation-name: sp-m2; }
.sp-msg.m3 { animation-name: sp-m3; }
@keyframes sp-m1 { 0%, 8% { opacity: 0; transform: translateY(8px) scale(0.96); } 13%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes sp-m2 { 0%, 36% { opacity: 0; transform: translateY(8px) scale(0.96); } 41%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes sp-m3 { 0%, 52% { opacity: 0; transform: translateY(8px) scale(0.96); } 57%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.sp-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.72rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
}
.sp-badge.b1 { left: 14px; top: 22%; color: #1d4ed8; animation-name: sp-b1; }
.sp-badge.b1 i { width: 8px; height: 8px; border-radius: 999px; background: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
.sp-badge.b2 { right: 14px; bottom: 18%; color: #065f46; background: #d1fae5; animation-name: sp-b2; }
@keyframes sp-b1 { 0%, 12% { opacity: 0; transform: translateX(-10px); } 17%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes sp-b2 { 0%, 58% { opacity: 0; transform: translateX(10px); } 63%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* 3. Job board: a job moves through every column */
.sp-board { --bw: calc((100% - 28px - 24px) / 4); height: 270px; }
.sp-board-head { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 8px; }
.sp-board-head b { font-size: 0.95rem; }
.sp-chips { display: flex; gap: 0.3rem; }
.sp-chips i { padding: 0.15rem 0.55rem; border-radius: 999px; font-style: normal; font-size: 0.64rem; font-weight: 600; color: #475569; background: #e2e8f0; }
.sp-chips i.on { color: #fff; background: #2563eb; }
.sp-board-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 200px; }
.sp-bcol { padding: 0.45rem; border-radius: 10px; background: #eef2f7; }
.sp-bh { display: flex; align-items: center; gap: 0.3rem; font-size: 0.64rem; font-weight: 700; color: #334155; white-space: nowrap; }
.sp-bh i { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.sp-bh em { position: relative; margin-left: auto; min-width: 18px; height: 16px; border-radius: 999px; font-style: normal; text-align: center; font-size: 0.6rem; line-height: 16px; background: #fff; color: #475569; }
.sp-bh em.n b { position: absolute; inset: 0; font-weight: 700; }
.sp-bh em.n .x2 { opacity: 0; }
.sp-bcol:first-child em.n .x1 { animation-name: sp-cnt-out-early; }
.sp-bcol:first-child em.n .x2 { animation-name: sp-cnt-in-early; }
.sp-bcol:last-child em.n .x1 { animation-name: sp-cnt-out-late; }
.sp-bcol:last-child em.n .x2 { animation-name: sp-cnt-in-late; }
@keyframes sp-cnt-out-early { 0%, 18% { opacity: 1; } 21%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes sp-cnt-in-early { 0%, 18% { opacity: 0; } 21%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sp-cnt-out-late { 0%, 72% { opacity: 1; } 75%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes sp-cnt-in-late { 0%, 72% { opacity: 0; transform: scale(1); } 75% { opacity: 1; transform: scale(1.3); } 78%, 94% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; } }
.sp-bc { display: block; height: 40px; margin-top: 0.45rem; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.sp-job {
  position: absolute;
  top: 132px;
  left: calc(14px + 5px);
  width: calc(var(--bw) - 10px);
  z-index: 3;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #6b7280;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  font-size: 0.62rem;
  animation-name: sp-job;
}
.sp-job b { display: block; font-size: 0.66rem; line-height: 1.2; }
.sp-job small { color: #64748b; font-size: 0.56rem; }
.sp-paid { display: inline-block; margin-top: 0.25rem; padding: 0.1rem 0.4rem; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 0.56rem; color: #15803d; background: #dcfce7; opacity: 0; animation-name: sp-paid; }
@keyframes sp-job {
  0%, 10% { left: calc(14px + 5px); border-left-color: #6b7280; transform: none; opacity: 1; }
  14% { transform: rotate(-3deg) scale(1.05); }
  22%, 32% { left: calc(14px + 1 * (var(--bw) + 8px) + 5px); border-left-color: #2dd4bf; transform: none; }
  36% { transform: rotate(-3deg) scale(1.05); }
  46%, 56% { left: calc(14px + 2 * (var(--bw) + 8px) + 5px); border-left-color: #2563eb; transform: none; }
  60% { transform: rotate(-3deg) scale(1.05); }
  72%, 90% { left: calc(14px + 3 * (var(--bw) + 8px) + 5px); border-left-color: #16a34a; transform: none; opacity: 1; }
  94% { left: calc(14px + 3 * (var(--bw) + 8px) + 5px); opacity: 0; }
  95% { left: calc(14px + 5px); opacity: 0; }
  100% { left: calc(14px + 5px); opacity: 1; }
}
@keyframes sp-paid { 0%, 76% { opacity: 0; transform: scale(0.6); } 80%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

@media (max-width: 640px) {
  .sp-demo { padding: 10px; font-size: 0.7rem; }
  .sp-cal { --cw: calc((100% - 20px - 34px) / 5); height: 262px; }
  .sp-cal-grid { grid-template-columns: 34px repeat(5, 1fr); grid-template-rows: 22px repeat(4, 42px); }
  .sp-seg { display: none; }
  .sp-ev { left: calc(44px + (var(--c) - 1) * var(--cw) + 2px); top: calc(72px + (var(--r) - 1) * 42px); width: calc(var(--cw) - 4px); height: 36px; font-size: 0.5rem; padding: 0.2rem 0.25rem; }
  @keyframes sp-drag {
    0%, 18% { left: calc(44px + 1 * var(--cw) + 2px); top: 72px; transform: none; opacity: 1; }
    22% { left: calc(44px + 1 * var(--cw) + 2px); top: 72px; transform: scale(1.06) rotate(-2deg); }
    50% { left: calc(44px + 3 * var(--cw) + 2px); top: 114px; transform: scale(1.06) rotate(-2deg); }
    55%, 90% { left: calc(44px + 3 * var(--cw) + 2px); top: 114px; transform: none; opacity: 1; }
    94% { left: calc(44px + 3 * var(--cw) + 2px); top: 114px; opacity: 0; }
    95% { left: calc(44px + 1 * var(--cw) + 2px); top: 72px; opacity: 0; }
    100% { left: calc(44px + 1 * var(--cw) + 2px); top: 72px; opacity: 1; }
  }
  @keyframes sp-cal-cursor {
    0%, 6% { left: 88%; top: 88%; transform: scale(1); }
    18% { left: calc(44px + 1.55 * var(--cw)); top: 88px; transform: scale(1); }
    21% { left: calc(44px + 1.55 * var(--cw)); top: 88px; transform: scale(0.82); }
    50% { left: calc(44px + 3.55 * var(--cw)); top: 130px; transform: scale(0.82); }
    55% { left: calc(44px + 3.55 * var(--cw)); top: 130px; transform: scale(1); }
    70%, 100% { left: 88%; top: 88%; transform: scale(1); }
  }
  .sp-toast { font-size: 0.64rem; bottom: 8px; }
  .sp-sms { height: 400px; }
  .sp-phone { transform: scale(0.92); }
  .sp-badge { font-size: 0.62rem; padding: 0.35rem 0.55rem; }
  .sp-badge.b1 { left: 6px; }
  .sp-badge.b2 { right: 6px; }
  .sp-board { --bw: calc((100% - 20px - 12px) / 4); height: 240px; }
  .sp-board-cols { gap: 4px; height: 180px; }
  .sp-chips { display: none; }
  .sp-bcol { padding: 0.3rem; }
  .sp-bh { font-size: 0.5rem; gap: 0.2rem; }
  .sp-bh em { min-width: 14px; height: 13px; line-height: 13px; font-size: 0.5rem; }
  .sp-bc { height: 32px; }
  .sp-job { top: 110px; left: calc(10px + 3px); width: calc(var(--bw) - 6px); padding: 0.3rem; }
  .sp-job b { font-size: 0.54rem; }
  .sp-job small { display: none; }
  @keyframes sp-job {
    0%, 10% { left: calc(10px + 3px); border-left-color: #6b7280; opacity: 1; }
    22%, 32% { left: calc(10px + 1 * (var(--bw) + 4px) + 3px); border-left-color: #2dd4bf; }
    46%, 56% { left: calc(10px + 2 * (var(--bw) + 4px) + 3px); border-left-color: #2563eb; }
    72%, 90% { left: calc(10px + 3 * (var(--bw) + 4px) + 3px); border-left-color: #16a34a; opacity: 1; }
    94% { left: calc(10px + 3 * (var(--bw) + 4px) + 3px); opacity: 0; }
    95% { left: calc(10px + 3px); opacity: 0; }
    100% { left: calc(10px + 3px); opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-demo * { animation: none !important; }
  .sp-msg, .sp-badge, .sp-paid { opacity: 1; transform: none; }
  .sp-cursor { display: none; }
}

/* keep story cards within the screen on small widths (animated visuals must not widen the grid) */
body.ss-dark .schedule-story-visual, body.ss-dark .schedule-story-frame, body.ss-dark .schedule-story-copy { min-width: 0; }
body.ss-dark .schedule-story-frame { width: 100%; }
@media (max-width: 980px) { body.ss-dark .schedule-story-card { grid-template-columns: minmax(0, 1fr); } }
