/* Shared public-facing Tow Control Dispatch visual system.
   Served from /assets by the existing Express static middleware. */
:root {
  --web-amber: #ffc800;
  --web-amber-deep: #a87900;
  --web-steel: #17344d;
  --web-steel-deep: #102638;
  --web-ink: #17212a;
  --web-muted: #5e6972;
  --web-paper: #f5f4f0;
  --web-surface: #ffffff;
  --web-line: #d8d8d2;
  --web-radius: 4px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Barlow", Arial, sans-serif !important;
  color: var(--web-ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
}
a { text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { border-radius: var(--web-radius); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(255, 200, 0, .65);
  outline-offset: 2px;
}

/* Main marketing home */
body.landing-page {
  --web-steel-deep: #292d32;
}
.hero {
  background: var(--web-steel-deep) !important;
}
.hero-bg {
  background: var(--web-steel-deep) !important;
}
.hero-bg::before, .hero-bg::after, .hero-grain { display: none !important; }
.navbar.scrolled {
  background: var(--web-steel-deep) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: rgba(255,255,255,.18) !important;
}
.navbar-login-btn, .sidebar-login-btn, .btn-primary {
  border-radius: 3px !important;
  box-shadow: none !important;
  transition: background-color .15s, color .15s, border-color .15s !important;
}
.navbar-login-btn:hover, .sidebar-login-btn:hover, .btn-primary:hover {
  transform: none !important;
  box-shadow: none !important;
}
.hero h1 { font-size: clamp(42px, 6vw, 68px) !important; letter-spacing: -.02em !important; }
.hero h1 .accent { text-shadow: none !important; }
.hero-tagline { color: rgba(255,255,255,.76) !important; }
.ticker-track { animation: none !important; }
.ticker-strip { padding: 10px 0 !important; }
.section-h2, .showcase-section h2 { letter-spacing: -.01em !important; }
.proof-bar { padding: 32px 28px !important; }
.proof-stat-val { font-size: 40px !important; }
.browser-frame {
  border: 1px solid #bfc4c7 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
.cta-section, .dark-section { background-color: var(--web-steel-deep) !important; }
.cta-inner { max-width: 1060px; }
.footer-inner { border-top: 1px solid var(--web-line); }
.sidebar { background: #102638 !important; }

/* Secondary /web marketing page */
body:has(.mobile-section) {
  background: var(--web-steel-deep) !important;
  color: #f5f6f4 !important;
}
body:has(.mobile-section) .nav {
  background: var(--web-steel-deep) !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.nav-logo, .footer-logo, .sidebar-brand-icon { background: var(--web-amber) !important; border-radius: 3px !important; }
.nav-login, .sidebar-cta, .btn-primary {
  background: var(--web-amber) !important;
  color: var(--web-steel-deep) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}
.nav-login:hover, .sidebar-cta:hover, .btn-primary:hover {
  background: #e8b600 !important;
  transform: none !important;
}
.hero::before { display: none !important; }
body:has(.mobile-section) .hero {
  padding-top: 120px;
  background: var(--web-steel-deep) !important;
  color: #fff !important;
}
.hero-badge {
  border-radius: 3px !important;
  background: rgba(255,200,0,.12) !important;
  border-color: rgba(255,200,0,.42) !important;
  color: var(--web-amber) !important;
}
.hero-badge-dot { animation: none !important; }
body:has(.mobile-section) .hero h1 span { color: var(--web-amber) !important; }
.btn-primary, .btn-secondary { border-radius: 3px !important; }
.btn-primary:hover { box-shadow: none !important; }
.btn-secondary { border-color: #87929a !important; }
body:has(.mobile-section) section { padding-top: 64px; padding-bottom: 64px; }
.feature-card, .pain-card {
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: border-color .15s, background-color .15s !important;
}
.feature-card:hover { transform: none !important; border-color: var(--web-amber-deep) !important; }
.feature-icon, .pain-icon, .step-number { border-radius: 3px !important; }
.how-it-works, .mobile-section {
  background: #e9e8e2 !important;
}
body:has(.mobile-section) .how-it-works,
body:has(.mobile-section) .mobile-section { color: var(--web-ink) !important; }
body:has(.mobile-section) .how-it-works .section-title,
body:has(.mobile-section) .how-it-works .section-label,
body:has(.mobile-section) .mobile-section .section-title { color: var(--web-steel) !important; }
body:has(.mobile-section) .how-it-works :is(.section-desc, .step p),
body:has(.mobile-section) .mobile-section :is(.mobile-text p, .mobile-features li) { color: var(--web-muted) !important; }
body:has(.mobile-section) .step-number { color: var(--web-steel-deep) !important; }
body:has(.mobile-section) .stat-label { color: #c1cbd1 !important; }
.pricing-card {
  border-radius: 5px !important;
  box-shadow: none !important;
}
.pricing-card::before { background: var(--web-amber) !important; }
.pricing-badge { border-radius: 3px !important; }
.cta { background: var(--web-steel-deep) !important; color: #fff !important; }
.cta h2 { color: #fff; }
.cta .section-label { color: var(--web-amber) !important; }
.cta p { color: rgba(255,255,255,.74) !important; }
body:has(.mobile-section) .footer { background: var(--web-steel-deep); }
body:has(.mobile-section) .footer :is(.footer-copy, .footer-links a) { color: #c1cbd1 !important; }
.phone-mockup, .phone-sm, .spotlight-phone {
  border-radius: 18px !important;
  box-shadow: none !important;
}
.sidebar { background: #102638 !important; border-radius: 0 !important; }
.sidebar-link-badge { border-radius: 3px !important; }

/* Pricing page (shares landing-page components) */
body:has(.pricing-inner) { background: var(--web-paper) !important; }
.pricing-card, .pricing-inner .pricing-card {
  border: 1px solid var(--web-line) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

/* Trial registration and account-facing public signup/checkout screens */
.page-wrap { padding-top: 34px !important; }
.page-header h1 { font-size: clamp(34px, 5vw, 48px) !important; }
.card, .container .card {
  border: 1px solid var(--web-line) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
body:has(.provider-info), body:has(.trial-info), body:has(.info-box) {
  background: var(--web-paper) !important;
  color: var(--web-ink) !important;
}
body:has(.provider-info) .logo h1, body:has(.trial-info) .logo h1,
body:has(.info-box) .logo h1 { color: var(--web-steel) !important; }
body:has(.provider-info) .card, body:has(.trial-info) .container,
body:has(.info-box) .container {
  background: var(--web-surface) !important;
  color: var(--web-ink) !important;
}
body:has(.provider-info) .provider-info p, body:has(.provider-info) .pricing-item,
body:has(.trial-info) .subtitle, body:has(.info-box) .subtitle {
  color: var(--web-muted) !important;
}
.trial-badge, .success-icon, .icon { border-radius: 4px !important; }
.btn-submit, .button, .btn {
  border-radius: 3px !important;
  box-shadow: none !important;
}
.form-group input, .form-group select, .form-group textarea,
.container input, .container select, .container textarea {
  border: 1px solid #aeb5b9;
  border-radius: 3px !important;
}
.navbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Legal, privacy and support pages */
.layout {
  gap: 32px !important;
  max-width: 1180px !important;
}
.toc {
  border-color: var(--web-line) !important;
  border-radius: 4px !important;
  background: #f2f1ec !important;
}
.summary, .notice, .contact, .contact-card, .warning-card, .email-card {
  border-radius: 4px !important;
  box-shadow: none !important;
}
.summary { background: #fff8e5 !important; }
.notice { border-color: #d8bd6a !important; }
.contact { background: var(--web-steel-deep) !important; }
.contact-grid { gap: 0 !important; }
.contact-card, .faq-item {
  border-radius: 4px !important;
  box-shadow: none !important;
}
.faq-question { border-radius: 3px !important; }
.page-footer { background: #efeee9 !important; }
.content-wrap { min-width: 0; }
.hero-logo { max-width: min(230px, 25vw) !important; }

@media (max-width: 700px) {
  .navbar { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-inner { gap: 38px !important; }
  .hero h1 { font-size: clamp(40px, 10vw, 54px) !important; }
  .hero-stat-val { font-size: 23px !important; }
  .proof-stat { min-width: 50%; padding: 12px 10px !important; }
  .proof-stat-val { font-size: 34px !important; }
  .pricing-card { padding: 30px 22px !important; }
  .layout { padding-left: 18px !important; padding-right: 18px !important; }
  .hero-logo { position: static !important; width: 150px !important; max-width: 42vw !important; padding: 18px 0 0 18px !important; }
  .content-wrap { margin-left: 0 !important; }
  .page-wrap { padding: 24px 16px 52px !important; }
  .container { padding: 28px 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Admin operations console — dense, high-contrast steel surfaces and amber actions. */
body:has(#loginSection) {
  background: #102638;
  color: #f5f6f4;
  font-family: "Barlow", Arial, sans-serif;
}
body:has(#loginSection) .login-card,
body:has(#loginSection) .stat-card,
body:has(#loginSection) .card,
body:has(#loginSection) .modal {
  background: #17344d;
  border: 1px solid #345066;
  border-radius: 4px;
  box-shadow: none;
}
body:has(#loginSection) .login-card { padding: 32px; }
body:has(#loginSection) .login-logo h1,
body:has(#loginSection) .sidebar-logo { color: var(--web-amber); }
body:has(#loginSection) .login-logo h1,
body:has(#loginSection) .header h2,
body:has(#loginSection) .card-header h3,
body:has(#loginSection) .modal-header h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
body:has(#loginSection) .sidebar {
  background: #0d2436;
  border-right: 1px solid #345066;
}
body:has(#loginSection) .sidebar-subtitle,
body:has(#loginSection) .stat-label,
body:has(#loginSection) th { color: #b6c3cb; }
body:has(#loginSection) .nav-item { border-radius: 3px; }
body:has(#loginSection) .nav-item:hover { background: #1c3d56; }
body:has(#loginSection) .nav-item.active {
  background: var(--web-amber);
  color: #102638;
}
body:has(#loginSection) .btn-primary {
  background: var(--web-amber);
  color: #102638;
  border-radius: 3px;
}
body:has(#loginSection) .btn-primary:hover { background: #e8b600; }
body:has(#loginSection) .stat-value.primary { color: var(--web-amber); }
body:has(#loginSection) .btn-secondary {
  background: #24445d;
  color: #f5f6f4;
  border: 1px solid #456177;
  border-radius: 3px;
}
body:has(#loginSection) .form-group input {
  background: #0d2436;
  border-color: #456177;
  border-radius: 3px;
  color: #fff;
}
body:has(#loginSection) .form-group input:focus { border-color: var(--web-amber); }
body:has(#loginSection) .card-header,
body:has(#loginSection) .modal-header,
body:has(#loginSection) .modal-footer { border-color: #345066; }
body:has(#loginSection) th { background: #102638; }
body:has(#loginSection) td { border-color: #345066; }
body:has(#loginSection) tr:hover { background: #1c3d56; }
body:has(#loginSection) .card-body { overflow-x: auto; }
body:has(#loginSection) table { min-width: 590px; }
body:has(#loginSection) .modal { max-width: 560px; }
body:has(#loginSection) .modal-close { color: #d3dce1; }
body:has(#loginSection) .action-btn,
body:has(#loginSection) .badge { border-radius: 3px; }
body:has(#loginSection) .action-btn-delete { background: #6f2a2a; color: #ffe3df; }
body:has(#loginSection) .badge-success { background: #14532d; color: #bbf7d0; }
body:has(#loginSection) .badge-warning { background: #713f12; color: #fde68a; }
body:has(#loginSection) .badge-error { background: #7f1d1d; color: #fecaca; }
body:has(#loginSection) .badge-info { background: #1e3a5f; color: #bfdbfe; }

@media (max-width: 900px) {
  body:has(#loginSection) .sidebar { width: 220px; padding: 18px; }
  body:has(#loginSection) .main-content { margin-left: 220px; padding: 22px; }
}
@media (max-width: 640px) {
  body:has(#loginSection) .sidebar {
    position: static;
    width: 100%;
    max-height: none;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #345066;
  }
  body:has(#loginSection) .sidebar-subtitle { margin-bottom: 14px; }
  body:has(#loginSection) .nav-item { display: inline-flex; width: auto; margin: 0 4px 4px 0; padding: 9px 11px; }
  body:has(#loginSection) .main-content { margin-left: 0; padding: 16px; }
  body:has(#loginSection) .header { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  body:has(#loginSection) .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body:has(#loginSection) .stat-card { padding: 16px; }
  body:has(#loginSection) .stat-value { font-size: 26px; }
  body:has(#loginSection) .card-header,
  body:has(#loginSection) td,
  body:has(#loginSection) th { padding-left: 14px; padding-right: 14px; }
}

/* Insurance partner invitation — preserve verification, error and success semantics. */
body:has(#input-otp) {
  min-height: 100vh;
  background: var(--web-paper);
  color: var(--web-ink);
  font-family: "Barlow", Arial, sans-serif;
}
body:has(#input-otp) .container { max-width: 660px; }
body:has(#input-otp) .logo h1 {
  color: var(--web-steel);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
}
body:has(#input-otp) .logo p,
body:has(#input-otp) .company-info p,
body:has(#input-otp) .feature-text p,
body:has(#input-otp) .loading { color: #53616c; }
body:has(#input-otp) .card {
  background: var(--web-surface);
  border: 1px solid var(--web-line);
  border-radius: 5px;
  box-shadow: none;
  color: var(--web-ink);
}
body:has(#input-otp) .company-info h2,
body:has(#input-otp) .feature-text h4 { color: var(--web-steel); }
body:has(#input-otp) .form-group label { color: #344653; }
body:has(#input-otp) .form-group input {
  background: #fff;
  border: 1px solid #aab4bb;
  border-radius: 3px;
  color: var(--web-ink);
}
body:has(#input-otp) .form-group input:focus { border-color: var(--web-amber-deep); }
body:has(#input-otp) .form-group input::placeholder { color: #65727b; }
body:has(#input-otp) .form-group input:read-only {
  opacity: 1;
  background: #efeee9;
  color: #4d5961;
}
body:has(#input-otp) .submit-btn {
  background: var(--web-amber);
  color: #102638;
  border-radius: 3px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
}
body:has(#input-otp) .submit-btn:hover { background: #e8b600; opacity: 1; }
body:has(#input-otp) .feature-item {
  background: #f1f1ed;
  border: 1px solid var(--web-line);
  border-radius: 4px;
}
body:has(#input-otp) .feature-icon { background: rgba(255,200,0,.2); border-radius: 3px; }
body:has(#input-otp) .api-key-box {
  background: #edf1f3;
  border: 1px solid #cbd3d8;
  border-radius: 4px;
}
body:has(#input-otp) .api-key-box label { color: #53616c; }
body:has(#input-otp) .api-key-value { color: #765300; }
body:has(#input-otp) .copy-btn {
  background: var(--web-steel);
  border: 1px solid var(--web-steel);
  border-radius: 3px;
  color: #fff;
}
body:has(#input-otp) .copy-btn:hover { background: #244a66; }
body:has(#input-otp) .warning-box {
  background: #fff5d9;
  border-color: #d9b852;
  border-radius: 4px;
}
body:has(#input-otp) .warning-box p { color: #634900; }
body:has(#input-otp) .success-icon { border-radius: 4px; }
body:has(#input-otp) .success-card h2 { color: #18734a; }

/* Insurance dispatch operations — retain existing green/amber/red/blue status coding. */
body:has(#auth-view) {
  --primary: var(--web-amber);
  --primary-dark: #e8b600;
  --bg-root: var(--web-paper);
  --bg-secondary: #eeede7;
  --text: var(--web-ink);
  --text-secondary: #5e6972;
  --border: var(--web-line);
  background: var(--web-paper);
  color: var(--web-ink);
  font-family: "Barlow", Arial, sans-serif;
}
body:has(#auth-view) .nav { background: var(--web-steel-deep); border-bottom-color: #345066; }
body:has(#auth-view) .nav-brand { color: var(--web-amber); font-family: "Barlow Condensed", sans-serif; }
body:has(#auth-view) .nav-user span { color: #d1d9de; }
body:has(#auth-view) .auth-card,
body:has(#auth-view) .card,
body:has(#auth-view) .stat-card,
body:has(#auth-view) .detail-panel {
  border: 1px solid var(--web-line);
  border-radius: 5px;
  box-shadow: none;
}
body:has(#auth-view) .auth-card { padding: 2rem; }
body:has(#auth-view) .auth-title h1,
body:has(#auth-view) .dashboard-header h1,
body:has(#auth-view) .section-title,
body:has(#auth-view) .detail-header h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
body:has(#auth-view) .form-group input,
body:has(#auth-view) .form-group select,
body:has(#auth-view) .form-group textarea { border-radius: 3px; }
body:has(#auth-view) .form-group input:focus,
body:has(#auth-view) .form-group select:focus,
body:has(#auth-view) .form-group textarea:focus { border-color: var(--web-amber-deep); }
body:has(#auth-view) .btn { border-radius: 3px; }
body:has(#auth-view) .btn-primary {
  background: var(--web-amber);
  color: #102638;
}
body:has(#auth-view) .btn-primary:hover { background: #e8b600; }
body:has(#auth-view) .btn-secondary { border: 1px solid #c7cbc9; }
body:has(#auth-view) .btn-cancel { border-radius: 3px; }
body:has(#auth-view) .link { color: #805d00; }
body:has(#auth-view) .section-title { border-bottom: 1px solid var(--web-line); padding-bottom: .45rem; }
body:has(#auth-view) .dispatch-card {
  border-bottom: 1px solid #e1e2dd;
  border-radius: 4px;
  transition: border-color .15s, background-color .15s;
}
body:has(#auth-view) .dispatch-card:hover {
  background: #fbfbf8;
  box-shadow: none;
}
body:has(#auth-view) .status-badge { border-radius: 3px; }
body:has(#auth-view) .api-key-box,
body:has(#auth-view) .notes-box { border: 1px solid var(--web-line); border-radius: 4px; }
body:has(#auth-view) .detail-panel { border-color: #cbd1d3; }
body:has(#auth-view) .detail-header { border-color: var(--web-line); }
body:has(#auth-view) .photo-thumb,
body:has(#auth-view) .signature-img { border-radius: 3px; }
@media (max-width: 640px) {
  body:has(#auth-view) .dashboard-header { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  body:has(#auth-view) .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(#auth-view) .stat-card { padding: 1rem; }
  body:has(#auth-view) .stat-card .value { font-size: 1.65rem; }
  body:has(#auth-view) .nav { gap: 10px; flex-wrap: wrap; }
  body:has(#auth-view) .nav-user { gap: .5rem; }
}

/* Landing page — warm dispatch editorial, isolated from the shared page system. */
body.landing-page {
  --landing-paper: #f4f2ec;
  --landing-paper-deep: #ebe9e1;
  --landing-ink: #191b18;
  --landing-muted: #656760;
  --landing-line: #d8d6ce;
  --landing-yellow: #f5c928;
  --landing-charcoal: #171a18;
  --ink: var(--landing-charcoal);
  --off-white: var(--landing-paper);
  --muted: var(--landing-muted);
  --navy: var(--landing-charcoal);
  --yellow: var(--landing-yellow);
  --yellow-dark: #806711;
  --yellow-glow: rgba(245,201,40,.16);
  --border-light: var(--landing-line);
  background: var(--landing-paper) !important;
  color: var(--landing-ink);
  font-family: "Barlow", sans-serif;
}
body.landing-page :is(h1, h2, h3, h4, h5) {
  font-family: "Barlow Condensed", sans-serif !important;
  color: var(--landing-ink);
}
body.landing-page .navbar {
  height: 64px;
  padding-inline: clamp(20px, 4vw, 58px);
  background: rgba(244,242,236,.96) !important;
  border-bottom: 1px solid rgba(25,27,24,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.landing-page .fixed-corner-logo { display: none !important; }
body.landing-page .navbar.scrolled {
  background: rgba(244,242,236,.97) !important;
  border-bottom-color: var(--landing-line) !important;
}
body.landing-page .navbar-links { gap: clamp(17px, 3vw, 38px); }
body.landing-page .navbar-links a {
  color: #3e403b;
  font-size: 13px;
  font-weight: 600;
}
body.landing-page .navbar-links a:hover { color: var(--landing-ink); }
body.landing-page .navbar-right { gap: 8px; }
body.landing-page .navbar-login-btn {
  padding: 10px 17px;
  background: transparent;
  color: var(--landing-ink);
  border: 1px solid var(--landing-line);
  border-radius: 2px !important;
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  letter-spacing: .02em;
}
body.landing-page .navbar-trial-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--landing-yellow);
  border-radius: 2px;
  background: var(--landing-yellow);
  color: var(--landing-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
body.landing-page .navbar-trial-btn:hover { background: #e8bb19; }
body.landing-page .hero {
  min-height: clamp(720px, 82vh, 900px);
  overflow: hidden;
  background: var(--landing-paper) !important;
  color: var(--landing-ink);
}
body.landing-page .hero-bg {
  background: var(--landing-paper) !important;
}
body.landing-page .hero-bg::before,
body.landing-page .hero-bg::after,
body.landing-page .hero-grain,
body.landing-page .hero-photo,
body.landing-page .hero-scroll { display: none !important; }
body.landing-page .hero-inner {
  max-width: 1920px;
  align-items: center;
  gap: clamp(34px, 3vw, 57px);
  padding: 122px clamp(24px, 1.75vw, 34px) 58px clamp(24px, 3.75vw, 72px);
}
body.landing-page .hero-text {
  flex: 0 0 29.5%;
  max-width: 530px;
}
body.landing-page .hero-eyebrow {
  gap: 8px;
  margin-bottom: 20px;
  color: #696a63;
  font-family: "Barlow", sans-serif;
  font-size: 10px;
  letter-spacing: .04em;
  font-weight: 500;
}
body.landing-page .hero-eyebrow-line {
  width: 5px;
  height: 5px;
  background: var(--landing-yellow);
}
body.landing-page .hero h1 {
  margin-bottom: 18px;
  color: var(--landing-ink);
  font-size: clamp(42px, 4.1vw, 74px) !important;
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.025em !important;
  text-transform: none;
}
body.landing-page .hero h1 .accent {
  display: inline;
  color: var(--landing-ink);
  font-style: normal;
  text-shadow: none !important;
}
body.landing-page .hero-tagline {
  max-width: 410px;
  margin-bottom: 24px;
  color: #62645e !important;
  font-size: 14px;
  line-height: 1.55;
}
body.landing-page .hero-cta-row { gap: 10px; margin-bottom: 16px; }
body.landing-page .btn-primary {
  min-height: 44px;
  padding: 12px 16px;
  gap: 9px;
  border-radius: 2px !important;
  background: var(--landing-yellow);
  color: var(--landing-ink);
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
body.landing-page .btn-primary:hover {
  background: #e8bb19;
  transform: translateY(-1px) !important;
}
body.landing-page .btn-outline {
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--landing-line);
  border-radius: 2px;
  color: #30322e;
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}
body.landing-page .btn-outline:hover {
  border-color: #8c8c83;
  background: rgba(25,27,24,.035);
  color: var(--landing-ink);
}
body.landing-page .hero-store-badges { gap: 7px; margin-top: 10px; }
body.landing-page .hero-store-badge {
  min-height: 34px;
  gap: 7px;
  padding: 5px 9px;
  background: var(--landing-charcoal);
  border: 1px solid var(--landing-charcoal);
  border-radius: 3px;
}
body.landing-page .hero-store-badge:hover {
  background: #343733;
  transform: translateY(-1px);
}
body.landing-page .hero-store-badge svg { width: 16px; height: 16px; }
body.landing-page .hero-store-badge-sub { color: #c5c6c0; font-size: 8px; }
body.landing-page .hero-store-badge-name { font-size: 12px; }
body.landing-page .hero-stats {
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--landing-line);
}
body.landing-page .hero-stat { gap: 2px; }
body.landing-page .hero-stat-val {
  color: var(--landing-ink);
  font-size: 15px;
  letter-spacing: 0;
}
body.landing-page .hero-stat-val em { color: #7b6311; }
body.landing-page .hero-stat-lbl {
  color: #75766f;
  font-size: 9px;
  letter-spacing: .015em;
  text-transform: none;
}
body.landing-page .hero-stat-sep { background: var(--landing-line); }
body.landing-page .hero-product-frame {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 7px solid var(--landing-charcoal) !important;
  border-radius: 5px !important;
  background: var(--landing-charcoal) !important;
  box-shadow: 0 18px 34px rgba(23,26,24,.16) !important;
}
body.landing-page .hero-product-frame picture,
body.landing-page .hero-product-frame img {
  display: block;
  width: 100%;
  height: auto;
}
body.landing-page .ticker-strip {
  padding: 13px 0 !important;
  background: var(--landing-charcoal) !important;
  border-top: 1px solid #333632;
}
body.landing-page .ticker-track { animation: ticker 36s linear infinite !important; }
body.landing-page .ticker-item {
  gap: 10px;
  padding-inline: 23px;
  color: #f0eee6;
  font-family: "Barlow", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: none;
}
body.landing-page .ticker-dot { background: var(--landing-yellow); opacity: 1; width: 4px; height: 4px; }
body.landing-page .proof-bar {
  background: var(--landing-paper-deep) !important;
  border-color: var(--landing-line);
}
body.landing-page .showcase-section {
  max-width: none;
  padding: 96px clamp(20px, 5vw, 72px) 70px;
}
body.landing-page .showcase-eyebrow {
  color: #696a63;
  font-size: 10px;
  letter-spacing: .09em;
}
body.landing-page .showcase-eyebrow .dot {
  background: var(--landing-yellow);
  box-shadow: none;
}
body.landing-page .showcase-section h2 {
  color: var(--landing-ink);
  font-size: clamp(38px, 4.6vw, 58px);
  letter-spacing: -.025em;
  text-transform: none;
}
body.landing-page .showcase-section h2 .accent { color: #77600e; }
body.landing-page .showcase-sub {
  color: var(--landing-muted);
  font-size: 15px;
  line-height: 1.65;
}
body.landing-page .browser-frame {
  border: 7px solid var(--landing-charcoal) !important;
  border-radius: 5px !important;
  box-shadow: 0 18px 36px rgba(23,26,24,.17) !important;
  transform: none;
}
body.landing-page .browser-frame:hover { transform: none; }
body.landing-page .browser-chrome {
  min-height: 34px;
  padding: 7px 12px;
  background: #1d201d;
}
body.landing-page .browser-url {
  background: #292c28;
  border: 0;
  border-radius: 2px;
  color: #d1d0c9;
  font-size: 10px;
}
body.landing-page .browser-screenshot { min-height: 0; background: #f7f6f0; }
body.landing-page .showcase-caption { color: var(--landing-muted); }
body.landing-page .showcase-caption strong { color: var(--landing-ink); }
body.landing-page #hiw-section {
  background: var(--landing-paper-deep) !important;
  color: var(--landing-ink);
}
body.landing-page .eyebrow { color: #806711; }
body.landing-page .eyebrow-line { background: var(--landing-yellow); }
body.landing-page .section-h2 { color: var(--landing-ink); }
body.landing-page .section-sub { color: var(--landing-muted); }
body.landing-page .moment-number { color: #806711; }
body.landing-page .moment-kicker { color: #806711; }
body.landing-page .wave-section,
body.landing-page .diff-section {
  background: var(--landing-charcoal) !important;
}
body.landing-page .wave-section :is(.section-h2, .wave-step-title),
body.landing-page .diff-section :is(.section-h2, .diff-card-title) { color: #f2f0e9; }
body.landing-page .wave-section :is(.wave-step-desc, .diff-card-desc, .diff-card-vs) { color: #b8bbb3; }
body.landing-page .diff-card { border-top-color: #444741; }
body.landing-page .cta-section {
  background: var(--landing-paper) !important;
  color: var(--landing-ink);
}
body.landing-page .cta-section::before { display: none; }
body.landing-page .cta-section h2,
body.landing-page .cta-section p { color: var(--landing-ink); }
body.landing-page .cta-section h2 em { color: #806711; }
body.landing-page .cta-section p { opacity: .76; }
body.landing-page footer {
  background: var(--landing-paper-deep);
  color: var(--landing-ink);
}
body.landing-page .footer-inner { border-top-color: var(--landing-line); }
body.landing-page .footer-links a,
body.landing-page .footer-copy,
body.landing-page .footer-social-label { color: #64665f; }
body.landing-page .footer-links a:hover,
body.landing-page .footer-social-link { color: var(--landing-ink); }

/* The reference transitions from the dark feature ticker into a light content section. */
body.landing-page .section-h2 { text-transform: none; }
body.landing-page .diff-section {
  background: var(--landing-paper) !important;
  color: var(--landing-ink);
}
body.landing-page .diff-section :is(.section-h2, .diff-card-title) {
  color: var(--landing-ink);
}
body.landing-page .diff-card {
  background: #fbfaf6;
  border: 1px solid var(--landing-line);
  border-radius: 3px;
  box-shadow: none;
}
body.landing-page .diff-card-desc { color: #62645e; }
body.landing-page .diff-card-vs {
  background: #f4edcf;
  border-color: #e9dc9f;
  color: #4f4a38;
}
body.landing-page .diff-card-vs strong { color: #725b09; }
body.landing-page .diff-card-num { color: #806711; }
body.landing-page .hero-scroll { display: none !important; }

@media (max-width: 900px) {
  body.landing-page .hero { min-height: 0; }
  body.landing-page .hero-inner {
    align-items: stretch;
    gap: 34px;
    padding-top: 110px;
  }
  body.landing-page .hero-text { flex-basis: auto; max-width: 560px; }
  body.landing-page .hero-product-frame { width: 100%; }
}
@media (max-width: 640px) {
  body.landing-page .navbar { height: 58px; padding-inline: 15px; }
  body.landing-page .navbar-links { gap: 13px; }
  body.landing-page .navbar-links a { font-size: 11px; }
  body.landing-page .navbar-login-btn { padding: 8px 10px; font-size: 10px; }
  body.landing-page .navbar-right { gap: 0; }
  body.landing-page .navbar-trial-btn { display: none; }
  body.landing-page .hero-inner {
    gap: 28px;
    padding: 92px 20px 38px;
  }
  body.landing-page .hero-text { width: 100%; max-width: none; }
  body.landing-page .hero h1 { font-size: clamp(40px, 11vw, 54px) !important; }
  body.landing-page .hero-tagline { max-width: 460px; font-size: 14px; }
  body.landing-page .hero-cta-row { flex-direction: row; align-items: center; }
  body.landing-page .hero-store-badges { gap: 6px; }
  body.landing-page .hero-store-badge { padding-inline: 8px; }
  body.landing-page .hero-stats { justify-content: space-between; gap: 8px; }
  body.landing-page .hero-stat-sep { display: none; }
  body.landing-page .hero-stat-val { font-size: 14px; }
  body.landing-page .hero-stat-lbl { max-width: 92px; font-size: 8px; }
  body.landing-page .hero-product-frame {
    width: 100%;
    max-width: 240px;
    margin-inline: auto;
    border-width: 5px !important;
  }
  body.landing-page .showcase-section { padding: 68px 18px 45px; }
  body.landing-page .browser-frame { border-width: 5px !important; }
  body.landing-page .browser-chrome { padding: 6px 8px; gap: 8px; }
  body.landing-page .browser-dots { gap: 4px; }
  body.landing-page .browser-dot { width: 8px; height: 8px; }
  body.landing-page .browser-url { padding: 5px 6px; font-size: 8px; }
  body.landing-page .ticker-item { padding-inline: 15px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body.landing-page .ticker-track { animation: none !important; }
}

/* Public tracking view — preserve status color states and map sizing/function. */
body:has(#map) {
  background: var(--web-steel-deep);
  color: #f5f6f4;
  font-family: "Barlow", Arial, sans-serif;
}
body:has(#map) #header,
body:has(#map) #info-panel {
  background: #17344d;
  border-color: #345066;
}
body:has(#map) #header-title,
body:has(#map) .info-value { color: #f5f6f4; }
body:has(#map) #header-sub,
body:has(#map) .info-label { color: #c1cbd1; }
body:has(#map) #header svg circle:first-child { fill: rgba(255,200,0,.18); }
body:has(#map) #header svg path { stroke: var(--web-amber); }
body:has(#map) .info-icon {
  background: #102638;
  border: 1px solid #345066;
  border-radius: 3px;
}
body:has(#map) .info-icon svg[stroke="#EF5350"] { stroke: var(--web-amber); }
body:has(#map) #update-badge { border-color: #345066; color: #c1cbd1; }
body:has(#map) #status-pill { border-radius: 3px; }
body:has(#map) #expired-overlay,
body:has(#map) #loading-overlay,
body:has(#map) #error-overlay { background: var(--web-steel-deep); }
body:has(#map) #expired-overlay .icon,
body:has(#map) #error-overlay .icon { border-radius: 4px; }
body:has(#map) #loading-overlay > div {
  border-color: #345066 !important;
  border-top-color: var(--web-amber) !important;
}

@media (max-width: 520px) {
  body:has(#map) #header { padding: 10px 12px; gap: 9px; }
  body:has(#map) #info-panel { padding: 12px; }
  body:has(#map) .info-row { margin-bottom: 9px; }
}

/* Public marketing pages: editorial hierarchy without changing their content or flows.
   These page signatures keep presentation away from signup, legal and portal screens. */
body:has(.proof-bar) .proof-bar {
  padding: 25px clamp(20px, 5vw, 72px) !important;
  background: #efeee9 !important;
}
body:has(.proof-bar) .hero h1 {
  font-size: clamp(40px, 5vw, 60px) !important;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.015em !important;
}
body:has(.proof-bar) .hero h1 .accent { font-style: normal; }
body:has(.proof-bar) .proof-bar-inner {
  max-width: 1120px;
  justify-content: flex-start !important;
  align-items: stretch !important;
}
body:has(.proof-bar) .proof-stat {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  padding: 12px clamp(15px, 2.5vw, 34px) !important;
  text-align: left !important;
}
body:has(.proof-bar) .proof-stat:first-child { padding-left: 0 !important; flex-basis: 29%; }
body:has(.proof-bar) .proof-stat:nth-child(3) { flex-basis: 25%; }
body:has(.proof-bar) .proof-stat:nth-child(5) { flex-basis: 25%; }
body:has(.proof-bar) .proof-stat:last-child { flex-basis: 21%; }
body:has(.proof-bar) .proof-stat-val { font-size: clamp(32px, 3.2vw, 42px) !important; }
body:has(.proof-bar) .proof-stat-lbl { max-width: 190px; line-height: 1.35; }
body:has(.proof-bar) .proof-sep { height: auto; min-height: 42px; }

/* The four connected-work examples read as a sequence, not a repeated tile set. */
body:has(.proof-bar) .diff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  gap: 0 34px !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
body:has(.proof-bar) .diff-card {
  min-height: 280px;
  padding: 32px 0 30px !important;
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,.22);
}
body:has(.proof-bar) .diff-card:nth-child(1),
body:has(.proof-bar) .diff-card:nth-child(4) { padding-right: 22px !important; }
body:has(.proof-bar) .diff-card:nth-child(2),
body:has(.proof-bar) .diff-card:nth-child(3) { padding-left: 22px !important; }
body:has(.proof-bar) .diff-card::before { display: none; }
body:has(.proof-bar) .diff-card-num { opacity: 1; color: var(--web-amber); }
body:has(.proof-bar) .diff-card-title { max-width: 440px; font-size: clamp(26px, 2.8vw, 34px); }
body:has(.proof-bar) .diff-card-vs {
  align-self: flex-start;
  max-width: 410px;
  margin-top: auto;
  padding: 10px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,200,0,.45) !important;
  border-radius: 0 !important;
}
body:has(.proof-bar) .diff-card:hover { background: rgba(255,255,255,.025) !important; }

/* Operational moments use a quiet timeline: open rows and one clear reading rail. */
body:has(.proof-bar) .features-section { max-width: 1180px; }
body:has(.proof-bar) .moment-rail { gap: 0 !important; }
body:has(.proof-bar) .moment {
  grid-template-columns: 58px minmax(0, 1fr) 168px;
  gap: clamp(14px, 2.5vw, 30px);
  padding: 25px 12px 25px 0;
}
body:has(.proof-bar) .moment:nth-child(even) { background: rgba(23,52,77,.025); }
body:has(.proof-bar) .moment:hover { transform: translateX(4px); }
body:has(.proof-bar) .moment-number {
  width: 48px; height: 48px; border-radius: 2px !important;
  background: var(--web-paper) !important;
  font-size: 21px;
}
body:has(.proof-bar) .moment-title { font-size: clamp(24px, 2.5vw, 31px); }

/* A practical process, arranged as a ruled list rather than three equal feature cards. */
body:has(.proof-bar) .hiw-inner {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 76px);
}
body:has(.proof-bar) .hiw-header { text-align: left; margin: 0; }
body:has(.proof-bar) .hiw-steps {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
body:has(.proof-bar) .hiw-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 18px;
  padding: 22px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--web-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}
body:has(.proof-bar) .hiw-num {
  grid-row: 1 / span 2;
  color: var(--web-amber-deep) !important;
  font-size: 31px;
  margin-bottom: 0;
}
body:has(.proof-bar) .hiw-icon { display: none; }

@media (max-width: 700px) {
  body:has(.proof-bar) .hiw-inner { grid-template-columns: 1fr; gap: 24px; }
  body:has(.proof-bar) .fixed-corner-logo { top: -25px !important; right: 12px !important; }
  body:has(.proof-bar) .fixed-corner-logo img { height: 144px !important; }
  body:has(.proof-bar) .proof-bar { padding: 18px 20px !important; }
  body:has(.proof-bar) .proof-bar-inner { justify-content: flex-start !important; }
  body:has(.proof-bar) .proof-stat,
  body:has(.proof-bar) .proof-stat:first-child,
  body:has(.proof-bar) .proof-stat:nth-child(3),
  body:has(.proof-bar) .proof-stat:nth-child(5),
  body:has(.proof-bar) .proof-stat:last-child {
    flex: 1 1 calc(50% - 1px) !important;
    padding: 10px 12px !important;
  }
  body:has(.proof-bar) .proof-stat:first-child { padding-left: 12px !important; }
  body:has(.proof-bar) .proof-stat-val { font-size: 31px !important; }
  body:has(.proof-bar) .proof-sep { display: none; }
  body:has(.proof-bar) .diff-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  body:has(.proof-bar) .diff-card,
  body:has(.proof-bar) .diff-card:nth-child(n) {
    min-height: 0;
    padding: 24px 0 !important;
  }
  body:has(.proof-bar) .moment { grid-template-columns: 48px minmax(0,1fr); }
}
@media (max-width: 480px) {
  body:has(.proof-bar) .proof-stat,
  body:has(.proof-bar) .proof-stat:first-child,
  body:has(.proof-bar) .proof-stat:nth-child(3),
  body:has(.proof-bar) .proof-stat:nth-child(5),
  body:has(.proof-bar) .proof-stat:last-child { flex-basis: 100% !important; }
}

/* /web is the provider/insurer story; keep its distinctive sections but replace
   uniform cards with an ordered, scannable editorial structure. */
body:has(.mobile-section) .pain-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0 34px !important;
  max-width: 1000px !important;
}
body:has(.mobile-section) .pain-card {
  padding: 21px 8px 21px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #52616b !important;
  border-radius: 0 !important;
  align-items: flex-start;
}
body:has(.mobile-section) .pain-card:nth-child(1) { grid-column: 1 / -1; max-width: 690px; }
body:has(.mobile-section) .pain-icon {
  width: 27px; height: 27px; margin-top: 2px;
  background: transparent !important; border-radius: 0 !important;
}
body:has(.mobile-section) .pain-icon svg { width: 17px; height: 17px; }
body:has(.mobile-section) .pain-card h4 { font-size: 16px; }
body:has(.mobile-section) .pain-arrow { margin-top: 26px; }

body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 0 32px !important;
  max-width: 1040px !important;
  align-items: stretch;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card {
  grid-column: span 6;
  padding: 25px 8px 24px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #435461 !important;
  border-radius: 0 !important;
  text-align: left;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(1),
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(4) {
  grid-column: span 7;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(2),
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(5) {
  grid-column: span 5;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(3) {
  grid-column: span 5;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(6) {
  grid-column: span 7;
}
body:has(.mobile-section) #features .features-grid:has(> .feature-card:nth-child(2)):not(:has(> .feature-card:nth-child(3))) {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) !important;
  gap: 0 36px !important;
  max-width: 1040px !important;
}
body:has(.mobile-section) #features .features-grid:has(> .feature-card:nth-child(2)):not(:has(> .feature-card:nth-child(3))) .feature-card {
  padding: 28px 8px 26px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #52616b !important;
  border-radius: 0 !important;
}
body:has(.mobile-section) #features .features-grid:has(> .feature-card:nth-child(2)):not(:has(> .feature-card:nth-child(3))) .feature-card:first-child {
  grid-column: 1;
}
body:has(.mobile-section) #features .features-grid:has(> .feature-card:nth-child(2)):not(:has(> .feature-card:nth-child(3))) .feature-card:nth-child(2) {
  grid-column: 2;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-icon {
  width: auto; height: auto; justify-content: flex-start;
  margin-bottom: 14px; background: transparent !important;
}
body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-icon svg {
  width: 21px; height: 21px; stroke: var(--web-amber);
}
body:has(.mobile-section) .steps {
  display: block !important;
  max-width: 900px !important;
  border-top: 1px solid #51616d;
}
body:has(.mobile-section) .step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 20px;
  max-width: none !important;
  min-width: 0 !important;
  padding: 24px 0 !important;
  border-bottom: 1px solid #51616d;
  text-align: left !important;
}
body:has(.mobile-section) .step-number {
  grid-row: span 2;
  width: 42px; height: 42px;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid var(--web-amber) !important;
  color: var(--web-amber-deep) !important;
}
body:has(.mobile-section) .step h3 { margin: 1px 0 6px; }
body:has(.mobile-section) .step p { max-width: 610px; }
body:has(.mobile-section) #pricing .section-header { text-align: left; }
body:has(.mobile-section) #pricing .section-desc { margin-left: 0; }
body:has(.mobile-section) #pricing .pricing-card {
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(260px, 1.2fr);
  column-gap: 42px;
  align-items: start;
  text-align: left;
}
body:has(.mobile-section) #pricing .pricing-card::before { display: none; }
body:has(.mobile-section) #pricing .pricing-badge,
body:has(.mobile-section) #pricing .pricing-amount,
body:has(.mobile-section) #pricing .pricing-desc { grid-column: 1; }
body:has(.mobile-section) #pricing .pricing-features { grid-column: 2; grid-row: 1 / span 4; }
body:has(.mobile-section) #pricing .pricing-card .btn-primary { grid-column: 1; justify-self: start; }

@media (max-width: 768px) {
  body:has(.mobile-section) .pain-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  body:has(.mobile-section) .pain-card:nth-child(1) { grid-column: auto; max-width: none; }
  body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card,
  body:has(.mobile-section) .features-grid:has(> .feature-card:nth-child(6)) .feature-card:nth-child(n) {
    grid-column: 1 !important;
    padding: 22px 0 !important;
  }
  body:has(.mobile-section) #features .features-grid:has(> .feature-card:nth-child(2)):not(:has(> .feature-card:nth-child(3))) {
    grid-template-columns: 1fr !important;
  }
  body:has(.mobile-section) #features .features-grid:has(> .feature-card:nth-child(2)):not(:has(> .feature-card:nth-child(3))) .feature-card:nth-child(n) {
    grid-column: 1 !important;
  }
  body:has(.mobile-section) #pricing .pricing-card {
    grid-template-columns: 1fr;
    padding: 30px 22px !important;
  }
  body:has(.mobile-section) #pricing .pricing-badge,
  body:has(.mobile-section) #pricing .pricing-amount,
  body:has(.mobile-section) #pricing .pricing-desc,
  body:has(.mobile-section) #pricing .pricing-features,
  body:has(.mobile-section) #pricing .pricing-card .btn-primary {
    grid-column: 1; grid-row: auto;
  }
}