/**
 * BlinkBill Support Center — Marketing Design System Stylesheet
 * Strict CSP Compliant: Zero external CDN runtime scripts, self-contained.
 * Marketing tokens: Inter, #FDFDFF bg, Slate-900 text, 40px radius cards,
 * pill gradient buttons, inline SVGs, zero emojis, >=44px touch targets.
 */

/* ── 0. Universal Hidden Reset (B-P1 Fix) ─────────────────────────────── */
[hidden] {
  display: none !important;
}

/* ── 1. Marketing Design Tokens ───────────────────────────────────────── */
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --color-bg: #FDFDFF;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F8FAFC;
  --color-surface-hover: #F1F5F9;
  --color-text-main: #0F172A;
  --color-text-body: #475569;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;
  --color-border: #F1F5F9;
  --color-border-subtle: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-primary: #2563EB;
  --color-primary-cyan: #06B6D4;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-primary-border: #DBEAFE;
  --color-warning-bg: #FFFBEB;
  --color-warning-border: #FCD34D;
  --color-warning-text: #92400E;
  --color-success-bg: #F0FDF4;
  --color-success-border: #86EFAC;
  --color-success-text: #166534;
  --radius-card: 2.5rem; /* 40px */
  --radius-pill: 9999px;
  --radius-chip: 1.25rem;
  --shadow-card: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 25px 35px -5px rgba(15, 23, 42, 0.08), 0 10px 15px -6px rgba(15, 23, 42, 0.06);
  --shadow-pill: 0 20px 50px rgba(59, 130, 246, 0.3);
  --shadow-pill-hover: 0 25px 60px rgba(6, 182, 212, 0.5);
  --shadow-dropdown: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ── 2. Floating Glass Header Architecture (B-P2) ───────────────────────── */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 80rem;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.scrolled-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) contrast(115%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(115%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05) !important;
  border-radius: 24px !important;
  margin-top: 12px !important;
  width: calc(100% - 24px) !important;
  left: 12px !important;
}

@media (min-width: 768px) {
  .scrolled-header {
    margin-top: 16px !important;
    width: calc(100% - 32px) !important;
    left: 16px !important;
  }
}

.header-shine-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 24px;
}

@keyframes shine {
  0% { transform: translateX(-100%) skewX(-30deg); opacity: 0; }
  40% { opacity: 0.08; }
  60% { opacity: 0.08; }
  100% { transform: translateX(200%) skewX(-30deg); opacity: 0; }
}

.header-shine {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  animation: shine 6s linear infinite;
  transition: opacity 0.3s ease;
}

.nav-wrapper {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .nav-wrapper { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .nav-wrapper { padding: 0 2rem; }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.75rem;
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .nav-container { height: 5.75rem; }
}

.nav-container.h-16 {
  height: 4rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text-main);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand-logo-box {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #020617;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #1E293B;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.brand-link:hover .brand-logo-box {
  transform: scale(1.08);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-body);
}

@media (min-width: 1024px) {
  .desktop-nav-links {
    display: flex;
  }
}

.nav-item {
  color: var(--color-text-body);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--color-primary);
}

.nav-item-active {
  color: var(--color-primary) !important;
}

.nav-action-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-action-group { gap: 1rem; }
}

.btn-start-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 9999px;
  box-shadow: var(--shadow-pill);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
}

@media (min-width: 640px) {
  .btn-start-trial {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  .btn-start-trial {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }
}

.btn-start-trial:hover {
  box-shadow: var(--shadow-pill-hover);
  transform: translateY(-1px);
}

.btn-start-trial:active {
  transform: scale(0.96);
}

/* Mobile Menu Hamburger Button (B-P2) */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  background-color: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  z-index: 50;
  transition: background-color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: #0F172A;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: 0fr;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  max-width: 100vw;
}

@media (min-width: 1024px) {
  .mobile-menu-drawer {
    display: none !important;
  }
}

.mobile-menu-drawer.active {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-card {
  min-height: 0;
  margin: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 2rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-weight: 900;
  font-size: 0.875rem;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1.75rem 1.75rem;
}

.mobile-nav-link {
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover,
.mobile-nav-active {
  color: var(--color-primary);
}

/* ── 3. Hero Section ─────────────────────────────────────────────────── */
.support-hero {
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
  background: #FFFFFF;
  position: relative;
  z-index: 30;
  overflow: visible;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .support-hero {
    padding-top: 9.5rem;
    padding-bottom: 4.5rem;
  }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 30;
}

@media (min-width: 640px) {
  .hero-container { padding: 0 1.5rem; }
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 1rem;
  background-color: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #2563EB;
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.badge-text {
  color: #2563EB;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-title {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.75rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-title .accent-italic {
  color: #2563EB;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.6vw + 0.2rem, 1.1875rem);
  color: #64748B;
  font-weight: 500;
  max-width: 42rem;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* ── 4. Reactive Search System ────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  z-index: 40;
  max-width: 44rem;
  margin: 0 auto 2rem auto;
  width: 100%;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.25rem 0.5rem 0.25rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  min-height: 52px;
}

@media (min-width: 768px) {
  .search-input-box {
    min-height: 60px;
    padding: 0.375rem 0.75rem 0.375rem 1.75rem;
  }
}

.search-input-box:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 20px 30px -10px rgba(37, 99, 235, 0.15);
}

.search-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #94A3B8;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.search-input-box:focus-within .search-icon-svg {
  color: #2563EB;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0F172A;
  padding: 0.5rem 0;
  min-height: 44px;
}

@media (min-width: 768px) {
  .search-input { font-size: 1.0625rem; }
}

.search-input::placeholder {
  color: #94A3B8;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 36px;
  min-height: 36px;
  border-radius: 9999px;
  background-color: #F1F5F9;
  color: #64748B;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

/* Live Search Dropdown */
.search-results-container {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  max-height: 28rem;
  overflow-y: auto;
  z-index: 100;
  text-align: left;
  padding: 0.75rem;
}

.search-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.5rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.8125rem;
}

.search-feedback-count {
  font-weight: 700;
  color: #2563EB;
}

.search-back-library-btn {
  font-weight: 600;
  color: #64748B;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.search-back-library-btn:hover {
  color: #0F172A;
  background-color: #F1F5F9;
}

.search-results-list {
  list-style: none;
  padding: 0.25rem 0;
}

.search-result-item {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #F8FAFC;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus {
  background-color: #F8FAFC;
  transform: translateX(4px);
}

.result-badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background-color: #EFF6FF;
  color: #2563EB;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.result-badge.badge-troubleshooter {
  background-color: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}

.result-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.result-summary {
  font-size: 0.8125rem;
  color: #64748B;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-highlight {
  background-color: #FEF08A;
  color: #854D0E;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 2px;
}

/* Zero Results Card */
.zero-results-card {
  width: 100%;
  max-width: 44rem;
  margin: 1.5rem auto 0 auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
}

.zero-results-card[hidden] {
  display: none !important;
}

.zero-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background-color: #EFF6FF;
  color: #2563EB;
  border-radius: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.2);
}

.zero-icon-wrapper svg {
  width: 2rem;
  height: 2rem;
}

.zero-results-header {
  margin-bottom: 1rem;
}

.zero-results-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.zero-results-subtext {
  font-size: 0.875rem;
  color: #64748B;
  max-width: 28rem;
  margin: 0 auto 1.5rem auto;
  line-height: 1.55;
}

.suggestions-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}

.suggestions-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.suggestion-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
  min-height: 44px;
}

.suggestion-pill:hover {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
  transform: translateY(-2px);
}

.zero-results-actions {
  margin-bottom: 2rem;
}

.browse-all-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background-color: #0F172A;
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  transition: all 0.2s ease;
  min-height: 44px;
}

.browse-all-btn:hover {
  background-color: #1E293B;
  transform: translateY(-1px);
}

.zero-contact-card {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.zero-contact-title {
  font-size: 1rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 0.375rem;
}

.zero-contact-desc {
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 1.25rem;
}

.zero-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── 5. Symptom Shortcut Chips ────────────────────────────────────────── */
.shortcuts-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.shortcuts-label {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
}

.shortcuts-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  min-height: 44px;
}

.shortcut-pill:hover {
  border-color: #2563EB;
  color: #2563EB;
  background-color: #EFF6FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.15);
}

.shortcut-icon-svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #2563EB;
}

/* ── 6. Main Content Layout ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .main-content { padding: 3rem 1.5rem 6rem 1.5rem; }
}

@media (min-width: 1024px) {
  .main-content { padding: 4rem 2rem 7rem 2rem; }
}

/* ── 7. Fallback Alert Banner (B-P1 Fix) ───────────────────────────────── */
.fallback-alert-banner {
  background-color: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  color: #92400E;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fallback-alert-banner[hidden] {
  display: none !important;
}

.fallback-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fallback-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #D97706;
  flex-shrink: 0;
}

/* ── 8. Interactive Troubleshooting Choosers ─────────────────────────── */
.guided-showcase {
  margin-bottom: 4rem;
}

.showcase-header {
  text-align: center;
  margin-bottom: 2rem;
}

.showcase-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.showcase-subtitle {
  font-size: 1rem;
  color: #64748B;
  font-weight: 500;
  max-width: 36rem;
  margin: 0 auto;
}

.guided-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .guided-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.guided-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .guided-card { padding: 2.5rem; }
}

.guided-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #DBEAFE;
}

.guided-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.guided-icon-chip {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #2563EB;
  color: #FFFFFF;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.35);
}

.guided-icon-chip svg {
  width: 1.75rem;
  height: 1.75rem;
}

.guided-card-info h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.guided-card-info p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.55;
}

.guided-card-action {
  display: flex;
  justify-content: flex-start;
}

.start-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 900;
  border-radius: 9999px;
  box-shadow: var(--shadow-pill);
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

.start-guide-btn:hover {
  box-shadow: var(--shadow-pill-hover);
  transform: translateY(-1px);
}

.start-guide-btn:active {
  transform: scale(0.96);
}

/* ── 9. Structured Topic Library ──────────────────────────────────────── */
.library-categories-section {
  margin-bottom: 4rem;
}

.library-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .library-section-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }
}

.library-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.025em;
}

.library-count-badge {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #DBEAFE;
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}

.category-icon-box {
  width: 3rem;
  height: 3rem;
  background-color: #EFF6FF;
  color: #2563EB;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

.category-card-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.3;
}

.category-card-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.article-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
}

.article-link-item:hover {
  background-color: #F8FAFC;
  color: #2563EB;
  transform: translateX(3px);
}

.article-link-arrow {
  color: #CBD5E1;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.article-link-arrow svg {
  width: 1rem;
  height: 1rem;
}

.article-link-item:hover .article-link-arrow {
  color: #2563EB;
  transform: translateX(3px);
}

/* ── 10. Article Reader View ──────────────────────────────────────────── */
.article-reader-container {
  max-width: 52rem;
  margin: 0 auto 5rem auto;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 6.5rem;
}

@media (min-width: 768px) {
  .article-reader-container { padding: 3.5rem 3rem; }
}

.reader-navigation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #F1F5F9;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
  min-height: 44px;
  cursor: pointer;
}

.back-btn svg {
  width: 1rem;
  height: 1rem;
}

.back-btn:hover {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
}

.reader-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background-color: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #2563EB;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reader-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.reader-summary {
  font-size: 1.125rem;
  color: #64748B;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ui-path-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #334155;
}

.ui-path-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563EB;
  flex-shrink: 0;
}

.safety-warning-box {
  background-color: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.safety-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 0.9375rem;
  color: #92400E;
  margin-bottom: 0.75rem;
}

.safety-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #D97706;
  flex-shrink: 0;
}

.safety-list {
  padding-left: 1.25rem;
  color: #78350F;
  font-size: 0.875rem;
  line-height: 1.6;
}

.safety-list li { margin-bottom: 0.375rem; }

.steps-section {
  margin-bottom: 2.5rem;
}

.steps-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.6;
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
}

.expected-outcome-box {
  background-color: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.outcome-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.9375rem;
  color: #166534;
  margin-bottom: 0.5rem;
}

.outcome-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #16A34A;
  flex-shrink: 0;
}

.outcome-text {
  font-size: 0.875rem;
  color: #14532D;
  line-height: 1.55;
}

.article-tree-cta {
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .article-tree-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tree-cta-info h4 {
  font-size: 1.125rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.tree-cta-info p {
  font-size: 0.875rem;
  color: #475569;
}

.related-section {
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #F1F5F9;
}

.related-heading {
  font-size: 1.125rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 1rem;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
  min-height: 44px;
}

.related-pill:hover {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
}

.reader-escalation-banner {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .reader-escalation-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.escalation-text h4 {
  font-size: 1.125rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.escalation-text p {
  font-size: 0.875rem;
  color: #64748B;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.2s ease;
}

.contact-action-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.contact-whatsapp-btn {
  background-color: #15803D;
  color: #FFFFFF;
}

.contact-whatsapp-btn:hover {
  background-color: #166534;
  box-shadow: 0 10px 20px -5px rgba(22, 101, 52, 0.4);
}

.contact-email-btn {
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
}

.contact-email-btn:hover {
  border-color: #0F172A;
  color: #0F172A;
}

/* ── 11. Interactive Troubleshooter Diagnostic View ───────────────────── */
.troubleshooter-container {
  max-width: 52rem;
  margin: 0 auto 5rem auto;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 6.5rem;
}

@media (min-width: 768px) {
  .troubleshooter-container { padding: 3.5rem 3rem; }
}

.troubleshooter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #F1F5F9;
}

.troubleshooter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background-color: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #2563EB;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.troubleshooter-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.troubleshooter-safety-notice {
  background-color: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  color: #92400E;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tree-question-card {
  margin-bottom: 2rem;
}

.tree-question-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 1rem;
}

.branch-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.branch-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1E293B;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.branch-choice-btn:hover {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
  transform: translateX(4px);
}

.branch-choice-btn.selected {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.branch-resolution-card {
  background: #FFFFFF;
  border: 2px solid #DBEAFE;
  border-radius: 1.5rem;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

.resolution-expected-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 1.25rem;
}

.resolution-expected-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #2563EB;
  flex-shrink: 0;
}

.resolution-guidance-box {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

.resolution-guidance-box a {
  color: #2563EB;
  font-weight: 700;
  text-decoration: underline;
}

.resolution-safety-pill {
  background-color: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #92400E;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.resolution-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}

/* ── 12. Shared Marketing Footer Architecture ─────────────────────────── */
.support-footer {
  background-color: #FDFDFF;
  border-top: 1px solid #F1F5F9;
  padding: 4.5rem 1rem 3rem 1rem;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

@media (min-width: 768px) {
  .support-footer { padding: 6rem 1.5rem 3.5rem 1.5rem; }
}

.footer-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.03), transparent 50%);
  pointer-events: none;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 2fr 2fr 3fr;
    gap: 3rem;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-logo-box {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #020617;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #1E293B;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.footer-logo-link:hover .footer-logo-box {
  transform: scale(1.08);
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.025em;
}

.footer-desc {
  font-size: 1rem;
  font-weight: 500;
  color: #64748B;
  line-height: 1.6;
  max-width: 24rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #64748B;
}

.footer-nav-list a {
  color: #64748B;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: #2563EB;
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #94A3B8;
  text-transform: uppercase;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.75rem;
}

.footer-bottom-links a {
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #0F172A;
}
