/* Pelham Insights LLC CSS Design System
   A contemporary blend of Premium Dark Mode, Sophisticated Editorial, and Modern Corporate structure.
*/

:root {
  /* Colors */
  --bg-primary: #030712;
  --bg-secondary: #090e1a;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  
  --accent-indigo: #6366f1;
  --accent-indigo-hover: #4f46e5;
  --accent-teal: #14b8a6;
  --accent-teal-hover: #0d9488;
  --accent-rose: #f43f5e;
  --accent-gold: #fbbf24;
  
  --glass-bg: rgba(17, 24, 39, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(99, 102, 241, 0.35);
  --glass-glow: rgba(99, 102, 241, 0.08);
  
  /* Fonts */
  --font-serif: 'Lora', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Layout */
  --header-height-large: 90px;
  --header-height-small: 64px;
  --border-radius: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-small) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Ambient glow nodes background */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.glow-1 {
  width: 50vw;
  height: 50vw;
  top: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(99,102,241,0) 70%);
}
.glow-2 {
  width: 60vw;
  height: 60vw;
  top: 40vw;
  left: -20vw;
  background: radial-gradient(circle, var(--accent-teal) 0%, rgba(20,184,166,0) 70%);
}
.glow-3 {
  width: 45vw;
  height: 45vw;
  bottom: 10vw;
  right: -5vw;
  background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(139,92,246,0) 70%);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

/* Grid Containment */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-indigo-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-hover) 100%);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.15);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-teal) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  min-height: 54px;
  padding: 0 2.25rem;
  font-size: 1.05rem;
}

/* Glassmorphism design panel */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(120%);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 24px rgba(99, 102, 241, 0.05);
}

/* Fixed shrinking header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-large);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

/* Header style when scrolled */
header.scrolled {
  height: var(--header-height-small);
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-indigo);
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-icon {
  transform: rotate(90deg);
  color: var(--accent-teal);
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-indigo);
  transition: var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s var(--transition-smooth);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.15;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 760px;
  margin: 0 auto 3rem auto;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.2s both;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 5rem;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.3s both;
}

/* Metric cards in Hero */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.4s both;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.metric-num {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Active Portfolio Section */
.portfolio-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Logo Showcase */
.logo-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 5rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-item {
  color: var(--text-muted);
  opacity: 0.45;
  transition: var(--transition-smooth);
}

.logo-item:hover {
  opacity: 1;
  color: #fff;
  transform: scale(1.05);
}

.showcase-logo {
  height: 36px;
  width: auto;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  padding: 2.25rem;
  overflow: hidden;
  height: 480px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99,102,241,0) 70%);
  top: -75px;
  right: -75px;
  border-radius: 50%;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .card-glow {
  transform: scale(1.8);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, rgba(20,184,166,0) 70%);
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
  font-weight: 600;
}

.card-title {
  font-size: 1.5rem;
  color: #fff;
  margin: 0.25rem 0 1.25rem 0;
}

/* Animated Card Visuals (Contemporary aesthetics) */
.card-visual {
  height: 140px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* RooferLedger graph mockup */
.graph-container {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 70px;
  width: 80%;
  margin-top: 15px;
}

.graph-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-indigo) 0%, var(--accent-teal) 100%);
  border-radius: 4px 4px 0 0;
  height: var(--height);
  transform-origin: bottom;
  animation: scaleUpBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* CostUtilityHub dial mockup */
.dial-container {
  width: 90px;
  height: 90px;
}

.dial-svg {
  width: 100%;
  height: 100%;
}

.dial-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 6;
}

.dial-progress {
  fill: none;
  stroke: var(--accent-teal);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dial-text {
  fill: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Hayford & Co diamond styles */
.diamond-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.diamond-svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
  animation: floatDiamond 3s ease-in-out infinite;
}

.diamond-outline {
  animation: strokePulse 2s ease-in-out infinite alternate;
}

.visual-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-description {
  font-size: 0.95rem;
  margin-bottom: auto;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-link {
  color: var(--accent-indigo);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.portfolio-card:hover .card-link {
  color: var(--accent-teal);
  transform: translateX(3px);
}

/* Card Hover Disclosure Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 14, 26, 0.96);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.portfolio-card:hover .card-overlay {
  transform: translateY(0);
}

.card-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card-overlay p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.overlay-stats {
  display: flex;
  gap: 2rem;
}

.overlay-stats div {
  display: flex;
  flex-direction: column;
}

.overlay-stats span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.overlay-stats strong {
  font-size: 1.5rem;
  color: var(--accent-teal);
}

/* Lead Magnet Funnel Container */
.funnel-section {
  padding: 100px 0;
  position: relative;
}

.funnel-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--glass-bg);
  border-color: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,0.25);
}

.tab-icon {
  width: 18px;
  height: 18px;
}

.funnel-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.5s var(--transition-smooth);
}

.funnel-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.funnel-desc {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.wizard-intro {
  text-align: center;
  padding: 2rem 0;
}

/* Gated Playbook Opt-in layout */
.playbook-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
}

.playbook-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* 3D Book CSS animation styles */
.book-container {
  width: 170px;
  height: 240px;
  position: relative;
}

.book-3d {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(10deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-container:hover .book-3d {
  transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
}

.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #090e1a 0%, #030712 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 5px 5px 20px rgba(0,0,0,0.5);
  border-radius: 0 4px 4px 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  transform: translateZ(5px);
}

.book-cover-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  font-weight: 700;
}

.book-cover-headline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

.book-cover-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.book-cover-brand {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.5rem;
  color: var(--accent-indigo);
  font-weight: 700;
}

.book-spine {
  position: absolute;
  width: 10px;
  height: 100%;
  background: #030712;
  transform: rotateY(-90deg) translateZ(5px);
  transform-origin: left center;
  border-left: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 2px 0 5px rgba(0,0,0,0.5);
}

.playbook-chapters {
  list-style: none;
  margin-bottom: 2rem;
}

.playbook-chapters li {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.playbook-chapters li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

/* Interactive Wizard Styling */
.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Wizard Steps Progress */
.wizard-progress {
  margin-bottom: 1.5rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.step {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.step-active {
  color: var(--accent-indigo);
  font-weight: 600;
}

.step-complete {
  color: var(--accent-teal);
}

.progress-bar-bg {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-indigo), var(--accent-teal));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fieldset and Legend styles */
.form-fieldset {
  border: none;
}

.form-legend {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Multi-choice custom Radio Cards */
.radio-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: flex;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-content {
  width: 100%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.radio-card:hover .radio-card-content {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.radio-card input[type="radio"]:focus-visible + .radio-card-content {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 4px;
}

.radio-card-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.radio-card-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form layout group (Single-column layout optimized for scanning) */
.form-group-container {
  max-width: 500px;
  margin: 0 auto;
}

.step-form-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.step-form-subheading {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input, 
.form-group textarea {
  font-family: var(--font-sans);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}

/* Error warning outputs */
.error-msg, .input-error {
  font-size: 0.85rem;
  color: var(--accent-rose);
  margin-top: 0.5rem;
  display: block;
  min-height: 20px;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.inline-form input {
  flex: 1;
}

.inline-form button {
  min-height: 48px;
  white-space: nowrap;
}

/* Action buttons inside form wizard */
.wizard-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.wizard-buttons #wizard-prev-btn {
  margin-right: auto;
}

/* Loading calculations state */
.wizard-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  text-align: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-indigo);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 2rem;
}

.loader-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.loader-steps {
  list-style: none;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 280px;
  text-align: left;
}

.loader-steps li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255,255,255,0.25);
  transition: var(--transition-smooth);
}

.loader-steps li.loading {
  color: var(--text-primary);
  font-weight: 500;
}

.loader-steps li.loading::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-indigo);
  animation: pulse-ring 1.5s infinite;
}

.loader-steps li.complete {
  color: var(--accent-teal);
}

.loader-steps li.complete::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

/* Assessment Outcome State Dashboard */
.results-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.results-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
}

.score-circle {
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
}

.score-ring {
  width: 100%;
  height: 100%;
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.03);
  stroke-width: 6;
}

.score-ring-progress {
  fill: none;
  stroke: url(#score-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient setup on score ring is done in CSS via fallback/standard stroke or standard svg tags */
.score-ring-progress {
  stroke: var(--accent-indigo); /* JS dynamically overrides based on score range */
}

.score-value {
  fill: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.6rem;
}

.score-verdict {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.score-desc {
  font-size: 0.85rem;
}

.results-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.recs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.rec-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  align-items: start;
}

.rec-icon {
  font-size: 1.5rem;
  background: rgba(255,255,255,0.03);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.rec-item h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.rec-item p {
  font-size: 0.9rem;
}

.results-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.results-cta p {
  color: #fff;
  font-weight: 500;
  max-width: 400px;
}

/* Playbook Success PDF Reader simulator */
.playbook-viewer {
  display: flex;
  flex-direction: column;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.viewer-header {
  background: #090e1a;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.viewer-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.viewer-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-page-num {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.viewer-content {
  height: 380px;
  background: #1e293b;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.pdf-page {
  width: 100%;
  max-width: 500px;
  height: 100%;
}

.pdf-inner-page {
  background: #fff;
  color: var(--text-dark);
  height: 100%;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.pdf-page-header {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.pdf-page-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.pdf-page-subtitle {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.pdf-toc {
  margin-top: 1rem;
}

.pdf-toc h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 1rem;
}

.toc-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: #475569;
}

.toc-dots {
  flex: 1;
  border-bottom: 1px dotted #cbd5e1;
  margin: 0 0.5rem;
  position: relative;
  top: -4px;
}

.pdf-page-footer {
  font-size: 0.55rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
  margin-top: auto;
}

.pdf-page h4 {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.pdf-page p {
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pdf-small-text {
  font-size: 0.7rem;
  color: #64748b;
}

/* Pie Chart simulator in PDF */
.pdf-chart-simulation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.pie-chart-mock {
  width: 50px;
  height: 50px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.pie-chart-mock::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ef4444;
  clip-path: polygon(50% 50%, 50% 0, 60% 0, 60% 30%);
}

.chart-legend {
  font-size: 0.7rem;
  color: #475569;
  line-height: 1.4;
}

.legend-color {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-red { background-color: #ef4444; }
.legend-green { background-color: #10b981; }

/* Audit layouts */
.pdf-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.audit-card-mock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  border-radius: 4px;
}

.audit-card-mock h5 {
  font-size: 0.75rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.audit-card-mock ul {
  list-style: none;
  font-size: 0.65rem;
  color: #475569;
}

.audit-card-mock li {
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
  position: relative;
}

.audit-card-mock li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-indigo);
}

.savings-highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
  text-align: center;
}

.huge-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #16a34a;
}

.savings-highlight p {
  font-size: 0.6rem;
  color: #166534;
}

.pdf-inner-page.center-text {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.success-title {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.advisory-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  width: 100%;
}

.advisory-box h5 {
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.advisory-box p {
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 1rem;
}

/* Hidden inputs/elements styling */
.hidden {
  display: none !important;
}

.hidden-field {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Newsletter block */
.newsletter-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Footer layout */
footer {
  background-color: #020617;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

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

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

.footer-desc {
  max-width: 420px;
}

.footer-brand h5,
.footer-newsletter h5 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.footer-newsletter p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.newsletter-signup {
  position: relative;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scaleUpBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes floatDiamond {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

@keyframes strokePulse {
  0% { stroke: var(--accent-indigo); filter: drop-shadow(0 0 2px var(--accent-indigo)); }
  100% { stroke: var(--accent-teal); filter: drop-shadow(0 0 10px var(--accent-teal)); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* Media Queries for Responsiveness */
@media (max-width: 968px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height-large: 70px;
  }
  
  header {
    height: var(--header-height-small);
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height-small);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height-small));
    background: var(--bg-primary);
    padding: 3rem 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 99;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  .header-actions {
    display: none;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .radio-card-grid {
    grid-template-columns: 1fr;
  }
  
  .playbook-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .playbook-visual {
    margin-bottom: 1.5rem;
  }
  
  .results-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Scroll-Driven Animations: progressive enhancement */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
  
  @keyframes shrinkHeader {
    to {
      height: var(--header-height-small);
      background: rgba(3, 7, 18, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--glass-border);
    }
  }
}

/* Pelham Insights LLC Tab panel styling */
.pelham-advisory-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.exit-estimator {
  margin-top: 2rem;
  padding: 1.75rem;
}

.exit-estimator h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.estimator-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  gap: 1rem;
  cursor: pointer;
  align-items: start;
  font-size: 0.95rem;
}

.checklist-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--glass-border);
  border-radius: 4px;
  background: rgba(0,0,0,0.3);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  top: 3px;
  transition: var(--transition-fast);
}

.checklist-item input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
}

.checklist-item input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-item div {
  display: flex;
  flex-direction: column;
}

.checklist-item strong {
  color: #fff;
  font-weight: 600;
}

.checklist-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.estimator-result {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1.25rem;
  border-radius: 8px;
}

.result-multiple {
  display: flex;
  flex-direction: column;
}

.result-multiple span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.result-multiple strong {
  font-size: 1.85rem;
  color: var(--accent-teal);
}

.result-details {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-details strong {
  color: #fff;
}

.pelham-advisory-form-container {
  display: flex;
  flex-direction: column;
}

.form-card {
  padding: 2.25rem;
}

.form-card h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.form-card p {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.w-full {
  width: 100%;
}

.custom-select {
  appearance: none;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  transition: var(--transition-fast);
  cursor: pointer;
}

.custom-select:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.custom-select:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .pelham-advisory-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Pelham Insights exit path visual within card */
.exit-path-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 95%;
  margin-top: 10px;
}

.exit-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: pulseStep 2s infinite ease-in-out;
  animation-delay: var(--delay);
}

.exit-step-arrow {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.9rem;
}

.exit-step.accent-step {
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.15), rgba(99, 102, 241, 0.15));
  border-color: var(--accent-teal);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.25);
  animation: pulseAccentStep 2s infinite ease-in-out;
}

@keyframes pulseStep {
  0%, 100% {
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
  }
}

@keyframes pulseAccentStep {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.25);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.45);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .diamond-svg {
    animation: none !important;
  }
  .diamond-outline {
    animation: none !important;
    stroke: var(--accent-indigo);
  }
  .graph-bar {
    animation: none !important;
  }
}

/* ==========================================================================
   Pelham Exit Advisory Subpage Styles
   ========================================================================== */

/* Subpage Utilities */
.subpage-main {
  padding-top: var(--header-height-large);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.align-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.max-w-600 {
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-indigo);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.tag-accent {
  display: inline-block;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-indigo);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Subpage Hero */
.advisory-hero {
  padding: 120px 0 80px 0;
  position: relative;
}

.advisory-hero .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.advisory-hero .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Problem Section */
.advisory-problem-section {
  padding: 60px 0;
}

.problem-stats-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-glass-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.stat-glass-card h3 {
  font-size: 2.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat-glass-card.highlight-border {
  border-color: rgba(20, 184, 166, 0.25);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.stat-glass-card.highlight-border h3 {
  color: var(--accent-teal);
  text-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

/* Roadmap Timeline Styles */
.roadmap-section {
  padding: 100px 0;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
  position: relative;
}

.roadmap-step {
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.roadmap-step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.step-badge {
  position: absolute;
  top: -15px;
  left: 2rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-indigo);
  text-transform: uppercase;
}

.roadmap-step h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.roadmap-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.roadmap-step.highlight-step {
  border-color: var(--accent-teal);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.08);
}

.roadmap-step.highlight-step .step-badge {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

/* Range Estimator Layout */
.estimator-section {
  padding: 100px 0;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  padding: 3.5rem;
  margin-top: 3rem;
  align-items: center;
}

.estimator-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* EBITDA Custom Range Slider styling */
.slider-group {
  display: flex;
  flex-direction: column;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.slider-header label {
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
}

.slider-display-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-indigo);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.ebitda-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ebitda-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-indigo);
  border: 2px solid #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  transition: var(--transition-fast);
}

.ebitda-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-indigo-hover);
}

.ebitda-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-indigo);
  border: 2px solid #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  transition: var(--transition-fast);
  cursor: pointer;
}

.ebitda-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-indigo-hover);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Custom Checklist Checkbox styling */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.estimator-checkbox-item {
  display: flex;
  gap: 1.25rem;
  align-items: start;
  cursor: pointer;
}

.estimator-checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: var(--transition-fast);
  margin-top: 0.15rem;
}

.estimator-checkbox-item:hover .checkbox-box {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}

.estimator-checkbox-item input[type="checkbox"]:checked ~ .checkbox-box {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
}

.estimator-checkbox-item input[type="checkbox"]:checked ~ .checkbox-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.checkbox-label strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.checkbox-label span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Results Sidebar styling */
.estimator-results-sidebar {
  height: 100%;
}

.results-inner-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 2.5rem 2rem;
}

.stat-result {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.result-val {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-sans);
}

.text-teal {
  color: var(--accent-teal);
  text-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

.text-indigo {
  color: var(--accent-indigo);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.stat-result.highlight-stat {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-result.highlight-stat .result-val {
  font-size: 2.75rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.baseline-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Confidential Intake Form styling */
.advisory-intake-section {
  padding: 100px 0;
  position: relative;
}

/* Responsive Rules */
@media (max-width: 968px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .problem-stats-cards {
    flex-direction: row;
  }
  
  .stat-glass-card {
    flex: 1;
  }
  
  .roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .roadmap-step {
    padding-top: 3rem;
  }
  
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .problem-stats-cards {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  /* Prevent horizontal overflow of the exit path steps in portfolio cards */
  .exit-path-container {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .exit-step-arrow {
    transform: rotate(90deg);
    margin: 0.1rem 0;
  }

  .exit-step {
    width: 100%;
    max-width: 200px;
    white-space: normal;
  }

  /* Prevent overflow/squeeze in inline forms (newsletter signup) */
  .inline-form {
    flex-direction: column;
    width: 100%;
  }

  .inline-form button {
    width: 100%;
  }

  /* Optimize padding for the estimator grid and steps on mobile */
  .estimator-grid {
    padding: 2rem 1.25rem;
    gap: 2rem;
  }

  .results-inner-card {
    padding: 1.75rem 1.25rem;
  }

  .roadmap-step {
    padding: 2rem 1.25rem;
  }

  /* Avoid text overflow on progress bar steps */
  .progress-steps {
    font-size: 0.75rem;
  }

  /* Prevent mobile navigation menu from overflowing vertically on short screens */
  .nav-menu {
    overflow-y: auto;
  }
}


