/* ==========================================================================
   Blocta Design System - Option 02: Cyber Teal & Forest (The Integration Hub)
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Palette - Cyber Teal & Forest */
  --bg-page: #051313;
  --bg-surface: #0D2826;
  --bg-subtle: #164640;
  --bg-card: #0D2826;
  --bg-card-hover: #113532;
  --bg-glass: rgba(5, 19, 19, 0.88);
  --bg-input: #081c1b;

  --border-subtle: #113532;
  --border-card: #164640;
  --border-strong: #236b62;
  --border-focus: #00F5D4;

  --text-main: #E0F2F1;
  --text-body: #b8dbd9;
  --text-muted: #84b5b2;
  --text-dim: #5c8f8c;

  --accent-primary: #00F5D4;
  --accent-primary-hover: #26ffe2;
  --accent-blue: #00F5D4;
  --accent-blue-hover: #52ffe8;
  --accent-soft-blue: rgba(0, 245, 212, 0.12);

  --accent-success: #00F5D4;
  --accent-error: #ff5c7c;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 14px 34px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 245, 212, 0.08);
  --shadow-image: 0 18px 42px -12px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 245, 212, 0.2);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 245, 212, 0.10), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(22, 70, 64, 0.35), transparent);
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Nav */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 6px currentColor);
  animation: bloctaLogoColorCycle 20s infinite ease-in-out;
}

@keyframes bloctaLogoColorCycle {
  0%, 20% {
    color: #00F5D4;
  }
  25%, 45% {
    color: #FF2E93;
  }
  50%, 70% {
    color: #00BBF9;
  }
  75%, 95% {
    color: #10F587;
  }
  100% {
    color: #00F5D4;
  }
}

.brand-name {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  display: inline-flex;
}

/* Mobile Nav Toggle */
.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 0.5rem;
  cursor: pointer;
}

.btn-mobile-toggle svg {
  width: 20px;
  height: 20px;
}

.btn-mobile-toggle .icon-close {
  display: none;
}

.btn-mobile-toggle.is-active .icon-menu {
  display: none;
}

.btn-mobile-toggle.is-active .icon-close {
  display: block;
}

.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
}

.mobile-nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.btn-mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* Main Content Container */
.main-content {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 7rem;
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
}

/* Hero Section (Home) */
.hero-split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  padding: 1rem 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
}

.editorial-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  border: 1px solid var(--border-card);
  background: var(--bg-surface);
  line-height: 0;
}

.editorial-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.editorial-img:hover {
  transform: scale(1.015);
}

/* Page Hero (Services, About, Contact) */
.page-hero {
  max-width: 840px;
  margin: 0 auto 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.page-title {
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.page-subtitle {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 660px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.625rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #051313;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 245, 212, 0.38);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Metrics Grid */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.metric-icon {
  width: 22px;
  height: 22px;
  color: var(--text-main);
}

.metric-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.metric-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* General Section Containers */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 650px;
}

/* Services Preview Grid (Home Page) */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.service-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.service-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-svg {
  width: 24px;
  height: 24px;
  color: var(--text-main);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card-link:hover {
  gap: 0.75rem;
  color: var(--accent-blue-hover);
}

.link-arrow {
  width: 15px;
  height: 15px;
}

/* Steps Grid (Home Page) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: var(--shadow-card);
}

.step-index {
  font-size: 0.8125rem;
  color: var(--accent-blue);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-heading {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.step-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Featured Visual Showcase Section */
.visual-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.showcase-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.2;
}

.showcase-body {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Detailed Services List (Services Page) */
.detailed-services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detailed-service-item {
  scroll-margin-top: 6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal);
}

.detailed-service-item:hover {
  border-color: var(--border-strong);
}

.service-meta-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.service-item-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item-icon svg {
  width: 26px;
  height: 26px;
  color: var(--text-main);
}

.service-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-heading {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.service-tagline {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-weight: 500;
}

.service-summary {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 900px;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.125rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.5;
}

.feature-check {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Accordion (What to Expect) */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.accordion-item.is-open {
  border-color: var(--border-strong);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
  color: var(--text-main);
}

.accordion-content {
  display: none;
  padding: 0 1.75rem 1.5rem;
}

.accordion-item.is-open .accordion-content {
  display: block;
}

.accordion-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.about-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.about-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.about-card-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.value-item-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.value-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--text-main);
}

.value-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
}

.value-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison Table */
.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th {
  padding: 1.25rem 1.75rem;
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-card);
}

.comparison-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.dim-name {
  font-weight: 600;
  color: var(--text-main);
  width: 25%;
}

.trad-col {
  color: var(--text-muted);
  width: 37.5%;
}

.blocta-col {
  color: var(--text-main);
  font-weight: 600;
  width: 37.5%;
  background: rgba(0, 245, 212, 0.07);
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-info-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.contact-info-subtext {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.contact-detail-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-main);
}

.detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.detail-value {
  font-size: 0.9375rem;
  color: var(--text-main);
  font-weight: 500;
}

.detail-value-link {
  font-size: 1.0625rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.detail-value-link:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

/* Contact Form Panel */
.form-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.form-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.field-input, .field-select, .field-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.8125rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.18);
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0F2F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.privacy-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* CTA Banner Section */
.cta-banner-section {
  width: 100%;
}

.cta-banner-box {
  background: linear-gradient(135deg, #0D2826 0%, #164640 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 245, 212, 0.08);
  color: var(--text-main);
}

.cta-banner-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.cta-banner-subtitle {
  font-size: 1.0625rem;
  color: var(--text-body);
  max-width: 620px;
  line-height: 1.65;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-banner-actions .btn-primary {
  background-color: var(--accent-primary);
  color: #051313;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.25);
}

.cta-banner-actions .btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  box-shadow: 0 6px 18px rgba(0, 245, 212, 0.38);
}

.cta-banner-actions .btn-secondary {
  background-color: var(--bg-page);
  color: var(--text-main);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.cta-banner-actions .btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--accent-primary);
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-card);
  background: var(--bg-surface);
  padding: 5rem 0 3rem;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

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

.footer-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-item-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.footer-email-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-email-link:hover {
  color: var(--accent-blue);
}

.footer-sla {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-tag {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.footer-divider {
  color: var(--border-strong);
  font-size: 0.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.toast-success {
  border-left: 4px solid var(--accent-success);
}

.toast.toast-success .toast-icon {
  color: var(--accent-success);
}

.toast.toast-error {
  border-left: 4px solid var(--accent-error);
}

.toast.toast-error .toast-icon {
  color: var(--accent-error);
}

.toast.toast-info .toast-icon {
  color: var(--text-main);
}

.toast-message {
  font-size: 0.9375rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   Unique Architectural Sections & Financial Data Visualizations
   ========================================================================== */

/* 1. Key Outcomes Ribbon (Border-Divided Stat Strip, No Cards) */
.outcomes-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  padding: 2.25rem 0;
  gap: 2rem;
}

.outcome-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-subtle);
}

.outcome-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.outcome-value {
  font-size: 2.375rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.outcome-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.outcome-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 2. Editorial Four-Pillar Split Matrix (Home Page) */
.pillars-split-matrix {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: start;
}

.pillar-editorial-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-card);
}

.pillar-editorial-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--border-card);
  text-decoration: none;
  transition: padding-left var(--transition-fast), border-color var(--transition-fast);
}

.pillar-editorial-row:hover {
  padding-left: 0.5rem;
  border-bottom-color: var(--accent-primary);
}

.pillar-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pillar-row-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.pillar-row-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pillar-row-arrow {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  align-self: center;
  transition: transform var(--transition-fast);
}

.pillar-editorial-row:hover .pillar-row-arrow {
  transform: translateX(4px);
}

/* 3. Connected Horizontal Timeline Track (Home Page Process) */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  padding-top: 2rem;
  border-top: 2px solid var(--border-card);
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: -2.45rem;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

/* 4. Services Analytical Pillar Sections & Charts */
.service-pillar-section {
  scroll-margin-top: 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-card);
}

.service-pillar-section:first-of-type {
  padding-top: 1rem;
}

.pillar-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar-divider-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
}

.pillar-divider-item {
  scroll-margin-top: 6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pillar-divider-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pillar-divider-title {
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--text-main);
}

.pillar-divider-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.pillar-divider-metric {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-primary);
  white-space: nowrap;
  font-weight: 600;
}

/* Data Visualization Panel (Charts & Graphs) */
.chart-panel {
  background: linear-gradient(160deg, rgba(13, 40, 38, 0.9) 0%, rgba(5, 19, 19, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.chart-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
}

.chart-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.chart-highlight-stat {
  text-align: right;
}

.chart-highlight-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.1;
}

.chart-highlight-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-svg-wrap {
  width: 100%;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Horizontal Bar Chart Rows */
.hbar-group {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.hbar-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hbar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-body);
  font-weight: 500;
}

.hbar-meta-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

.hbar-meta-val.is-accent {
  color: var(--accent-primary);
}

.hbar-track {
  width: 100%;
  height: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.hbar-fill.fill-muted {
  background: #35635e;
}

.hbar-fill.fill-secondary {
  background: #236b62;
}

.hbar-fill.fill-accent {
  background: linear-gradient(90deg, #164640 0%, #00F5D4 100%);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.4);
}

.chart-footer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.chart-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chart-mini-val {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.chart-mini-val.is-teal {
  color: var(--accent-primary);
}

.chart-mini-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Donut Chart Layout (Insurance Estate Extraction) */
.donut-layout {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 1.75rem;
  align-items: center;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.donut-legend-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.donut-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 4px;
  flex-shrink: 0;
}

.donut-legend-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.donut-legend-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Principles Architectural Strip (About Page - No Cards) */
.principles-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.principle-col {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.principle-col:first-child {
  padding-left: 0;
}

.principle-col:last-child {
  border-right: none;
  padding-right: 0;
}

.principle-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

/* 5. Interactive Corporate Tax & Wealth Estimator */
.estimator-panel {
  background: linear-gradient(145deg, #0D2826 0%, #051313 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.estimator-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.estimator-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.estimator-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.estimator-live-profit {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.estimator-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.estimator-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-page);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
  cursor: pointer;
}

.estimator-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-page);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
  cursor: pointer;
}

.estimator-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.estimator-results {
  background: rgba(5, 19, 19, 0.75);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.estimator-primary-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.estimator-result-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.estimator-result-big {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.estimator-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.estimator-sec-num {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
}

/* 6. "Who We Serve" Architectural 2x2 Sector Matrix (No Boxy Cards) */
.sector-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.sector-cell {
  padding: 2.25rem;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sector-cell:nth-child(2n) {
  border-right: none;
}

.sector-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.sector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sector-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.sector-rev-range {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.sector-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.sector-focus-line {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 0.35rem;
}

/* 7. Client Case Studies Split Ledger (No Cards) */
.case-ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-card);
}

.case-ledger-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 2.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-card);
  align-items: center;
}

.case-entity {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
}

.case-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.case-strategy {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.case-outcome-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-outcome-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.case-outcome-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* 8. Transparent Engagement & Fee Structure Strip (Services Page) */
.fee-model-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.fee-model-col {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fee-model-col:first-child {
  padding-left: 0;
}

.fee-model-col:last-child {
  border-right: none;
  padding-right: 0;
}

.fee-model-type {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.fee-model-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-main);
}

.fee-model-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* 9. Multidisciplinary Advisory Credentials & Tech Ecosystem (About Page) */
.credentials-ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-card);
}

.credential-row {
  display: grid;
  grid-template-columns: 110px 1.1fr 1.5fr;
  gap: 2rem;
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--border-card);
  align-items: baseline;
}

.credential-code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.credential-role {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
}

.credential-scope {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
}

.ecosystem-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ecosystem-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ecosystem-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.footer-regulatory-note {
  font-size: 0.78125rem;
  color: var(--text-dim);
  line-height: 1.55;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-split-layout,
  .visual-showcase-grid,
  .contact-layout,
  .pillars-split-matrix,
  .service-pillar-section,
  .estimator-panel,
  .case-ledger-row,
  .credential-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .case-outcome-box {
    text-align: left;
  }
  .outcomes-ribbon,
  .timeline-track,
  .principles-strip,
  .sector-matrix,
  .fee-model-strip {
    grid-template-columns: 1fr 1fr;
  }
  .outcome-stat:nth-child(2),
  .principle-col:nth-child(2) {
    border-right: none;
  }
  .principle-col,
  .fee-model-col {
    padding: 1.5rem 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop, .header-cta {
    display: none;
  }
  .btn-mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.375rem;
  }
  .page-title {
    font-size: 2.25rem;
  }
  .estimator-panel {
    padding: 1.75rem;
  }
  .outcomes-ribbon,
  .timeline-track,
  .principles-strip,
  .sector-matrix,
  .fee-model-strip,
  .estimator-secondary-grid,
  .donut-layout,
  .chart-footer-metrics,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .outcome-stat,
  .principle-col,
  .sector-cell,
  .fee-model-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
  }
  .outcome-stat:last-child,
  .principle-col:last-child,
  .sector-cell:last-child,
  .fee-model-col:last-child {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* ==========================================================================
   10. Hero 4-Pillar Command Center, Switching Protocol, Blueprint & Modals
   ========================================================================== */

/* Dark-Teal Architectural Grade on Secondary Editorial Photos */
.editorial-image-frame {
  position: relative;
}

.editorial-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(5, 19, 19, 0.35) 0%, rgba(0, 245, 212, 0.08) 100%);
  pointer-events: none;
}

.editorial-img {
  filter: brightness(0.84) contrast(1.06) saturate(0.88);
}

/* Hero 4-Pillar Executive Wealth & Tax Command Center */
.hero-command-panel {
  background: linear-gradient(155deg, #0D2826 0%, #051313 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 245, 212, 0.09);
}

.cmd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.cmd-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.cmd-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  white-space: nowrap;
}

.cmd-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.cmd-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cmd-metric-box {
  background: rgba(5, 19, 19, 0.65);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cmd-metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cmd-metric-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

.cmd-metric-val.is-teal {
  color: var(--accent-primary);
}

.cmd-metric-delta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
}

.cmd-chart-box {
  background: rgba(5, 19, 19, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cmd-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cmd-chart-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
}

.cmd-chart-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.cmd-svg {
  width: 100%;
  height: auto;
  display: block;
}

.cmd-pillars-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.cmd-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-body);
}

.cmd-pillar-chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
}

/* Zero-Friction Accountant Switching Protocol */
.switch-protocol-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.switch-protocol-col {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.switch-protocol-col:first-child {
  padding-left: 0;
}

.switch-protocol-col:last-child {
  border-right: none;
  padding-right: 0;
}

.switch-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.switch-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.switch-sla {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.switch-col-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-main);
}

.switch-col-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* 2026 Canadian Corporate Surplus & CDA Blueprint Lead Magnet */
.blueprint-capture-panel {
  background: linear-gradient(145deg, #0D2826 0%, #051313 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.blueprint-copy {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.blueprint-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blueprint-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
}

.blueprint-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

.blueprint-check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
}

.blueprint-check-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.blueprint-form-box {
  background: rgba(5, 19, 19, 0.82);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.blueprint-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-full {
  width: 100%;
}

.blueprint-privacy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sleek Glassmorphic Modals (GHL Calendar & 2026 Blueprint) */
body.modal-open {
  overflow: hidden;
}

.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.glass-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glass-modal-dialog {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: linear-gradient(160deg, #0D2826 0%, #051313 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal), 0 0 36px rgba(0, 245, 212, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.glass-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-card);
}

.glass-modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.glass-modal-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.glass-modal-close {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.glass-modal-close:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.glass-modal-close svg {
  width: 18px;
  height: 18px;
}

.glass-modal-body {
  overflow-y: auto;
  padding: 2rem;
}

.glass-modal-body.is-iframe-wrap {
  padding: 0;
  height: 640px;
  background: #051313;
}

.ghl-calendar-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

.bp-exec-item {
  background: rgba(5, 19, 19, 0.65);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bp-exec-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.bp-exec-text {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

.bp-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.header-mobile-book {
  display: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

.mobile-nav-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 992px) {
  .service-pillar-section .pillar-narrative {
    order: -1;
  }
  .switch-protocol-strip,
  .blueprint-capture-panel,
  .bp-exec-grid {
    grid-template-columns: 1fr;
  }
  .switch-protocol-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
  }
  .switch-protocol-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.25rem;
  }
  .main-content {
    padding: 2.25rem 1.25rem 5rem;
    gap: 4rem;
  }
  .header-mobile-book {
    display: inline-flex;
  }
  .mobile-nav-cta-row {
    grid-template-columns: 1fr;
  }
  .timeline-track {
    border-top: none;
    border-left: 2px solid var(--border-card);
    padding-top: 0;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    gap: 1.75rem;
  }
  .timeline-step::before {
    top: 0.35rem;
    left: -1.92rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.8125rem;
  }
  .cmd-metrics-grid {
    grid-template-columns: 1fr;
  }
  .blueprint-capture-panel {
    padding: 1.75rem;
  }
  .glass-modal-body.is-iframe-wrap {
    height: 520px;
  }
}

/* Editorial Multi-Image Galleries Across All Pages */
.editorial-dual-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.editorial-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.editorial-figure {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.editorial-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.editorial-caption strong {
  color: var(--text-main);
  font-weight: 600;
}

.blueprint-preview-thumb {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
}

.story-inline-frame {
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 992px) {
  .editorial-triptych {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .editorial-sub-row {
    grid-template-columns: 1fr;
  }
}

.blueprint-direct-access {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Temporarily hide secondary forms/calendar booking widgets collecting email/phone during A2P review */
#blueprint-lead-form,
#contact-inquiry-form,
.js-open-ghl-calendar,
#ghl-booking-modal {
  display: none !important;
}

/* Legal Pages (Privacy Policy & Terms and Conditions) */
.legal-document-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  box-shadow: var(--shadow-card);
  max-width: 960px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.legal-text {
  font-size: 0.96875rem;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 1.25rem;
  color: var(--text-body);
  font-size: 0.96875rem;
  line-height: 1.65;
}

.legal-list strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .legal-document-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ==========================================================================
   11. Minimalist Hero Section with Looping Background Slideshow
   ========================================================================== */
.hero-slideshow-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 5rem 4rem;
  box-shadow: var(--shadow-image);
  background-color: var(--bg-page);
}

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  animation: heroSlideshowLoop 24s infinite ease-in-out;
  will-change: opacity, transform;
}

.hero-bg-slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-bg-slide:nth-child(2) {
  animation-delay: 6s;
}
.hero-bg-slide:nth-child(3) {
  animation-delay: 12s;
}
.hero-bg-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes heroSlideshowLoop {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  31% {
    opacity: 0;
    transform: scale(1.07);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 19, 19, 0.92) 0%,
    rgba(5, 19, 19, 0.78) 52%,
    rgba(13, 40, 38, 0.52) 100%
  );
  z-index: 1;
}

.hero-stage-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.hero-slideshow-stage .hero-title {
  font-size: 3.375rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-main);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.hero-slideshow-stage .hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 560px;
}

@media (max-width: 768px) {
  .hero-slideshow-stage {
    min-height: 400px;
    padding: 3.25rem 1.75rem;
  }
  .hero-slideshow-stage .hero-title {
    font-size: 2.25rem;
  }
  .hero-slideshow-stage .hero-subtitle {
    font-size: 1.0625rem;
  }
}

/* ==========================================================================
   Accounting Engagement Letter Page (/engagement)
   ========================================================================== */

.engagement-page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.engagement-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-card);
}

.engagement-toolbar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.engagement-toolbar-info svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.engagement-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Clean White Contract Paper Sheet matching the PDF */
.engagement-paper {
  background: #ffffff;
  color: #182230;
  border-radius: 12px;
  padding: 3.75rem 4.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.965rem;
  line-height: 1.65;
}

.engagement-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.engagement-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.engagement-doc-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.engagement-brand-main {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111827;
  line-height: 1.1;
}

.engagement-brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c81e68;
  margin-top: 0.2rem;
}

.engagement-doc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6b7280;
  text-transform: uppercase;
}

.engagement-accent-bar {
  height: 3px;
  background: #c81e68;
  margin-bottom: 2rem;
}

.engagement-meta-block {
  margin-bottom: 1.75rem;
  color: #1f2937;
}

.engagement-date-line {
  margin-bottom: 1rem;
  font-weight: 500;
}

.engagement-recipient-block p {
  margin: 0.15rem 0;
}

.engagement-field-val {
  color: #0f172a;
}

.engagement-title-block {
  margin: 1.75rem 0 1.5rem;
}

.engagement-doc-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.engagement-doc-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: #c81e68;
  margin: 0;
}

.engagement-clause-body p {
  margin: 0 0 1rem;
  color: #1f2937;
}

.engagement-section {
  margin-top: 1.85rem;
}

.engagement-section-h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111827;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 0 0.9rem;
}

.engagement-section-h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111827;
  text-transform: uppercase;
  margin: 1.1rem 0 0.5rem;
}

.engagement-section p {
  margin: 0 0 0.85rem;
  color: #1f2937;
}

.engagement-bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.engagement-bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: #1f2937;
}

.engagement-bullet-list li::before {
  content: "▪";
  position: absolute;
  left: 0.15rem;
  top: 0;
  color: #c81e68;
  font-size: 0.9rem;
}

.engagement-closing-block {
  margin-top: 2rem;
  padding-top: 1rem;
  color: #1f2937;
}

.engagement-closing-block a {
  color: #c81e68;
  text-decoration: underline;
}

.engagement-acceptance-section {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.engagement-acceptance-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  gap: 2.25rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.engagement-party-col {
  display: flex;
  flex-direction: column;
}

.engagement-party-heading {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #0f172a;
}

.engagement-firm-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.engagement-firm-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1.5rem 0;
}

.engagement-sig-line-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid #334155;
  min-height: 50px;
}

.engagement-sig-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.engagement-cursive-sig {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.55rem;
  color: #0f172a;
  letter-spacing: 0.02em;
  padding-left: 0.35rem;
  line-height: 1.1;
}

.engagement-meta-grid {
  display: grid;
  grid-template-columns: 58px 1fr;
  row-gap: 0.35rem;
  column-gap: 0.5rem;
  font-size: 0.9rem;
  align-items: baseline;
}

.engagement-meta-key {
  font-weight: 700;
  color: #475569;
}

.engagement-meta-val {
  color: #0f172a;
  font-weight: 500;
}

.engagement-saved-sig-img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.engagement-signed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 0.95rem;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Interactive Signature Form inside Acceptance Column */
.engagement-sign-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.engagement-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.engagement-input-group label,
.engagement-sig-pad-header label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.req-star {
  color: #c81e68;
}

.engagement-input-group input {
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.engagement-input-group input:focus {
  outline: none;
  border-color: #c81e68;
  box-shadow: 0 0 0 3px rgba(200, 30, 104, 0.12);
}

.engagement-input-row {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 0.75rem;
  align-items: end;
}

.engagement-sig-pad-container {
  margin-top: 0.15rem;
}

.engagement-sig-pad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.engagement-sig-pad-tools {
  display: flex;
  gap: 0.4rem;
}

.engagement-sig-tool-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.engagement-sig-tool-btn:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

.engagement-canvas-wrapper {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  height: 140px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

#engagement-sig-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
  position: relative;
  z-index: 2;
}

.engagement-canvas-baseline {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.85rem;
  border-bottom: 1px dashed #cbd5e1;
  pointer-events: none;
  z-index: 1;
}

.engagement-baseline-x {
  position: absolute;
  left: 0;
  bottom: -1.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.engagement-canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 0.84rem;
  color: #94a3b8;
  z-index: 1;
}

.engagement-date-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid #e2e8f0;
}

.engagement-date-confirm {
  font-size: 0.85rem;
  color: #1e293b;
}

.engagement-eca-note {
  font-size: 0.72rem;
  color: #64748b;
}

.engagement-form-status {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.engagement-form-status.is-error {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
}

.engagement-form-status.is-success {
  background: #ecfdf5;
  border: 1px solid #34d399;
  color: #065f46;
}

.engagement-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.engagement-submit-btn:hover {
  background: #c81e68;
  border-color: #c81e68;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 30, 104, 0.24);
}

.engagement-doc-footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

.engagement-footer-line {
  height: 1px;
  background: #d1d5db;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .engagement-paper {
    padding: 2rem 1.35rem;
  }
  .engagement-acceptance-grid,
  .engagement-input-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }
  .site-header,
  .site-footer,
  .no-print,
  .engagement-toolbar {
    display: none !important;
  }
  .engagement-page-shell {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .engagement-paper {
    box-shadow: none !important;
    border: none !important;
    padding: 0.5in !important;
  }
}

/* ==========================================================================
   Pre-Authorized Debit (PAD) Agreement Styles (/pad)
   ========================================================================== */

.pad-payee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.35rem 0 1.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.9rem;
}

.pad-payee-table tr + tr th,
.pad-payee-table tr + tr td {
  border-top: 1px solid #cbd5e1;
}

.pad-payee-table th,
.pad-payee-table td {
  padding: 0.7rem 1rem;
  text-align: left;
}

.pad-payee-label {
  width: 140px;
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  border-right: 1px solid #cbd5e1;
}

.pad-payee-val {
  color: #1e293b;
  background: #ffffff;
}

/* Unified 3-Column Master Grid for Section 1 & Section 2 */
.pad-unified-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1px;
  background: #cbd5e1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.pad-span-2 {
  grid-column: span 2;
}

.pad-grid-table {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pad-grid-row {
  display: grid;
  gap: 1px;
  background: #cbd5e1;
}

.pad-cols-sig {
  grid-template-columns: 1.25fr 1.45fr 0.65fr;
}

.pad-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.pad-cell {
  padding: 0.65rem 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-content: space-between;
  background: #ffffff;
  transition: background 0.15s ease;
}

.pad-cell:focus-within {
  background: #f8fafc;
}

.pad-cell-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.pad-cell:focus-within .pad-cell-label {
  color: #c81e68;
}

.pad-cell-input {
  width: 100%;
  height: 32px;
  margin-top: auto;
  border: none;
  border-bottom: 1.5px solid #e2e8f0;
  background: transparent;
  padding: 0.2rem 0;
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #0f172a;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.pad-cell-input::placeholder {
  font-weight: 400;
  color: #94a3b8;
}

.pad-cell-input:focus {
  outline: none;
  border-bottom-color: #c81e68;
}

.pad-cell-input[readonly] {
  background: transparent;
  border-bottom-color: transparent;
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
}

.pad-subcell-divider {
  height: 1px;
  background: #cbd5e1;
  margin: 0.65rem -0.9rem;
}

.pad-void-cheque-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.pad-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.935rem;
  color: #1f2937;
  cursor: pointer;
  line-height: 1.5;
}

.pad-checkbox-label input[type="checkbox"],
.pad-checkbox-label input[type="radio"] {
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  accent-color: #c81e68;
  flex-shrink: 0;
  cursor: pointer;
}

.pad-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pad-upload-btn:hover {
  border-color: #c81e68;
  color: #c81e68;
  background: #fdf2f8;
}

.pad-type-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 0.5rem;
}

.pad-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.pad-checkbox-block {
  display: flex;
}

.pad-inline-date-input {
  display: inline-block;
  width: 165px;
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

.pad-inline-date-input:focus {
  outline: none;
  border-color: #c81e68;
  background: #ffffff;
}

.pad-signed-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  min-height: 24px;
}

.pad-saved-sig-wrap {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding-top: 0.25rem;
}

.pad-office-use-section {
  margin-top: 2.25rem;
}

.pad-office-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 0.45rem;
}

.pad-office-val {
  min-height: 26px;
  font-size: 0.85rem;
  color: #334155;
}

@media (max-width: 768px) {
/* Responsive Breakpoints: Tablet Landscape, Tablet Portrait, Mobile Landscape & Mobile Portrait */
@media (max-width: 1024px) {
  .engagement-page-shell {
    padding: 1.75rem 1rem 3.5rem;
  }
  .engagement-paper {
    padding: 2.5rem 2.25rem;
  }
  .engagement-acceptance-grid {
    gap: 1.5rem;
  }
}

/* Tablet Portrait & Smaller Screens (<= 860px) */
@media (max-width: 860px) {
  .engagement-paper {
    padding: 2rem 1.5rem;
  }
  .engagement-acceptance-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .engagement-input-row {
    grid-template-columns: 1fr 1fr;
  }
  .pad-cols-sig {
    grid-template-columns: 1fr;
  }
  .pad-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Prevent iOS Safari auto-zoom on input focus across Tablet & Mobile */
  .engagement-input-group input,
  .pad-cell-input,
  .pad-inline-date-input {
    font-size: 16px;
  }
}

/* Mobile Portrait & Narrow Viewports (<= 640px) */
@media (max-width: 640px) {
  .engagement-page-shell {
    padding: 1rem 0.65rem 2.5rem;
  }
  .engagement-toolbar {
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .engagement-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .engagement-toolbar-actions .btn-sm {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
  }
  .engagement-paper {
    padding: 1.35rem 1rem;
    border-radius: 10px;
  }
  .engagement-doc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .engagement-doc-h1 {
    font-size: 1.45rem;
  }
  .engagement-input-row,
  .pad-unified-grid,
  .pad-cols-sig,
  .pad-cols-4 {
    grid-template-columns: 1fr;
  }
  .pad-span-2 {
    grid-column: span 1;
  }
  .pad-payee-label {
    width: 90px;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }
  .pad-payee-val {
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }
  .pad-type-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .pad-void-cheque-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .pad-file-upload-inline,
  .pad-upload-btn {
    width: 100%;
    justify-content: center;
  }
  .engagement-sig-pad-header {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

/* Mobile & Compact Tablet Landscape Orientation */
@media (max-height: 540px) and (orientation: landscape) {
  .engagement-page-shell {
    padding: 1rem 1rem 2rem;
  }
  .engagement-paper {
    padding: 1.5rem 1.75rem;
  }
  .engagement-input-row {
    grid-template-columns: 1fr 1fr;
  }
  .pad-unified-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .pad-span-2 {
    grid-column: span 2;
  }
  .engagement-canvas-wrapper {
    height: 115px !important;
  }
}

/* ==========================================================================
   Animated Red Action Glow for Inputs & Signature Pads Requiring User Action
   ========================================================================== */

@keyframes actionRedPulse {
  0%, 100% {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2), 0 0 10px rgba(239, 68, 68, 0.35);
  }
  50% {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.34), 0 0 18px rgba(239, 68, 68, 0.62);
  }
}

@keyframes actionRedCellPulse {
  0%, 100% {
    background-color: #fff5f5;
    box-shadow: inset 0 0 0 1.5px #ef4444, 0 0 10px rgba(239, 68, 68, 0.28);
  }
  50% {
    background-color: #fef2f2;
    box-shadow: inset 0 0 0 2px #dc2626, 0 0 16px rgba(239, 68, 68, 0.52);
  }
}

.engagement-input-group input.needs-action-glow,
.engagement-canvas-wrapper.needs-action-glow,
.pad-inline-date-input.needs-action-glow {
  border: 1.5px solid #ef4444 !important;
  background-color: #fffafa;
  animation: actionRedPulse 2s infinite ease-in-out;
}

.pad-cell.needs-action-glow {
  position: relative;
  z-index: 1;
  animation: actionRedCellPulse 2s infinite ease-in-out;
}

.pad-cell.needs-action-glow .pad-cell-label {
  color: #dc2626;
}

.pad-cell.needs-action-glow .pad-cell-input {
  border-bottom-color: rgba(239, 68, 68, 0.45);
}

@media print {
  .needs-action-glow {
    animation: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
  }
}
