/* Lumina marketing site, style B: Orbit */
@font-face {
  font-family: "Playfair Display";
  src: url(/assets/fonts/playfair-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --raised: #23233b;
  --sel: #2b2440;
  --border: #413652;
  --lav: #c4a3ff;
  --deep: #5e35b1;
  --tx: #fff;
  --tx2: #d2cddf;
  --tx3: #b7b1c8;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 1rem/1.6 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 2px solid var(--lav);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--lav);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* type */
.eyebrow {
  font: 600 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx3);
}
h2 {
  font: 600 clamp(2.25rem, 1.45rem + 2.7vw, 3.5rem)/1.06 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--tx2);
  text-wrap: pretty;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(15, 15, 26, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: rgba(65, 54, 82, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav.scrolled::after {
  opacity: 1;
}
.nav-in {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 1.3125rem/1 var(--serif);
  letter-spacing: -0.01em;
}
.brand .i {
  width: 22px;
  height: 22px;
  color: var(--lav);
  stroke-width: 1.8;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--lav);
  color: var(--bg);
  font: 600 0.9375rem/1 var(--sans);
  text-decoration: none;
  transition: transform 0.1s ease-out;
}
.pill:active,
.badge:active,
.g-btn:active {
  transform: scale(0.97);
}

/* App Store badge: Apple's official artwork (developer.apple.com/app-store/marketing/guidelines) */
.badge {
  display: inline-block;
  border-radius: 12px;
  line-height: 0;
  transition: transform 0.1s ease-out;
}
.badge img {
  display: block;
  height: 54px;
  width: auto;
}
.badge.lg img {
  height: 60px;
}

/* iPhone frame */
.phone {
  container-type: inline-size;
  position: relative;
}
.screen {
  position: relative;
  overflow: hidden;
  background: var(--sb, #0f1018);
  border: 3.2cqw solid #06060b;
  border-radius: 15.5cqw;
  box-shadow:
    0 0 0 1px #3a3650,
    0 0 0 0.55cqw #17161f,
    0 0 0 calc(0.55cqw + 1px) rgba(255, 255, 255, 0.13),
    0 30px 60px -18px rgba(0, 0, 0, 0.75);
}
.sbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 11.6cqw;
  padding: 1cqw 7.6cqw 0 10cqw;
  background: var(--sb, #0f1018);
  font: 600 4.3cqw/1 var(--sans);
  letter-spacing: -0.01em;
  color: #fff;
}
.sbar i {
  position: absolute;
  left: 50%;
  top: 2.5cqw;
  width: 29cqw;
  height: 8.4cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: #000;
}
.sbar svg {
  height: 3.4cqw;
  width: auto;
  aspect-ratio: 68 / 14;
}
.screen img {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.screen img.fit {
  aspect-ratio: 400 / 869;
  object-fit: cover;
  object-position: 50% 0;
}

/* hero */
.hero {
  position: relative;
  padding-top: clamp(44px, 7vh, 80px);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 auto;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(
    60% 55% at 50% 0%,
    rgba(94, 53, 177, 0.3),
    rgba(94, 53, 177, 0) 70%
  );
}
.h-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
h1 {
  margin: 0 0 18px;
  font: 600 clamp(2.75rem, 1.5rem + 4.2vw, 5rem)/1 var(--serif);
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h-lede {
  margin: 0 auto;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--tx2);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.note {
  font-size: 0.875rem;
  color: var(--tx3);
}
.h-clip {
  position: relative;
  overflow: hidden;
  margin-top: clamp(-84px, -5.4vw, -20px);
  -webkit-mask-image: linear-gradient(#000 72%, transparent 99%);
  mask-image: linear-gradient(#000 72%, transparent 99%);
}
.h-stage {
  --sw: min(1400px, 100%);
  position: relative;
  width: var(--sw);
  margin-left: calc(50% - var(--sw) / 2);
  aspect-ratio: 2 / 1;
}
.h-orbit {
  position: absolute;
  left: -50%;
  top: 0;
  width: 200%;
  height: 100%;
  overflow: visible;
}
.h-orbit path {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.h-orbit .arc {
  stroke: rgba(196, 163, 255, 0.5);
  stroke-width: 1.6;
  animation: draw 1.1s cubic-bezier(0.3, 0.55, 0.25, 1) 0.05s forwards;
}
.h-orbit .arc2 {
  stroke: rgba(196, 163, 255, 0.2);
  stroke-width: 1.2;
  animation: draw 1.2s cubic-bezier(0.3, 0.55, 0.25, 1) 0.15s forwards;
}
.h-orbit .node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.5s var(--ease) var(--nd) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.h-ph {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--z);
  translate: -50% -50%;
  rotate: var(--r);
  animation: rise 0.8s var(--ease) var(--d) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
@supports (animation-timeline: scroll()) {
  .h-orbit {
    animation: drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
  }
}
@keyframes drift {
  to {
    transform: translateY(-56px);
  }
}

/* gallery */
.gallery {
  padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 6vw, 80px);
}
.g-head {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.g-head .lede {
  margin-top: 14px;
}
.g-stage {
  position: relative;
  margin-top: clamp(20px, 3vw, 40px);
}
.g-orbit-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.g-orbit {
  position: absolute;
  left: 50%;
  top: 40%;
  margin: -380px 0 0 -1800px;
}
.g-orbit path {
  fill: none;
}
.g-orbit .ga {
  stroke: rgba(196, 163, 255, 0.34);
  stroke-width: 1.5;
}
.g-orbit .gb {
  stroke: rgba(196, 163, 255, 0.14);
  stroke-width: 1.2;
}
.g-vp {
  --cw: clamp(224px, min(19vw, 29vh), 284px);
  --gap: clamp(28px, 4.2vw, 76px);
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 28px 0 12px;
  outline-offset: -2px;
  user-select: none;
  -webkit-user-select: none;
}
.g-vp::-webkit-scrollbar {
  display: none;
}
.g-track {
  position: relative;
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 0 calc(50vw - var(--cw) / 2);
}
.g-card {
  flex: 0 0 var(--cw);
  width: var(--cw);
  scroll-snap-align: center;
  transform-origin: 50% 42%;
}
.g-card .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0f0f1a;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.g-cap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 0 4px;
  text-align: left;
}
.g-cap div > b {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.g-cap div > span {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--tx3);
  text-wrap: balance;
}
.js .g-vp {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.js .g-vp.drag {
  cursor: grabbing;
}
.g-vp:focus-visible {
  outline: none;
}
.g-vp:focus-visible .g-card[aria-current="true"] .phone {
  outline: 2px solid var(--lav);
  outline-offset: 8px;
  border-radius: 52px;
}
.js .g-track {
  will-change: transform;
}
.g-ctrl {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}
.js .g-ctrl {
  display: flex;
}
.g-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--tx);
  background: var(--raised);
  border: 1px solid #7a6b93;
  transition:
    transform 0.1s ease-out,
    opacity 0.2s ease,
    background-color 0.15s ease;
}
.g-btn .i {
  width: 22px;
  height: 22px;
}
.g-btn:hover {
  background: var(--sel);
}
.g-btn[aria-disabled="true"] {
  cursor: default;
  background: var(--surface);
  border-color: #4a3e61;
}
.g-btn[aria-disabled="true"] .i {
  opacity: 0.4;
}
.g-count {
  min-width: 4.5ch;
  text-align: center;
  font: 400 0.9375rem/1 var(--sans);
  color: var(--tx3);
  font-variant-numeric: tabular-nums;
}

/* feature tiles: crisp iOS-style squares, one consistent set */
.t-warm {
  --fg: #fcd48a;
  --bg: #342b22;
  --bg2: #40382f;
  --line: rgba(252, 212, 138, 0.18);
}
.t-cyan {
  --fg: #7dd3fc;
  --bg: #172b3d;
  --bg2: #253849;
  --line: rgba(125, 211, 252, 0.18);
}
.t-blue {
  --fg: #a5b4fc;
  --bg: #252643;
  --bg2: #32334e;
  --line: rgba(165, 180, 252, 0.18);
}
.t-lav {
  --fg: #c4a3ff;
  --bg: #2a2342;
  --bg2: #37304d;
  --line: rgba(196, 163, 255, 0.18);
}
.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--fg);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  box-shadow: inset 0 0 0 1px var(--line);
}
.tile.sm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.ti {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}
.tile.sm .ti {
  width: 20px;
  height: 20px;
}

/* chapters */
.chapters {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: clip;
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 6vw, 88px) 0;
}
.chapter.flip .c-text {
  order: 2;
}
.c-text {
  max-width: 34rem;
}
.c-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
}
.c-text h2,
.card h2 {
  margin: 22px 0 16px;
  font-size: clamp(2.75rem, 1.55rem + 3.9vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.c-text .lede,
.card .lede {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.45;
  color: var(--tx2);
}
.c-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}
.c-art .phone {
  width: clamp(250px, 26vw, 330px);
  z-index: 1;
}
.c-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(150%, 640px);
  aspect-ratio: 1;
  translate: -50% -50%;
  overflow: visible;
}
.c-ring .r1,
.c-ring .r2 {
  fill: none;
}
.c-ring .r1 {
  stroke: rgba(196, 163, 255, 0.28);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  rotate: -90deg;
  transform-origin: center;
  transform-box: fill-box;
}
.c-ring .r2 {
  stroke: rgba(196, 163, 255, 0.12);
  stroke-width: 1.2;
}
.js .rv .r1 {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s cubic-bezier(0.3, 0.55, 0.25, 1) 0.25s;
}
.js .rv.in .r1 {
  stroke-dashoffset: 0;
}

/* reveal */
/* the section itself never moves (anchor links measure it); only its children rise */
.js .rv {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.js .rv.in {
  opacity: 1;
}
.js .rv > * {
  transform: translateY(36px);
  transition: transform 0.9s var(--ease);
}
.js .rv.in > * {
  transform: none;
}
.js .chapter.rv .c-art {
  transform: translateY(40px);
  transition: transform 1.1s var(--ease) 0.08s;
}
.js .chapter.rv.in .c-art {
  transform: none;
}

/* learning + tools */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: clamp(32px, 4vw, 56px) 0 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #15152a 100%);
  border: 1px solid rgba(65, 54, 82, 0.85);
}
.card-copy .lede {
  padding-bottom: 36px;
}
/* side by side: the two cards share row tracks, so ledes and phones line up even if one heading wraps */
@media (min-width: 701px) {
  .duo {
    grid-template-rows: repeat(4, auto);
  }
  .card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .card-copy {
    display: contents;
  }
  .card h2 {
    align-self: end;
  }
}
.card h2 {
  font-size: clamp(2.25rem, 1.45rem + 2.1vw, 3.25rem);
  margin: 20px 0 12px;
}
.card-ph {
  position: relative;
  height: clamp(300px, 27vw, 380px);
  margin-top: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.card-ph .phone {
  width: min(300px, 76%);
  flex: none;
}

/* final */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 24px clamp(96px, 11vw, 150px);
}
.f-art {
  position: relative;
  width: max(100%, 620px);
  max-width: 1000px;
  margin: 0 0 18px calc(50% - max(100%, 620px) / 2);
  aspect-ratio: 1000 / 240;
}
@media (min-width: 1048px) {
  .f-art {
    margin-left: auto;
    margin-right: auto;
  }
}
.f-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  rotate: -5deg;
}
.f-ring path {
  fill: none;
  stroke: rgba(196, 163, 255, 0.45);
  stroke-width: 1.5;
}
.f-back path {
  stroke: rgba(196, 163, 255, 0.22);
}
.f-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  box-shadow: inset 0 0 0 1px var(--line);
}
.f-core .ti {
  width: 44%;
  height: 44%;
  stroke-width: 1.75;
}
.f-front {
  z-index: 1;
}
.final h2 {
  margin-bottom: 36px;
  font-size: clamp(2.75rem, 1.55rem + 3.9vw, 5rem);
  letter-spacing: -0.032em;
  line-height: 1.02;
}

/* footer */
.foot {
  border-top: 1px solid rgba(65, 54, 82, 0.7);
}
.f-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.foot .brand {
  font-size: 1.125rem;
}
.foot .brand .i {
  width: 20px;
  height: 20px;
}
.f-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.f-links a,
.copy {
  font-size: 0.9375rem;
  color: var(--tx3);
  text-decoration: none;
}
/* Moon calendar links: their own row above the brand, legal links and copyright */
.f-moon {
  order: -1;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(65, 54, 82, 0.5);
}
.f-label {
  font: 600 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx3);
}
.f-links a:hover {
  color: var(--tx);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* responsive */
@media (max-width: 1100px) {
  .h-stage {
    --sw: min(1400px, 150%);
  }
}
@media (max-width: 960px) {
  .chapter {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 48px 0;
  }
  .chapter.flip .c-text {
    order: 0;
  }
  .c-text {
    max-width: 36rem;
    margin: 0 auto;
  }
  .c-kicker {
    justify-content: center;
  }
  .card-copy {
    text-align: center;
  }
  .c-art {
    padding: 24px 0;
  }
}
@media (max-width: 760px) {
  .f-in {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }
  .f-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 12px 40px;
  }
  .f-moon {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .h-stage {
    --sw: 270%;
  }
  .br {
    display: none;
  }
  .g-vp {
    --cw: 60vw;
    --gap: 18px;
  }
  .duo {
    grid-template-columns: 1fr;
  }
  .h-ph.o2 {
    display: none;
  }
  .c-art .phone {
    width: min(66vw, 300px);
  }
  .c-ring {
    width: 128vw;
  }
  .chapters {
    padding: 0 20px;
  }
}
