/* Asteria prototype, round 2 v3: rhythm, team, finale, footer, overlays and responsive rules. Tokens live in proto.css. */
/* Rhythm: choose how often you come, the plan follows. */
.rhythm {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(90px, 12vw, 160px);
  overflow: hidden;
}
.rhythm .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.rhythm h2 {
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 96px);
}
.rhythm .lead {
  color: var(--mist);
  max-width: 38ch;
  margin: 0 0 36px;
}
.rhythm label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--mist);
  margin-bottom: 14px;
}
.times {
  font: 700 clamp(90px, 12vw, 180px)/0.8 var(--display);
  color: var(--sage);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--sage);
  margin-top: 22px;
  height: 44px;
}
.plan {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 999px 999px 40px 40px;
  background: var(--forest-2);
  border: 1px solid #2d4639;
  text-align: center;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plan .tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.plan h3 {
  margin: 10px 0;
  font: 600 clamp(38px, 4vw, 58px)/1.05 var(--display);
}
.plan .price {
  font: 600 clamp(56px, 6vw, 90px)/1 var(--display);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.plan .per {
  color: var(--mist);
  font-size: 15px;
  margin: 8px 0 24px;
}
.plan a {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
}
.demo-note {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  color: var(--mist);
}

/* Team: big names; a portrait follows the pointer. */
.team {
  background: var(--sand);
  padding-block: clamp(90px, 12vw, 160px);
}
.team h2 {
  margin: 0 0 30px;
  font-size: clamp(44px, 6vw, 96px);
}
.names {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.names li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.names b {
  font: 600 clamp(44px, 7vw, 110px)/1 var(--display);
  transition:
    transform 0.6s var(--ease),
    color 0.4s;
}
.names li:hover b {
  transform: translateX(-24px);
  color: var(--clay);
}
.names span {
  color: var(--taupe);
}
.names img.inline {
  display: none;
}

/* Finale: a circle grows until it is the whole screen. */
.finale {
  height: 220vh;
  background: var(--sand);
}
.finale-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.orb {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--forest);
  transform: scale(0.4);
}
.finale-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
  opacity: 0;
}
.finale-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(48px, 8vw, 132px);
}
.finale-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
}

footer {
  background: var(--forest);
  color: var(--mist);
  padding-block: 60px 120px;
  overflow: hidden;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  font-size: 14px;
}
footer strong {
  display: block;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.giant {
  margin: 60px 0 0;
  font: 700 clamp(110px, 25vw, 400px)/0.8 var(--display);
  letter-spacing: -0.05em;
  color: var(--cream);
  text-align: center;
  direction: ltr;
}
.giant span {
  display: inline-block;
}

/* Menu and assistant overlays */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--forest);
  color: var(--cream);
  clip-path: inset(100% 0 0 0 round 50% 50% 0 0);
  display: grid;
  place-content: center;
  text-align: center;
}
.menu a {
  display: block;
  font: 600 clamp(44px, 7vw, 96px)/1.15 var(--display);
  text-decoration: none;
}
.menu .close {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  inset-inline-end: 24px;
}
.langs {
  margin-top: 28px;
  font-size: 15px;
  color: var(--mist);
  letter-spacing: 0.1em;
}
.chat {
  position: fixed;
  z-index: 55;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
  width: min(380px, calc(100vw - 32px));
  border-radius: 32px;
  background: var(--paper);
  color: var(--cocoa);
  box-shadow: 0 30px 80px rgba(22, 36, 29, 0.35);
  overflow: hidden;
  transform-origin: 50% 100%;
}
.chat header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: var(--forest);
  color: var(--cream);
}
.chat .msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  font-size: 15px;
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--linen);
}
.msg.me {
  align-self: flex-end;
  background: var(--cocoa);
  color: var(--paper);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 18px;
}
.chips button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
}

.cursor {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease);
}
.cursor.big {
  width: 86px;
  height: 86px;
}

@media (max-width: 760px) {
  .days {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 12px;
  }
  .day {
    flex: none;
    min-width: 58px;
  }
  .classes-pin {
    height: auto;
    padding-block: 90px 40px;
  }
  .track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: auto;
    padding-bottom: 12px;
  }
  .card {
    scroll-snap-align: center;
    height: 440px;
    width: 74vw;
  }
  .slot {
    grid-template-columns: 70px 1fr;
  }
  .slot a {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .names img.inline {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
  }
  .hero {
    height: 180vh;
  }
  .float {
    display: none;
  }
  .cursor {
    display: none;
  }
}
@media (hover: none) {
  .cursor,
  .peek {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .manifesto .w {
    opacity: 1;
  }
  .pill-img {
    transform: none;
  }
  .finale-copy {
    opacity: 1;
  }
  .orb {
    transform: scale(30);
  }
  .hero {
    height: auto;
  }
  .hero-stage {
    position: relative;
  }
  .finale {
    height: auto;
  }
  .finale-stage {
    position: relative;
    height: 80svh;
  }
}

/* The hero sits on a photo: its accent stays light, with a soft shadow for contrast. */
.hero-title { text-shadow: 0 2px 30px rgba(47, 34, 27, 0.35); }
.hero-title .it { color: var(--paper); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
