/* Download page styles */

#download-main {
  overflow-x: hidden;
}

/* Hero */
.download-hero {
  background-color: var(--color-sand);
  padding-block: var(--space-3xl);
  position: relative;
}

.download-hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  justify-content: center;
}

.download-hero__content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.download-hero__title {
  font-size: clamp(2rem, 5vw + 1rem, 3rem);
  line-height: var(--text-display-line-height);
  font-weight: var(--text-display-weight);
  margin-block-end: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.download-hero__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  margin-block-end: 0;
  max-width: 600px;
}

.download-hero__facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.download-hero__facts li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-navy);
}

.download-hero__button {
  min-width: 200px;
  width: auto;
  font-size: var(--text-body-size);
  padding: var(--space-sm) var(--space-xl);
}

/* Features */
.download-features {
  background-color: var(--color-seafoam);
}

.download-features__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.download-features__title {
  text-align: center;
  margin-block-end: 0;
}

.download-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.download-feature-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.download-feature-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.download-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: var(--color-aqua);
  position: relative;
  flex-shrink: 0;
}

.download-feature-card__icon--bubble {
  background-color: var(--color-aqua);
}

.download-feature-card__icon--bunny {
  background-color: var(--color-coral);
}

.download-feature-card__icon--sun {
  background-color: var(--color-sunny);
}

.download-feature-card__title {
  margin-block-end: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
}

.download-feature-card__text {
  margin-block-end: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.download-feature-card__list {
  list-style: disc;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.download-feature-card__list li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* Install */
.download-install {
  background-color: var(--color-sand);
}

.download-install__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.download-install__title {
  text-align: center;
  margin-block-end: 0;
}

.download-install__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.download-install__column {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: var(--card-padding);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.download-install__column-title {
  margin-block-end: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
}

.download-install__text {
  margin-block-end: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.download-install__list {
  list-style: disc;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.download-install__list li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

.download-install__steps {
  list-style: decimal;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.download-install__steps li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* Trust */
.download-trust {
  background-color: var(--color-seafoam);
}

.download-trust__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.download-trust__title {
  text-align: center;
  margin-block-end: 0;
}

.download-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.download-trust-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: var(--card-padding);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.download-trust-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.download-trust-item__icon--shield {
  background-color: var(--color-aqua);
}

.download-trust-item__icon--heart {
  background-color: var(--color-coral);
}

.download-trust-item__title {
  margin-block-end: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
}

.download-trust-item__text {
  margin-block-end: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.download-trust-item__list {
  list-style: disc;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.download-trust-item__list li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* After */
.download-after {
  background-color: var(--color-sand);
}

.download-after__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.download-after__title {
  text-align: center;
  margin-block-end: 0;
}

.download-after__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.download-tip-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: var(--card-padding);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.download-tip-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.download-tip-card__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-sunny);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h3-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-tip-card__title {
  margin-block-end: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
}

.download-tip-card__text {
  margin-block-end: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.download-tip-card__list {
  list-style: disc;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.download-tip-card__list li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* FAQ */
.download-faq {
  background-color: var(--color-seafoam);
}

.download-faq__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.download-faq__title {
  text-align: center;
  margin-block-end: 0;
}

.download-faq__accordion {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.download-faq__item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.download-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  color: var(--color-text);
  text-align: start;
  transition: background-color var(--transition-fast);
}

.download-faq__question:hover {
  background-color: rgba(100, 216, 230, 0.1);
}

.download-faq__icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.download-faq__icon::before,
.download-faq__icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.download-faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.download-faq__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.download-faq__item.active .download-faq__icon::after {
  transform: translateX(-50%) scaleY(0);
}

.download-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-inline: var(--space-lg);
}

.download-faq__answer p {
  margin-block-end: var(--space-sm);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.download-faq__answer ul {
  list-style: disc;
  padding-inline-start: var(--space-lg);
  margin-block-end: var(--space-md);
}

.download-faq__answer li {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  margin-block-end: var(--space-xs);
}

.download-faq__item.active .download-faq__answer {
  max-height: 400px;
}

/* Final CTA */
.download-final {
  background-color: var(--color-aqua);
  padding-block: var(--space-3xl);
  position: relative;
}

.download-final__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  justify-content: center;
}

.download-final__content {
  max-width: 500px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.download-final__title {
  margin-block-end: 0;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  color: var(--color-navy);
}

.download-final__text {
  margin-block-end: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-navy);
}

.download-final__facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.download-final__facts li {
  margin-block-end: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-navy);
}

.download-final__button {
  min-width: 200px;
  width: auto;
  font-size: var(--text-body-size);
  padding: var(--space-sm) var(--space-xl);
}

/* Sticky mobile download bar */
.download-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: var(--color-sand);
  border-top: var(--border-subtle);
  box-shadow: 0 -4px 12px rgba(46, 64, 87, 0.08);
  padding: var(--space-sm) var(--space-md);
  display: none;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.download-sticky-bar.visible {
  transform: translateY(0);
}

.download-sticky-bar__button {
  width: 100%;
  max-width: 400px;
  min-width: 0;
  font-size: var(--text-body-size);
}

/* Responsive */
@media (min-width: 768px) {
  .download-hero {
    padding-block: var(--space-3xl);
  }

  .download-final {
    padding-block: var(--space-3xl);
  }
}

@media (max-width: 1023px) {
  .download-features__grid,
  .download-after__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-feature-card:last-child,
  .download-tip-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .download-hero,
  .download-final {
    padding-block: var(--space-2xl);
  }

  .download-hero__content,
  .download-final__content {
    gap: var(--space-md);
  }

  .download-hero__title {
    font-size: clamp(1.75rem, 6vw + 0.5rem, 2.25rem);
  }

  .download-features__grid,
  .download-install__columns,
  .download-trust__grid,
  .download-after__grid {
    grid-template-columns: 1fr;
  }

  .download-feature-card:last-child,
  .download-tip-card:last-child {
    grid-column: auto;
  }

  .download-features__container,
  .download-install__container,
  .download-trust__container,
  .download-after__container,
  .download-faq__container {
    gap: var(--space-lg);
  }

  .download-hero__button,
  .download-final__button {
    width: 100%;
    min-width: 0;
  }

  .download-sticky-bar {
    display: flex;
  }
}

@media (max-width: 480px) {
  .download-hero__content,
  .download-final__content {
    padding-inline: var(--space-sm);
  }

  .download-hero__facts,
  .download-final__facts {
    align-items: flex-start;
    text-align: start;
  }

  .download-feature-card,
  .download-install__column,
  .download-trust-item,
  .download-tip-card {
    padding: var(--space-md);
  }

  .download-faq__question {
    padding: var(--space-md);
    font-size: 1.125rem;
  }

  .download-faq__answer {
    padding-inline: var(--space-md);
  }
}
