:root {
  /* Color tokens from Design-system.js */
  --yellow: #FFD700;
  --yellow-hover: #E6C200;
  --yellow-light: #FFF4CC;
  --navy-dark: #1A1A2E;
  --navy: #16213E;
  --navy-light: #2C3E50;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #F5F5F5;
  --gray: #6C757D;
  --dark-gray: #343A40;
  --black: #0F0F0F;
  --accent-blue: #007BFF;
  --accent-teal: #17A2B8;
  --accent-orange: #FD7E14;
  --green: #16A34A;

  --shadow-s: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-m: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-l: 0 8px 24px rgba(0,0,0,0.15);
  --shadow-yellow: 0 4px 12px rgba(255,215,0,0.3);

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;

  --container-max: 1200px;
  --section-pad: 20px;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font-body); color: var(--gray); background: var(--white); overflow-x: hidden; width: 100%; }

.container { max-width: var(--container-max); width: 70%; margin: 0 auto; padding: 0 20px; position: relative; }

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid #E9ECEF;
  box-shadow: var(--shadow-s);
  height: 70px;
  display: flex;
  align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--navy-dark); font-weight: 700; letter-spacing: 0.5px; }
.nav-cta { background: var(--yellow); color: var(--navy-dark); padding: 10px 24px; border-radius: var(--radius-s); border: none; cursor: pointer; transition: all 0.3s ease; }
.nav-cta:hover { background: var(--yellow-hover); transform: translateY(-2px); }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%); padding: 75px 0; overflow: hidden; }
.hero:after { /* subtle hex-like pattern overlay */
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.06) 87.5%, rgba(255,255,255,0.06)),
    linear-gradient(150deg, rgba(255,255,255,0.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.06) 87.5%, rgba(255,255,255,0.06)),
    linear-gradient(90deg, rgba(255,255,255,0.05) 2%, transparent 2%),
    linear-gradient(90deg, rgba(255,255,255,0.05) 2%, transparent 2%);
  background-size: 40px 70px, 40px 70px, 80px 70px, 80px 70px;
  background-position: 0 0, 0 0, -20px 0, 20px 0;
}
.hero .content { max-width: 920px; text-align: center; }
.hero h1 { color: var(--white); font-size: 51px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.5px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 20px; margin: 0; }

/* Sections */
.section { padding: var(--section-pad) 0; background: var(--white); }
.section.alt { background: var(--off-white); }
.section.center { text-align: center; }
.section.alt.cta-yellow { background: var(--yellow); }
.section.alt.brand-blue { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%); }
.section.alt.brand-blue h2 { text-align: center; }
.section.alt.brand-blue:after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.06) 87.5%, rgba(255,255,255,0.06)),
    linear-gradient(150deg, rgba(255,255,255,0.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.06) 87.5%, rgba(255,255,255,0.06)),
    linear-gradient(90deg, rgba(255,255,255,0.05) 2%, transparent 2%),
    linear-gradient(90deg, rgba(255,255,255,0.05) 2%, transparent 2%);
  background-size: 40px 70px, 40px 70px, 80px 70px, 80px 70px;
  background-position: 0 0, 0 0, -20px 0, 20px 0;
}
.section.alt.brand-blue h2, .section.alt.brand-blue p, .section.alt.brand-blue li { color: #FFFFFF; }
.section.alt.brand-blue .card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.section.alt.brand-blue .card h3, .section.alt.brand-blue .card p, .section.alt.brand-blue .card li { color: #FFFFFF; }
.section.dark { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.section.dark h2, .section.dark p, .section.dark li { color: var(--white); }

h2 { color: var(--navy-dark); font-size: 36px; margin: 0 0 20px; }
h3 { color: var(--navy-dark); font-size: 24px; margin: 0 0 16px; }
p { line-height: 1.6; }

/* Apple-like modern treatment */
.apple .container { max-width: 900px; }
.apple h2 { font-size: 42px; line-height: 1.15; letter-spacing: -0.5px; font-weight: 800; }
.apple .prose { font-size: 18px; color: var(--dark-gray); line-height: 1.8; }
.apple .subtle-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent); margin: 16px 0; }
.apple .panel { background: rgba(255,255,255,0.6); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.apple-heading-gradient { background: linear-gradient(90deg, var(--navy-dark), var(--navy-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.warning-box { background: transparent; border: none; color: var(--dark-gray); padding: 16px; border-radius: var(--radius-m); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 32px; border-radius: var(--radius-s); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: var(--yellow); color: var(--navy-dark); }
.btn-primary:hover { background: var(--yellow-hover); transform: translateY(-2px); box-shadow: var(--shadow-yellow); }
.btn-block { width: 100%; }
.btn-secondary { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn-secondary:hover { background: var(--yellow); color: var(--navy-dark); }

/* Grid helpers */
.grid { display: grid; gap: 30px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card { background: var(--white); border: 1px solid #E9ECEF; border-radius: var(--radius-m); padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }

/* Calculator */
.calc { position: relative; background: var(--white); border: 1px solid #E9ECEF; border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-s); width: 100%; }
.calc .field { display: grid; gap: 8px; margin-bottom: 16px; }
.calc label { color: var(--dark-gray); font-weight: 500; font-size: 14px; }
.calc input[type="number"], .calc input[type="text"], .calc input[type="email"], .calc input[type="tel"], .calc input[type="range"] { width: 100%; padding: 12px 16px; border: 1px solid #E9ECEF; border-radius: var(--radius-s); font-size: 14px; color: var(--dark-gray); outline: none; background: var(--white); }
.calc input[type="range"] { border: none; padding: 0; accent-color: var(--yellow); background: transparent; }
/* Modern, clean range styling */
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--yellow-light); border-radius: 3px; border: none; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: none; margin-top: -5px; box-shadow: 0 0 0 2px rgba(255,215,0,0.25); }
.calc input[type="range"]::-moz-range-track { height: 6px; background: var(--yellow-light); border-radius: 3px; border: none; }
.calc input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: none; }
.calc input[type="range"]::-ms-track { height: 6px; background: transparent; border-color: transparent; color: transparent; }
.calc input[type="range"]::-ms-fill-lower { background: var(--yellow-light); border-radius: 3px; }
.calc input[type="range"]::-ms-fill-upper { background: var(--yellow-light); border-radius: 3px; }
.calc input[type="range"]::-ms-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: none; }
.calc input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,215,0,0.1); }
.helper { color: var(--gray); font-size: 12px; }
.helper-small { color: var(--gray); font-size: 10px; display: block; opacity: 0.9; }
.calc-footnote { font-size: 10px; color: var(--dark-gray); margin-top: 10px; line-height: 1.4; }

.results { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.results .span-2 { grid-column: 1 / span 2; }
.result-card { border-radius: 0; padding: 20px; box-shadow: none; border: none; }
.result-red { background: #FEE2E2; border: none; }
.result-green { background: var(--yellow-light); border: none; }
.result-blue { background: #DBEAFE; border: none; }
.result-card h4 { margin: 0 0 8px; color: var(--navy-dark); }
.result-value { font-size: 28px; font-weight: 700; color: var(--navy-dark); }
.big-savings { position: absolute; top: 16px; right: 16px; font-size: 28px; font-weight: 800; color: var(--green); background: #E7F6EA; padding: 8px 12px; border-radius: var(--radius-s); box-shadow: var(--shadow-s); }

/* Result items grid */
.result-items { display: grid; gap: 12px; }
.result-blue .result-items { grid-template-columns: repeat(4, 1fr); }
.roi-display { background: #E7F6EA; padding: 8px; border-radius: var(--radius-s); }
.roi-display .result-value { color: var(--green); font-weight: 800; }

@media (max-width: 1200px) {
  .result-blue .result-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .result-blue .result-items { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .calc { padding: 12px; margin-bottom: 20px; }
  .calc h3 { font-size: 18px; margin-bottom: 16px; }
  .calc .field { margin-bottom: 12px; }
  .result-card { padding: 16px; }
  .result-value { font-size: 20px; }
  .calc-footnote { font-size: 9px; }
  .flow.full { width: 100%; margin-left: 0; padding: 30px 16px; }
  .container { width: 100%; padding: 0 16px; }
}

/* Implementation cost breakdown */
.impl-cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  background: #F8F9FA;
  border-radius: var(--radius-s);
}

.impl-cost-step {
  padding: 8px 12px;
  border-radius: var(--radius-s);
  border-left: 3px solid;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impl-cost-step-green {
  background: #E7F6EA;
  border-left-color: var(--green);
}

.impl-cost-step-gray {
  background: #E5E7EB;
  border-left-color: #9CA3AF;
}

.impl-cost-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.impl-cost-step-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--navy-dark);
  flex: 1;
  line-height: 1.3;
}

.impl-cost-step-percentage {
  font-size: 9px;
  font-weight: 600;
  color: var(--navy-dark);
  padding: 2px 6px;
  background: white;
  border-radius: var(--radius-s);
}

.impl-cost-step-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--navy-dark);
}

.impl-cost-step-gray .impl-cost-step-value,
.impl-cost-step-gray .impl-cost-step-label {
  color: #4B5563;
}

@media (max-width: 768px) {
  .impl-cost-breakdown {
    padding: 8px;
  }
  
  .impl-cost-step-label {
    font-size: 8px;
  }
  
  .impl-cost-step-value {
    font-size: 9px;
  }
}

/* Value deltas */
.value-old { color: #DC2626; text-decoration: line-through; margin-right: 8px; }
.value-new { color: var(--green); }
.value-red { color: #DC2626; font-weight: 700; }

/* Impact section cards */
.impact { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.impact-card { background: #FFF; border: 1px solid #FECACA; border-left: 4px solid #DC2626; border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-s); }
.impact-title { font-weight: 700; color: #B91C1C; margin-bottom: 6px; }
.impact-text { color: var(--dark-gray); }

/* Quote styling */
.quote { text-align: center; background: #FFFFFF; box-shadow: var(--shadow-m); padding: 20px; border-radius: var(--radius-m); margin-top: 50px; }

/* Merged features section */
.feature-grid { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); align-items: start; }
.feature-item { }
.feature-icon { font-size: 56px; color: var(--yellow); display: inline-block; margin-bottom: 12px; }
.feature-title-band { display: block; width: 100%; text-align: center; background: var(--navy-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); font-weight: 800; margin-bottom: 12px; letter-spacing: 0.2px; box-shadow: var(--shadow-s); border-left: 6px solid var(--yellow); }
.feature-desc { color: var(--dark-gray); line-height: 1.7; }
.features h2 { text-align: center; margin-bottom: 25px; }
.features .card { border: none; box-shadow: var(--shadow-s); border-radius: var(--radius-m); }
.section.center .container { max-width: 900px; }
/* Larger vertical rhythm for select sections */
.section.alt.center.apple { padding: 75px 0; }
.section.features.apple { padding: 75px 0; }

/* Redesigned problem section */
.problem-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.problem-card { background: rgba(255,255,255,0.7); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border: 1px solid #F1F5F9; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); text-align: left; }
.problem-icon { font-size: 32px; margin-bottom: 8px; }
.problem-card h3 { margin: 0 0 8px; font-size: 18px; }

/* Testimonials */
.testimonials { margin-top: 24px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.testimonial-card { background: #FFFFFF; border: 1px solid #E9ECEF; border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); text-align: left; }
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 700; color: var(--navy-dark); }
.testimonial-title { color: var(--gray); font-size: 12px; }
.testimonial-quote { font-style: italic; color: var(--dark-gray); line-height: 1.7; }
.testimonial-author { margin-top: 8px; font-weight: 600; color: var(--navy-dark); }

/* Carousel */
.carousel { position: relative; overflow: hidden; margin-top: 75px; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { min-width: 100%; box-sizing: border-box; padding: 0 10px; }
.carousel-nav { display: none; }
.carousel-btn { background: #ffffff; border: 1px solid #E9ECEF; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.carousel-btn:hover { background: var(--yellow-light); border-color: var(--yellow); }

/* Parallax on brand-blue section */
.brand-blue.parallax { background-attachment: fixed; padding: 75px 0; }

/* CTA strip */
.cta-strip { text-align: center; background: var(--yellow); padding: 20px; border-radius: 12px; box-shadow: var(--shadow-s); }
.cta-actions { margin-top: 12px; display: inline-flex; gap: 12px; }

/* Full-width CTA */
.cta-full { background: var(--yellow); color: #FFFFFF; }
.cta-full h3 { color: #FFFFFF; margin: 0; }
.cta-full .container { text-align: center; }
.cta-full .btn-primary { background: #1A1A2E; color: #FFFFFF; }
.cta-full .btn-primary:hover { background: #0F0F0F; }

/* Footer CTA */
.footer { background: var(--navy-dark); padding: 20px 0 20px; color: rgba(255,255,255,0.85); }
.footer .cta { background: var(--yellow); padding: 20px; border-radius: var(--radius-m); margin-bottom: 20px; }
.footer .cta h3 { color: var(--navy-dark); margin: 0 0 8px; }

/* Responsive */
@media (max-width: 992px) {
  .results { grid-template-columns: 1fr; }
  .results .span-2 { grid-column: 1; }
  .container { width: 90%; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 40px; }
  .impact { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .calc { padding: 16px; }
  .calc h3 { font-size: 20px; }
  .result-value { font-size: 22px; }
  .big-savings { position: static; margin-top: 16px; text-align: center; display: block; }
  .result-items { display: flex; flex-direction: column; gap: 8px; }
  .result-blue .result-items { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  .carousel-slide { min-width: 50%; }
}

/* Process flows */
.flow { display: flex; gap: 4px; flex-wrap: nowrap; align-items: stretch; margin-top: 12px; overflow-x: auto; }
.flow.full { width: 100vw; max-width: 100%; margin-left: calc(50% - 50vw); padding: 50px 20px; }
.flow-item { background: #FFFFFF; border: 1px dashed #CBD5E1; border-radius: 12px; padding: 10px; text-align: left; position: relative; flex: 1 1 0; }
.flow-item h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy-dark); }
.flow-item p { margin: 0; font-size: 12px; color: var(--gray); }
.flow.old .flow-item { border-left: 4px solid #DC2626; }
.flow.auto .flow-item { border-left: 4px solid var(--yellow); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--gray); flex: 0 0 12px; }
.flow .flow-arrow::after { content: ""; display: block; width: 100%; height: 0; border-top: 1px dashed #CBD5E1; }
@media (max-width: 992px) {
  .flow { flex-direction: column; gap: 4px; overflow-x: visible; }
  .flow .flow-arrow::after { width: 0; height: 12px; border-top: none; border-left: 1px dashed #CBD5E1; }
}


