/* ============================================================
   Hero
   ============================================================ */
.hero {
  background-color: var(--background-2);
  padding: 40px 32px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 480px;
  max-width: 640px;
}

.hero__title {
  font-size: var(--fz-h1);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero__title-line-1 {
  color: var(--foreground-1);
  display: block;
}

.hero__title-line-2 {
  color: var(--primary);
  display: block;
}

:root[data-theme="dark"] .hero__title-line-2 {
  color: var(--secondary);
}

.hero__lead {
  font-size: var(--fz-h5);
  font-weight: 700;
  line-height: 1.45;
  color: var(--foreground-3);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__actions .btn {
  min-width: 219px;
}

.hero__art {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.hero__art-logo {
  width: 192px;
  height: auto;
  display: block;
}

.hero__art-wordmark {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin: 0;
}

:root[data-theme="dark"] .hero__art-wordmark {
  color: var(--secondary);
}

/* Dark hero variant uses character image instead of logo */
.hero__art-image {
  width: 280px;
  height: auto;
  display: none;
}

:root[data-theme="dark"] .hero__art-logo,
:root[data-theme="dark"] .hero__art-wordmark {
  display: none;
}

:root[data-theme="dark"] .hero__art-image {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero__art-logo,
  :root:not([data-theme]) .hero__art-wordmark {
    display: none;
  }
  :root:not([data-theme]) .hero__art-image {
    display: block;
  }
}

/* ============================================================
   Problem section
   ============================================================ */
.problem {
  background-color: var(--surface-muted);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  align-items: center;
}

:root[data-theme="dark"] .problem .section__title {
  color: #1f2937;
}

:root[data-theme="dark"] .problem .section__subtitle {
  color: #374151;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
  width: 100%;
  max-width: 1200px;
}

/* ============================================================
   Solution banner
   ============================================================ */
.solution {
  background: var(--gradient-hero);
  color: #ffffff;
  padding: 60px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.solution__title {
  font-size: var(--fz-h2);
  font-weight: 700;
  line-height: 1.2;
}

.solution__copy {
  font-size: var(--fz-h5);
  font-weight: 700;
  line-height: 1.45;
  max-width: 560px;
}

/* ============================================================
   How it works
   ============================================================ */
.how {
  background-color: var(--background-2);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  align-items: center;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1100px;
  gap: 40px;
  position: relative;
}

.how__icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1100px;
  align-items: center;
  position: relative;
}

.how__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--border-1);
  background-color: var(--background-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

:root[data-theme="dark"] .how__icon {
  background-color: var(--foreground-3);
}

.how__icon img {
  width: 50px;
  height: 50px;
}

/* Connectors between icons */
.how__icon-row::before,
.how__icon-row::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background-color: var(--border-1);
  transform: translateY(-50%);
}

.how__icon-row::before {
  left: 16.66%;
  width: 33.34%;
}

.how__icon-row::after {
  left: 50%;
  width: 33.34%;
}

.how__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.how__step-title {
  font-size: var(--fz-h5);
  font-weight: 700;
  color: var(--foreground-1);
  line-height: 1.45;
}

.how__step-body {
  font-size: var(--fz-body-md);
  font-weight: 700;
  color: var(--foreground-3);
  line-height: 1.4;
}

/* ============================================================
   Benefits
   ============================================================ */
.benefits {
  background-color: var(--surface-muted);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  align-items: center;
}

:root[data-theme="dark"] .benefits .section__title {
  color: #1f2937;
}

:root[data-theme="dark"] .benefits .section__subtitle {
  color: #374151;
}

.benefits__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1240px;
}

/* ============================================================
   Projection
   ============================================================ */
.projection {
  background-color: var(--background-2);
  padding: 40px 32px;
}

.projection__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.projection__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.projection__title {
  font-size: var(--fz-h3);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.projection__subtitle {
  font-size: var(--fz-body-lg);
  font-weight: 500;
  color: var(--foreground-3);
  line-height: 1.45;
}

.projection__card {
  background-color: var(--tertiary-blue-soft);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #1f2937;
}

.projection__card-heading {
  font-size: var(--fz-body-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.projection__card-heading strong {
  font-size: var(--fz-h4);
  font-weight: 800;
  color: var(--primary);
  margin: 0 4px;
  letter-spacing: -0.03em;
}

.projection__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.projection__row + .projection__row {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  padding-bottom: 0;
}

.projection__row-label {
  font-size: var(--fz-body-sm);
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
}

.projection__row-amount {
  font-size: var(--fz-h4);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #030712;
}

.projection__row-detail {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.projection__row-detail .saving {
  font-size: var(--fz-body-sm);
  font-weight: 500;
  color: var(--secondary);
}

.projection__row-detail .yield {
  font-size: var(--fz-body-md);
  font-weight: 700;
  color: var(--primary);
}

.projection__disclaimer {
  font-size: var(--fz-caption);
  color: var(--foreground-3);
}

.projection__chart {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-graph);
  color: #1f2937;
}

.projection__chart-title {
  text-align: center;
  font-size: var(--fz-body-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

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

/* ============================================================
   Thrust (3 cols on gradient)
   ============================================================ */
.thrust {
  background: var(--gradient-hero);
  color: #ffffff;
  padding: 60px 40px;
  border-radius: var(--radius-block);
}

.thrust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.thrust__item {
  text-align: center;
  padding: 0 32px;
}

.thrust__item + .thrust__item {
  border-left: 1px solid var(--divider-on-primary);
}

.thrust__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

.thrust__title {
  font-size: var(--fz-h5);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.45;
}

.thrust__copy {
  font-size: var(--fz-body-sm);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.95;
}

/* ============================================================
   Soy Canuto (testimonial card)
   ============================================================ */
.soy {
  background-color: var(--surface-muted);
  padding: 40px 32px;
  display: flex;
  justify-content: center;
}

.soy__card {
  background-color: var(--background-2);
  border-radius: 20px;
  padding: 45px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 880px;
  box-shadow: var(--shadow-card-strong);
}

.soy__art {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.soy__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.soy__quote {
  font-size: var(--fz-h3);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.soy__body {
  font-size: var(--fz-body-lg);
  font-weight: 500;
  color: var(--foreground-3);
  line-height: 1.45;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background-color: var(--background-1);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.faq__title {
  font-size: var(--fz-h3);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--foreground-1);
  line-height: 1.25;
  text-align: center;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 45px;
  width: 100%;
  max-width: 1170px;
  align-items: start;
}

.faq__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Each accordion item — details element acts as a flex col for two-card layout */
.faq__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Question card = the summary element */
.faq__question {
  background-color: var(--background-2);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(12, 12, 13, 0.1), 0 2px 2px rgba(12, 12, 13, 0.05);
  padding: 14px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: var(--fz-body-lg);
  font-weight: 700;
  color: var(--foreground-1);
  letter-spacing: -0.03em;
  line-height: 1.45;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question-text {
  flex: 1;
}

/* Arrow button in question */
.faq__chevron {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background-color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.faq__chevron svg {
  display: block;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__chevron svg {
  transform: rotate(180deg);
}

/* Answer card — appears below question when open */
.faq__answer {
  background-color: var(--background-2);
  border: 1px solid var(--secondary);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(12, 12, 13, 0.1), 0 2px 2px rgba(12, 12, 13, 0.05);
  padding: 14px 19px;
  font-size: var(--fz-body-lg);
  font-weight: 500;
  color: var(--foreground-2);
  line-height: 1.55;
  margin: 0;
}

/* Contact card at the bottom of the FAQ block */
.faq__contact {
  background-color: var(--background-2);
  border-radius: 20px;
  padding: 40px 56px;
  box-shadow: var(--shadow-card-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  width: 100%;
  max-width: 640px;
}

.faq__contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq__contact-q {
  font-size: var(--fz-h5);
  font-weight: 700;
  color: var(--foreground-1);
  letter-spacing: -0.025em;
  line-height: 1.45;
  margin: 0;
}

.faq__contact-lead {
  font-size: var(--fz-h5);
  font-weight: 700;
  color: var(--foreground-1);
  letter-spacing: -0.025em;
  line-height: 1.45;
  margin: 0;
}

.faq__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 12px 32px;
  background-color: var(--background-2);
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-pill);
  font-size: var(--fz-button);
  font-weight: 500;
  color: var(--foreground-2);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.faq__contact-btn:hover {
  background-color: var(--surface-muted);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   CTA final
   ============================================================ */
.cta {
  background-color: var(--background-2);
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.cta__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta__brand img {
  width: 142px;
  height: auto;
}

.cta__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground-1);
  line-height: 1.2;
}

.cta__lead {
  font-size: var(--fz-h5);
  font-weight: 700;
  color: var(--foreground-3);
  max-width: 520px;
  line-height: 1.45;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .benefits__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .problem__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .projection__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .thrust__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .thrust__item {
    padding: 16px 16px;
  }
  .thrust__item + .thrust__item {
    border-left: 0;
    border-top: 1px solid var(--divider-on-primary);
    padding-top: 32px;
  }
  .how__steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 480px;
  }
  .how__icon-row {
    display: none;
  }
  .how__step {
    flex-direction: column;
  }
  .how__step::before {
    content: "";
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--background-2);
    border: 3px solid var(--border-1);
    display: block;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 20px;
  }
  .hero__title {
    font-size: 36px;
  }
  .hero__lead {
    font-size: var(--fz-body-md);
  }
  .hero__actions .btn {
    min-width: 0;
    width: 100%;
  }
  .hero__art-logo {
    width: 140px;
  }
  .hero__art-wordmark {
    font-size: 36px;
  }
  .hero__art-image {
    width: 200px;
  }
  .benefits__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .soy__card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .soy__quote {
    font-size: var(--fz-h4);
  }
  .soy__art {
    width: 160px;
  }
  .cta__title {
    font-size: 32px;
  }
  .projection__title {
    font-size: var(--fz-h4);
  }
  .solution {
    padding: 40px 20px;
  }
  .solution__title {
    font-size: 32px;
  }
  .faq {
    padding: 32px 20px;
  }
  .faq__title {
    font-size: var(--fz-h4);
  }
  .faq__contact {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .navbar__brand--lg img {
    width: 36px;
  }
  .navbar__actions .btn {
    padding: 6px 10px;
  }
}
