/* === Design Tokens === */
:root {
  --bg-main: #F5F0EB;
  --bg-white: #FFFFFF;
  --bg-card: #FAF7F4;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #6B6B6B;
  --cta-orange: #E86F4A;
  --cta-hover: #D65A35;
  --border-light: #E8E0D8;
  --tag-bg: #F0E6DC;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 50px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-btn-hover: 0 4px 12px rgba(232, 111, 74, 0.3);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === Typography === */
h1, h2, h3 { color: var(--text-primary); font-weight: 700; line-height: 1.15; }
h1 { font-size: 32px; }
h2 { font-size: 28px; margin-bottom: 24px; }
h3 { font-size: 20px; font-weight: 600; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Sections === */
.section {
  padding: 40px 0;
  background: var(--bg-main);
}
.section-alt {
  padding: 40px 0;
  background: var(--bg-white);
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.section-heading p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 12px auto 0;
}

/* === Hero === */
.hero {
  padding: 48px 0 40px;
  text-align: center;
  background: var(--bg-main);
}
.hero h1 { margin-bottom: 16px; }
.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* === Images === */
.hero-image {
  margin: 32px auto 0;
  border-radius: var(--radius-xl);
  width: 100%;
  height: auto;
}
.section-image {
  margin: 32px auto 0;
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* === CTA Button === */
.cta-button {
  display: inline-block;
  background: var(--cta-orange);
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  min-height: 48px;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.cta-button:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-btn-hover);
}

/* === Problem / Benefit List === */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-list-item {
  background: var(--bg-card);
  border-left: 4px solid var(--cta-orange);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
}
.card-list-item .icon { margin-right: 8px; }

/* === Solution / Feature Grid === */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.feature-card .icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.feature-card h3 { margin-bottom: 8px; }

/* === Step Cards (How It Works) === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: step;
}
.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--cta-orange);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step-card h3 { margin-bottom: 4px; }

/* === Scenario Block === */
.scenario-block {
  background: var(--bg-white);
  border-left: 4px solid var(--cta-orange);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}
.scenario-block p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.scenario-block .outcome {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
}

/* === Before/After Compare Grid === */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.compare-col {
  border-radius: var(--radius-xl);
  padding: 24px;
}
.compare-col--before {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.compare-col--after {
  background: var(--bg-white);
  border: 2px solid var(--cta-orange);
}
.compare-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.compare-col--before h3 { color: var(--text-muted); }
.compare-col--after h3 { color: var(--cta-orange); }
.compare-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.compare-item:last-child { border-bottom: none; }
.compare-icon { flex-shrink: 0; font-size: 16px; }

/* === Zigzag Feature Rows === */
.zigzag { display: flex; flex-direction: column; gap: 32px; }
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.zigzag-text h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.zigzag-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.zigzag-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.zigzag-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.zigzag-visual .placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

/* === CTA Banner with Testimonial === */
.cta-banner {
  padding: 48px 0;
  text-align: center;
  background: var(--bg-white);
}
.cta-banner-quote {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cta-banner-quote::before { content: "\201C"; }
.cta-banner-quote::after { content: "\201D"; }
.cta-banner-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.cta-banner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  object-fit: cover;
}
.cta-banner-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.cta-banner-role {
  font-size: 13px;
  color: var(--text-muted);
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p {
  max-width: 500px;
  margin: 0 auto 32px;
}

/* === Featured Testimonial === */
.testimonial-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
}
.testimonial-featured-bigquote {
  display: block;
  font-size: 80px;
  line-height: 0.8;
  height: 60px;
  color: var(--cta-orange);
  font-family: Georgia, serif;
}
.testimonial-featured-photo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-card);
  margin: 0 auto 24px;
}
.testimonial-featured-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 16px;
}
.testimonial-featured-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
}
.testimonial-featured-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.testimonial-featured-logo {
  display: block;
  height: 24px;
  width: auto;
  margin: 12px auto 0;
  opacity: 0.6;
}

/* === Testimonial carousel with dots === */
.carousel { position: relative; max-width: 600px; margin: 0 auto; text-align: center; }
.carousel-slides { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 100%; padding: 32px 24px; }
.carousel-slide blockquote { font-size: 18px; font-style: italic; color: var(--text-primary); line-height: 1.7; max-width: 480px; margin: 0 auto 16px; }
.carousel-slide blockquote::before { content: "\201C"; }
.carousel-slide blockquote::after { content: "\201D"; }
.carousel-slide-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.carousel-slide-role { font-size: 13px; color: var(--text-muted); }
.carousel-slide-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 2px solid var(--bg-white); box-shadow: var(--shadow-card); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border-light); cursor: pointer; padding: 0; transition: background 0.2s; }
.carousel-dot.is-active { background: var(--cta-orange); }
.carousel-arrows { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.carousel-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--bg-white); cursor: pointer; font-size: 18px; color: var(--text-primary); display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
.carousel-arrow:hover { border-color: var(--text-primary); }

/* Footer multi-column */
.footer-multi { padding: 48px 0 24px; background: var(--bg-white); border-top: 1px solid var(--border-light); }
.footer-multi-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.footer-multi-logo { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 8px; }
.footer-multi-tagline { font-size: 14px; color: var(--text-muted); }
.footer-multi-group h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.footer-multi-group a { display: block; font-size: 14px; color: var(--text-secondary); padding: 4px 0; transition: color 0.2s; }
.footer-multi-group a:hover { color: var(--text-primary); }
.footer-multi-bottom { border-top: 1px solid var(--border-light); padding-top: 20px; font-size: 12px; color: var(--text-muted); text-align: center; }
@media (min-width: 769px) { .footer-multi-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .footer-multi-bottom { text-align: left; } }

/* === Closing CTA === */
.closing-cta {
  padding: 48px 0;
  text-align: center;
}
.closing-cta h2 { margin-bottom: 12px; }
.closing-cta p {
  max-width: 500px;
  margin: 0 auto 32px;
}

/* === Desktop (769px+) === */
@media (min-width: 769px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }

  .section, .section-alt { padding: 64px 0; }

  .hero { padding: 80px 0 64px; }
  .hero p { font-size: 22px; }

  .cta-button { width: auto; }

  .feature-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .feature-grid .feature-card { flex: 1 1 calc(50% - 8px); }

  .steps { flex-direction: row; }
  .step-card {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compare-grid { grid-template-columns: 1fr 1fr; }

  .zigzag-row { grid-template-columns: 1fr 1fr; }
  .zigzag-row:nth-child(even) .zigzag-text { order: 2; }
  .zigzag-row:nth-child(even) .zigzag-visual { order: 1; }

  .closing-cta { padding: 80px 0; }
}
