/* -------------------------------------------------------- */
/* 🔹 Feature Overview Section                              */
/* -------------------------------------------------------- */
/* One app area — title, lead and a grid of features beside  */
/* its screenshots. Sections alternate background and side   */

.feature-overview {
  padding-block: var(--website-section-spacing);
  background-color: var(--color-surface);
  scroll-margin-top: 64px;   /* clears the sticky navbar when jumped to */
}

.feature-overview--tint {
  background-color: var(--color-scaffold-bg);
}

.feature-overview__inner {
  display: flex;
  align-items: center;
  gap: var(--website-section-spacing);
}

.feature-overview--reverse .feature-overview__inner {
  flex-direction: row-reverse;
}

.feature-overview__content {
  flex: 1 1 0;
  min-width: 0;
}

.feature-overview__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px var(--space-xxxl);
}

.feature-overview__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-m);
}

.feature-overview__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--color-secondary);
}

.feature-overview__item-title {
  font-size: var(--text-body-large);
  font-weight: 700;
  color: var(--color-on-surface);
}

.feature-overview__item-text {
  margin-top: 2px;
  font-size: var(--text-body-medium);
  line-height: var(--text-body-medium-height);
  color: var(--color-on-surface-variant);
}

.feature-overview__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xxl);
  font-size: var(--text-body-large);
  font-weight: var(--text-title-weight);
  color: var(--color-primary);
  text-decoration: none;
}

.feature-overview__link svg {
  width: 18px;
  height: 18px;
}

.feature-overview__visual {
  flex: 0 1 440px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-lxl);
}

/* Bezel composites — the second of a pair sits lower */
.feature-overview__phone {
  width: 240px;
  height: auto;
}

.feature-overview__phone--pair {
  width: 200px;
}

.feature-overview__phone--pair + .feature-overview__phone--pair {
  margin-top: 48px;
}

/* Drawn notifications (notification_stack.css) in place of the phones */
.feature-overview__notifications,
.feature-overview__flows {
  flex: 1;
  min-width: 0;
}


/* -------------------------------------------------------- */
/* 🔹 Notification flows                                    */
/* -------------------------------------------------------- */
/* What starts a notification, an arrow and the notification */

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

.feature-overview__flow-label {
  margin-bottom: var(--space-s);
  font-size: var(--text-body-small);
  font-weight: var(--text-title-weight);
  color: var(--color-on-surface-variant);
}

.feature-overview__flow-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: var(--space-s) 0 var(--space-s) var(--space-l);
  font-size: var(--text-body-small);
  color: var(--color-on-surface-variant);
}

.feature-overview__flow-link svg {
  width: 18px;
  height: 18px;
}

/* A saving tip's row as the app shows it, its reminder bell switched on */
.feature-overview__tip {
  padding: var(--space-m) var(--space-l);
  border: 1px solid var(--color-outline);
  border-radius: 18px;
  background-color: var(--color-surface);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.feature-overview__tip-head {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--color-outline);
}

.feature-overview__tip-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.feature-overview__tip-name {
  font-size: var(--text-body-large);
  font-weight: 700;
  color: var(--color-on-surface);
}

.feature-overview__tip-now {
  font-size: var(--text-body-small);
  color: var(--color-on-surface-variant);
}

.feature-overview__tip-row {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding-top: var(--space-m);
}

.feature-overview__tip-clock {
  width: 20px;
  height: 20px;
  color: var(--color-on-surface-variant);
}

.feature-overview__tip-window {
  flex: 1;
  min-width: 0;
}

.feature-overview__tip-time {
  font-size: var(--text-body-medium);
  font-weight: 500;
  color: var(--color-on-surface);
}

.feature-overview__tip-saving {
  font-size: var(--text-body-small);
  font-weight: 500;
  color: var(--color-secondary);
}

/* The app's reminder button when set — a filled bell in primary,
   centered in the button's 44px tap area */
.feature-overview__tip-bell {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-inline: 12px;
  color: var(--color-primary);
}


/* -------------------------------------------------------- */
/* 🔹 Responsive                                            */
/* -------------------------------------------------------- */
/* Stacked below 900px — text first, screenshots under it */

@media (max-width: 899px) {
  .feature-overview__inner,
  .feature-overview--reverse .feature-overview__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-overview__visual {
    flex-basis: auto;
  }
}

@media (max-width: 767px) {
  .feature-overview__phone {
    width: min(220px, 60vw);
  }

  .feature-overview__phone--pair {
    width: min(160px, 44vw);
  }

  .feature-overview__phone--pair + .feature-overview__phone--pair {
    margin-top: 40px;
  }
}
