/* Bloom site. Tokens mirror apps/mobile/src/design-system/tokens (surfaces, purple scale, radii). */
/* Layout: the app's own design system (src/design-system/tokens): surfaces, purple scale, SF Pro, pill buttons,
   28/36 radii and the "energy" gradient. Hero = headline + three phones fanned; then features, the scale, FAQ. */
:root {
  --roast: #09090b; /* surface.base */
  --bag: #141417; /* surface.raised */
  --bag-2: #1c1c20; /* surface.overlay */
  --seam: #26262b; /* surface.hairline */
  --milk: #ffffff; /* text.primary */
  --milk-2: #9a9aa2; /* text.secondary */
  --milk-3: #858590; /* text.tertiary */
  --crema: #b585ff; /* purple.300: accent text */
  --action: #8b2bf2; /* purple.500: primary action */
  --action-hover: #7a1fd8;
  --energy: linear-gradient(135deg, #9b5cff, #6417b0);
  --ok: #34d399; /* state.success */
  --display:
    -apple-system, "SF Pro Display", BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --body:
    -apple-system, "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
/* Links to a section glide there, stopping below the sticky header. Reduce Motion jumps instead. */
html {
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font: 400 1.0625rem / 1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  color: var(--milk);
  background: var(--roast);
}
.wrap {
  max-width: 1180px;
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  margin: 0 auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--crema);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Nav */
body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: env(safe-area-inset-top, 0px);
  content: "";
  background: var(--roast);
}
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--roast) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav .wrap {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-block: 14px;
}
.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 800 1.25rem / 1 var(--display);
  text-decoration: none;
}
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--milk-2);
  text-decoration: none;
}
.links a:hover {
  color: var(--milk);
}
.nav .right {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--action);
  border-radius: 999px;
}
.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}

/* Buttons */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font: 700 1rem / 1 var(--body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
}
.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.btn.primary {
  color: #fff;
  background: var(--action);
}
.btn.primary:hover {
  background: var(--action-hover);
}
.btn.outline {
  color: var(--milk);
  background: var(--bag);
  border-color: var(--seam);
}
.btn.outline:hover {
  border-color: var(--milk-3);
}
.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 96px);
  overflow-x: clip;
}
.hero .wrap {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}
.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  padding: 6px 12px 6px 8px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--milk-2);
  text-decoration: none;
  background: var(--bag);
  border: 1px solid var(--seam);
  border-radius: 999px;
}
.tag b {
  padding: 3px 8px;
  font-size: 0.72rem;
  color: #fff;
  letter-spacing: 0.04em;
  background: var(--energy);
  border-radius: 999px;
}
.hero h1 {
  max-width: 13ch;
  margin: 22px 0 22px;
  font-size: clamp(2.8rem, 1.4rem + 6.6vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
}
.hero h1 span {
  color: var(--crema);
}
.hero p.sub {
  max-width: 46ch;
  margin: 0 0 30px;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--milk-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.free {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--milk-3);
}
.shelf {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  gap: clamp(12px, 3vw, 36px);
  align-items: end;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.shelf .phone {
  --tx: 0px;
  --ty: 0px;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shelf .phone:nth-child(1) {
  transform: translate(calc(var(--tx) * -1), calc(8% + var(--ty) * -1))
    rotate(-6deg);
}
.shelf .phone:nth-child(2) {
  z-index: 1;
  transform: translate(var(--tx), var(--ty));
}
.shelf .phone:nth-child(3) {
  transform: translate(calc(var(--tx) * -1), calc(8% + var(--ty) * -1))
    rotate(6deg);
}
.shelf {
  position: relative;
}
/* A soft glow under the phones: an ellipse that fades out on every side, so it never shows an edge. */
.shelf::before {
  position: absolute;
  right: 8%;
  bottom: -6%;
  left: 8%;
  z-index: -1;
  height: 34%;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    closest-side,
    rgba(139, 43, 242, 0.32),
    rgba(139, 43, 242, 0.12) 55%,
    transparent
  );
  filter: blur(24px);
}

/* Motion. Everything is visible at rest; JS adds .stage only when motion is allowed, then .in plays it. */
@keyframes rise {
  from {
    transform: translateY(22px);
  }
  to {
    transform: none;
  }
}
@keyframes fan-l {
  from {
    transform: translateY(26%) rotate(0deg);
  }
}
@keyframes fan-c {
  from {
    transform: translateY(20%) scale(0.97);
  }
}
@keyframes fan-r {
  from {
    transform: translateY(26%) rotate(0deg);
  }
}
.stage .hero .tag,
.stage .hero h1,
.stage .hero .sub,
.stage .hero .actions,
.stage .hero .free {
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.stage .hero h1 {
  animation-delay: 80ms;
}
.stage .hero .sub {
  animation-delay: 160ms;
}
.stage .hero .actions {
  animation-delay: 240ms;
}
.stage .hero .free {
  animation-delay: 300ms;
}
.stage .shelf .phone:nth-child(1) {
  animation: fan-l 1100ms 300ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.stage .shelf .phone:nth-child(2) {
  animation: fan-c 1100ms 200ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.stage .shelf .phone:nth-child(3) {
  animation: fan-r 1100ms 400ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
/* Scroll reveals: the block fades in, its text steps up line by line, phones slide in from their own side.
   Parallax uses the separate `translate` property, so it stacks on top of these transforms. */
.stage .reveal {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.stage .reveal:not(.in) {
  opacity: 0;
}
.stage .reveal {
  transition: opacity 700ms var(--ease);
}
.stage .reveal .copy > *,
.stage .reveal.head > *,
.stage .reveal .copy li {
  transition:
    opacity 800ms var(--ease),
    transform 900ms var(--ease);
}
.stage .reveal:not(.in) .copy > *,
.stage .reveal.head:not(.in) > *,
.stage .reveal:not(.in) .copy li {
  opacity: 0;
  transform: translateY(26px);
}
.stage .reveal .copy > :nth-child(2),
.stage .reveal.head > :nth-child(2) {
  transition-delay: 90ms;
}
.stage .reveal .copy > :nth-child(3) {
  transition-delay: 160ms;
}
.stage .reveal .copy li:nth-child(1) {
  transition-delay: 220ms;
}
.stage .reveal .copy li:nth-child(2) {
  transition-delay: 290ms;
}
.stage .reveal .copy li:nth-child(3) {
  transition-delay: 360ms;
}
.stage .reveal .shots .phone {
  transition:
    transform 1300ms var(--ease),
    opacity 900ms var(--ease);
}
.stage .reveal .shots .phone:nth-child(2) {
  transition-delay: 120ms;
}
.stage .reveal:not(.in) .shots .phone {
  opacity: 0;
}
.stage .spot:not(.flip):not(.in) .shots .phone {
  transform: translate(18%, 10%) rotate(5deg);
}
.stage .spot.flip:not(.in) .shots .phone {
  transform: translate(-18%, 10%) rotate(-5deg);
}
.stage .card.reveal {
  transition:
    opacity 700ms var(--ease),
    transform 1000ms var(--ease),
    border-color 300ms ease;
}
.stage .card.reveal:not(.in) {
  transform: translateY(48px) scale(0.97);
}
.stage .faq.reveal details {
  transition:
    opacity 700ms var(--ease),
    transform 800ms var(--ease);
}
.stage .faq.reveal:not(.in) details {
  opacity: 0;
  transform: translateY(18px);
}
.stage .faq.reveal details:nth-child(2) {
  transition-delay: 70ms;
}
.stage .faq.reveal details:nth-child(3) {
  transition-delay: 140ms;
}
.stage .faq.reveal details:nth-child(4) {
  transition-delay: 210ms;
}
.parallax {
  will-change: translate;
}
.stage .grid3 .card:nth-child(2) {
  transition-delay: 90ms;
}
.stage .grid3 .card:nth-child(3) {
  transition-delay: 180ms;
}
.btn {
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  box-shadow: 0 10px 30px -12px rgba(139, 43, 242, 0.8);
}
.card {
  transition:
    border-color 300ms ease,
    transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover {
  border-color: #3a3a42;
  transform: translateY(-4px);
}
.card .phone {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .phone {
  transform: translateY(-10px);
}

/* iPhone frame, built from the device's real proportions (402 x 874 pt screen, ~55 pt corners):
   a polished titanium rim, a thin black bezel, the screen, and three side buttons. Sizes are in % of width
   via container units, so every phone stays crisp and identical at any size. */
.phone {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 434 / 906;
  container-type: inline-size;
}
.phone .body {
  position: absolute;
  inset: 0;
  padding: 1.15cqw;
  background: linear-gradient(
    160deg,
    #9a9aa3 0%,
    #45454d 14%,
    #23232a 36%,
    #1a1a1f 64%,
    #3c3c44 86%,
    #8e8e97 100%
  );
  border-radius: 18.4cqw;
  box-shadow:
    0 50px 90px -40px rgba(139, 43, 242, 0.55),
    0 24px 40px -24px rgba(0, 0, 0, 0.9);
}
.phone .bezel {
  position: relative;
  height: 100%;
  padding: 2.6cqw;
  background: #000;
  border-radius: 17.3cqw;
  box-shadow: inset 0 0 0 0.35cqw #2b2b31;
}
.phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bag);
  border-radius: 14.7cqw;
}
.phone .glare {
  position: absolute;
  inset: 2.6cqw;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.025) 30%,
    transparent 44%
  );
  border-radius: 14.7cqw;
}
.phone .btn-l,
.phone .btn-r {
  position: absolute;
  width: 1.2cqw;
  background: linear-gradient(90deg, #6e6e77, #2a2a30);
}
.phone .btn-l {
  left: -0.9cqw;
  border-radius: 0.8cqw 0 0 0.8cqw;
}
.phone .btn-r {
  right: -0.9cqw;
  background: linear-gradient(270deg, #6e6e77, #2a2a30);
  border-radius: 0 0.8cqw 0.8cqw 0;
}
.phone .b1 {
  top: 20%;
  height: 6%;
}
.phone .b2 {
  top: 29%;
  height: 10.5%;
}
.phone .b3 {
  top: 42%;
  height: 10.5%;
}
.phone .b4 {
  top: 31%;
  height: 16%;
}
/* Sections */
section.block {
  padding-block: clamp(64px, 9vw, 120px);
}
.head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.head h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}
.head p {
  max-width: 52ch;
  margin: 0;
  font-size: 1.15rem;
  color: var(--milk-2);
}

.spot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(24px, 4vw, 40px);
}
.spot.flip .copy {
  order: 2;
}
.spot .copy {
  min-width: 0;
}
.spot h3 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.02;
}
.spot p {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--milk-2);
}
.spot ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.spot li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--milk);
}
.spot li::before {
  flex: none;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--crema);
  border-radius: 999px;
  transform: translateY(-1px);
}
.spot .shots {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  justify-content: center;
}
.spot .shots .phone {
  max-width: 270px;
}
.spot .shots.two .phone {
  max-width: 230px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}
.card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 22px 0;
  overflow: hidden;
  background: var(--bag);
  border: 1px solid var(--seam);
  border-radius: var(--r-xl);
}
.card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}
.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--milk-2);
}
.card .phone {
  max-width: 230px;
  margin: 14px auto -28%;
}

/* Open source and the scale: raised bands; the scale sits on the page colour so the two read apart. */
.oss {
  background: var(--bag);
}
.oss.scale {
  background: transparent;
}
.oss .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.oss h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}
.oss p {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--milk-2);
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-bottom: 28px;
  list-style: none;
}
.stack li {
  padding: 8px 10px;
  font: 500 0.82rem / 1 var(--mono);
  color: var(--milk-2);
  border: 1px solid var(--seam);
  border-radius: 999px;
}

/* Open source: the pitch on the left, the installer card on the right. */
.oss-copy p {
  margin-bottom: 22px;
}
.facts {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--milk);
}
.facts svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--crema);
}
.installer {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--roast);
  border: 1px solid var(--seam);
  border-radius: var(--r-lg);
}
.installer h3 {
  margin: 0;
  font-size: 1.25rem;
}
.cmd {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 10px 10px 16px;
  background: #000;
  border: 1px solid var(--seam);
  border-radius: var(--r-md);
}
.cmd pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  font: 500 0.85rem / 1.6 var(--mono);
  color: var(--milk);
  word-break: break-all;
  /* The whole command stays visible: it wraps anywhere rather than scrolling out of sight. */
  white-space: pre-wrap;
}
.cmd pre .p {
  color: var(--crema);
  user-select: none;
}
.copy-btn {
  flex: none;
  min-height: 34px;
  padding: 6px 14px;
  font: 600 0.8rem / 1 var(--body);
  color: var(--milk);
  appearance: none;
  cursor: pointer;
  background: var(--bag-2);
  border: 1px solid var(--seam);
  border-radius: 999px;
}
.copy-btn:hover {
  border-color: var(--milk-3);
}
/* Copy button: the label stays in the flow to hold the width; the check fades in over it. */
.copy-btn {
  position: relative;
}
.copy-btn .label,
.copy-btn .ok {
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.copy-btn .ok {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  color: var(--ok);
  opacity: 0;
  transform: scale(0.4);
}
.copy-btn.done .label {
  opacity: 0;
  transform: scale(0.8);
}
.copy-btn.done .ok {
  opacity: 1;
  transform: scale(1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.installer .sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--milk-3);
}
.installer ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.installer li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--milk-2);
}
.installer .n {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  font: 700 0.8rem / 1 var(--body);
  color: var(--crema);
  background: rgba(139, 43, 242, 0.16);
  border-radius: 50%;
}
.installer .note {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--milk-3);
}
.installer .note a {
  color: var(--crema);
  white-space: nowrap;
  text-decoration: none;
}

/* Store buttons before launch: visibly unavailable, with a tooltip that also shows on focus and tap. */
.btn.soon {
  position: relative;
  cursor: default;
}
.btn.soon::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  padding: 8px 12px;
  font: 500 0.8rem / 1.3 var(--body);
  color: var(--milk);
  white-space: nowrap;
  pointer-events: none;
  content: attr(data-tip);
  background: var(--bag-2);
  border: 1px solid var(--seam);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}
.btn.soon.tip-below::after {
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: auto;
  transform: translateY(-4px);
}
.btn.soon:hover::after,
.btn.soon:focus-visible::after,
.btn.soon.tip-open::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.btn.soon.tip-below:hover::after,
.btn.soon.tip-below:focus-visible::after,
.btn.soon.tip-below.tip-open::after {
  transform: translateY(0);
}

.oss .tag {
  padding-right: 6px;
  margin-bottom: 18px;
}
.roadmap {
  padding: clamp(22px, 3vw, 32px);
  background: var(--roast);
  border: 1px solid var(--seam);
  border-radius: var(--r-lg);
}
.roadmap h3 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--milk-2);
}
.roadmap ol {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.roadmap li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.roadmap .dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px dashed var(--milk-3);
  border-radius: 50%;
}
.roadmap .done .dot {
  color: #fff;
  background: var(--action);
  border: 0;
}
.roadmap .dot svg {
  width: 16px;
  height: 16px;
}
.roadmap .what {
  font-weight: 500;
}
.roadmap .next .what {
  color: var(--milk-2);
}
.roadmap .state {
  font-size: 0.8rem;
  color: var(--milk-3);
}
.roadmap .done .state {
  color: var(--crema);
}

/* Pricing: two plans side by side, the lifetime one lifted by the energy gradient. */
.head.centered {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}
.head.centered p {
  max-width: 56ch;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin-inline: auto;
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bag);
  border: 1px solid var(--seam);
  border-radius: var(--r-lg);
}
.plan.featured {
  background:
    linear-gradient(var(--bag), var(--bag)) padding-box,
    var(--energy) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px -40px rgba(139, 43, 242, 0.7);
}
.plan h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--milk-2);
}
.plan .ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 6px 12px;
  margin: 0;
  font: 700 0.72rem / 1 var(--body);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--energy);
  border-radius: 999px;
}
.plan .price {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin: 0;
}
.plan .price b {
  font: 800 clamp(2.6rem, 1.8rem + 2.6vw, 3.4rem) / 1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.plan .price span {
  color: var(--milk-3);
}
.plan .for {
  margin: 0;
  color: var(--milk-2);
}
.plan ul {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 8px 0 0;
  margin: 0;
  list-style: none;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--crema);
}
.plan > * {
  min-width: 0;
}
/* Buttons may wrap inside a narrow card instead of pushing past its edge. */
.plan .btn {
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  min-height: 52px;
  padding-block: 10px;
  margin-top: 10px;
  text-align: center;
  white-space: normal;
}
.fine {
  max-width: 70ch;
  margin: 22px auto 0;
  font-size: 0.85rem;
  color: var(--milk-3);
  text-align: center;
}

/* FAQ: the heading holds the left column while the questions run down the right. */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-head {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
.faq-head h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}
.faq-head p {
  max-width: 32ch;
  margin: 0;
  color: var(--milk-2);
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--bag);
  border: 1px solid var(--seam);
  border-radius: var(--r-md);
  transition: border-color 200ms ease;
}
.faq details:hover,
.faq details[open] {
  border-color: #3a3a42;
}
.faq summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font: 600 1.05rem / 1.35 var(--body);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--milk-3);
  transition: transform 200ms ease;
}
.faq details[open] summary svg {
  color: var(--crema);
  transform: rotate(180deg);
}
.faq details p {
  max-width: 60ch;
  padding: 0 22px 20px;
  margin: 0;
  color: var(--milk-2);
}

/* Final CTA */
.final {
  text-align: center;
}
.final .wrap {
  display: grid;
  gap: 22px;
  justify-items: center;
}
.final img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}
.final h2 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
}
.final p {
  max-width: 44ch;
  margin: 0;
  font-size: 1.1rem;
  color: var(--milk-2);
}

@media (max-width: 900px) {
  footer .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .links {
    display: none;
  }
  .spot,
  .oss .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .spot.flip .copy {
    order: 0;
  }
  .grid3,
  .plans,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-head {
    position: static;
  }
}
@media (max-width: 560px) {
  .lang-list {
    flex-wrap: wrap;
  }
  .shelf {
    grid-template-columns: 1fr 1.15fr;
  }
  .shelf .phone:nth-child(3) {
    display: none;
  }
  .shelf .phone:nth-child(1) {
    transform: translateY(8%) rotate(-5deg);
  }
  .actions .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.actions.center {
  justify-content: center;
}

/* Language menu (header): a <details> dropdown with each language in its own name. */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px 0 12px;
  font: 600 0.85rem / 1 var(--body);
  color: var(--milk-2);
  cursor: pointer;
  list-style: none;
  background: var(--bag);
  border: 1px solid var(--seam);
  border-radius: 999px;
  transition:
    border-color 200ms ease,
    color 200ms ease;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--milk);
  border-color: var(--milk-3);
}
.lang-menu summary svg {
  width: 16px;
  height: 16px;
}
.lang-menu summary .chev {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.lang-menu[open] summary .chev {
  transform: rotate(180deg);
}
.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 210px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--bag-2);
  border: 1px solid var(--seam);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  animation: menu-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
.lang-menu li a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  color: var(--milk-2);
  text-decoration: none;
  border-radius: 14px;
}
.lang-menu li a:hover {
  color: var(--milk);
  background: var(--bag);
}
.lang-menu li a[aria-current] {
  color: var(--milk);
}
.lang-menu .code {
  width: 22px;
  font: 600 0.72rem / 1 var(--mono);
  color: var(--milk-3);
  letter-spacing: 0.06em;
}
.lang-menu .name {
  flex: 1;
}
.lang-menu .check {
  width: 18px;
  height: 18px;
  color: var(--crema);
}

/* Footer: brand and stores, product and legal links, then rights, languages and credits.
   Its top border is the one separator left on the page. */
footer {
  font-size: 0.9rem;
  color: var(--milk-3);
  border-top: 1px solid var(--seam);
}
footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 36px 48px;
  align-items: start;
  padding-block: 56px 32px;
}
.foot-brand {
  display: grid;
  gap: 14px;
}
.foot-brand .logo {
  font-size: 1.1rem;
}
.foot-brand .logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.foot-brand p {
  max-width: 34ch;
  margin: 0;
}
.foot-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.foot-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.foot-col h2 {
  margin: 0 0 4px;
  font: 600 0.75rem / 1 var(--body);
  color: var(--milk-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.foot-col a {
  width: fit-content;
  color: var(--milk-2);
  text-decoration: none;
}
.foot-col a:hover {
  color: var(--milk);
}
.foot-promise {
  margin: 0;
  font-size: 0.82rem;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}
.foot-bottom p {
  margin: 0;
}
.lang-list {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 4px 4px 12px;
  background: var(--bag);
  border: 1px solid var(--seam);
  border-radius: 999px;
}
.lang-list svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  color: var(--milk-3);
}
.lang-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--milk-2);
  text-decoration: none;
  border-radius: 999px;
}
.lang-list a:hover {
  color: var(--milk);
}
.lang-list a[aria-current] {
  color: var(--milk);
  background: var(--bag-2);
}
/* Privacy policy: a readable column of text. */
.legal .wrap {
  max-width: 760px;
  padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px);
}
.legal .kicker {
  margin: 0 0 14px;
  font: 600 0.8rem / 1 var(--mono);
  color: var(--crema);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.legal h1 {
  margin: 0;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
}
.legal .updated {
  margin: 14px 0 36px;
  color: var(--milk-3);
}
.legal .lead {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--milk);
}
.legal section {
  margin-top: 36px;
}
.legal h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}
.legal p,
.legal li {
  color: var(--milk-2);
}
.legal p {
  margin: 0 0 12px;
}
.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  margin: 0 0 12px;
}
.legal a {
  color: var(--crema);
}

/* 404: the logo stands in for the 0, a soft glow behind, then the way back. */
.missing {
  position: relative;
  overflow-x: clip;
}
.missing::before {
  position: absolute;
  top: 18%;
  left: 50%;
  z-index: -1;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    closest-side,
    rgba(139, 43, 242, 0.28),
    rgba(139, 43, 242, 0.08) 55%,
    transparent
  );
  filter: blur(30px);
  translate: -50% 0;
}
.missing .wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding-block: clamp(64px, 10vw, 140px);
  text-align: center;
}
.missing .kicker {
  margin: 0;
  font: 600 0.8rem / 1 var(--mono);
  color: var(--crema);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.missing .code {
  display: flex;
  gap: clamp(4px, 1vw, 12px);
  align-items: center;
  font: 800 clamp(6rem, 3rem + 14vw, 12rem) / 1 var(--display);
  letter-spacing: -0.06em;
}
.missing .code img {
  width: 0.82em;
  height: 0.82em;
  border-radius: 22%;
  box-shadow: 0 30px 60px -24px rgba(139, 43, 242, 0.7);
  animation: steep 6s ease-in-out infinite;
}
@keyframes steep {
  50% {
    transform: translateY(-6px) rotate(-4deg);
  }
}
.missing h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
}
.missing .lead {
  max-width: 44ch;
  margin: 0;
  font-size: 1.1rem;
  color: var(--milk-2);
}
.missing .actions {
  margin-top: 8px;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--milk-3);
}
.jump a {
  color: var(--milk-2);
  text-underline-offset: 4px;
}
.jump a:hover {
  color: var(--milk);
}

/* Phones that slide in or drift with parallax may pass the screen edge; never let them widen the page. */
main {
  overflow-x: clip;
}
.foot-brand .logo {
  color: var(--milk);
}

.btn.soon:hover {
  transform: none;
}
.btn.outline.soon:hover {
  border-color: var(--seam);
}
.btn.primary.soon:hover {
  background: var(--action);
}

/* Store logos stay white at full strength, even on buttons that are not live yet. */
.btn .logo-mark {
  width: 20px;
  height: 20px;
  color: #fff;
}
.btn.small .logo-mark {
  width: 16px;
  height: 16px;
}
.btn.small.soon {
  gap: 8px;
}
.btn .slash {
  font-weight: 400;
  color: var(--milk-3);
}
