/* Better's product screens, with a little room to breathe. */
.atmosphere-site {
  --ambient-sky: #82b9f5;
  --ambient-mint: #88d2b9;
  --ambient-peach: #efab7e;
  --ambient-edge: #ffffffb3;
  background: var(--paper);
}
.atmosphere-site .site-nav {
  position: fixed;
  top: 20px;
  border-color: var(--line);
  background: var(--experience-nav);
  box-shadow: 0 8px 32px #24374d08;
  transition: box-shadow .35s ease, background .35s ease;
}
.atmosphere-site.page-scrolled .site-nav { box-shadow: 0 8px 32px #24374d14; }
.atmosphere-site main { overflow: clip; }
.atmosphere-site :is(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.atmosphere-site .pill, .atmosphere-site .native-store {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.atmosphere-site .pill:hover { transform: translateY(-2px); }
.atmosphere-site .sub-hero, .atmosphere-site .club-hero {
  background: radial-gradient(ellipse at 22% 10%, #c8e1f542, transparent 62%), radial-gradient(ellipse at 78% 85%, #e5c8a933, transparent 55%), var(--experience-panel);
}

/* The color is behind the product, never over the copy or controls. */
.atmosphere-home .hero-experience,
.atmosphere-home .beto-section,
.atmosphere-home .launch-section {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
.ambient-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.ambient-wash {
  position: absolute;
  width: 85%;
  height: 75%;
  border-radius: 50%;
  opacity: .72;
  animation: ambient-drift 22s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}
.ambient-wash-sky {
  left: -28%; top: 19%;
  background: radial-gradient(ellipse, var(--ambient-sky), transparent 66%);
}
.ambient-wash-mint {
  right: -30%; top: 30%;
  background: radial-gradient(ellipse, var(--ambient-mint), transparent 66%);
  animation-name: ambient-tide;
  animation-duration: 27s;
  animation-delay: -9s;
}
.ambient-wash-peach {
  width: 115%; height: 60%; left: -8%; bottom: -12%;
  background: radial-gradient(ellipse, var(--ambient-peach), transparent 66%);
  animation-duration: 31s;
  animation-delay: -14s;
}
.ambient-orbit {
  position: absolute;
  width: 145%; height: 39%; left: -23%; top: 51%;
  border: 1px solid var(--ambient-edge);
  border-radius: 50%;
  transform: rotate(-7deg);
  box-shadow: 0 -18px 70px #ffffff36, inset 0 10px 50px #ffffff29;
  animation: ambient-orbit 26s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.ambient-field.is-active :is(.ambient-wash, .ambient-orbit) { animation-play-state: running; }
@keyframes ambient-drift {
  from { transform: translate3d(-4%, -5%, 0) scale(.98); }
  to { transform: translate3d(16%, 10%, 0) scale(1.16); }
}
@keyframes ambient-tide {
  from { transform: translate3d(7%, 11%, 0) scale(1.08); }
  to { transform: translate3d(-19%, -9%, 0) scale(.93); }
}
@keyframes ambient-orbit {
  from { transform: translateY(0) rotate(-7deg); }
  to { transform: translateY(32px) rotate(3deg); }
}

/* A centered opening with the app itself as the focal point. */
.atmosphere-home .hero.hero-experience {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 108px 28px 30px;
  min-height: 0;
  margin: 10px 10px 0;
  border-radius: 36px;
  background: #f3f4f6;
}
.atmosphere-home .hero.hero-experience .hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0;
}
.atmosphere-home .hero-experience .eyebrow {
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 550;
  margin: 0 0 12px;
  color: var(--muted);
}
.atmosphere-home .hero-experience h1 {
  font-size: clamp(54px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -.065em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.atmosphere-home .hero-experience h1 .serif { font-weight: 400; }
.atmosphere-home .hero-experience h1 br { display: none; }
.atmosphere-home .hero-experience h1 .serif { display: inline-block; margin-inline-start: .22em; }
.atmosphere-home .hero-experience .lead {
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.atmosphere-home .hero-store-buttons { justify-content: center; }
.atmosphere-home .native-store { border-radius: 13px; min-width: 158px; min-height: 50px; padding-block: 8px; justify-content: center; }
.atmosphere-home .hero-explore { display: none; }
.atmosphere-home .hero-showcase {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  transform: translate3d(0, calc(-1 * var(--hero-drift, 0px)), 0);
}
.atmosphere-home .hero-experience .hero-stage {
  height: 560px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  left: auto;
  transform: none;
}
.atmosphere-home .hero-experience .demo-phone {
  width: 248px;
  margin: 0;
  border-radius: 44px;
  transform: rotate(-1.5deg);
  box-shadow: 0 0 0 1px #858a91, 0 34px 70px #20324630;
}
.hero-side {
  position: absolute;
  top: 48px;
  width: 210px;
  border: 5px solid #282b30;
  border-radius: 37px;
  overflow: hidden;
  background: #101114;
  box-shadow: 0 0 0 1px #858a9180, 0 24px 60px #263c5529;
  pointer-events: none;
}
.hero-side img { display: block; width: 100%; height: auto; border-radius: 0; }
.hero-side-sleep { left: calc(50% - 318px); transform: rotate(-9deg); }
.hero-side-nutrition { left: calc(50% + 108px); transform: rotate(9deg); }
.atmosphere-home .hero-experience .watch-product {
  width: 160px;
  left: calc(50% + 130px);
  right: auto;
  top: 150px;
  bottom: auto;
  transform: rotate(9deg);
}
.atmosphere-home .preview-controls { max-width: 540px; gap: 12px; position: relative; z-index: 4; }
.atmosphere-home .preview-views {
  padding: 6px;
  background: #ffffffa6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: #ffffffd9;
}
.atmosphere-home .preview-views button { font-size: 11px; padding: 10px 14px; }
.atmosphere-home .preview-play { width: 38px; height: 38px; }

/* Keep the detailed product sections, with a quieter centered rhythm. */
.atmosphere-home .section { padding-block: 115px; }
.atmosphere-home main > .section > .section-heading,
.atmosphere-home .wellness-section > .section-heading {
  text-align: center;
  max-width: 790px;
  margin-inline: auto;
  margin-bottom: 58px;
}
.atmosphere-home .section-heading > p { margin-inline: auto; }
.atmosphere-home :is(.section-heading, .device-heading, .wellness-overview-heading) h2 { text-wrap: balance; }
.atmosphere-home .device-gallery {
  border: 0;
  border-radius: 36px;
  background: linear-gradient(180deg, #f6f8f9, #edf2f3);
  box-shadow: none;
  margin-top: 24px;
  margin-bottom: 32px;
  padding-top: 72px;
}
.atmosphere-home .wellness-overview { padding-block: 105px; }
.atmosphere-home .wellness-overview-heading { max-width: 790px; text-align: center; margin-inline: auto; }
.atmosphere-home .wellness-overview-intro { margin-inline: auto; }
.atmosphere-home .wellness-pillar { border-radius: 22px; }
.atmosphere-home .beto-section {
  padding-block: 100px;
  background: #f2f5f3;
  border-radius: 36px;
  margin-inline: 10px;
}
.atmosphere-home .beto-section .ambient-wash { opacity: .2; }
.atmosphere-home .beto-section .ambient-orbit { display: none; }
.atmosphere-home .beto-layout { position: relative; z-index: 1; }
.atmosphere-home .food-visual {
  background: radial-gradient(ellipse at 70% 65%, #ecd0b7aa, transparent 68%), #f6f0e9;
  border-radius: 32px;
}
.atmosphere-home .social-section { border-radius: 36px; margin-inline: 10px; }
.atmosphere-home .club-preview { gap: 54px; }
.atmosphere-home .launch-section {
  padding-block: 112px;
  margin-inline: 10px;
  border-radius: 36px;
  background: #edf3f4;
}
.atmosphere-home .launch-section > :not(.ambient-field) { position: relative; z-index: 1; }
.atmosphere-home .launch-section h2 { max-width: 820px; font-size: clamp(48px, 5.7vw, 76px); }
.atmosphere-home .launch-section .ambient-orbit { top: 50%; opacity: .5; }
.atmosphere-home .waitlist { position: relative; z-index: 2; }
.atmosphere-home .footer { padding-top: 74px; }

/* A rolling blue volume, shared by the opening and the final page edge. */
.blue-field {
  --blue-surface: #f3f4f6;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  background: linear-gradient(180deg, var(--blue-surface) 0%, var(--blue-surface) 42%, #d8f4ff 67%, #4c91ff 85%, #0055ff 100%);
}
.blue-field::before {
  content: "";
  position: absolute;
  inset: 35% -25% -15%;
  background: radial-gradient(ellipse at 20% 75%, #0055ff 0%, #347bff 22%, #97e6ff 39%, transparent 65%), radial-gradient(ellipse at 80% 85%, #0055ff 0%, #428cff 22%, #97e6ff 44%, transparent 70%);
  transform: translate3d(-4%, 5%, 0) scale(1.05);
}
.blue-field.is-running::before { animation: blue-fallback-flow 16s ease-in-out infinite alternate; }
.blue-field canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.blue-field.has-webgl canvas { opacity: 1; }
.blue-field.has-webgl::before { display: none; }
@keyframes blue-fallback-flow {
  to { transform: translate3d(8%, -8%, 0) scale(1.15); }
}
.atmosphere-site .footer.wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 100px max(28px, calc((100vw - 1200px) / 2)) 86px;
  overflow: hidden;
}
.atmosphere-site .footer .blue-field { --blue-surface: #ffffff; }
.atmosphere-site .footer-glass {
  position: relative;
  z-index: 1;
  padding: 38px;
  border: 1px solid #d4dae1b3;
  border-radius: 26px;
  background: #ffffffd6;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 8px 28px #244c7c05;
}
.atmosphere-site .footer-glass .footer-bottom { border-color: #8792a333; }
.blue-field-toggle {
  position: absolute;
  z-index: 2;
  right: max(28px, calc((100vw - 1200px) / 2));
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  color: #fff;
  background: #0038b759;
  cursor: pointer;
}
.blue-field-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.blue-field-toggle .blue-play-icon,
.blue-field-toggle[aria-pressed=false] .blue-pause-icon { display: none; }
.blue-field-toggle[aria-pressed=false] .blue-play-icon { display: block; }
:root[data-theme=dark] .blue-field { --blue-surface: #08090c; }
:root[data-theme=dark] .atmosphere-site .footer .blue-field { --blue-surface: #08090c; }
:root[data-theme=dark] .atmosphere-site .footer-glass { background: #0d1524d9; border-color: #a6ccff26; }
@media (max-width: 760px) {
  .atmosphere-site .footer.wrap { padding: 70px 16px 66px; }
  .atmosphere-site .footer-glass { padding: 27px 22px; border-radius: 23px; }
  .blue-field-toggle { right: 16px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .blue-field.is-running::before { animation: none; }
}
html.js-ready .atmosphere-home .reveal.pending { transform: translateY(26px); transition: opacity .85s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
html.js-ready .atmosphere-home .reveal.seen { transform: none; }

:root[data-theme=dark] .atmosphere-site {
  --ambient-sky: #3a6a9f;
  --ambient-mint: #467c6f;
  --ambient-peach: #b36d43;
  --ambient-edge: #e5e7eb1a;
}
:root[data-theme=dark] .atmosphere-home .hero.hero-experience { background: #08090c; }
:root[data-theme=dark] .atmosphere-home .ambient-wash { opacity: .5; }
:root[data-theme=dark] .atmosphere-home .hero-experience .eyebrow { color: #bcc8ce; }
:root[data-theme=dark] .atmosphere-home .hero-experience .demo-phone { box-shadow: 0 0 0 1px #737a83, 0 34px 70px #0008; }
:root[data-theme=dark] .atmosphere-home .preview-views { background: #15212bd9; border-color: #ffffff20; }
:root[data-theme=dark] .atmosphere-home .device-gallery { background: linear-gradient(180deg, #111b23, #111c21); }
:root[data-theme=dark] .atmosphere-home .beto-section { background: #111c1b; }
:root[data-theme=dark] .atmosphere-home .food-visual { background: radial-gradient(ellipse at 70% 65%, #553e2c77, transparent 68%), #211c17; }
:root[data-theme=dark] .atmosphere-home .launch-section { background: #121e25; }
:root[data-theme=dark] .atmosphere-site :is(.sub-hero, .club-hero) { background: radial-gradient(ellipse at 20% 0%, #21374c66, transparent 70%), var(--experience-panel); }

@media (min-width: 1500px) {
  .atmosphere-home .hero.hero-experience { margin-inline: 18px; padding-top: 120px; }
}
@media (max-width: 1000px) {
  .atmosphere-home .hero.hero-experience { padding-top: 104px; gap: 22px; }
  .atmosphere-home .hero-experience h1 { font-size: clamp(48px, 6.2vw, 62px); }
  .atmosphere-home .hero-experience h1 br { display: initial; }
  .atmosphere-home .hero-experience h1 .serif { margin-inline-start: 0; }
  .atmosphere-home .hero-experience .lead { font-size: 16px; }
  .atmosphere-home .hero-experience .hero-stage { height: 510px; }
  .atmosphere-home .hero-experience .demo-phone { width: 225px; }
  .hero-side { width: 188px; }
  .hero-side-sleep { left: calc(50% - 286px); }
  .hero-side-nutrition { left: calc(50% + 98px); }
  .atmosphere-home .hero-experience .watch-product { width: 145px; left: calc(50% + 106px); top: 145px; bottom: auto; }
}
@media (max-width: 760px) {
  .atmosphere-site .site-nav { top: 16px; }
  .atmosphere-home .hero.hero-experience { margin: 6px 6px 0; padding: 96px 18px 24px; gap: 22px; border-radius: 28px; }
  .atmosphere-home .hero.hero-experience .hero-copy { width: 100%; max-width: 530px; }
  .atmosphere-home .hero-experience h1 { font-size: clamp(42px, 8vw, 58px); line-height: 1.06; margin-bottom: 14px; }
  .atmosphere-home .hero-experience .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .atmosphere-home .hero-experience .lead { max-width: 410px; font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
  .atmosphere-home .hero-store-buttons { gap: 9px; }
  .atmosphere-home .native-store { min-width: 0; padding-inline: 14px; border-radius: 12px; }
  .atmosphere-home .hero-explore { font-size: 11px; margin-top: 23px; }
  .atmosphere-home .hero-showcase { max-width: 540px; }
  .atmosphere-home .hero-experience .hero-stage { height: 455px; }
  .atmosphere-home .hero-experience .demo-phone { width: 202px; border-radius: 33px; border-width: 5px; margin-left: 0; }
  .hero-side { top: 46px; width: 166px; border-radius: 28px; border-width: 4px; }
  .hero-side-sleep { left: calc(50% - 237px); transform: rotate(-10deg); }
  .hero-side-nutrition { left: calc(50% + 72px); transform: rotate(10deg); }
  .atmosphere-home .hero-experience .watch-product { width: 122px; left: calc(50% + 61px); top: 190px; bottom: auto; }
  .atmosphere-home .preview-controls { gap: 7px; }
  .atmosphere-home .preview-views { padding: 4px; }
  .atmosphere-home .preview-views button { padding: 10px 8px; font-size: 9px; }
  .atmosphere-home .preview-play { width: 31px; height: 31px; }
  .atmosphere-home .section { padding-block: 78px; }
  .atmosphere-home main > .section > .section-heading,
  .atmosphere-home .wellness-section > .section-heading { margin-bottom: 37px; }
  .atmosphere-home .device-gallery { margin-top: 18px; border-radius: 27px; padding-top: 55px; }
  .atmosphere-home .wellness-overview { padding-block: 72px; }
  .atmosphere-home :is(.beto-section, .social-section, .launch-section) { margin-inline: 6px; border-radius: 28px; padding-block: 75px; }
  .atmosphere-home .food-visual { border-radius: 27px; }
  .atmosphere-home .launch-section h2 { font-size: clamp(43px, 9vw, 58px); }
  .ambient-wash { opacity: .5; }
}
@media (max-width: 390px) {
  .atmosphere-home .hero.hero-experience { padding-inline: 14px; }
  .atmosphere-home .hero-experience .hero-stage { height: 430px; }
  .atmosphere-home .hero-experience .demo-phone { width: 190px; }
  .atmosphere-home .hero-experience .watch-product { width: 112px; left: calc(50% + 54px); top: 182px; bottom: auto; }
  .hero-side { width: 154px; }
  .hero-side-sleep { left: calc(50% - 220px); }
  .hero-side-nutrition { left: calc(50% + 66px); }
  .atmosphere-home .preview-views button { padding-inline: 6px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-field :is(.ambient-wash, .ambient-orbit) { animation: none !important; will-change: auto; }
  .atmosphere-home .hero-showcase { transform: none; }
  .atmosphere-site .pill:hover { transform: none; }
  html.js-ready .atmosphere-home .reveal.pending { opacity: 1; transform: none; transition: none; }
}
