/* Loungemote site. Tokens follow docs/design/design-system/tokens.json (dark theme) in the app repo. */

:root {
  --base: #07080c;
  --base-2: #0c0e14;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(30, 34, 44, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --separator: rgba(255, 255, 255, 0.07);
  --text: #f5f6f8;
  --text-2: #a3a9b6;
  --text-3: #8b91a0;
  --ember: #ff9a3d;
  --ember-gradient: linear-gradient(180deg, #ffba6c 0%, #ff8a34 100%);
  --ember-text: #ffb872;
  --on-ember: #2a1404;
  --ember-tint: rgba(255, 154, 61, 0.15);
  --green: #3dd68c;
  --green-tint: rgba(61, 214, 140, 0.14);
  --radius: 24px;
  --radius-lg: 32px;
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI Variable Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--base);
  background-image: radial-gradient(120% 620px at 50% -140px, rgba(255, 146, 60, 0.17) 0%, rgba(255, 146, 60, 0) 62%),
    linear-gradient(180deg, var(--base-2) 0, var(--base) 900px);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--ember-text);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--ember-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(255, 154, 61, 0.35);
  color: #fff;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--base);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

/* ---------------------------------------------------------------- shared pieces */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ember-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}

h1 em,
h2 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffcb8e 0%, #ff8a34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button .icon {
  transition: transform 0.25s var(--ease);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.button--ember {
  background: var(--ember-gradient);
  color: var(--on-ember);
  box-shadow: 0 10px 28px rgba(255, 138, 52, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button--ember:hover {
  box-shadow: 0 14px 34px rgba(255, 138, 52, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button--ghost {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__actions .store-links, .cta .store-links {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
  min-height: 56px;
  padding: 8px 22px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: #000;
  color: #fff;
  line-height: 1.1;
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.store-badge .icon {
  width: 26px;
  height: 26px;
}

.store-badge small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.store-badge strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a.store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.store-play {
  display: block;
  flex: none;
  border-radius: 8px;
  transition: transform 0.25s var(--ease), filter 0.25s;
}

.store-play img {
  display: block;
  width: 188px;
  height: 56px;
}

.store-play:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

/* iOS status until the App Store link is live: one quiet line under the Google Play badge. */
.store-soon {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-3);
  font-size: 0.875rem;
}

.hero__actions .store-links {
  display: contents;
}

.hero__actions .store-soon {
  margin-top: -4px;
  text-align: center;
}

/* Once the badge and "See how it works" share a row, the note moves under both. */
@media (min-width: 520px) {
  .hero__actions .store-soon {
    order: 1;
    margin-top: -2px;
  }
}

.cta .store-soon {
  text-align: center;
}

.footnote {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.footnote--center {
  text-align: center;
}

/* ---------------------------------------------------------------- phone frame */

.phone {
  --pw: 280px;
  position: relative;
  flex: none;
  width: var(--pw);
  aspect-ratio: 408 / 862;
  padding: calc(var(--pw) * 0.022);
  border-radius: calc(var(--pw) * 0.162);
  background: linear-gradient(140deg, #5b5f6b 0%, #23262d 22%, #101216 60%, #474b56 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), inset 0 0 0 calc(var(--pw) * 0.0123) #08090c,
    0 50px 90px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.phone__screen {
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.14);
  background: var(--base);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-open {
  background: #090a0f;
  border-bottom-color: var(--separator);
}

.site-header.is-scrolled:not(.is-open) {
  background: rgba(7, 8, 12, 0.74);
  border-bottom-color: var(--separator);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.logo-mark {
  flex: none;
  border-radius: 23%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav li a:hover,
.site-nav li a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 920px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: #090a0f;
    border-bottom: 1px solid var(--separator);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav li a {
    width: 100%;
    min-height: 50px;
    padding: 0 8px;
    border-bottom: 1px solid var(--separator);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .js .site-nav .button {
    min-height: 50px;
  }

  /* Without JavaScript the links stay visible as a scrolling row. */
  html:not(.js) .site-nav {
    gap: 12px;
    overflow-x: auto;
  }

  html:not(.js) .site-nav .button {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 88px);
  text-align: center;
}

.hero__glow {
  position: absolute;
  inset: -140px 0 auto;
  height: 620px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, rgba(0, 0, 0, 0) 1.5px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(60% 70% at 50% 30%, #000 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  padding: 8px 16px;
  border: 1px solid rgba(255, 184, 114, 0.22);
  border-radius: 999px;
  background: rgba(255, 154, 61, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .hero__eyebrow {
    white-space: normal;
  }
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 154, 61, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.hero__title {
  max-width: 13ch;
  margin-top: 26px;
  font-size: clamp(2.75rem, 8.2vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 40rem;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust .icon {
  color: var(--green);
}

.hero__stage {
  --main: clamp(232px, 27vw, 336px);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 3.2vw, 48px);
  /* top padding leaves room for the main phone's float animation (-10px) inside the overflow clip */
  padding-top: 16px;
  height: calc(var(--main) * 1.72 + 16px);
  margin-top: clamp(32px, 5vw, 68px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0) 100%);
}

.hero__halo {
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(1100px, 130vw);
  aspect-ratio: 1.5;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 140, 55, 0.42) 0%, rgba(255, 140, 55, 0.14) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.phone--main {
  --pw: var(--main);
  z-index: 2;
  animation: rise 1s var(--ease) both, float 7s ease-in-out 1s infinite alternate;
}

@media (max-width: 640px) {
  .hero__stage {
    --main: min(64vw, 270px);
    gap: 14px;
    height: calc(var(--main) * 1.6 + 16px);
  }
}

/* ---------------------------------------------------------------- platforms marquee */

/* The strip stays inside the content width, like every other section, and fades out at both ends. */
.platforms {
  position: relative;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: -8px auto 0;
  padding: 28px var(--gutter) 12px;
  text-align: center;
}

.platforms__label {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.marquee {
  display: flex;
  margin-top: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 16%, #000 84%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 16%, #000 84%, rgba(0, 0, 0, 0) 100%);
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* Plain text in a quiet grey, like a logo row but without logos or brand fonts (DD-28). */
.marquee__track li {
  display: inline-flex;
  align-items: center;
  padding: 4px clamp(18px, 2.2vw, 28px);
  color: var(--text-3);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.marquee__track li:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: clamp(48px, 6vw, 80px);
}

.section__head {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section__head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.section__head h2,
.privacy h2,
.cta h2 {
  font-size: clamp(2rem, 4.6vw, 3.375rem);
  letter-spacing: -0.04em;
}

.section__head p:not(.eyebrow) {
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

/* ---------------------------------------------------------------- cards */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.device,
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}

/* Pointer spotlight (main.js sets --mx and --my). */
.card::before,
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 170, 90, 0.13), rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover,
.device:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card:hover::before,
.device:hover::before {
  opacity: 1;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 28px;
}

.card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p {
  color: var(--text-2);
  font-size: 0.9875rem;
  line-height: 1.55;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 184, 114, 0.18);
  border-radius: 14px;
  background: var(--ember-tint);
  color: var(--ember-text);
}

.card__icon .icon {
  width: 22px;
  height: 22px;
}

.card__icon--green {
  border-color: rgba(61, 214, 140, 0.2);
  background: var(--green-tint);
  color: var(--green);
}

@media (max-width: 1020px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .bento .card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    padding: 18px;
  }

  .bento .card__icon {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
  }

  .bento .card p {
    font-size: 0.9375rem;
  }
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step__art {
  position: relative;
  display: flex;
  justify-content: center;
  height: 320px;
  padding-top: 32px;
  overflow: hidden;
  background: radial-gradient(80% 90% at 50% 0%, rgba(255, 146, 60, 0.13) 0%, rgba(255, 146, 60, 0) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0) 100%);
}

.step__art .phone {
  --pw: 236px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), inset 0 0 0 3px #08090c, 0 24px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease);
}

.step:hover .step__art .phone {
  transform: translateY(-10px);
}

.step__body {
  display: grid;
  gap: 10px;
  padding: 4px 26px 30px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--ember-tint);
  border: 1px solid rgba(255, 184, 114, 0.25);
  color: var(--ember-text);
  font-size: 0.9375rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step p {
  color: var(--text-2);
  font-size: 0.9875rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .step__art {
    height: 230px;
    padding-top: 24px;
  }

  .step__art .phone {
    --pw: 180px;
  }
}

/* ---------------------------------------------------------------- devices */

.devices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.device {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
}

.device h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.device p {
  flex: 1;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

.device__tag {
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .devices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .devices {
    gap: 10px;
  }

  .device {
    padding: 16px 14px;
  }
}

/* A platform with a setup guide: the whole card is the link (the name's link stretches over it). */
.device__link {
  color: inherit;
}

.device__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.device__link svg {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -0.05em;
  color: var(--text-3);
  transition: transform 0.25s var(--ease), color 0.25s;
}

.device:has(.device__link):hover {
  border-color: var(--border-strong);
}

.device:has(.device__link):hover .device__link svg {
  color: var(--ember-text);
  transform: translateX(3px);
}

.device__link:focus-visible {
  outline: none;
}

.device:has(.device__link:focus-visible) {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* Small links get a 44 pt tall hit area on touch screens without changing the layout. */
.cta__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (pointer: coarse) {
  .footnote a {
    padding-block: 12px;
  }

  .site-footer nav a {
    min-height: 44px;
  }
}

/* ---------------------------------------------------------------- privacy */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(61, 214, 140, 0.18);
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 120% at 0% 0%, rgba(61, 214, 140, 0.12) 0%, rgba(61, 214, 140, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.privacy .eyebrow {
  color: var(--green);
}

.privacy h2 em {
  background: linear-gradient(180deg, #9af0c6 0%, #3dd68c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.privacy__copy {
  min-width: 0;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.privacy__copy .button, .contact-card .button {
  max-width: 100%;
  padding-block: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.4;
}

.privacy__copy > p:not(.eyebrow) {
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.privacy__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.privacy__list li {
  display: grid;
  gap: 12px;
  align-content: start;
}

.privacy__list .card__icon {
  margin-bottom: 0;
}

.privacy__list h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.privacy__list p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.privacy__note {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--separator);
  color: var(--text-3);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .privacy {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .privacy__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy__list li {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
  }
}

/* ---------------------------------------------------------------- FAQ */

.faq {
  border-top: 1px solid var(--separator);
}

.faq__item {
  border-bottom: 1px solid var(--separator);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  color: var(--text);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--ember-text);
}

.faq__item summary .icon {
  width: 22px;
  height: 22px;
  color: var(--text-3);
  transition: transform 0.35s var(--ease), color 0.2s;
}

.faq__item[open] summary .icon {
  transform: rotate(45deg);
  color: var(--ember-text);
}

.faq__answer {
  max-width: 44rem;
  padding: 0 4px 24px;
  color: var(--text-2);
  animation: answer 0.4s var(--ease);
}

.faq__answer strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------------------------------------------------------------- call to action */

.section--cta {
  padding-top: 0;
}

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255, 184, 114, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow: hidden;
}

.cta > * {
  position: relative;
}

.cta__glow {
  position: absolute;
  left: 50%;
  top: -60%;
  width: min(900px, 140%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 140, 55, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.cta__icon {
  width: 88px;
  height: 88px;
  border-radius: 22.5%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cta > p {
  max-width: 34rem;
  color: var(--text-2);
  font-size: 1.125rem;
}

.cta .store-links {
  margin-top: 10px;
}

.cta__downloads {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 100%;
  margin-top: 10px;
}

.cta__downloads .store-links {
  margin-top: 0;
  min-width: 0;
}

.download-qr {
  display: none;
}

@media (min-width: 900px) {
  .download-qr {
    display: grid;
    justify-items: center;
    gap: 12px;
    flex: none;
    color: var(--text-2);
    font-size: 0.875rem;
  }

  .download-qr:hover {
    color: var(--text);
    text-decoration: none;
  }

  .download-qr__image {
    display: block;
    width: 200px;
    height: 200px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }

  .cta__downloads .store-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

.cta > .cta__meta {
  color: var(--text-3);
  font-size: 0.875rem;
}

.cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  margin-top: 6px;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--separator);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  margin-bottom: 44px;
}

.site-footer__brand p {
  max-width: 19rem;
  margin-top: 14px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav ul {
  display: grid;
  gap: 2px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.site-footer nav a:hover {
  color: var(--text);
}

.site-footer__legal {
  max-width: 62rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.site-footer__legal + .site-footer__legal {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- text pages (privacy, terms, support) */

.page__head {
  padding-block: clamp(40px, 7vw, 84px) clamp(28px, 4vw, 44px);
}

.page__head .container {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.page__head h1 {
  font-size: clamp(2.375rem, 6vw, 3.75rem);
  letter-spacing: -0.04em;
}

.page__head--hero .container {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(32px, 6vw, 88px);
}

.page__hero-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.page__hero-copy .hero__trust {
  justify-content: flex-start;
  margin-top: 4px;
}

.page__hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.page__hero-art::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background: radial-gradient(closest-side, rgba(255, 140, 55, 0.3) 0%, rgba(255, 140, 55, 0) 100%);
  pointer-events: none;
}

.page__hero-art .phone {
  --pw: clamp(200px, 20vw, 250px);
}

@media (max-width: 820px) {
  .page__head--hero .container {
    grid-template-columns: minmax(0, 1fr);
  }

  .page__hero-art {
    justify-self: center;
    margin-top: 12px;
  }

  .page__hero-art .phone {
    --pw: 180px;
  }
}

.page__lead {
  max-width: 44rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.page__date {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-2);
  font-size: 0.875rem;
}

.page__body {
  display: grid;
  grid-template-columns: 232px minmax(0, 46rem);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 128px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  font-size: 0.9rem;
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  border-left: 1px solid var(--separator);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--text-2);
  line-height: 1.35;
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover,
.toc a.is-active {
  border-left-color: var(--ember);
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 900px) {
  .page__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    max-height: none;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--glass);
  }
}

.prose {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--separator);
  color: var(--text);
  font-size: clamp(1.4375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 1.8em;
  color: var(--text);
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 184, 114, 0.45);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.55em;
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--ember);
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.55em;
}

.prose hr {
  margin-block: 2.4em;
  border: 0;
  border-top: 1px solid var(--separator);
}

.prose small {
  display: block;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.prose .summary {
  padding: 24px 26px;
  border: 1px solid rgba(61, 214, 140, 0.2);
  border-radius: 20px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(61, 214, 140, 0.1) 0%, rgba(61, 214, 140, 0) 60%), var(--glass);
  color: var(--text);
}

.prose .summary li::marker {
  color: var(--green);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 184, 114, 0.25);
  border-radius: var(--radius);
  background: radial-gradient(90% 160% at 0% 0%, rgba(255, 146, 60, 0.14) 0%, rgba(255, 146, 60, 0) 60%), var(--glass);
}

.contact-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.375rem;
}

.contact-card p {
  margin-top: 6px;
  font-size: 0.9875rem;
}

.contact-card .button {
  text-decoration: none;
}

.device-table {
  display: grid;
  padding: 0 !important;
  list-style: none !important;
  gap: 0 !important;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.device-table li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 4px 20px;
  padding: 14px 20px;
  background: var(--glass);
  font-size: 0.9875rem;
  line-height: 1.45;
}

.device-table li + li {
  border-top: 1px solid var(--separator);
}

.device-table strong {
  color: var(--text);
}

@media (max-width: 520px) {
  .device-table li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- 404 */

.notfound {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding-block: clamp(80px, 16vw, 180px);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
}

.notfound p {
  max-width: 30rem;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- motion */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s;
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* After the entrance, hover transforms respond at once. */
.js [data-reveal].is-settled {
  transition: transform 0.35s var(--ease), border-color 0.3s;
  transition-delay: 0ms;
}

@keyframes rise {
  from {
    transform: translateY(36px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -10px;
  }
}

@keyframes fan-left {
  from {
    opacity: 0;
    transform: translate(60px, 40px) rotate(0deg);
  }
  to {
    opacity: 0.92;
    transform: rotate(-5deg);
  }
}

@keyframes fan-right {
  from {
    opacity: 0;
    transform: translate(-60px, 40px) rotate(0deg);
  }
  to {
    opacity: 0.92;
    transform: rotate(5deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 154, 61, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(255, 154, 61, 0);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(255, 138, 52, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 10px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 10px 46px rgba(255, 138, 52, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 10px rgba(0, 0, 0, 0.22);
  }
}

@keyframes answer {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    min-width: 0;
    width: 100%;
  }

  .marquee__track[aria-hidden="true"] {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer nav,
  .toc,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose,
  .prose h2,
  .prose h3,
  .prose strong,
  .page__lead {
    color: #000;
  }
}

/* Platform names on the home page link to their pages (_remotes/). */
.device h3 a {
  color: inherit;
  text-decoration: none;
}
.device h3 a:hover,
.device h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer__legal a[aria-current="page"] {
  color: var(--text);
}
