/* Shared landing components. Historical hp/tg class names remain a compatibility contract.
   Page composition chooses an explicit surface; component rules do not depend on section position. */
/* ═══════════════════════════════════════════════════════════
   HOME.CSS — v4 Production
   Navy Slate Palette: #1e293b, #0E2A47, #355380, Accent: #cc3f5c
   Custom namespace classes prefixed with hp-
   ═══════════════════════════════════════════════════════════ */

/* ─── Global & Base Layout Centering ─── */
body.hp-body {
  background: var(--surface);
  min-height: 100vh;
}

/* Base grid layout container to align blocks on desktop */
.hp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Subtle scroll entrance reveal animations */
.hp-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-animate {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .hp-reveal.hp-motion-pending:not(.visible),
  .hp-animate.hp-motion-pending:not(.visible) {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hp-animate-delay-1 { transition-delay: 0.1s; }
.hp-animate-delay-2 { transition-delay: 0.2s; }
.hp-animate-delay-3 { transition-delay: 0.3s; }

/* ─── HERO SECTION (Block 02) ─── */
.hp-hero {
  scroll-margin-top: 120px;
  padding: 64px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hp-hero-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

/* Left column text content */
.hp-hero-kicker {
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  line-height: var(--reading-caption-leading);
}

.hp-hero-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-accent);
}

.hp-hero-live-badges {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hp-hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: var(--reading-meta-size);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(14, 42, 71, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  line-height: var(--reading-caption-leading);
}

.hp-hero-live-badge.badge-online {
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--online-label);
}

.hp-hero-live-badge.badge-online strong {
  color: var(--online-value);
  font-weight: 700;
}

.hp-hero-live-badge.badge-online .hp-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--status-success);
  border-radius: 50%;
  display: inline-block;
  animation: hp-pulse-glow 2s infinite;
  margin-top: 1px;
}

.hp-hero-live-badge.badge-time {
  border: 1px solid rgba(239, 68, 68, 0.16);
  color: var(--status-error-text);
}

.hp-hero-live-badge.badge-time strong {
  color: var(--response-time-value);
  font-weight: 700;
}

.hp-hero-live-badge.badge-time .hp-time-icon {
  color: var(--status-error);
  flex-shrink: 0;
}

.hp-hero-live-badge.badge-time .hp-time-icon.pulsing {
  animation: hp-clock-pulse 1.8s infinite ease-in-out;
}

@keyframes hp-clock-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.35)); }
  100% { transform: scale(1); opacity: 0.9; }
}

.hp-hero-live-text {
  line-height: 1.2;
}

.hp-hero-text h1 {
  font-family: var(--font-heading);
  font-size: var(--reading-h1-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  line-height: var(--reading-h1-leading);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}

.hp-hero-subtitle {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin-bottom: 24px;
}

.hp-hero-boundary {
  background: rgba(16, 185, 129, 0.03);
  border-left: 3px solid var(--status-success);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.hp-hero-boundary-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: var(--reading-heading-weight);
  color: var(--status-online-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  line-height: var(--reading-caption-leading);
}

.hp-hero-boundary-icon {
  color: var(--status-success);
  flex-shrink: 0;
}

.hp-hero-boundary p {
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
  margin: 0;
}

.hp-hero-boundary-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px dashed var(--accent);
  padding-bottom: 1px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hp-hero-boundary-link:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

/* Inter-block Q&A navigation links */
.hp-card-link-wrapper {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--reading-caption-size);

  line-height: var(--reading-caption-leading);
}

.hp-card-link-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.hp-card-inner-link,
.hp-prep-inner-link {
  color: var(--accent);
  text-decoration: none !important;
  border-bottom: 1.5px dashed var(--accent);
  padding-bottom: 1px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hp-card-inner-link:hover,
.hp-prep-inner-link:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
  text-decoration: none !important;
}

/* Right column card actions */
.hp-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  box-shadow: 0 4px 15px rgba(14, 42, 71, 0.03);
  transition: box-shadow 0.2s ease;
}

.hp-card:hover {
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.06);
}

.hp-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  color: var(--accent);
  background: var(--surface-accent);
  padding: 4px 10px;
  border-radius: var(--control-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;

  line-height: var(--reading-caption-leading);
}

.hp-card-label svg {
  width: 12px;
  height: 12px;
}

.hp-card h3 {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0 0 6px;

  line-height: var(--reading-h3-leading);
}

.hp-card-desc {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin-bottom: 20px;
}

/* Input elements styling */
.hp-card-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-card-form select:focus,
.hp-card-form textarea:focus,
.hp-card-form textarea.hp-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 83, 128, 0.12);
}

/* Phone Block Card */
.hp-card-phone {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-card-phone-number {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hp-card-phone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  flex-shrink: 0;
  animation: hp-pulse-ring 2.5s infinite ease-in-out;
}

.hp-card-phone-icon svg {
  width: 20px;
  height: 20px;
}

@keyframes hp-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(204, 63, 92, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(204, 63, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 63, 92, 0); }
}

.hp-card-phone-num {
  font-family: var(--font-heading);
  font-size: var(--phone-display-size);
  font-weight: 700;
  color: var(--heading-text);
  text-decoration: none;
  letter-spacing: 0.01em;

  line-height: var(--reading-caption-leading);
}

.hp-card-phone-num:hover {
  color: var(--brand-accent);
  text-decoration: none;
}

.hp-card-phone-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--reading-meta-size);
  color: var(--muted);

  line-height: var(--reading-caption-leading);
}

.hp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  display: inline-block;
  flex-shrink: 0;
}

.hp-card-phone-actions {
  display: flex;
  gap: 12px;
}

.hp-card-callback {
  font-size: var(--reading-caption-size);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;

  line-height: var(--reading-caption-leading);
}

.hp-card-callback:hover {
  color: var(--brand-accent);
}

/* Legal disclosure toggle block */
.hp-hero-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hp-hero-legal-toggle {
  font-size: var(--reading-caption-size);
  color: var(--text-soft);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  line-height: var(--reading-caption-leading);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(148, 163, 184, 0.25);
  width: 100%;
}

.hp-hero-legal-toggle:hover {
  color: var(--muted);
}

.hp-hero-legal-body {
  display: none;
  margin-top: 14px;
  font-size: var(--reading-caption-size);
  color: var(--muted);
  line-height: var(--reading-caption-leading);
}

.hp-hero-legal-body.open {
  display: block;
}

.hp-hero-legal-body a {
  color: var(--accent);
}

/* ─── TRUST STRIP (Block 03) ─── */
/* ─── SECTIONS LAYOUT (Blocks 04 to 13) ─── */
.hp-section {
  scroll-margin-top: 120px;
  padding: 80px 0;
}

.hp-section--subtle { background: var(--surface-subtle); }
.hp-section--surface { background: var(--surface); }

.hp-section h2 {
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0 0 10px;
  text-align: center;
  border: none;
  padding: 0;

  line-height: var(--reading-h2-leading);
}

.hp-categories-section .hp-section-subtitle {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 600px;
}

/* ─── HOW IT WORKS TIMELINE (Block 04) ─── */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 36px;
}

/* Horizontal connector line on desktop */
.hp-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.hp-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hp-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--accent);
  transition: background-color 0.25s, color 0.25s;

  line-height: var(--reading-caption-leading);
}

.hp-step:hover .hp-step-num {
  background: var(--accent);
  color: var(--surface);
}

.hp-step-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin-bottom: 8px;
  line-height: var(--reading-h3-leading);
}

.hp-step-desc {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
}

/* ─── FREE / PAID BOUNDARY GRID (Block 05) ─── */
.hp-boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.hp-boundary-card {
  border-radius: var(--component-radius);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(14,42,71,0.01);
}

.hp-boundary-card h3 {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;

  line-height: var(--reading-h3-leading);
}

.hp-boundary-card h3 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hp-boundary-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-boundary-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: var(--reading-caption-size);
  line-height: var(--reading-caption-leading);
}

.hp-boundary-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hp-boundary-card--free {
  background: var(--online-surface-soft);
  border: 1.5px solid var(--online-border-soft);
  color: var(--chat-online-dark);
}

.hp-boundary-card--free h3 {
  color: var(--status-success-text);
}

.hp-boundary-card--free h3 svg {
  color: var(--status-online);
}

.hp-boundary-card--free li::before {
  background: var(--status-online);
}

.hp-boundary-card--paid {
  background: var(--surface-subtle);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.hp-boundary-card--paid h3 {
  color: var(--heading-text);
}

.hp-boundary-card--paid h3 svg {
  color: var(--muted);
}

.hp-boundary-card--paid li::before {
  background: var(--border-strong);
}

.hp-boundary-note {
  margin-top: 24px;
  font-size: var(--reading-size);
  color: var(--muted);
  font-style: italic;
  text-align: center;

  line-height: var(--reading-leading);
}

/* ─── CATEGORIES (Block 06) ─── */
.hp-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.hp-cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  text-decoration: none;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(14,42,71,0.02);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  height: 100%;
}

.hp-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.08);
  text-decoration: none;
}

.hp-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--component-radius);
  background: var(--surface-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background-color 0.25s, color 0.25s;
}

.hp-cat-card:hover .hp-cat-icon {
  background: var(--accent);
  color: var(--surface);
}

.hp-cat-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hp-cat-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  line-height: var(--reading-h3-leading);
}

.hp-cat-examples {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  flex-grow: 1;
}

.hp-cat-cta {
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--brand-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: transform 0.25s ease, opacity 0.25s ease;

  line-height: var(--reading-caption-leading);
}

.hp-cat-card:hover .hp-cat-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LAWYERS (Block 07) ─── */
.hp-section-more {
  margin-top: 40px;
  text-align: center;
}

/* ─── LAST CONSULTATIONS (Block 08) ─── */
.hp-prep-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-top: 36px;
  align-items: stretch;
}

/* Steps Timeline */
.hp-prep-checklist {
  display: flex;
  flex-direction: column;
}

.hp-prep-step-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: opacity 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

.hp-prep-step-item:first-child {
  padding-top: 0;
}

.hp-prep-step-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hp-prep-step-num {
  font-family: var(--font-body);
  font-size: var(--marker-display-size);
  font-weight: 700;
  color: rgba(53, 83, 128, 0.15);
  line-height: var(--reading-caption-leading);
  min-width: 48px;
  margin-top: -2px;
  transition: color 0.25s ease;
}

.hp-prep-step-item:hover .hp-prep-step-num,
.hp-prep-step-item.active .hp-prep-step-num {
  color: var(--brand-accent);
}

.hp-prep-step-content {
  flex-grow: 1;
}

.hp-prep-step-content h3 {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  line-height: var(--reading-h3-leading);
}

.hp-prep-step-label {
  cursor: pointer;
  user-select: none;
}

.hp-prep-step-content p {
  margin: 0;
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--muted);
}

/* Right Column: Premium Light Security Card */
.hp-prep-warning {
  background: rgba(53, 83, 128, 0.03);
  border: 1px solid rgba(53, 83, 128, 0.08);
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.02);
  border-radius: var(--component-radius);
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hp-prep-warning-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.hp-prep-warning-icon-wrapper {
  position: relative;
  background: rgba(204, 63, 92, 0.1);
  border: 1.5px solid rgba(204, 63, 92, 0.25);
  border-radius: var(--component-radius);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  flex-shrink: 0;
  animation: hp-shield-heartbeat 2s infinite ease-in-out;
  transform-origin: center;
}

/* Light wave ripple effect */
.hp-prep-warning-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(204, 63, 92, 0.35);
  border-radius: var(--component-radius);
  z-index: -1;
  pointer-events: none;
  animation: hp-shield-ripple 2s infinite ease-out;
}

/* Heartbeat double pulse */
@keyframes hp-shield-heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1.05);
  }
  42% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1);
  }
}

/* Light wave expanding and fading */
@keyframes hp-shield-ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  14% {
    transform: scale(1.15);
    opacity: 0.8;
  }
  42% {
    transform: scale(1.2);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hp-prep-warning-kicker {
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-accent);
  display: block;
  margin-bottom: 4px;

  line-height: var(--reading-caption-leading);
}

.hp-prep-warning-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  line-height: var(--reading-h3-leading);
}

.hp-prep-warning-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex-grow: 1;
}

.hp-prep-warning-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: var(--reading-size);
  color: var(--body-text);
  line-height: var(--reading-leading);
}

.hp-prep-warning-list li:last-child {
  margin-bottom: 0;
}

.hp-prep-warning-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

.hp-prep-warning-footer {
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 24px;
}

.hp-prep-warning-link {
  font-family: var(--action-family);
  font-size: var(--action-size-caption);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(53, 83, 128, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;

  line-height: var(--reading-caption-leading);
}

.hp-prep-warning-link:hover {
  color: var(--brand-accent);
  border-bottom-color: rgba(204, 63, 92, 0.4);
}

.hp-prep-link-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hp-prep-warning-link:hover .hp-prep-link-arrow {
  transform: translateX(3px);
}

/* ─── FAQ ACCORDIONS (Block 12) ─── */
.hp-faq-list {
  max-width: 800px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.hp-faq-item summary {
  font-family: var(--font-body);
  font-size: var(--reading-size);
  font-weight: 700;
  color: var(--heading-text);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  outline: none;
  user-select: none;

  line-height: var(--reading-leading);
}

.hp-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Custom +/- toggles */
.hp-faq-item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--reading-size);
  font-weight: 400;
  color: var(--muted);
  transition: all 0.25s ease;

  line-height: var(--reading-leading);
}

.hp-faq-item[open] summary::after {
  content: "−";
  background: var(--brand-accent);
  color: var(--surface);
  transform: rotate(180deg);
}

.hp-faq-item summary:hover {
  color: var(--brand-accent);
}

.faq-answer a.hp-faq-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.faq-answer a.hp-faq-link:hover {
  color: var(--brand-accent);
  text-decoration-color: rgba(204, 63, 92, 0.4);
}

@media (max-width: 600px) {
  #faq-section .faq-item summary {
    padding: 14px 20px;
    font-size: var(--reading-size);

  line-height: var(--reading-leading);
}
  #faq-section .faq-answer {
    padding: 12px 20px 18px;
    font-size: var(--reading-size);

  line-height: var(--reading-leading);
}
}

/* ─── FINAL CTA BANNER (Block 13) ─── */
.hp-final-cta {
  background: linear-gradient(135deg, var(--heading-text) 0%, var(--chat-heading) 100%);
  border-radius: var(--component-radius);
  padding: 64px 32px;
  text-align: center;
  color: var(--surface);
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(14,42,71,0.15);
}

.hp-final-cta::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(204, 63, 92, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hp-final-cta h2 {
  color: var(--surface);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  margin-bottom: 12px;
  border: none;
  padding: 0;

  line-height: var(--reading-h2-leading);
  font-family: var(--font-heading);
}

.hp-final-cta-subtitle {
  font-size: var(--reading-size);
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: var(--reading-leading);
}

.hp-final-disclaimer {
  font-size: var(--reading-caption-size);
  color: rgba(255, 255, 255, 0.4);
  line-height: var(--reading-caption-leading);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── MOBILE STICKY PANEL (Block 15) ─── */
/* ─── CSS Spinner for Form Sending State ─── */
@keyframes hp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── RESPONSIVE RULES ─── */
@media (max-width: 1024px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hp-steps::before {
    display: none;
  }

  .hp-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .hp-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-verify-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hp-prep-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

@media (max-width: 480px) {
  .hp-hero-text h1 {
    font-size: var(--reading-h1-size);

  line-height: var(--reading-h1-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}

  .hp-hero-live-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hp-hero-live-badge {
    width: 100%;
    justify-content: center;
  }

  .tg-interactive-form-row {
    flex-direction: column;
  }

  .hp-categories {
    grid-template-columns: 1fr;
  }
}

/* ─── DEV TESTING CONTROLS (Demo Panel) ─── */
.hp-demo-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  font-family: var(--font-body);
}

/* Hide on mobile screens to prevent interface blockages */
@media (max-width: 768px) {
  .hp-demo-panel {
    display: none !important;
  }
}

/* ─── TELEGRAM-LIKE CHAT WIDGET ─── */
.tg-chat-container {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  overflow: hidden;
  height: 520px;
  box-shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
  font-family: var(--font-body), sans-serif;
  position: relative;
  transition: all 0.3s ease;
}

.tg-chat-container:hover {
  box-shadow: 0 16px 40px rgba(14, 42, 71, 0.12);
}

.tg-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--heading-text);
  color: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url('../../assets/images/aleksey-petrov.png');
  background-size: cover;
  background-position: center;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.tg-avatar-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-online);
  border: 2px solid var(--heading-text);
  position: absolute;
  bottom: -1px;
  right: -1px;
}

.tg-chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tg-chat-title {
  font-family: var(--font-heading);
  font-size: var(--chat-title-size);
  font-weight: 700;
  color: var(--surface);
}

.tg-chat-subtitle {
  font-size: var(--chat-status-size);
  color: var(--text-soft);
}

.tg-chat-history {
  flex: 1;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-image: radial-gradient(rgba(14, 42, 71, 0.03) 1px, transparent 0), radial-gradient(rgba(14, 42, 71, 0.03) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat History */
.tg-chat-history::-webkit-scrollbar {
  width: 6px;
}
.tg-chat-history::-webkit-scrollbar-track {
  background: transparent;
}
.tg-chat-history::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--component-radius);
}
.tg-chat-history::-webkit-scrollbar-thumb:hover {
  background: var(--text-soft);
}

.tg-bubble-row {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  margin: 2px 0;
}

.tg-bubble-row.client {
  justify-content: flex-end;
}

.tg-bubble-row.lawyer {
  justify-content: flex-start;
  gap: 8px;
}

.tg-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-image: url('../../assets/images/aleksey-petrov.png');
  background-size: cover;
  background-position: center;
  align-self: flex-end;
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.tg-bubble-avatar--elena {
  background-image: url('../../assets/images/elena-smirnova.png');
}

.tg-bubble-avatar--aleksey {
  background-image: url('../../assets/images/aleksey-petrov.png');
}

.tg-bubble-avatar--dmitry {
  background-image: url('../../assets/images/dmitry-nosikov.png');
}

.tg-bubble-avatar--tatiana {
  background-image: url('../../assets/images/tatiana-kozlova.png');
}

.tg-bubble-avatar--neutral {
  background-image: none;
  background-color: var(--surface-inset);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.tg-bubble-avatar--neutral::before {
  content: 'Ю';
  font-family: var(--font-heading);
  font-weight: 700;
}

.tg-person-avatar {
  position: relative;
  background-image: none;
  background-color: var(--surface-accent);
}

.tg-person-avatar .hp-lawyer-avatar {
  border-width: 1px;
  box-shadow: none;
}

.tg-person-initials {
  position: absolute;
  right: -4px;
  bottom: -3px;
  min-width: 20px;
  padding: 0 3px;
  border: 1px solid var(--surface);
  border-radius: 4px;
  background: var(--surface-accent);
  color: var(--heading-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.tg-bubble-avatar .tg-person-initials {
  right: -3px;
  bottom: -2px;
  min-width: 14px;
  padding: 0 2px;
  font-size: 8px;
  line-height: 12px;
}

.tg-person-avatar .tg-avatar-status {
  top: -2px;
  right: -2px;
  bottom: auto;
}

.tg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-size: var(--chat-message-size);
  line-height: var(--chat-message-leading);
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  word-wrap: break-word;
}

.tg-bubble-row.lawyer .tg-bubble {
  background: var(--chat-surface);
  color: var(--text);
  border-radius: 14px 14px 14px 2px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.tg-bubble-row.client .tg-bubble {
  background: var(--accent);
  color: var(--surface);
  border-radius: 14px 14px 2px 14px;
}

.tg-bubble-time {
  display: block;
  text-align: right;
  font-size: var(--chat-time-size);
  color: var(--nav-indicator);
  margin-top: 4px;
  margin-bottom: -2px;
}

.tg-bubble-row.client .tg-bubble-time {
  color: rgba(255, 255, 255, 0.65);
}

/* Typing Indicator Bubble */
.tg-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--chat-surface);
  border-radius: 14px 14px 14px 2px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  width: fit-content;
}

.tg-typing-bubble.client-typing {
  background: var(--accent);
  border-radius: 14px 14px 2px 14px;
  border: none;
}

.tg-typing-bubble.client-typing .tg-typing-dot {
  background: rgba(255, 255, 255, 0.8);
}

.tg-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: tg-bounce 1.4s infinite ease-in-out both;
}

.tg-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.tg-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes tg-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Input / Action Area */
.tg-chat-input-area {
  background: var(--surface);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.tg-chat-input-placeholder {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  color: var(--text-soft);
}

.tg-input-icon {
  width: 20px;
  height: 20px;
  color: var(--chat-meta);
  cursor: not-allowed;
  opacity: 0.7;
}

.tg-input-text {
  flex: 1;
  font-size: var(--reading-caption-size);
  color: var(--text-soft);
  user-select: none;
}

/* Interactive bubble styles inside dialogue stream */
.tg-bubble-row.lawyer .tg-interactive-bubble {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px 14px 14px 2px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(14, 42, 71, 0.04);
  max-width: 85%;
  width: 100%;
  animation: tg-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-interactive-header {
  font-family: var(--font-heading);
  font-size: var(--chat-interactive-title-size);
  font-weight: 700;
  color: var(--heading-text);
  margin-bottom: 6px;
}

.tg-interactive-desc {
  font-size: var(--chat-interactive-caption-size);
  line-height: var(--chat-interactive-caption-leading);
  color: var(--muted);
  margin: 0 0 14px 0;
}

.tg-interactive-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tg-interactive-form-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tg-interactive-input:focus {
  border-color: var(--notice-icon);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tg-interactive-submit-btn {
  background: var(--heading-text);
  color: var(--surface);
  border: none;
  border-radius: var(--control-radius);
  padding: 9px 16px;
  font-family: var(--font-heading);
  font-size: var(--chat-message-mobile-size);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tg-interactive-submit-btn:hover {
  background: var(--notice-heading);
}

.tg-interactive-submit-btn:disabled,
.tg-interactive-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tg-interactive-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--chat-message-mobile-size);
  color: var(--status-online);
  font-weight: 700;
  padding: 8px 0;
  animation: tg-slide-up 0.2s ease;
}

@keyframes tg-slide-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── CHANNELS SECTION (Card A & Card B Redesign) ─── */
.hp-channels-section {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hp-channels-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-channels-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(14, 42, 71, 0.03);
}

.hp-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  gap: 80px; /* space to accommodate the divider */
}

.hp-channel-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

/* Divider vertical for desktop */
.hp-channels-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: 44px;
}

.hp-channels-divider-line {
  width: 1px;
  background: var(--border);
  flex-grow: 1;
}

.hp-channels-divider-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--reading-meta-size);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 12px 0;

  line-height: var(--reading-caption-leading);
}

/* Inner Horizontal Divider */
.hp-channels-inner-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0 24px 0;
}

/* Unified Preparation Link inside Container */
.hp-channels-prep-link-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hp-channels-prep-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--action-size-detail);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;

  line-height: var(--reading-caption-leading);
}

.hp-channels-prep-link-btn span {
  border-bottom: 1.5px dashed rgba(71, 85, 105, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.hp-channels-prep-link-btn:hover {
  color: var(--brand-accent);
}

.hp-channels-prep-link-btn:hover span {
  border-bottom-color: transparent;
}

.hp-channels-prep-icon {
  color: var(--brand-accent);
  flex-shrink: 0;
  transform-origin: bottom center;
  transition: color 0.2s ease, transform 0.2s ease;
  animation: hp-swing-paper-auto 1s ease-in-out infinite;
}

.hp-channels-prep-arrow {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.hp-channels-prep-link-btn:hover .hp-channels-prep-arrow {
  color: var(--brand-accent);
  transform: translateX(3px);
}

@keyframes hp-swing-paper-auto {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

/* Badge/Kicker */
.hp-channel-badge {
  font-size: var(--reading-meta-size);
  font-weight: var(--reading-heading-weight);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--control-radius);
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-body);

  line-height: var(--reading-caption-leading);
}

.hp-channel-badge.badge-online {
  background: var(--important-bg);
  color: var(--brand-accent);
}

.hp-channel-badge.badge-phone {
  background: rgba(53, 83, 128, 0.08);
  color: var(--accent);
}

.hp-channel-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin-top: 0;
  margin-bottom: 12px;
  border: none;
  padding: 0;

  line-height: var(--reading-h3-leading);
}

.hp-channel-desc {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin-top: 0;
  margin-bottom: 16px;
  min-height: 72px;
}

/* Card B Phone visual redesign */
.hp-card-action-container {
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hp-card-action-link {
  color: var(--link-color);
  border-bottom: 1px dashed var(--link-underline);
  font-family: var(--action-family);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
  cursor: pointer;
  padding-bottom: 2px;
}

/* Card A (Online link) */
.hp-card-action-link.link-online {
  color: var(--brand-accent);
  font-size: var(--reading-caption-size);
  border-bottom: 1.5px solid rgba(204, 63, 92, 0.4);

  line-height: var(--reading-caption-leading);
}

.hp-card-action-link.link-online:hover {
  color: var(--brand-accent-hover);
  border-bottom-color: transparent;
}

/* Card B (Phone link) */
.hp-card-action-link.link-phone {
  color: var(--brand-accent);
  font-size: var(--reading-caption-size);
  border-bottom: 1.5px solid var(--download-border);

  line-height: var(--reading-caption-leading);
}

.hp-card-action-link.link-phone:hover {
  color: var(--brand-accent-hover);
  border-bottom-color: transparent;
}

.hp-card-action-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hp-card-action-link:hover .hp-card-action-icon {
  transform: scale(1.08);
}

.hp-card-action-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  width: var(--action-icon-size);
  height: var(--action-icon-size);
}

.hp-card-action-link:hover .hp-card-action-arrow {
  transform: translateX(4px);
  width: var(--action-icon-size);
  height: var(--action-icon-size);
}

/* Schedule Pill Plashka styling */
.hp-phone-schedule {
  max-width: 100%;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--online-action);
  margin-bottom: 0;
  max-width: 100%;

  line-height: var(--reading-caption-leading);
}

.hp-pulse-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background-color: var(--status-success);
  border-radius: 50%;
  display: inline-block;
  animation: hp-pulse-glow 2s infinite;
}

@keyframes hp-pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hp-phone-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.hp-secondary-link {
  font-size: var(--reading-caption-size);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(71, 85, 105, 0.4);
  transition: all 0.2s;

  line-height: var(--reading-caption-leading);
}

.hp-secondary-link:hover {
  color: var(--accent);
  border-bottom-color: transparent;
}

.hp-prep-selector-wrap {
  margin-bottom: 28px;
}

.hp-prep-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--heading-text);

  line-height: var(--reading-caption-leading);
}

.hp-telegram-avatar-elena {
  background-image: url('../../assets/images/elena-smirnova.png');
}

.hp-icon-offset {
  margin-left: 4px;
}

@media (max-width: 768px) {
  .hp-channels-container {
    padding: 24px 20px;
  }
  .hp-channels-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hp-channel-column {
    height: auto;
  }
  .hp-channels-divider {
    position: relative;
    left: 0;
    transform: none;
    flex-direction: row;
    width: 100%;
    margin: 24px 0;
    align-items: center;
    top: auto;
    bottom: auto;
    height: 38px;
  }
  .hp-channels-divider-line {
    height: 1px;
    width: 100%;
    flex-grow: 1;
    background: var(--border);
  }
  .hp-channels-divider-badge {
    margin: 0 16px;
  }
  .hp-channels-inner-divider {
    margin: 24px 0 20px 0;
  }
  .hp-channels-section {
    padding: 60px 0;
  }
}

/* ─── Card Header Layout (V4) ─── */
.hp-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 32px;
  margin-bottom: 16px;
}

.hp-card-header .hp-channel-badge {
  flex-shrink: 0;
  white-space: nowrap;
  margin-bottom: 0;
}

/* ─── Legal Disclaimer Block (V6) ─── */
.hp-channels-legal-block {
  text-align: center;
  margin-top: 32px;
  font-size: var(--reading-caption-size);
  color: var(--muted);
  line-height: var(--reading-caption-leading);
}

.hp-channels-legal-block p {
  margin: 0;
}

.hp-legal-trigger {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px dashed rgba(53, 83, 128, 0.4);
  padding-bottom: 1px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hp-legal-trigger:hover {
  color: var(--brand-accent);
  border-bottom-color: transparent;
}

/* ─── Trust Section (Block 03) ─── */
.hp-trust-section {
  padding: 40px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hp-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grid for 3 cards */
.hp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

.hp-trust-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hp-trust-icon-wrapper {
  background: rgba(53, 83, 128, 0.06);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: var(--component-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hp-trust-card:hover .hp-trust-icon-wrapper {
  background: var(--brand-accent);
  color: var(--surface);
  transform: translateY(-2px);
}

.hp-trust-icon {
  width: 22px;
  height: 22px;
}

.hp-trust-text {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--heading-text);
  line-height: var(--reading-caption-leading);
}

/* Responsive */
@media (max-width: 992px) {
  .hp-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hp-trust-section {
    padding: 30px 0;
  }
  .hp-trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ─── Steps Section (Block 04) ─── */
.hp-steps-section {
  padding: 55px 0;
  background: var(--bg);
}

.hp-steps-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-steps-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin-top: 0;
  margin-bottom: 50px;

  line-height: var(--reading-h2-leading);
}

/* Timeline/Grid Container */
.hp-steps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

/* Connecting line on desktop */
@media (min-width: 769px) {
  .hp-steps-timeline::before {
    content: '';
    position: absolute;
    top: 22px; /* aligns in the center of the step markers */
    left: 40px;
    right: 40px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border), var(--border) 4px, transparent 4px, transparent 8px);
    z-index: 1;
  }
}

.hp-step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.hp-step-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: var(--reading-heading-weight);
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(14, 42, 71, 0.05);
  transition: all 0.3s ease;

  line-height: var(--reading-caption-leading);
}

.hp-step-item:hover .hp-step-marker,
.hp-step-item.active .hp-step-marker {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(204, 63, 92, 0.15);
}

.hp-step-item:hover h3,
.hp-step-item.active h3 {
  color: var(--brand-accent);
  transition: color 0.3s ease;
}

.hp-step-content h3 {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0 0 10px 0;
  border: none;
  padding: 0;

  line-height: var(--reading-h3-leading);
}

.hp-step-content p {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin: 0;
}

/* Staggered entrance animation delays */
.hp-step-item.hp-reveal:nth-child(1) { transition-delay: 0s; }
.hp-step-item.hp-reveal:nth-child(2) { transition-delay: 0.15s; }
.hp-step-item.hp-reveal:nth-child(3) { transition-delay: 0.3s; }
.hp-step-item.hp-reveal:nth-child(4) { transition-delay: 0.45s; }

/* Mobile styles: vertical timeline with guide line */
@media (max-width: 768px) {
  .hp-steps-section {
    padding: 45px 0;
  }

  .hp-steps-title {
    font-size: var(--reading-h2-size);
    margin-bottom: 36px;

  line-height: var(--reading-h2-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}

  .hp-steps-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 0;
  }

  /* Vertical guide line */
  .hp-steps-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 17px;
    width: 2px;
    background: var(--brand-accent); /* Contrasting guiding line */
    z-index: 1;
  }

  .hp-step-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: flex-start;
    gap: 20px;
  }

  .hp-step-marker {
    position: relative;
    margin-bottom: 0;
    width: 36px;
    height: 36px;
    font-size: var(--reading-caption-size);
    border-color: var(--brand-accent);
    color: var(--brand-accent);

  line-height: var(--reading-caption-leading);
}
}

/* ─── Responsibility Section (Block 05) ─── */
.hp-responsibility-section {
  padding: 55px 0;
  background: var(--surface);
}

.hp-responsibility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-responsibility-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin-top: 0;
  margin-bottom: 50px;

  line-height: var(--reading-h2-leading);
}

.hp-responsibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: 50px;
}

.hp-responsibility-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  position: relative;
  box-shadow: 0 4px 12px rgba(14, 42, 71, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hp-responsibility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(14, 42, 71, 0.06);
}

.hp-responsibility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10;
}

.hp-responsibility-card.card-free::before {
  background: var(--summary-border);
}

.hp-responsibility-card.card-paid::before {
  background: var(--brand-accent);
}

/* Card Header Section */
.hp-responsibility-card-header {
  padding: 36px 36px 24px 36px;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: block; /* explicitly block so badges do not stretch horizontally */
}

.hp-responsibility-card.card-free .hp-responsibility-card-header {
  background: rgba(16, 185, 129, 0.015);
}

.hp-responsibility-card.card-paid .hp-responsibility-card-header {
  background: rgba(204, 63, 92, 0.015);
}

.hp-responsibility-card-subtitle {
  font-size: var(--reading-caption-size);
  color: var(--muted);
  margin: 10px 0 0 0;
  font-weight: 500;
  line-height: var(--reading-caption-leading);
}

/* Card Body Section */
.hp-responsibility-card-body {
  padding: 32px 36px 36px 36px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* A list and the separate scope explanation form distinct reading groups. */
.hp-responsibility-card-body > .hp-card-list + .hp-channel-desc {
  margin-top: var(--space-md);
}

/* Badge tags inside cards */
.hp-responsibility-card-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: var(--reading-heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: var(--control-radius);

  line-height: var(--reading-caption-leading);
}

.badge-free {
  background: var(--summary-bg);
  color: var(--online-label);
}

.badge-paid {
  background: var(--important-bg);
  color: var(--brand-accent);
}

/* Card checklist items */
.hp-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
}

.hp-list-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.hp-list-icon.icon-free {
  color: var(--summary-border);
}

.hp-list-icon.icon-paid {
  color: var(--brand-accent);
}

/* Centered footnote box */
.hp-responsibility-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(53, 83, 128, 0.03); /* very soft navy-slate trust tint */
  border: 1px solid rgba(53, 83, 128, 0.08); /* subtle dusty steel blue border */
  padding: 14px 28px;
  border-radius: 9999px; /* Pill shape for premium look on desktop */
  font-size: var(--reading-size);
  font-weight: 600;
  color: var(--accent); /* noble dusty steel blue text */
  max-width: 860px;
  margin: 0 auto;
  line-height: var(--reading-leading);
  box-shadow: 0 1px 3px rgba(14, 42, 71, 0.01);
  transition: all 0.2s ease;
}

.hp-responsibility-footnote:hover {
  background: rgba(53, 83, 128, 0.05);
  border-color: rgba(53, 83, 128, 0.15);
}

.hp-footnote-icon {
  color: var(--accent);
  flex-shrink: 0;
}

/* Staggered load-in animation delay */
.hp-responsibility-card.card-free.hp-reveal { transition-delay: 0.1s; }
.hp-responsibility-card.card-paid.hp-reveal { transition-delay: 0.25s; }

/* Responsive styles */
@media (max-width: 992px) {
  .hp-responsibility-card-header {
    padding: 30px 30px 20px 30px;
  }
  .hp-responsibility-card-body {
    padding: 24px 30px 30px 30px;
  }
}

@media (max-width: 768px) {
  .hp-responsibility-section {
    padding: 45px 0;
  }

  .hp-responsibility-title {
    font-size: var(--reading-h2-size);
    margin-bottom: 36px;

  line-height: var(--reading-h2-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}

  .hp-responsibility-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .hp-responsibility-footnote {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 8px;
    border-radius: var(--component-radius); /* standard rounded corner box instead of pill on mobile */
  }
}

/* ─── Practice Areas Section (Block 06) ─── */
.hp-categories-section {
  padding: 55px 0;
  background: var(--bg);
}

.hp-categories-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.hp-section-kicker {
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  line-height: var(--reading-caption-leading);
}

.hp-section-kicker::before,
.hp-section-kicker::after {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--brand-accent);
}

.hp-categories-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0 0 16px 0;
  line-height: var(--reading-h2-leading);
}

.hp-section-subtitle {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin: 0;
}

/* Grid layout */
.hp-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card design */
.hp-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(14, 42, 71, 0.015);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hp-category-card:hover {
  border-color: rgba(204, 63, 92, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(14, 42, 71, 0.05);
}

.hp-category-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hp-category-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--component-radius);
  background: rgba(53, 83, 128, 0.05);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hp-category-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.hp-category-card:hover .hp-category-icon-wrapper {
  background: var(--brand-accent);
  color: var(--surface);
}

.hp-category-card h3 {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0;
  line-height: var(--reading-h3-leading);
}

.hp-category-questions {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.hp-category-questions li {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  position: relative;
  padding-left: 12px;
}

.hp-category-questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.7;
}

.hp-category-card-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--action-family);
  font-size: var(--action-size-compact);
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 14px;
  transition: color 0.2s ease;

  line-height: var(--reading-caption-leading);
}

.hp-category-action-arrow {
  transition: transform 0.2s ease;
}

.hp-category-card:hover .hp-category-card-action {
  color: var(--brand-accent);
}

.hp-category-card:hover .hp-category-action-arrow {
  transform: translateX(4px);
}

/* Staggered animations */
.hp-category-card.hp-reveal:nth-child(4n+1) { transition-delay: 0s; }
.hp-category-card.hp-reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.hp-category-card.hp-reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.hp-category-card.hp-reveal:nth-child(4n+4) { transition-delay: 0.24s; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hp-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .hp-categories-title {
    font-size: var(--reading-h2-size);

  line-height: var(--reading-h2-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}
}

@media (max-width: 576px) {
  .hp-categories-section {
    padding: 45px 0;
  }
  .hp-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hp-categories-title {
    font-size: var(--reading-h2-size);

  line-height: var(--reading-h2-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}
}

/* ─── Lawyers Section (Block 07) ─── */
.hp-lawyers-section {
  padding: 55px 0;
  background: var(--surface);
}

.hp-lawyers-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-lawyers-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0 0 16px 0;
  line-height: var(--reading-h2-leading);
}

/* Grid Layout */
.hp-lawyers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Lawyer Card */
.hp-lawyer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(14, 42, 71, 0.012);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-align: left;
}

.hp-lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(14, 42, 71, 0.05);
  border-color: rgba(53, 83, 128, 0.15);
}

/* Card Top Header row */
.hp-lawyer-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}

/* Avatar container */
.hp-lawyer-avatar-container {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.hp-lawyer-avatar-container::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--text-soft);
  border-radius: 50%;
  pointer-events: none;
}

.hp-lawyer-avatar-container[data-state="online"]::before {
  border-color: var(--status-success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08), 0 0 10px rgba(16, 185, 129, 0.16);
  animation: hp-lawyer-ring 3s ease-in-out infinite;
}

@keyframes hp-lawyer-ring {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08), 0 0 8px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08), 0 0 16px rgba(16, 185, 129, 0.22); }
}

.hp-lawyer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 4px 10px rgba(14, 42, 71, 0.08);
}

.hp-lawyer-avatar--illustrated {
  display: block;
  overflow: hidden;
  background: var(--surface-accent);
}

.hp-lawyer-avatar-ink {
  fill: var(--accent);
}

.hp-lawyer-avatar-face {
  fill: var(--border);
}

.hp-lawyer-avatar-glasses {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.hp-lawyer-avatar-monogram {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 30px;
  padding: 1px 5px;
  border: 2px solid var(--surface);
  border-radius: var(--control-radius);
  background: var(--surface-accent);
  color: var(--heading-text);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  line-height: var(--reading-caption-leading);
  text-align: center;
}

.hp-lawyer-role {
  margin: 0;
  color: var(--muted);
  font-size: var(--reading-meta-size);
  line-height: var(--reading-caption-leading);
}

.hp-lawyer-presence {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: var(--reading-meta-size);
  font-weight: 600;
  line-height: var(--reading-caption-leading);
}

.hp-lawyer-presence-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--text-soft);
}

.hp-lawyer-presence[data-state="online"] {
  color: var(--status-online-text);
}

.hp-lawyer-presence[data-state="online"] .hp-lawyer-presence-dot {
  background: var(--status-success);
  animation: hp-pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hp-lawyer-presence-dot,
  .hp-lawyer-avatar-container::before {
    animation: none !important;
  }
}

.hp-lawyers-status-note {
  display: block;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--reading-meta-size);
  line-height: var(--reading-caption-leading);
  text-align: center;
}

/* Online status indicator dot */
.hp-lawyer-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hp-lawyer-status-indicator.status-online {
  background: var(--status-success);
  animation: hp-pulse 2s infinite;
}

.hp-lawyer-status-indicator.status-offline {
  background: var(--text-soft);
}

@keyframes hp-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Header info right column */
.hp-lawyer-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
}

.hp-lawyer-header-info:only-child {
  grid-column: 1 / -1;
}

.hp-lawyer-meta-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hp-lawyer-status {
  font-size: var(--reading-meta-size);
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;

  line-height: var(--reading-caption-leading);
}

.hp-lawyer-verified-tag {
  background: rgba(16, 185, 129, 0.08);
  color: var(--status-online-text);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--reading-meta-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;

  line-height: var(--reading-caption-leading);
}

.hp-lawyer-verified-tag svg {
  color: var(--status-success);
  flex-shrink: 0;
}

.hp-lawyer-name {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0;
  line-height: var(--reading-h3-leading);
  white-space: normal;
  overflow-wrap: anywhere;
}

.hp-lawyer-city-row {
  font-size: var(--reading-meta-size);
  color: var(--muted);
  font-weight: 500;

  line-height: var(--reading-caption-leading);
}

/* Rating Row */
.hp-lawyer-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
}

.hp-lawyer-stars {
  display: flex;
  color: var(--warning-icon-bright);
  gap: 1px;
}

.hp-lawyer-stars svg {
  width: 13px;
  height: 13px;
}

.hp-lawyer-rating-val {
  font-size: var(--reading-meta-size);
  font-weight: 700;
  color: var(--text);

  line-height: var(--reading-caption-leading);
}

.hp-lawyer-reviews-count {
  font-size: var(--reading-meta-size);
  color: var(--muted);

  line-height: var(--reading-caption-leading);
}

/* Bio description (full display, no clamp) */
.hp-lawyer-desc {
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
  margin: 0 0 16px 0;
  text-align: left;
}

.hp-lawyer-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.hp-lawyer-topics li {
  padding: 3px 8px;
  border-radius: var(--control-radius);
  background: var(--surface-accent);
  color: var(--accent);
  font-size: var(--reading-meta-size);
  line-height: var(--reading-caption-leading);
}

.hp-lawyer-questions-title {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  color: var(--heading-text);
  font-family: var(--font-heading);
  font-size: var(--reading-h4-size);
  font-weight: var(--reading-heading-weight);
  line-height: var(--reading-h3-leading);
}

.hp-lawyer-questions {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text);
  font-size: var(--reading-caption-size);
  line-height: var(--reading-caption-leading);
}

.hp-lawyer-questions li + li {
  margin-top: 8px;
}

.hp-lawyer-questions li::marker {
  color: var(--accent);
}

.hp-lawyer-materials {
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: var(--reading-caption-size);
  line-height: var(--reading-caption-leading);
}

.hp-lawyer-materials summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
}

.hp-lawyer-materials summary:hover {
  color: var(--brand-accent);
}

.hp-lawyer-materials summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--control-radius);
}

.hp-lawyer-materials-count {
  color: var(--muted);
  font-weight: 400;
}

.hp-lawyer-materials ul {
  margin: 0;
  padding: 0 0 12px 18px;
}

.hp-lawyer-materials li + li {
  margin-top: 10px;
}

.hp-lawyer-materials a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-lawyer-materials a:hover {
  color: var(--brand-accent);
}

/* Details stats list */
.hp-lawyer-stats-list {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0 0 16px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
}

.hp-lawyer-stat-item {
  font-size: var(--reading-caption-size);
  line-height: var(--reading-caption-leading);
  color: var(--text);
  text-align: left;
}

.hp-lawyer-stat-label {
  color: var(--muted);
  font-weight: 500;
}

/* Action Links */
.hp-lawyer-actions-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 14px;
  margin-top: auto;
  width: 100%;
}

.hp-lawyer-link-profile {
  color: var(--accent);
  font-family: var(--action-family);
  font-size: var(--action-size-compact);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  border-bottom: 1.5px solid rgba(53, 83, 128, 0.3);
  padding-bottom: 1px;

  line-height: var(--reading-caption-leading);
}

.hp-lawyer-link-profile:hover {
  color: var(--brand-accent);
  border-bottom-color: transparent;
}

.hp-lawyer-link-ask {
  color: var(--brand-accent);
  font-family: var(--action-family);
  font-size: var(--action-size-compact);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  border-bottom: 1.5px solid rgba(204, 63, 92, 0.3);
  padding-bottom: 1px;

  line-height: var(--reading-caption-leading);
}

.hp-lawyer-link-ask:hover {
  color: var(--brand-accent-hover);
  border-bottom-color: transparent;
}

.hp-more-link {
  color: var(--accent);
  font-family: var(--action-family);
  font-size: var(--action-size);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border-bottom: 1.5px solid rgba(53, 83, 128, 0.3);
  padding-bottom: 2px;

  line-height: var(--reading-caption-leading);
}

.hp-more-link:hover {
  color: var(--brand-accent);
  border-bottom-color: transparent;
}

.hp-lawyer-link-arrow,
.hp-more-link-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: var(--action-icon-size);
  height: var(--action-icon-size);
}

.hp-lawyer-link-profile:hover .hp-lawyer-link-arrow,
.hp-lawyer-link-ask:hover .hp-lawyer-link-arrow,
.hp-more-link:hover .hp-more-link-arrow {
  transform: translateX(3px);
}

/* Staggered Animations */
.hp-lawyer-card.hp-reveal:nth-child(1) { transition-delay: 0s; }
.hp-lawyer-card.hp-reveal:nth-child(2) { transition-delay: 0.08s; }
.hp-lawyer-card.hp-reveal:nth-child(3) { transition-delay: 0.16s; }
.hp-lawyer-card.hp-reveal:nth-child(4) { transition-delay: 0.24s; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hp-lawyers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .hp-lawyers-section {
    padding: 45px 0;
  }
  .hp-lawyers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Recent Consultations Section (Block 08) ─── */
.hp-consults-section {
  scroll-margin-top: 120px;
  padding: 55px 0;
  background: var(--bg-alt, var(--surface-subtle));
}

.hp-consults-inner {
  display: flex;
  flex-direction: column;
}

.hp-consults-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.hp-consult-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(14, 42, 71, 0.01);
  transition: all 0.25s ease;
  position: relative;
}

.hp-consult-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(14, 42, 71, 0.05);
}

.hp-consult-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: var(--reading-meta-size);
  color: var(--muted);

  line-height: var(--reading-caption-leading);
}

.hp-consult-tag {
  background: rgba(53, 83, 128, 0.06);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--control-radius);
  font-weight: 600;
  font-size: var(--reading-meta-size);

  line-height: var(--reading-caption-leading);
}

.hp-consult-meta-item {
  display: inline-flex;
  align-items: center;
}

.hp-consult-meta-item:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
}

.hp-consult-question-title {
  color: var(--heading-text);
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  line-height: var(--reading-h3-leading);
  margin: 0 0 16px 0;
  min-height: 44px; /* Align titles */
}

.hp-consult-qa-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.hp-consult-q-text,
.hp-consult-a-text {
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--body-text);
}

.hp-consult-q-text strong,
.hp-consult-a-text strong {
  color: var(--heading-text);
}

.hp-consult-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 14px;
  margin-bottom: 16px;
}

.hp-consult-author-info {
  font-size: var(--reading-caption-size);
  color: var(--muted);

  line-height: var(--reading-caption-leading);
}

.hp-consult-author-label {
  margin-right: 4px;
}

.hp-consult-author-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(53, 83, 128, 0.3);
  transition: all 0.2s;
}

.hp-consult-author-link:hover {
  color: var(--brand-accent);
  border-bottom-color: transparent;
}

.hp-consult-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.06);
  color: var(--status-success);
  padding: 3px 8px;
  border-radius: var(--control-radius);
  font-size: var(--reading-meta-size);
  font-weight: 600;

  line-height: var(--reading-caption-leading);
}

.hp-consult-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.hp-consult-actions .hp-consult-action-read,
.hp-consult-actions .hp-consult-action-ask {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  padding-bottom: 1px;

  line-height: var(--reading-caption-leading);
}

.hp-consult-action-read {
  color: var(--accent);
  border-bottom: 1.5px solid rgba(53, 83, 128, 0.3);
}

.hp-consult-action-read:hover {
  color: var(--brand-accent);
  border-bottom-color: transparent;
}

.hp-consult-action-ask {
  color: var(--brand-accent);
  border-bottom: 1.5px solid rgba(204, 63, 92, 0.3);
}

.hp-consult-action-ask:hover {
  color: var(--brand-accent-hover);
  border-bottom-color: transparent;
}

.hp-consult-action-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: var(--action-icon-size);
  height: var(--action-icon-size);
}

.hp-consult-action-read:hover .hp-consult-action-arrow,
.hp-consult-action-ask:hover .hp-consult-action-arrow {
  transform: translateX(3px);
  width: var(--action-icon-size);
  height: var(--action-icon-size);
}

/* Staggered Animations for consultations */
.hp-consult-card.hp-reveal:nth-child(1) { transition-delay: 0.05s; }
.hp-consult-card.hp-reveal:nth-child(2) { transition-delay: 0.12s; }
.hp-consult-card.hp-reveal:nth-child(3) { transition-delay: 0.19s; }

/* Responsive adjustments for consultations */
@media (max-width: 992px) {
  .hp-consults-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hp-consults-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Verification Section (Block 09) ─── */
.hp-verify-section {
  padding: 55px 0;
  background: var(--surface);
}

.hp-verify-inner {
  display: flex;
  flex-direction: column;
}

.hp-verify-container {
  margin-top: 35px;
}

.hp-verify-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}

.hp-verify-desc-col {
  position: sticky;
  top: 100px;
}

.hp-verify-intro-text {
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--body-text);
  margin: 0 0 28px 0;
}

.hp-verify-advocate-box {
  display: flex;
  gap: 16px;
  background: rgba(53, 83, 128, 0.03);
  border-left: 3px solid var(--accent);
  padding: 20px;
  border-radius: 0 12px 12px 0;
}

.hp-verify-adv-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.hp-verify-adv-text {
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--body-text);
}

.hp-verify-adv-text strong {
  color: var(--heading-text);
}

.hp-verify-adv-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(53, 83, 128, 0.3);
  font-weight: 600;
  transition: all 0.2s ease;
}

.hp-verify-adv-text a:hover {
  color: var(--brand-accent);
  border-bottom-color: rgba(204, 63, 92, 0.4);
}

.hp-verify-external-icon {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.hp-verify-adv-text a:hover .hp-verify-external-icon {
  transform: translate(2px, -2px);
}

/* Timeline Stages */
.hp-verify-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

.hp-verify-timeline::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: rgba(226, 232, 240, 0.8);
  z-index: 1;
}

.hp-verify-stage-item {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.hp-verify-stage-item:last-child {
  margin-bottom: 0;
}

.hp-verify-stage-num {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--reading-caption-size);
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(14, 42, 71, 0.02);

  line-height: var(--reading-caption-leading);
}

.hp-verify-stage-item:hover .hp-verify-stage-num {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(204, 63, 92, 0.1);
}

.hp-verify-stage-content {
  flex-grow: 1;
  padding-top: 4px;
}

.hp-verify-stage-title {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: var(--reading-h4-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);

  line-height: var(--reading-h3-leading);
}

.hp-verify-stage-content p {
  margin: 0;
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--muted);
}

/* Footer Links */
.hp-verify-footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  margin-top: 45px;
  padding-top: 24px;
}

.hp-verify-link {
  font-family: var(--action-family);
  font-size: var(--action-size-detail);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  padding-bottom: 2px;

  line-height: var(--reading-caption-leading);
}

.hp-verify-link:not(.hp-verify-complaint) {
  color: var(--accent);
  border-bottom: 1.5px solid rgba(53, 83, 128, 0.3);
}

.hp-verify-link:not(.hp-verify-complaint):hover {
  color: var(--brand-accent);
  border-bottom-color: transparent;
}

.hp-verify-link.hp-verify-complaint {
  color: var(--brand-accent);
  border-bottom: 1.5px solid rgba(204, 63, 92, 0.3);
}

.hp-verify-link.hp-verify-complaint:hover {
  color: var(--brand-accent-hover);
  border-bottom-color: transparent;
}

.hp-verify-link-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hp-verify-link:hover .hp-verify-link-arrow {
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .hp-verify-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hp-verify-desc-col {
    position: static;
  }
  .hp-verify-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ─── UX/UI Interactive Improvements (Antigravity additions) ─── */

.hp-lawyer-card.faded {
  opacity: 0.3;
  transform: scale(0.96);
  pointer-events: none;
}

.hp-lawyer-card.highlighted-match {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(14, 42, 71, 0.1);
}

/* Interactive Checklist */
/* Interactive Checklist Custom Select */
.hp-custom-select-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  user-select: none;
  font-family: var(--font-body);
}

.hp-custom-select-trigger {
  width: 100%;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--control-radius);
  cursor: pointer;
  font-size: var(--reading-size);
  font-weight: 500;
  color: var(--heading-text);
  box-shadow: 0 2px 5px rgba(14, 42, 71, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;

  line-height: var(--control-leading);
}

.hp-custom-select-trigger:hover {
  border-color: var(--accent);
  background-color: var(--field-hover-surface);
}

.hp-custom-select-container.open .hp-custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 83, 128, 0.12), 0 4px 10px rgba(14, 42, 71, 0.05);
  background-color: var(--surface);
}

.hp-custom-select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: -3px;
  margin-left: 12px;
}

.hp-custom-select-container.open .hp-custom-select-arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.hp-custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--control-radius);
  box-shadow: 0 10px 30px rgba(14, 42, 71, 0.1);
  z-index: 100;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.hp-custom-select-container.open .hp-custom-select-options {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  border-color: rgba(53, 83, 128, 0.3);
}

.hp-custom-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  padding: 12px 18px;
  cursor: pointer;
  font-size: var(--reading-size);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;

  line-height: var(--control-leading);
}

.hp-custom-option:not(.active) ~ .hp-custom-option:not(.active) {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.hp-custom-option:hover {
  background-color: rgba(53, 83, 128, 0.05);
  color: var(--accent);
}

.hp-custom-option.active {
  display: none;
}

.hp-prep-checklist .hp-prep-step-item.checked {
  opacity: 0.5;
  border-bottom-color: rgba(226, 232, 240, 0.3) !important;
}

.hp-prep-step-item.checked h3 {
  text-decoration: line-through;
  color: var(--muted);
}

.hp-prep-step-item.checked p {
  text-decoration: line-through;
  opacity: 0.8;
}

/* Checkbox container and custom checkbox styling */
.hp-prep-checkbox-wrapper {
  margin-top: 2px;
  margin-right: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hp-prep-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong); /* slate-300 */
  border-radius: var(--component-radius);
  outline: none;
  background-color: var(--surface);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-prep-checkbox:hover {
  border-color: var(--brand-accent);
  background-color: rgba(204, 63, 92, 0.02);
  box-shadow: 0 0 0 3px rgba(204, 63, 92, 0.15);
}

.hp-prep-checkbox:checked {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* Custom white checkmark */
.hp-prep-checkbox:checked::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid var(--surface);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  top: 2px;
  left: 7px;
}

.hp-prep-checkbox:focus-visible {
  box-shadow: 0 0 0 3px rgba(204, 63, 92, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   CONTENT AUDIT ADDITIONS
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero Actuality Badge ─── */
.hp-hero-actuality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--reading-meta-size);
  color: var(--text-soft);
  margin-top: 12px;

  line-height: var(--reading-caption-leading);
}
.hp-hero-actuality svg { color: var(--text-soft); flex-shrink: 0; }

/* ─── Chat Scenario Tabs ─── */
.tg-chat-scenario-tabs {
  display: flex;
  gap: 0;
  background: var(--heading-text);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tg-scenario-tab {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: var(--chat-status-size);
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}
.tg-scenario-tab:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.03);
}
.tg-scenario-tab.active {
  color: var(--chat-tab-active);
  background: rgba(154, 184, 219, 0.08);
}
.tg-scenario-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--chat-tab-active);
  border-radius: 2px 2px 0 0;
}

/* Chat container rounding fix when tabs are present */
.tg-chat-container:has(.tg-chat-scenario-tabs) {
  border-radius: var(--component-radius);
  overflow: hidden;
}
.tg-chat-container:has(.tg-chat-scenario-tabs) .tg-chat-header {
  border-radius: 0;
}

.tg-chat-container > :not(.tg-chat-history) {
  flex-shrink: 0;
}

/* ─── Chat Demo Label ─── */
.tg-chat-demo-label {
  padding: 8px 16px;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: var(--chat-status-size);
  color: var(--muted);
  text-align: center;
}
.tg-chat-demo-label a {
  color: var(--brand-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-accent);
}
.tg-chat-demo-label a:hover {
  border-bottom-style: solid;
}

/* ─── Chat Input Link (clickable) ─── */
.tg-chat-input-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.tg-chat-input-link:hover {
  background: rgba(96, 165, 250, 0.08);
}
.tg-chat-input-link:hover .tg-input-text {
  color: var(--chat-link-inverse);
}

/* ─── Channel Micro-усилитель ─── */
.hp-channel-micro-усилитель {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: var(--reading-caption-size);
  color: var(--status-online-text);
  font-weight: 600;

  line-height: var(--reading-caption-leading);
}

/* ─── Steps CTA ─── */
.hp-steps-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding: 20px;
  background: rgba(53, 83, 128, 0.03);
  border-radius: var(--component-radius);
  border: 1px dashed rgba(53, 83, 128, 0.15);
}
.hp-steps-cta span {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--heading-text);

  line-height: var(--reading-caption-leading);
}
.hp-steps-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand-accent);
  color: var(--surface);
  font-family: var(--action-family);
  font-size: var(--action-size-caption);
  font-weight: 700;
  border-radius: var(--control-radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;

  line-height: var(--reading-caption-leading);
}
.hp-steps-cta-btn:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
}

/* ─── 0₽ Badge ─── */
.hp-badge-zero {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--status-success-text);
  font-weight: var(--reading-heading-weight);
  font-size: var(--reading-meta-size);
  padding: 1px 8px;
  border-radius: var(--pill-radius);
  margin-left: 8px;

  line-height: var(--reading-caption-leading);
}

/* ─── Responsibility Example ─── */
.hp-responsibility-example {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.04);
  border-left: 3px solid var(--status-online);
  border-radius: 0 8px 8px 0;
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
}
.hp-responsibility-example svg {
  flex-shrink: 0;
  color: var(--status-online);
  margin-top: 2px;
}

/* ─── Categories Search ─── */
.hp-categories-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--component-radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hp-categories-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 83, 128, 0.1);
}
.hp-categories-search-icon {
  color: var(--text-soft);
  flex-shrink: 0;
}
.hp-categories-search-input::placeholder {
  color: var(--text-soft);
}

/* ─── Categories Collapsible ─── */
.hp-category-card.hp-cat-hidden {
  display: none;
}
.hp-categories-grid.expanded .hp-category-card.hp-cat-hidden {
  display: flex;
}
.hp-category-card.hp-cat-no-match {
  opacity: 0.15;
  pointer-events: none;
  transform: scale(0.96);
}
.hp-categories-toggle-wrap {
  text-align: center;
  margin-top: 24px;
}
.hp-categories-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--control-radius);
  font-family: var(--action-family);
  font-size: var(--action-size-caption);
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;

  line-height: var(--reading-caption-leading);
}
.hp-categories-toggle-btn:hover {
  border-color: var(--accent);
  background: var(--surface-accent);
}
.hp-categories-toggle-btn svg {
  transition: transform 0.3s;
}
.hp-categories-toggle-btn.expanded svg {
  transform: rotate(180deg);
}
.hp-categories-toggle-wrap.hidden {
  display: none;
}

/* ─── Lawyer Micro Review ─── */
.hp-lawyer-micro-review {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(53, 83, 128, 0.03);
  border-radius: var(--component-radius);
  font-size: var(--reading-caption-size);
  color: var(--muted);
  line-height: var(--reading-caption-leading);
  margin-bottom: 16px;
  font-style: italic;
}
.hp-lawyer-micro-review svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}
.hp-lawyer-micro-review em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* ─── Verification Stats Badge ─── */
.hp-verify-stats-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--online-surface-soft);
  border: 1.5px solid var(--online-border-soft);
  border-radius: var(--control-radius);
  margin: 20px 0;
  font-size: var(--reading-size);
  color: var(--status-success-text);
  line-height: var(--reading-leading);
}
.hp-verify-stats-badge svg {
  color: var(--status-online);
  flex-shrink: 0;
}

/* ─── Reviews Section (Block 10) ─── */
.hp-reviews-section {
  padding: 80px 0;
  background: var(--surface-subtle);
}
.hp-reviews-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0 0 10px;
  text-align: center;
  border: none;
  padding: 0;

  line-height: var(--reading-h2-leading);
}
.hp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.hp-review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(14,42,71,0.01);
  transition: box-shadow 0.25s;
}
.hp-review-card:hover {
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.06);
}
.hp-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.hp-review-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hp-review-author-name {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--heading-text);

  line-height: var(--reading-caption-leading);
}
.hp-review-author-city {
  font-size: var(--reading-meta-size);
  color: var(--muted);

  line-height: var(--reading-caption-leading);
}
.hp-review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--reading-meta-size);
  font-weight: 700;
  color: var(--status-online-text);
  background: var(--status-online-bg);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;

  line-height: var(--reading-caption-leading);
}
.hp-review-card-topic {
  font-size: var(--reading-caption-size);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;

  line-height: var(--reading-caption-leading);
}
.hp-review-card-text {
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
  margin: 0 0 20px;
  flex-grow: 1;
  font-style: italic;
}
.hp-review-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--reading-caption-size);
  color: var(--text-soft);

  line-height: var(--reading-caption-leading);
}
.hp-review-lawyer-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}
.hp-review-lawyer-link a:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

/* ─── Final CTA Section (Block 13) ─── */
.hp-final-cta-section {
  scroll-margin-top: 120px;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--heading-text) 0%, var(--text) 100%);
  text-align: center;
}
.hp-final-cta-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h2-size);
  font-weight: var(--reading-heading-weight);
  color: var(--surface);
  margin: 0 0 12px;
  border: none;
  padding: 0;
  text-align: center;

  line-height: var(--reading-h2-leading);
}
.hp-final-cta-section .hp-final-cta-subtitle {
  font-size: var(--reading-size);
  color: rgba(255,255,255,0.7);
  margin: 0 auto 32px;
  max-width: 500px;
  line-height: var(--reading-leading);
}
.hp-final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hp-final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--action-family);
  font-size: var(--action-size-prominent);
  font-weight: 700;
  border-radius: var(--control-radius);
  text-decoration: none;
  transition: all 0.25s;

  line-height: var(--reading-caption-leading);
}
.hp-final-cta-primary {
  background: var(--brand-accent);
  color: var(--surface);
}
.hp-final-cta-primary:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 63, 92, 0.3);
}
.hp-final-cta-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--surface);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.hp-final-cta-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.hp-final-cta-disclaimer {
  font-size: var(--reading-caption-size);
  color: rgba(255,255,255,0.4);
  margin-top: 24px;

  line-height: var(--reading-caption-leading);
}

/* ─── Preparation Progress Bar ─── */
.hp-prep-progress-wrap {
  margin-top: 20px;
  padding: 16px;
  background: rgba(53, 83, 128, 0.03);
  border-radius: var(--component-radius);
  border: 1px solid var(--border);
}
.hp-prep-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: var(--reading-caption-size);
  font-weight: 600;
  color: var(--muted);

  line-height: var(--reading-caption-leading);
}
.hp-prep-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.hp-prep-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-accent), var(--status-online));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.hp-prep-complete-badge {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--online-surface-soft);
  border: 1.5px solid var(--online-border-soft);
  border-radius: var(--control-radius);
  text-align: center;
}
.hp-prep-complete-badge.visible {
  display: block;
}
.hp-prep-complete-badge span {
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  color: var(--status-success-text);

  line-height: var(--reading-caption-leading);
}
.hp-prep-complete-badge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  color: var(--brand-accent);
  font-family: var(--font-body);
  font-size: var(--reading-meta-size);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brand-accent);

  line-height: var(--reading-caption-leading);
}

/* ─── Interstitial CTA Strips ─── */
.hp-interstitial-cta {
  padding: 20px 0;
  background: linear-gradient(135deg, rgba(14, 42, 71, 0.04) 0%, rgba(53, 83, 128, 0.06) 100%);
  border-top: 1px solid rgba(53, 83, 128, 0.08);
  border-bottom: 1px solid rgba(53, 83, 128, 0.08);
}
.hp-interstitial-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hp-interstitial-text {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--heading-text);

  line-height: var(--reading-caption-leading);
}
.hp-interstitial-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hp-interstitial-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--action-family);
  font-size: var(--action-size-compact);
  font-weight: 700;
  border-radius: var(--control-radius);
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;

  line-height: var(--reading-caption-leading);
}
.hp-interstitial-primary {
  background: var(--brand-accent);
  color: var(--surface);
}
.hp-interstitial-primary:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 63, 92, 0.25);
}
.hp-interstitial-secondary {
  background: transparent;
  color: var(--heading-text);
  border: 1.5px solid rgba(53, 83, 128, 0.2);
}
.hp-interstitial-secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-1px);
}

/* ─── Responsive adjustments for new elements ─── */
@media (max-width: 768px) {
  .hp-reviews-grid { grid-template-columns: 1fr; }
  .hp-final-cta-buttons { flex-direction: column; align-items: center; }
  .hp-final-cta-btn { width: 100%; max-width: 320px; justify-content: center; }
  .hp-steps-cta { flex-direction: column; text-align: center; }
  .tg-chat-scenario-tabs { font-size: var(--chat-status-mobile-size);
}
  .hp-verify-stats-badge { flex-direction: column; text-align: center; }
  .hp-channel-micro-усилитель { flex-direction: column; gap: 4px; }
  .hp-interstitial-inner { flex-direction: column; text-align: center; gap: 12px; }
  .hp-interstitial-actions { justify-content: center; }
  .hp-interstitial-btn { font-size: var(--reading-meta-size); padding: 9px 16px;
  line-height: var(--reading-caption-leading);
}
  .hp-prep-complete-badge { text-align: center; }
  .hp-prep-complete-badge a { margin-left: 0; margin-top: 8px; display: inline-flex; }
}

/* Mobile/tablet layout hardening */
.hp-body,
.hp-body *,
.hp-body *::before,
.hp-body *::after {
  box-sizing: border-box;
}

html,
body[class~="hp-body"] {
  overflow-x: clip;
}

.hp-body img,
.hp-body video,
.hp-body canvas,
.hp-body svg {
  max-width: 100%;
}

body.hp-body .hp-trust-grid,
body.hp-body .hp-lawyers-grid,
body.hp-body .hp-reviews-grid {
  min-width: 0;
}

body.hp-body .hp-trust-card,
body.hp-body .hp-lawyer-card,
body.hp-body .hp-review-card {
  min-width: 0;
}

body.hp-body .hp-trust-text {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .hp-lawyer-link-profile,
  .hp-lawyer-link-ask,
  .hp-consult-action-read,
  .hp-consult-action-ask {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .hp-prep-checkbox {
    width: 32px;
    height: 32px;
    border-radius: var(--component-radius);
  }

  .hp-prep-checkbox:checked::after {
    width: 6px;
    height: 12px;
    top: 6px;
    left: 11px;
  }
}

@media (max-width: 1100px) {
  body.hp-body .hp-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  body.hp-body .hp-lawyers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .hp {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hp-hero-inner {
    gap: 28px;
  }

  .hp-hero-text {
    min-width: 0;
  }

  .hp-hero-live-badges {
    align-items: stretch;
  }

  body.hp-body .hp-trust-grid,
  body.hp-body .hp-reviews-grid {
    grid-template-columns: 1fr !important;
  }

  body.hp-body .hp-trust-card {
    width: 100%;
    align-items: flex-start;
  }

  .tg-chat-container {
    height: 520px;
  }

  .tg-chat-history {
    min-height: 0;
  }

  body.hp-body .hp-interstitial-actions,
  body.hp-body .hp-final-cta-buttons {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hp-hero {
    padding: 28px 0;
  }

  .hp-hero-text h1 {
    font-size: var(--reading-h1-size);

  line-height: var(--reading-h1-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}

  .hp-hero-live-badges {
    flex-direction: column;
  }

  .hp-hero-live-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tg-chat-scenario-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tg-scenario-tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 10px 12px;
  }

  .tg-chat-header {
    padding: 12px 14px;
  }

  .tg-chat-title {
    font-size: var(--chat-title-mobile-size);
  }

  .tg-chat-subtitle {
    font-size: var(--chat-status-mobile-size);
  }

  .tg-chat-history {
    padding: 14px;
    gap: 12px;
  }

  .tg-bubble {
    max-width: calc(100% - 38px);
    font-size: var(--chat-message-mobile-size);
  }

  .tg-bubble-row.client .tg-bubble {
    max-width: 86%;
  }

  body.hp-body .hp-lawyers-grid {
    grid-template-columns: 1fr !important;
  }

  body.hp-body .hp-lawyer-card {
    padding: var(--component-padding);
  }

  .hp-lawyer-card-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
  }

  .hp-lawyer-avatar-container {
    width: 72px;
    height: 72px;
  }

  .hp-lawyer-meta-tags {
    align-items: flex-start;
    flex-direction: column;
  }

  .hp-lawyer-verified-tag {
    max-width: 100%;
  }

  .hp-lawyer-actions-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  body.hp-body .hp-reviews-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hp-review-card {
    width: 100%;
    padding: var(--component-padding);
  }

  .hp-review-card-header,
  .hp-review-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hp-review-verified-badge {
    white-space: normal;
  }

  .hp-final-cta-btn,
  .hp-interstitial-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Main page CTA consistency with article sidebar consultant button */
body.hp-body .hp-steps-cta-btn,
body.hp-body .hp-interstitial-btn,
body.hp-body .hp-final-cta-btn {
  border-radius: var(--control-radius);
  font-weight: 700;
  min-height: 40px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

body.hp-body a.hp-steps-cta-btn,
body.hp-body a.hp-interstitial-primary,
body.hp-body a.hp-final-cta-primary {
  background: var(--brand-accent);
  color: var(--surface);
  border: 1px solid var(--brand-accent);
}

body.hp-body a.hp-steps-cta-btn:hover,
body.hp-body a.hp-interstitial-primary:hover,
body.hp-body a.hp-final-cta-primary:hover {
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: var(--surface);
  transform: none;
  box-shadow: none;
}

body.hp-body a.hp-interstitial-secondary,
body.hp-body a.hp-final-cta-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--secondary-action-border);
}

body.hp-body a.hp-interstitial-secondary:hover,
body.hp-body a.hp-final-cta-secondary:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

/* Legacy home components from style.css */
/* Homepage Styles */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.home-hero {
  background: linear-gradient(135deg, var(--heading-text) 0%, var(--hero-gradient-middle) 50%, var(--accent) 100%);
  color: var(--surface);
  border-radius: var(--component-radius);
  padding: 60px 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(14, 42, 71, 0.15);
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(204, 63, 92, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(53, 83, 128, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text-block h1 {
  color: var(--surface);
  font-size: var(--reading-h1-size);
  line-height: var(--reading-h1-leading);
  margin-bottom: 16px;
  font-weight: var(--reading-heading-weight);
  border-top: none;
  padding-top: 0;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: var(--reading-size);
  color: var(--border-strong);
  margin-bottom: 28px;
  line-height: var(--reading-leading);
  font-weight: 500;
}

.hero-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--component-radius);
  padding: 16px 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-phone-cta .cta-icon {
  background: var(--brand-accent);
  color: var(--surface);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(204, 63, 92, 0.4);
  animation: pulse-phone 2s infinite;
}

.hero-phone-cta .cta-info {
  display: flex;
  flex-direction: column;
}

.hero-phone-cta .cta-label {
  font-size: var(--reading-meta-size);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  font-weight: 700;

  line-height: var(--reading-caption-leading);
}

.hero-phone-cta .cta-number {
  font-family: var(--font-heading);
  font-size: var(--phone-display-size);
  font-weight: var(--reading-heading-weight);
  color: var(--surface);
  text-decoration: none;
  transition: color 0.2s ease;

  line-height: var(--reading-caption-leading);
}

.hero-phone-cta .cta-number:hover {
  color: var(--phone-hover-inverse);
}

/* Video Block */
.hero-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--video-surface);
  border-radius: var(--component-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.5s ease;
}

.hero-video-wrapper:hover .video-cover {
  transform: scale(1.03);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, rgba(9, 26, 44, 0.8), rgba(9, 26, 44, 0.2));
  color: var(--surface);
  padding: 20px;
  text-align: center;
  z-index: 2;
}

.play-btn-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--heading-text);
}

.play-btn-circle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 4px;
}

.hero-video-wrapper:hover .play-btn-circle {
  transform: scale(1.1);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.video-title {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  letter-spacing: 0.5px;

  line-height: var(--reading-caption-leading);
}

/* Sections General */
.home-section {
  margin-top: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: 48px;
  box-shadow: 0 4px 20px rgba(14, 42, 71, 0.015);
}

.home-section h2 {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  font-size: var(--reading-h2-size);
  position: relative;
  display: inline-block;
  margin-bottom: 24px;

  line-height: var(--reading-h2-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}

.section-intro-text {
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 32px;
}

/* Who is it for Cards - Glassmorphism & Micro-Icons */
.who-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.who-for-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  box-shadow: 0 8px 30px rgba(14, 42, 71, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.who-for-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(56, 189, 248, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.who-for-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(14, 42, 71, 0.06);
  border-color: rgba(53, 83, 128, 0.2);
  background: rgba(255, 255, 255, 0.85);
}

.who-for-card:hover::before {
  opacity: 1;
}

/* Crimson accent variation for who-for cards */
.who-for-card.accent-crimson::before {
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-gradient-end) 100%);
}

.who-for-card.accent-crimson .who-for-icon-wrapper {
  background: linear-gradient(135deg, rgba(204, 63, 92, 0.06) 0%, rgba(225, 92, 118, 0.1) 100%);
  color: var(--brand-accent);
}

.who-for-card.accent-crimson:hover .who-for-icon-wrapper {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-hover) 100%);
  color: var(--surface);
  box-shadow: 0 8px 20px rgba(204, 63, 92, 0.15);
}

.who-for-card.accent-crimson:hover {
  border-color: rgba(204, 63, 92, 0.2);
}

.who-for-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--component-radius);
  background: linear-gradient(135deg, rgba(53, 83, 128, 0.06) 0%, rgba(56, 189, 248, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all 0.3s ease;
}

.who-for-card:hover .who-for-icon-wrapper {
  background: linear-gradient(135deg, var(--accent) 0%, var(--icon-gradient-end) 100%);
  color: var(--surface);
  box-shadow: 0 8px 20px rgba(53, 83, 128, 0.15);
}

.who-for-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  transition: transform 0.3s ease;
}

/* Icon-specific micro-animations */
.who-for-card:hover .icon-search {
  animation: pulse-search 1.2s ease-in-out infinite;
}

.who-for-card:hover .icon-clock .clock-hands {
  transform-origin: 12px 12px;
  animation: spin-hands 2s linear infinite;
}

.who-for-card:hover .icon-shield-check .shield-check-path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: draw-check 0.4s ease-out forwards;
}

.who-for-card:hover .icon-book {
  transform: rotate(-10deg);
}

.who-for-card:hover .icon-git-branch {
  transform: scale(1.1) rotate(5deg);
}

.who-for-card:hover .icon-list .list-check-1 {
  animation: bounce-check 0.3s ease-out forwards;
}
.who-for-card:hover .icon-list .list-check-2 {
  animation: bounce-check 0.3s ease-out 0.08s forwards;
}
.who-for-card:hover .icon-list .list-check-3 {
  animation: bounce-check 0.3s ease-out 0.16s forwards;
}

@keyframes bounce-check {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-search {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes spin-hands {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.who-for-card h3 {
  font-size: var(--reading-h3-size);
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--heading-text);
  border-top: none;
  padding-top: 0;
  font-weight: var(--reading-heading-weight);

  line-height: var(--reading-h3-leading);
  font-family: var(--font-heading);
}

.who-for-card p {
  margin: 0;
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
}

/* Urgent help box - Glassmorphism Alert Block */
.urgent-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--component-radius);
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 36px;
  box-shadow: 0 10px 30px rgba(204, 63, 92, 0.02);
}

.urgent-icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.urgent-icon-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(204, 63, 92, 0.08);
  border: 1px solid rgba(204, 63, 92, 0.15);
  animation: radar-pulse 2.2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.urgent-icon {
  background: var(--urgent-icon-surface);
  color: var(--brand-accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(204, 63, 92, 0.1);
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.urgent-content h4 {
  font-family: var(--font-heading);
  color: var(--heading-text);
  font-size: var(--reading-h4-size);
  margin-bottom: 8px;
  font-weight: var(--reading-heading-weight);

  line-height: var(--reading-h3-leading);
}

.urgent-content p {
  margin: 0;
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
}

/* Info theme variation for the alert box */
.urgent-box.info-theme {
  border-left-color: var(--accent);
  box-shadow: 0 10px 30px rgba(53, 83, 128, 0.02);
  background: rgba(244, 247, 250, 0.65);
}

.urgent-box.info-theme .urgent-icon-pulse {
  background: rgba(53, 83, 128, 0.06);
  border-color: rgba(53, 83, 128, 0.15);
}

.urgent-box.info-theme .urgent-icon {
  background: var(--topic-surface);
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(53, 83, 128, 0.1);
}

/* Channels Deck */
.channels-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.channel-card {
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
}

.channel-card-hotline {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-subtle) 100%);
}

.channel-card-chat {
  background: linear-gradient(135deg, var(--surface) 0%, var(--card-surface-soft) 100%);
  border-color: rgba(53, 83, 128, 0.15);
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-inset);
  color: var(--muted);
  font-size: var(--reading-meta-size);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--control-radius);
  align-self: flex-start;
  margin-bottom: 20px;

  line-height: var(--reading-caption-leading);
}

.channel-badge-hotline {
  background: var(--brand-surface-soft);
  color: var(--brand-accent);
}

.channel-badge-chat {
  background: var(--chat-surface);
  color: var(--accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.channel-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  color: var(--heading-text);
  margin-bottom: 16px;
  font-weight: var(--reading-heading-weight);

  line-height: var(--reading-h3-leading);
}

.channel-desc {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin-bottom: 24px;
}

.phone-list-box {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.phone-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.phone-item:hover {
  border-color: var(--accent);
}

.phone-item-info {
  display: flex;
  flex-direction: column;
}

.phone-item-label {
  font-size: var(--reading-meta-size);
  color: var(--muted);
  margin-bottom: 4px;

  line-height: var(--reading-caption-leading);
}

.phone-item-link {
  font-family: var(--font-heading);
  font-size: var(--phone-display-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  text-decoration: none;

  line-height: var(--reading-caption-leading);
}

.phone-item-link:hover {
  color: var(--brand-accent);
}

.phone-call-btn {
  background: var(--accent);
  color: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.phone-call-btn:hover {
  background: var(--brand-accent);
  transform: scale(1.05);
}

.hotline-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hotline-features li {
  font-size: var(--reading-size);
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text);
  line-height: var(--reading-leading);
}

.hotline-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--status-success);
  font-weight: bold;
}

/* Chat Form Component */
.mock-chat-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.015);
}

.chat-console-header {
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--reading-caption-size);

  line-height: var(--reading-caption-leading);
}

.chat-bot-status {
  display: flex;
  flex-direction: column;
}

.chat-bot-name {
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--heading-text);
  line-height: var(--reading-caption-leading);
}

.chat-bot-presence {
  font-size: var(--reading-meta-size);
  color: var(--status-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;

  line-height: var(--reading-caption-leading);
}

.chat-console-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  max-height: 220px;
  overflow-y: auto;
  background: var(--chat-surface-soft);
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
}

.chat-bubble-bot {
  background: var(--chat-surface);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble-user {
  background: var(--accent);
  color: var(--surface);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-console-input-area {
  border-top: 1px solid var(--border);
  padding: 12px;
  background: var(--surface);
}

.chat-form {
  display: grid;
  gap: 8px;
}

.chat-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chat-submit-btn {
  background: var(--brand-accent);
  color: var(--surface);
  border: none;
  border-radius: var(--control-radius);
  padding: 10px 16px;
  font-size: var(--reading-caption-size);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  line-height: var(--reading-caption-leading);
}

.chat-submit-btn:hover {
  background: var(--brand-accent-hover);
}

.success-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  height: 100%;
}

.success-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--status-online-bg);
  color: var(--status-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--action-icon-size);
  margin-bottom: 12px;
  border: 1px solid var(--status-success-bg);

  line-height: var(--reading-caption-leading);
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  min-width: 280px;
}
/* Category cards grid */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-category-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(14, 42, 71, 0.015), 0 1px 3px rgba(14, 42, 71, 0.01);
  overflow: hidden;
  cursor: pointer;
}

.home-category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scaleX(0.15);
  transform-origin: left;
}

/* Category Accent lines */
.home-category-card.card-family::after { background: var(--brand-accent); }
.home-category-card.card-realty::after { background: var(--practice-realty); }
.home-category-card.card-work::after { background: var(--accent); }
.home-category-card.card-finance::after { background: var(--status-success); }
.home-category-card.card-justice::after { background: var(--practice-justice); }

/* Premium Glow Hover Effects */
.home-category-card.card-family:hover {
  transform: translateY(-6px);
  border-color: rgba(204, 63, 92, 0.15);
  box-shadow: 0 20px 38px rgba(204, 63, 92, 0.05), 0 5px 15px rgba(204, 63, 92, 0.02);
}

.home-category-card.card-realty:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 137, 0, 0.15);
  box-shadow: 0 20px 38px rgba(181, 137, 0, 0.05), 0 5px 15px rgba(181, 137, 0, 0.02);
}

.home-category-card.card-work:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 83, 128, 0.15);
  box-shadow: 0 20px 38px rgba(53, 83, 128, 0.05), 0 5px 15px rgba(53, 83, 128, 0.02);
}

.home-category-card.card-finance:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.15);
  box-shadow: 0 20px 38px rgba(16, 185, 129, 0.05), 0 5px 15px rgba(16, 185, 129, 0.02);
}

.home-category-card.card-justice:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 20px 38px rgba(139, 92, 246, 0.05), 0 5px 15px rgba(139, 92, 246, 0.02);
}

.home-category-card:hover::after {
  transform: scaleX(1);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.category-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--component-radius);
  background: var(--chat-surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-category-card.card-family .category-card-icon { background: var(--brand-surface-soft); color: var(--brand-accent); }
.home-category-card.card-realty .category-card-icon { background: var(--practice-realty-surface); color: var(--practice-realty); }
.home-category-card.card-work .category-card-icon { background: var(--chat-surface); color: var(--accent); }
.home-category-card.card-finance .category-card-icon { background: var(--status-online-bg); color: var(--status-success); }
.home-category-card.card-justice .category-card-icon { background: var(--practice-justice-surface); color: var(--practice-justice); }

.home-category-card:hover .category-card-icon {
  transform: scale(1.1) rotate(4deg);
}

.home-category-card.card-family:hover .category-card-icon { background: var(--brand-accent); color: var(--surface); }
.home-category-card.card-realty:hover .category-card-icon { background: var(--practice-realty); color: var(--surface); }
.home-category-card.card-work:hover .category-card-icon { background: var(--accent); color: var(--surface); }
.home-category-card.card-finance:hover .category-card-icon { background: var(--status-success); color: var(--surface); }
.home-category-card.card-justice:hover .category-card-icon { background: var(--practice-justice); color: var(--surface); }

/* Micro-animations for SVGs inside cards */
.home-category-card .svg-icon * {
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Family SVG anim */
.home-category-card.card-family:hover .dec-circle {
  transform: scale(1.25);
  fill: currentColor;
  fill-opacity: 0.2;
}

/* Realty SVG anim (windows glow) */
.home-category-card.card-realty:hover .dec-window {
  fill: currentColor;
  fill-opacity: 0.3;
}

/* Work SVG anim (wheels spin) */
@keyframes spin-wheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.home-category-card.card-work:hover .dec-wheel {
  animation: spin-wheel 2s linear infinite;
}

/* Finance SVG anim (circle pulse/dash) */
.home-category-card.card-finance:hover .dec-circle {
  stroke-dasharray: 4 2;
  transform: rotate(45deg);
}

/* Justice SVG anim (chains swing) */
@keyframes swing-chain {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}
.home-category-card.card-justice:hover .dec-chain {
  transform-origin: top center;
  animation: swing-chain 1.2s ease-in-out infinite;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: var(--reading-h3-size);
  font-weight: var(--reading-heading-weight);
  color: var(--heading-text);
  margin: 0;
  line-height: var(--reading-h3-leading);
  transition: color 0.2s ease;
}

.home-category-card:hover .category-card-title {
  color: var(--accent-hover);
}

.category-card-desc {
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--muted);
  margin: 0;
}

/* Benefits cards list */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.benefit-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  transition: all 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.benefit-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--status-online-bg);
  color: var(--status-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--action-icon-size);
  margin-bottom: 16px;

  line-height: var(--reading-caption-leading);
}

.benefit-card h3 {
  font-size: var(--reading-h3-size);
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--heading-text);
  border-top: none;
  padding-top: 0;

  line-height: var(--reading-h3-leading);
  font-family: var(--font-heading);
  font-weight: var(--reading-heading-weight);
}

.benefit-card p {
  margin: 0;
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
}

/* Steps Timeline */
.step-timeline-container {
  margin: 36px 0 12px;
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  position: relative;
}

@media (min-width: 1025px) {
  .timeline-steps-grid::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border);
    z-index: 1;
  }
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.timeline-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--reading-caption-size);
  margin-bottom: 12px;
  transition: all 0.25s ease;

  line-height: var(--reading-caption-leading);
}

.timeline-step:hover .timeline-step-num {
  border-color: var(--accent);
  color: var(--surface);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 83, 128, 0.15);
}

.timeline-step-title {
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--heading-text);
  margin-bottom: 4px;
  line-height: var(--reading-caption-leading);
}

.timeline-step-desc {
  font-size: var(--reading-size);
  color: var(--muted);
  line-height: var(--reading-leading);
  margin: 0;
}

/* Documents Prep Helper Widget */
.doc-prep-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.01);
}

.doc-prep-tabs {
  display: flex;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.doc-prep-tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--reading-caption-size);
  font-weight: 700;
  color: var(--muted);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;

  line-height: var(--reading-caption-leading);
}

.doc-prep-tab:hover {
  color: var(--accent);
  background: var(--surface-inset);
}

.doc-prep-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

.doc-prep-content-panel {
  padding: 32px;
  display: none;
}

.doc-prep-content-panel.active {
  display: block;
}

.doc-prep-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.doc-prep-item {
  background: var(--card-surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--component-radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.doc-prep-item-icon {
  color: var(--brand-accent);
  flex-shrink: 0;
}

.doc-prep-item-text {
  font-size: var(--reading-size);
  color: var(--text);
  line-height: var(--reading-leading);
}


/* Keyframes animations */
@keyframes pulse-phone {
  0% {
    box-shadow: 0 0 0 0 rgba(204, 63, 92, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(204, 63, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(204, 63, 92, 0);
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timeline-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .who-for-grid,
  .channels-grid,
  .home-category-grid,
  .benefits-grid,
  .doc-prep-list {
    grid-template-columns: 1fr;
  }

  .timeline-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-section {
    padding: 24px;
  }

  .doc-prep-content-panel {
    padding: 16px;
  }

  .home-hero {
    padding: 40px 20px;
  }
}

/* Document preparation tabs horizontal scroll fade indicator */
.doc-prep-tabs-container {
  position: relative;
  width: 100%;
}

.doc-prep-tabs-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
  pointer-events: none;
  z-index: 5;
}

/* Abstract Shield Layout and Animations */
.abstract-shield-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .abstract-shield-wrapper {
    margin-left: auto;
    margin-right: auto;
  }
}

.abstract-shield-container {
  position: relative;
  width: 360px;
  height: 360px;
}

.shield-layer {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  mix-blend-mode: screen;
  transition: all 0.5s ease;
}

.layer-bg {
  width: 330px;
  height: 330px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(53, 83, 128, 0.2) 100%);
  top: 15px;
  left: 15px;
  animation: float-shape 10s ease-in-out infinite alternate;
}

.layer-middle {
  width: 270px;
  height: 270px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(53, 83, 128, 0.3) 100%);
  top: 45px;
  left: 45px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: float-shape 7s ease-in-out infinite alternate-reverse;
}

.layer-front {
  width: 195px;
  height: 195px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  top: 82.5px;
  left: 82.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 40% 60% 50% 50% / 50% 50% 50% 60%;
  animation: float-shape 5s ease-in-out infinite alternate;
}

.shield-scale-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.75);
  z-index: 10;
  pointer-events: none;
  animation: pulse-icon 4s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes float-shape {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translateY(0) rotate(0deg);
  }
  50% {
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    transform: translateY(-8px) rotate(3deg);
  }
  100% {
    border-radius: 70% 30% 50% 50% / 30% 50% 50% 70%;
    transform: translateY(4px) rotate(-3deg);
  }
}

/* Scales Variant 1: Classic (Default on index.html) */
@keyframes classic-swing-left {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes classic-swing-right {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(3px) rotate(-1deg); }
}
.scales-classic .left-bowl-group {
  animation: classic-swing-left 4s ease-in-out infinite;
  transform-origin: 20px 30px;
}
.scales-classic .right-bowl-group {
  animation: classic-swing-right 4s ease-in-out infinite;
  transform-origin: 80px 30px;
}

/* Shared component sizing; composition variants live in consultation-layout.css. */
.hp-card-header { min-width: 0; }
@media (max-width:767px) { .hp-hero-live-badges { flex-wrap: wrap; } }

[data-demo-chat] { scroll-margin-top: 120px; }

.hp-card-action-link:hover { color: var(--brand-accent); border-bottom-color: transparent; }

/* Shared compact map of situations, independent of any page topic. */
.hp-topic-map-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-md); }
.hp-topic-map-situation { margin: 0; color: var(--text); font-size: var(--reading-size); line-height: var(--reading-leading); }
.hp-topic-map-discussion { margin-top: var(--space-sm); padding: var(--space-sm); background: var(--bg); border-radius: var(--control-radius); }
.hp-topic-map-discussion strong { display: block; margin-bottom: var(--space-xs); color: var(--heading-text); font-size: var(--reading-caption-size); }
.hp-topic-map-discussion p { margin: 0; font-size: var(--reading-size); line-height: var(--reading-leading); }
.hp-topic-map-link { margin-top: auto; padding-top: var(--space-sm); }
.hp-topic-map-notice { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-md); padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--component-radius); background: var(--bg); }
.hp-topic-map-notice > svg { flex-shrink: 0; color: var(--accent); }
.hp-topic-map-notice h3 { margin: 0 0 var(--space-xs); font-size: var(--reading-h3-size); }
.hp-topic-map-notice p { margin: 0 0 var(--space-sm); }
.hp-topic-map-contact { display: flex; align-items: center; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); text-align: center; }
.hp-topic-map-contact p { max-width: 720px; margin: 0; color: var(--muted); }
@media(max-width:767px) { .hp-topic-map-grid { grid-template-columns: minmax(0,1fr); } }

/* Secondary reading links and official routes share the landing spacing scale. */
.hp-topic-map-secondary { margin-top: var(--space-xs); }
.hp-resource-card > .hp-card-action-link { align-self: flex-start; margin-top: auto; padding-top: var(--space-sm); }
.hp-resource-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
