:root {
  --journey-card-width: clamp(152px, 44vw, 208px);
  --bg-mid-alpha: 0.28;
  --bg-end-alpha: 0.52;
  --mobile-card-height: 90svh;
  --mobile-card-content-gap: 1.2rem;
  --mobile-feature-image-width: min(calc(var(--journey-card-width) * 1.3), 100%);
  --mobile-master-image-width: calc(var(--journey-card-width) * 1.2);
  --mobile-card-text-color: rgb(var(--text-rgb) / 0.9);
}

html {
  background-color: rgb(var(--bg-rgb));
  background-image: linear-gradient(
    180deg,
    rgb(var(--bg-rgb)) 0%,
    rgb(var(--bg-tint-rgb) / var(--bg-mid-alpha)) 34%,
    rgb(var(--bg-tint-rgb) / var(--bg-end-alpha)) 100%
  );
}

body {
  background-color: rgb(var(--bg-rgb));
  background: linear-gradient(
    180deg,
    rgb(var(--bg-rgb)) 0%,
    rgb(var(--bg-tint-rgb) / var(--bg-mid-alpha)) 34%,
    rgb(var(--bg-tint-rgb) / var(--bg-end-alpha)) 100%
  );
  text-align: center;
}

.atmosphere {
  display: block;
}

.atmosphere::before {
  left: -12vw;
  right: -12vw;
  bottom: -12vh;
  height: 64vh;
  opacity: 0.46;
  clip-path: polygon(
    0% 100%,
    4% 83%,
    9% 72%,
    13% 76%,
    20% 88%,
    24% 82%,
    30% 67%,
    35% 60%,
    39% 66%,
    46% 84%,
    50% 78%,
    58% 64%,
    62% 59%,
    67% 66%,
    74% 82%,
    79% 75%,
    86% 63%,
    90% 58%,
    94% 66%,
    100% 78%,
    100% 100%
  );
  filter: blur(0.65px) saturate(1.03);
  animation: none;
}

.atmosphere::after {
  left: -12vw;
  right: -12vw;
  bottom: 7vh;
  height: 20vh;
  opacity: 0.28;
  filter: blur(18px);
  animation: none;
}

.aurora {
  display: none;
}

.grain {
  opacity: 0.11;
  background-size: 3.5px 3.5px;
}

.journey-sun {
  left: 12vw;
  right: auto;
  top: 12vh;
  width: 72px;
  height: 72px;
  opacity: 0.9;
  animation: sunBreatheMobile 5s ease-in-out infinite;
  box-shadow: 0 0 26px rgb(var(--accent-rgb) / 0.3);
  transition: opacity 420ms ease;
}

.journey-sun::after {
  animation: sunHaloMobile 5s ease-in-out infinite;
  opacity: 0.28;
  transition: opacity 420ms ease;
}

@keyframes sunBreatheMobile {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgb(var(--accent-rgb) / 0.31);
  }
  50% {
    transform: scale(1.072);
    box-shadow: 0 0 46px rgb(var(--accent-rgb) / 0.56);
  }
}

@keyframes sunHaloMobile {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.84);
  }
}

.site-shell {
  width: min(560px, calc(100% - 1.08rem));
  padding-top: 4.3rem;
  padding-bottom: 0.9rem;
}

.topbar {
  margin-top: 0;
  top: 0.42rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 1.08rem));
  position: fixed;
  padding: 0.4rem 0.48rem;
  border-radius: 16px;
  gap: 0.5rem;
  background: rgb(var(--bg-rgb) / 0.86);
  border-color: rgb(var(--text-rgb) / 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px rgb(var(--text-rgb) / 0.08);
}

.brand {
  gap: 0.14rem;
}

.brand span {
  display: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  margin-right: 0;
}

.chip {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.36rem 0.72rem;
}

main {
  display: grid;
  gap: calc(1.05rem * 1.5);
  margin-top: 0.84rem;
  position: relative;
}

.hero {
  min-height: calc(100svh - 5.6rem);
  padding: 1.1rem 0.18rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "title"
    "cta";
  gap: 0.64rem;
  align-content: center;
  justify-items: center;
  text-align: center;
  position: sticky;
  top: 5.2rem;
  z-index: 1;
  align-self: start;
  transition: opacity 180ms ease;
}

body.mobile-hero-dismissed .hero {
  opacity: 0;
  pointer-events: none;
}

body.mobile-hero-dismissed .journey-sun {
  opacity: 0;
}

body.mobile-hero-dismissed .journey-sun::after {
  opacity: 0;
}

.hero .lead,
.hero > .hero-visual {
  display: none;
}

.hero-copy {
  display: contents;
}

.hero-copy .eyebrow {
  grid-area: eyebrow;
  margin-bottom: 0.12rem;
  text-align: center;
}

.hero-copy h1 {
  grid-area: title;
  font-size: clamp(1.9rem, 9.4vw, 2.55rem);
  line-height: 1.03;
  max-width: 9.8ch;
  margin-inline: auto;
  white-space: normal;
  letter-spacing: -0.015em;
}

.lead {
  grid-area: lead;
  margin-top: 0.18rem;
  max-width: 28ch;
  margin-inline: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgb(var(--muted-rgb) / 0.92);
  text-align: center;
}

.hero-cta {
  grid-area: cta;
  margin-top: 0.22rem;
  justify-content: center;
}

.hero-cta .btn {
  min-height: 36px;
  padding: 0.42rem 0.9rem;
  font-size: 0.88rem;
}

.hero-visual {
  grid-area: image;
  width: var(--journey-card-width);
  min-height: auto;
  aspect-ratio: 9 / 16;
  justify-self: center;
}

.journey-trail,
.halo {
  display: none;
}

.preview-stack {
  position: static;
  width: 100%;
  transform: none;
}

.preview-feature {
  border-radius: 16px;
  animation: floatCard 9s ease-in-out infinite;
  box-shadow: 0 9px 20px rgb(var(--text-rgb) / 0.16);
}

.begin-orb {
  left: 50%;
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  background: rgb(var(--bg-rgb) / 0.64);
  animation: beginPulse 6s ease-in-out infinite;
}

.begin-orb::before {
  animation: speechAuraPulse 9s ease-in-out infinite;
  opacity: 0.2;
  transform: scale(1.24);
}

@keyframes beginPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.profile,
.profile-mobile-hero,
.profile-sam,
.profile-master {
  margin-top: 0;
  min-height: var(--mobile-card-height);
  border-radius: 20px;
  border: 1px solid rgb(var(--bg-rgb) / 0.8);
  background:
    linear-gradient(154deg, rgb(var(--bg-rgb) / 0.4), rgb(var(--bg-rgb) / 0.05)),
    radial-gradient(145% 130% at 10% 0%, rgb(var(--bg-rgb) / 0.22), rgb(var(--bg-rgb) / 0) 62%),
    radial-gradient(130% 120% at 96% 106%, rgb(var(--accent-rgb) / 0.08), rgb(var(--accent-rgb) / 0) 68%);
  box-shadow:
    0 12px 28px rgb(var(--text-rgb) / 0.06),
    inset 0 1px 0 rgb(var(--bg-rgb) / 0.46);
  backdrop-filter: blur(15px) saturate(1.08);
  -webkit-backdrop-filter: blur(15px) saturate(1.08);
  position: relative;
  z-index: 3;
}

.profile,
.profile-mobile-hero,
.profile-sam,
.profile-master {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.86rem;
  align-items: center;
  align-content: start;
}

.profile-copy,
.profile-sam .profile-copy,
.profile-master .profile-copy {
  max-width: 100%;
  margin-inline: 0;
  text-align: center;
  justify-self: stretch;
}

.profile-sam .profile-copy,
.profile-master .profile-copy {
  display: contents;
}

.profile-sam {
  grid-template-areas:
    "sam-title"
    "sam-image"
    "sam-body";
}

.profile.profile-mobile-hero,
.profile-sam,
.profile-master {
  display: grid;
  align-content: stretch;
  height: var(--mobile-card-height);
}

.profile-mobile-hero .mobile-hero-shift {
  display: grid;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  row-gap: 0;
}

.profile-sam,
.profile-master {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  row-gap: 0;
}

.mobile-hero-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--mobile-card-text-color);
}

.mobile-hero-lead {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.mobile-hero-card {
  width: var(--mobile-feature-image-width);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgb(var(--text-rgb) / 0.16);
  overflow: hidden;
  box-shadow: 0 9px 20px rgb(var(--text-rgb) / 0.16);
  animation: floatCard 9s ease-in-out infinite;
}

.mobile-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-sam .profile-copy h3 {
  grid-area: sam-title;
}

.profile-sam .profile-visual {
  grid-area: sam-image;
  margin-block: 0;
}

.profile-sam .profile-copy p {
  grid-area: sam-body;
}

.profile-sam .profile-copy h3,
.profile-sam .profile-copy p,
.profile-master .profile-copy h3,
.profile-master .profile-copy p {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

.profile-master {
  grid-template-areas:
    "master-title"
    "master-images"
    "master-body";
}

.profile-master .profile-copy h3 {
  grid-area: master-title;
}

.profile-master .profile-visual-group {
  grid-area: master-images;
  margin-block: 0;
}

.profile-master .profile-copy p {
  grid-area: master-body;
}

.profile-copy h3,
.mobile-hero-title {
  align-self: start;
  margin: 10px 0 0;
  font-size: clamp(1.12rem, 5.2vw, 1.44rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--mobile-card-text-color);
}

.profile-copy h3 .title-desktop {
  display: none;
}

.profile-copy h3 .title-mobile {
  display: inline;
}

.mobile-hero-title .title-saffron,
.profile-copy h3 .title-saffron {
  color: rgb(var(--accent-rgb) / 0.95);
}

.profile-copy p,
.mobile-hero-lead {
  margin-top: 0.44rem;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--mobile-card-text-color);
}

.mobile-hero-card,
.profile-visual,
.profile-master .profile-visual-group {
  justify-self: center;
  margin-inline: auto;
  align-self: center;
}

.profile-master .profile-visual-group {
  width: fit-content;
}

.mobile-hero-lead,
.profile-sam .profile-copy p,
.profile-master .profile-copy p {
  align-self: end;
  margin: 20px 0 20px;
}

.profile-visual {
  width: var(--journey-card-width);
  border-radius: 16px;
  justify-self: center;
  animation: floatCard 9s ease-in-out infinite;
}

.profile-sam .profile-visual {
  width: var(--mobile-feature-image-width);
  justify-self: center;
}

.profile-visual-group {
  width: 100%;
  max-width: none;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, min(var(--mobile-master-image-width), calc((100% - 0.56rem) / 2))));
  justify-content: center;
  align-items: end;
  gap: 0.56rem;
  overflow-x: clip;
}

.master-card {
  width: 100%;
  border-radius: 16px;
  animation: floatCard 9s ease-in-out infinite;
}

.waitlist {
  min-height: auto;
  padding: 0.92rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.74rem;
  align-items: start;
  position: relative;
  z-index: 3;
}

.waitlist-copy {
  max-width: 30ch;
  justify-self: center;
  text-align: center;
}

.waitlist h2 {
  margin-top: 20px;
  font-size: clamp(1.42rem, 6.8vw, 1.82rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--mobile-card-text-color);
}

.waitlist p {
  margin-top: 0.34rem;
  font-size: 0.86rem;
  line-height: 1.46;
  color: var(--mobile-card-text-color);
}

.waitlist-form {
  grid-template-rows: none;
  min-height: 0;
  gap: 0.48rem;
}

.waitlist-form .field:nth-of-type(1),
.waitlist-form .field:nth-of-type(2),
.waitlist-form .field:nth-of-type(3),
.waitlist-form .btn,
.form-message,
.form-note {
  grid-row: auto;
}

.field span {
  font-size: 0.7rem;
  text-align: center;
}

.field input {
  min-height: 38px;
  border-radius: 10px;
  padding: 0.42rem 0.66rem;
  font-size: 0.84rem;
  background: rgb(var(--bg-rgb) / 0.9);
  text-align: center;
}

.waitlist-form .btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  margin-top: 0.08rem;
  font-size: 0.86rem;
  padding: 0.35rem 0.72rem;
}

.form-message:not(:empty) {
  min-height: 1rem;
  font-size: 0.78rem;
}

.form-note {
  padding-top: 0.06rem;
  font-size: 0.72rem;
  line-height: 1.34;
  text-align: center;
}

.footer {
  padding: 1.45rem 0 0.9rem;
  font-size: 0.62rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 760ms ease-out,
    transform 860ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#waitlist.reveal,
#waitlist.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.profile.reveal,
.profile.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.profile-mobile-hero .mobile-hero-title,
.profile-mobile-hero .mobile-hero-card,
.profile-mobile-hero .mobile-hero-lead,
.profile-sam .profile-copy h3,
.profile-sam .profile-visual,
.profile-sam .profile-copy p,
.profile-master .profile-copy h3,
.profile-master .profile-visual-group,
.profile-master .profile-copy p {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1500ms ease-out,
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-mobile-hero .mobile-hero-title.visible,
.profile-sam .profile-copy h3.visible,
.profile-master .profile-copy h3.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-mobile-hero .mobile-hero-card.visible,
.profile-sam .profile-visual.visible,
.profile-master .profile-visual-group.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-mobile-hero .mobile-hero-lead.visible,
.profile-sam .profile-copy p.visible,
.profile-master .profile-copy p.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-master .master-desktop-tail {
  display: none;
}

#sam,
#master,
#waitlist {
  scroll-margin-top: 5.2rem;
}

@media (max-width: 430px) {
  :root {
    --journey-card-width: clamp(132px, 43vw, 178px);
    --mobile-card-height: 90svh;
  }

  .site-shell {
    width: calc(100% - 0.9rem);
  }

  .topbar {
    width: calc(100% - 0.9rem);
  }

  .hero {
    min-height: calc(100svh - 5.3rem);
    padding: 0.84rem 0.08rem 1.1rem;
    gap: 0.66rem;
  }

  .hero-copy h1 {
    margin-inline: auto;
  }

  .hero-copy h1 {
    max-width: 9.8ch;
    font-size: clamp(1.68rem, 9.2vw, 2.16rem);
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    width: var(--journey-card-width);
    justify-self: center;
  }

  .profile,
  .profile-mobile-hero,
  .profile-sam,
  .profile-master,
  .waitlist {
    border-radius: 18px;
    padding: 0.78rem;
  }

  .profile-copy h3 {
    font-size: clamp(1.02rem, 5.5vw, 1.24rem);
  }

  .profile-copy p,
  .mobile-hero-lead {
    font-size: 0.84rem;
  }

  .profile-visual {
    width: var(--journey-card-width);
    justify-self: center;
  }

  .profile-sam .profile-visual,
  .profile-master .profile-visual-group {
    margin-block: 0;
  }

  .waitlist h2 {
    font-size: clamp(1.26rem, 7vw, 1.58rem);
  }
}
