/* Dream Seasons landing page. Plain CSS, no build step. */

:root {
  --night-1: #0f1738;
  --night-2: #1d2a63;
  --night-3: #3a4c9c;
  --ice-1: #f3f8ff;
  --ice-2: #e3eefc;
  --ice-3: #c9dcf6;
  --ink: #1b2350;
  --ink-soft: #4a557f;
  --berry: #ec3c5a;
  --berry-2: #ff7a59;
  --gold: #ffd36a;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(22, 36, 92, 0.45);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ice-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 12px;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Snow canvas (snow.js) ---------- */

.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 72px 0 190px;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 70%, #33479a 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 70vw;
  height: 40vw;
  max-width: 900px;
  max-height: 480px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: aurora 14s ease-in-out infinite alternate;
}

.aurora--one {
  top: -12%;
  left: -18%;
  background: radial-gradient(closest-side, #4fe0c8, transparent);
}

.aurora--two {
  top: -6%;
  right: -20%;
  background: radial-gradient(closest-side, #a57cff, transparent);
  animation-delay: -7s;
}

@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, 4%, 0) scale(1.12); }
}

.moon {
  position: absolute;
  top: 56px;
  right: max(6vw, 24px);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #ffe9a8 60%, #f5d27a);
  box-shadow: 0 0 40px 10px rgba(255, 233, 168, 0.35), 0 0 120px 30px rgba(255, 233, 168, 0.15);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__icon {
  width: clamp(112px, 16vw, 160px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(4, 10, 40, 0.55));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.eyebrow {
  margin-top: 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bcd2ff;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(46px, 8vw, 84px);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #cfe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(170, 200, 255, 0.25);
}

.lead {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(18px, 2.3vw, 22px);
  color: #e3ecff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__meta {
  margin-top: 18px;
  font-size: 15px;
  color: #aebfe8;
}

.hero__hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 170px;
  z-index: 1;
}

.hill--back {
  fill: #c9dbf7;
}

.hill--front {
  fill: var(--ice-1);
}

.firs path {
  fill: #2c3f86;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--berry) 0%, var(--berry-2) 100%);
  box-shadow: 0 12px 30px -10px rgba(236, 60, 90, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(236, 60, 90, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button--wide {
  width: 100%;
}

/* ---------- Preview (the illustrated Mac screen) ---------- */

.preview {
  position: relative;
  z-index: 2;
  margin-top: -130px;
}

.screen {
  margin: 0 auto;
  max-width: 860px;
}

.screen svg {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 10px solid #1b2147;
  box-shadow: var(--shadow), 0 40px 80px -40px rgba(10, 18, 60, 0.6);
  font-family: var(--font);
  background: #25336f;
}

.screen figcaption {
  margin-top: 18px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
}

.screen__snow circle {
  animation: screen-snow 7s linear infinite;
}

.screen__snow circle:nth-child(3n) { animation-duration: 9s; animation-delay: -3s; }
.screen__snow circle:nth-child(3n + 1) { animation-duration: 6s; animation-delay: -1.5s; }
.screen__snow circle:nth-child(4n) { animation-delay: -5s; }
.screen__snow circle:nth-child(5n) { animation-delay: -2.4s; }

@keyframes screen-snow {
  from { transform: translate(0, 10px); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translate(-30px, 380px); opacity: 0.9; }
}

.sleigh {
  animation: sleigh 5s ease-in-out infinite;
}

@keyframes sleigh {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* ---------- Sections ---------- */

section {
  position: relative;
  z-index: 2;
}

.features,
.family,
.pricing {
  padding-top: 96px;
}

h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  text-align: center;
}

.cards {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 220, 246, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -22px rgba(22, 36, 92, 0.5);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 30px;
  background: linear-gradient(160deg, var(--ice-2), #fff);
  box-shadow: inset 0 0 0 1px var(--ice-3);
}

.card h3 {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 800;
}

.card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* family */

.family {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 36px;
}

.family > * {
  position: relative;
}

.family::before {
  content: "";
  position: absolute;
  inset: 60px -20px -36px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, var(--ice-2));
  box-shadow: inset 0 0 0 1px var(--ice-3);
}

.family__text {
  padding: 36px 0 36px 40px;
}

.family h2 {
  text-align: left;
}

.family__text p {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-soft);
}

.badges {
  list-style: none;
  margin: 0;
  padding: 36px 40px 36px 0;
  display: grid;
  gap: 12px;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px -16px rgba(22, 36, 92, 0.45);
}

.badges span {
  font-size: 22px;
}

/* pricing */

.pricing {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 48px;
  padding-bottom: 120px;
}

.pricing h2 {
  text-align: left;
}

.pricing__intro p {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
}

.price-card {
  position: relative;
  padding: 34px 32px 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(165, 124, 255, 0.45), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night-1));
  box-shadow: 0 30px 70px -30px rgba(15, 23, 56, 0.85);
  overflow: hidden;
}

.price-card::after {
  /* a snowdrift along the bottom of the card */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -38px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.price-card__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bcd2ff;
}

.price-card__price {
  margin-top: 6px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
}

.price-card__list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price-card__list li {
  display: flex;
  gap: 10px;
  color: #e3ecff;
}

.price-card__list li::before {
  content: "❄";
  color: #9fd0ff;
}

.price-card__note {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #aebfe8;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  color: #c3d1f3;
  background: var(--night-1);
  font-size: 15px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 920px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .family,
  .pricing {
    grid-template-columns: 1fr;
  }

  .family::before {
    inset: 60px -12px -24px;
  }

  .family__text {
    padding: 36px 28px 0;
  }

  .badges {
    padding: 0 28px 32px;
  }

  .pricing {
    gap: 32px;
  }

  .price-card {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .hero {
    padding: 48px 0 150px;
  }

  .moon {
    top: 28px;
    width: 52px;
    height: 52px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__hills {
    height: 120px;
  }

  .preview {
    margin-top: -90px;
  }

  .screen svg {
    border-width: 6px;
    border-radius: 14px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .features,
  .family,
  .pricing {
    padding-top: 72px;
  }

  .family h2,
  .pricing h2 {
    text-align: center;
  }

  .pricing__intro p {
    text-align: center;
    margin-inline: auto;
  }

  .price-card {
    padding: 28px 22px 22px;
  }

  .price-card__price {
    font-size: 54px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
}

/* People who asked their system for less motion get a still page. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* still flakes, spread over the sky instead of a line along the top */
  .screen__snow circle { transform: translate(0, 60px); }
  .screen__snow circle:nth-child(2n) { transform: translate(0, 150px); }
  .screen__snow circle:nth-child(3n) { transform: translate(0, 105px); }
  .screen__snow circle:nth-child(5n) { transform: translate(0, 200px); }
}
