/* PhotoScout toolkit carousel extension */
.tool-carousel {
  --cards-per-view: 2;
  --tool-gap: 24px;
  margin-top: 90px;
  min-width: 0;
}

.tool-carousel__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tool-carousel__hint {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.tool-carousel__controls {
  align-items: center;
  display: flex;
  gap: 12px;
}

.tool-carousel__button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 46px;
}

.tool-carousel__button:hover,
.tool-carousel__button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.tool-carousel__button:disabled {
  cursor: default;
  opacity: 0.3;
}

.tool-carousel__status {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 42px;
  text-align: center;
}

.tool-carousel__viewport {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.tool-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.tool-carousel__track {
  display: flex;
  gap: var(--tool-gap);
  min-width: 0;
}

.tool-carousel .tool-card {
  flex: 0 0 calc((100% - var(--tool-gap)) / 2);
  min-width: 0;
  scroll-snap-align: none;
  scroll-snap-stop: always;
}

.tool-carousel .tool-card:nth-child(odd) {
  scroll-snap-align: start;
}

.tool-carousel .tool-card--feature,
.tool-carousel .tool-card--aurora,
.tool-carousel .tool-card--carousel {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.78fr) minmax(255px, 0.65fr);
  padding: 42px;
}

.tool-card--aurora-forecast {
  background:
    radial-gradient(circle at 82% 18%, rgba(76, 220, 143, 0.2), transparent 34%),
    linear-gradient(145deg, #102a22, #131b20 62%);
}

.tool-card--tide {
  background:
    radial-gradient(circle at 82% 18%, rgba(82, 146, 228, 0.2), transparent 34%),
    linear-gradient(145deg, #14283a, #151c22 62%);
}

.tool-grid--list {
  display: block;
  margin-top: 24px;
}

.tool-grid--list .tool-card--list {
  margin: 0;
}

/* Successful early-access submissions retain the existing pill shape and
   switch it to a quiet confirmation state. */
.signup-form button[data-state="success"],
.signup-form button[data-state="success"]:disabled {
  background: #5c9671;
  color: #fff;
  cursor: default;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tool-carousel__viewport {
    scroll-behavior: auto;
  }
}

@media (max-width: 960px) {
  .tool-carousel {
    --cards-per-view: 1;
    margin-top: 65px;
  }

  .tool-carousel .tool-card {
    flex-basis: 100%;
    scroll-snap-align: start;
  }

  .tool-carousel .tool-card--feature,
  .tool-carousel .tool-card--aurora,
  .tool-carousel .tool-card--carousel {
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
    padding: 32px;
  }
}

@media (max-width: 700px) {
  .tool-carousel {
    margin-top: 55px;
  }

  .tool-carousel__header {
    align-items: flex-end;
    margin-bottom: 16px;
  }

  .tool-carousel__hint {
    max-width: 150px;
    line-height: 1.5;
  }

  .tool-carousel__button {
    height: 42px;
    width: 42px;
  }

  .tool-carousel .tool-card--feature,
  .tool-carousel .tool-card--aurora,
  .tool-carousel .tool-card--carousel {
    gap: 36px;
    grid-template-columns: 1fr;
    padding: 28px 25px;
  }
}
