:root {
  --navy-primary: #1a365d;
  --navy-dark: #0d2447;
  --slate-grey: #64748b;
  --text-secondary: #6b7280;
  --border-subtle: #e5e7eb;
  --light-grey: #f8fafc;
  --success-green: #10b981;
  --shield-blue: #3b82f6;
  --ops-purple: #8b5cf6;
  --assist-amber: #f59e0b;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: #1a1a1a;
  line-height: 1.6;
}

.roi-nav {
  background: white;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.roi-nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-decoration: none;
}

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

.roi-nav-links a {
  color: var(--slate-grey);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.roi-nav-links a:hover {
  color: var(--navy-primary);
}

.roi-nav-cta {
  background: var(--navy-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.roi-nav-cta:hover {
  background: var(--navy-dark);
}

.roi-main {
  min-height: 100vh;
}

.roi-hero {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #0d2d5e 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.roi-hero.compact {
  padding: 1.5rem 2rem;
}

.roi-hero.compact .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.roi-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.roi-hero.compact h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.roi-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.roi-hero.compact p {
  font-size: 1rem;
  margin: 0 auto;
}

.roi-trust-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.roi-trust-item {
  text-align: center;
}

.roi-trust-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.roi-trust-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roi-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: block;
  overflow: hidden;
}

.calculator-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.calculator-sidebar {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  position: sticky;
  top: 100px;
}

.product-selection h3,
.business-inputs h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

.selection-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.product-checkbox {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.product-checkbox:hover {
  border-color: var(--navy-primary);
  background: var(--light-grey);
}

.product-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-checkbox input:focus + .checkbox-custom {
  outline: 2px solid var(--navy-primary);
  outline-offset: 2px;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-custom svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-checkbox input:checked + .checkbox-custom {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
}

.product-checkbox input:checked + .checkbox-custom svg {
  opacity: 1;
}

.product-checkbox input:checked ~ .product-info .product-name {
  color: var(--navy-primary);
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  color: #1a1a1a;
  transition: color 0.2s;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.business-inputs {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-grey);
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--navy-primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix span {
  position: absolute;
  left: 1rem;
  color: var(--slate-grey);
  font-weight: 500;
}

.input-prefix input {
  padding-left: 2rem;
}

.calculate-btn {
  width: 100%;
  background: var(--navy-primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.calculate-btn:hover {
  background: var(--navy-dark);
}

.calculate-btn:active {
  transform: scale(0.98);
}

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

.calculator-results {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
}

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

.results-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.25rem;
}

.results-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.results-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}

.results-summary.calculated .summary-card {
  animation: pulse-highlight 0.5s ease-out;
}

@keyframes pulse-highlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.summary-card.total {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
}

.summary-card.roi {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-card.total .summary-icon {
  background: var(--success-green);
  color: white;
}

.summary-card.roi .summary-icon {
  background: var(--shield-blue);
  color: white;
}

.summary-icon svg {
  width: 24px;
  height: 24px;
}

.summary-content {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.product-breakdowns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.breakdown-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.breakdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--light-grey);
  border-bottom: 1px solid var(--border-subtle);
}

.breakdown-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.breakdown-icon.shield {
  background: var(--shield-blue);
  color: white;
}

.breakdown-icon.ops {
  background: var(--ops-purple);
  color: white;
}

.breakdown-icon.assist {
  background: var(--assist-amber);
  color: white;
}

.breakdown-icon svg {
  width: 22px;
  height: 22px;
}

.breakdown-title {
  flex: 1;
}

.breakdown-title h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.1rem;
}

.breakdown-title span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breakdown-savings {
  text-align: right;
}

.savings-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success-green);
}

.savings-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.breakdown-details {
  padding: 1.25rem 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--slate-grey);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.detail-value.highlight {
  color: var(--success-green);
}

.breakdown-source {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fafafa;
  border-top: 1px solid var(--border-subtle);
}

.breakdown-source svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.breakdown-source span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.investment-section {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.investment-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 1rem;
}

.investment-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.investment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.investment-row.highlight {
  padding: 1rem;
  margin: 0.5rem -0.5rem -0.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 8px;
  border: 1px solid #a7f3d0;
}

.investment-label {
  font-size: 0.9rem;
  color: var(--slate-grey);
}

.investment-row.highlight .investment-label {
  font-weight: 600;
  color: var(--navy-primary);
}

.investment-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.investment-row.highlight .investment-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--success-green);
}

.cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-primary {
  background: var(--navy-primary);
  color: white;
}

.cta-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.cta-secondary {
  background: white;
  color: var(--navy-primary);
  border: 2px solid var(--navy-primary);
}

.cta-secondary:hover {
  background: var(--light-grey);
}

.cta-primary svg,
.cta-secondary svg {
  width: 20px;
  height: 20px;
}

.disclaimer-section {
  margin-top: 3rem;
}

.disclaimer-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 1.5rem;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.disclaimer-header svg {
  width: 20px;
  height: 20px;
  color: #d97706;
}

.disclaimer-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
}

.disclaimer-box p {
  font-size: 0.9rem;
  color: #78350f;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.disclaimer-sources {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #fcd34d;
}

.disclaimer-sources h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
}

.disclaimer-sources ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.disclaimer-sources li {
  font-size: 0.8rem;
  color: #78350f;
  padding-left: 1rem;
  position: relative;
}

.disclaimer-sources li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: #d97706;
  border-radius: 50%;
}

.roi-footer {
  background: var(--navy-primary);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Pricing Section */
.pricing-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  clear: both;
  width: 100%;
}

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

.pricing-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
}

.pricing-card:first-child {
  border-color: var(--navy-primary);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--navy-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.25rem;
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--light-grey);
  border-radius: 8px;
}

.tier-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-grey);
}

.tier-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.tier-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-grey);
  margin-bottom: 0.5rem;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--success-green);
  flex-shrink: 0;
}

.pricing-equipment {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-equipment h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.equipment-option {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.option-price {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.25rem;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pricing-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-order,
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-order {
  background: var(--navy-primary);
  color: white;
}

.btn-order:hover {
  background: var(--navy-dark);
}

.btn-demo {
  background: white;
  color: var(--navy-primary);
  border: 2px solid var(--navy-primary);
}

.btn-demo:hover {
  background: var(--light-grey);
}

.btn-order svg,
.btn-demo svg {
  width: 18px;
  height: 18px;
}

/* Disclaimer Bar - Compact Bottom Section */
.disclaimer-bar {
  margin-top: 3rem;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.disclaimer-content {
  padding: 0;
}

.disclaimer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-grey);
  transition: background 0.2s;
}

.disclaimer-toggle:hover {
  background: #e2e8f0;
}

.disclaimer-toggle svg {
  width: 16px;
  height: 16px;
}

.disclaimer-toggle .toggle-icon {
  transition: transform 0.3s;
}

.disclaimer-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.disclaimer-details {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--slate-grey);
  line-height: 1.6;
}

.disclaimer-details p {
  margin-bottom: 0.75rem;
}

.sources-compact {
  font-size: 0.75rem;
  color: #94a3b8;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.sources-compact strong {
  color: var(--slate-grey);
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .calculator-sidebar {
    position: static;
  }
  
  .results-summary {
    grid-template-columns: 1fr;
  }
  
  .breakdown-header {
    flex-wrap: wrap;
  }
  
  .breakdown-savings {
    width: 100%;
    text-align: left;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }
  
  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .roi-nav-links {
    display: none;
  }
  
  .roi-hero {
    padding: 3rem 1.5rem 2rem;
  }
  
  .roi-trust-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .roi-content {
    padding: 2rem 1rem;
  }
  
  .calculator-sidebar,
  .calculator-results {
    padding: 1.5rem;
  }
  
  .cta-section {
    flex-direction: column;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
