/* Homepage sections */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  column-gap: 48px;
  row-gap: 72px;
  align-items: center;
  padding-block: 56px 72px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__lede {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  font-size: 20px;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.hero__caption {
  font-size: 14px;
  color: var(--text-3);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 620px;
  container-type: inline-size;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 100%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  pointer-events: none;
}

/* The icon sits beside the centred 290px phone and may poke 12px into the grid gap on narrow columns */
.hero__icon {
  position: absolute;
  top: 0;
  left: clamp(-12px, calc(50% - 256px), 0px);
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--icon-shadow);
}

.hero__ring {
  position: absolute;
  top: 72px;
  right: -8px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  box-shadow: var(--ring-shadow);
}

.hero .pill {
  position: absolute;
  bottom: 96px;
  left: 0;
}

/* No room for the icon beside the phone: hide it rather than tuck it behind the frame */
@container (width < 458px) {
  .hero__icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-block: 32px 56px;
  }

  .hero__visual {
    min-height: 0;
  }

  .hero__icon,
  .hero__ring,
  .hero .pill {
    display: none;
  }
}

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}

.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}

.platform__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.platform__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.platform__note {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-3);
  text-wrap: pretty;
}

/* Feature tile grids */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}

.tiles--keep {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.tiles--stats {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.tiles--style {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* Stats: copy beside two staggered phones */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

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

.stats__devices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

/* Phones shrink with the column so the staggered pair survives narrow two-column layouts */
.stats__devices .device--phone {
  display: grid;
  width: min(250px, calc(50% - 6px));
  height: auto;
  aspect-ratio: 250 / 520;
}

@media (max-width: 480px) {
  .stats__devices .device--phone {
    width: 250px;
  }
}

/* Devices band: one day on every screen */
.devices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

.devices__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.proof {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.proof li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.proof__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.proof__badge .icon {
  width: 18px;
  height: 18px;
}

/* Style: accent tile and swatches beside four phone tops, then the habit look panel */
.style {
  gap: 14px;
}

.style .section__intro {
  margin-bottom: 10px;
}

.style__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 14px;
  align-items: stretch;
}

.style__accent {
  min-height: 0;
}

.style__accent p {
  font-size: 17px;
}

/* The swatch PNG carries its own rounded card, like the habit look preview below it */
.style__swatches {
  margin-top: 6px;
}

.style__swatches img {
  width: 100%;
  height: auto;
}

.phone-tops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.style__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}

.style__panel-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.style__panel h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.style__panel p {
  font-size: 16px;
  color: var(--text-2);
}

.style__preview {
  height: 400px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.style__preview img {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .style__panel {
    padding: 28px 22px;
  }
}


/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin-inline: auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: radial-gradient(400px 260px at 50% 0%, var(--accent-glow), transparent 70%), var(--card);
  background-clip: padding-box;
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  text-align: center;
}

@media (max-width: 480px) {
  .pricing-card {
    padding: 32px 22px;
  }
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price__amount {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price__period {
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-3);
}

.pricing-card__lede {
  max-width: 400px;
  font-size: 17px;
  color: var(--text-2);
}

.pricing-card__caption {
  font-size: 13px;
  color: var(--text-3);
}
