/* The home page: the app on two phones with a live 3D orbit going round
   them, then three steps, one line on safety, partner restaurants and the
   download card. Few words, big type. */

.section { padding: clamp(88px, 11vw, 150px) 0; }

/* ---------------------------------------------------------------- Hero
   The words on the left, the app on two phones on the right, and the
   orbit going round the phones. Everything in the phone group is sized
   from --pw, the width of one phone. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(560px, calc(100svh - 72px), 960px);
  background: var(--lilac); color: var(--ink);
  --pw: min(290px, 24vw, calc((max(560px, 100svh - 72px) - 110px) / 2.4));
}
.orbit-stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orbit-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.hero.gl-on .orbit-gl { opacity: 1; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(24px, 4vw, 72px);
}
.hero-inner { position: relative; z-index: 2; display: grid; justify-items: start; gap: 28px; padding: 56px 0 88px; }
.hero .display {
  font-size: clamp(54px, 5.7vw, 88px); line-height: 0.9; letter-spacing: -0.045em;
  font-stretch: 115%;
}
.hero-line { margin: 0; max-width: 30ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; font-weight: 520; color: var(--on-lilac); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; }

/* ---- The phones. home.js turns .phones-rig a little with the pointer and
   the scroll (in step with the orbit); the chips sit nearer than the phones
   and the back phone further away, so they part slightly as it turns. */
.hero-phones {
  position: relative; z-index: 1; justify-self: center;
  width: calc(var(--pw) * 1.9); height: calc(var(--pw) * 2.4);
  margin-right: calc(var(--pw) * 0.06);
  perspective: 1500px;
}
.orbit-still {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: calc(var(--pw) * 6); max-width: none; height: auto;
  translate: -50% -50%; transition: opacity 1.2s ease; pointer-events: none;
}
.hero.gl-on .orbit-still { opacity: 0; }
.phones-rig { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero-phone {
  position: absolute; margin: 0; width: var(--pw); aspect-ratio: 506 / 1100;
  padding: calc(var(--pw) * 0.0345); border-radius: calc(var(--pw) * 0.159); background: var(--charcoal);
  box-shadow: 0 calc(var(--pw) * 0.14) calc(var(--pw) * 0.28) rgba(36, 26, 61, 0.35);
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--pw) * 0.1276); }
.phone-back { left: calc(var(--pw) * 0.12); top: calc(var(--pw) * 0.21); rotate: -7deg; transform: translateZ(-36px); opacity: 0.95; }
.phone-front { left: calc(var(--pw) * 0.77); top: 0; rotate: 4deg; transform: translateZ(0); }
/* The people who pass in front of the phones (orbit3d.js); it never draws
   over the screens. */
.orbit-front {
  position: absolute; left: calc(var(--pw) * -0.6); top: calc(var(--pw) * -0.6);
  width: calc(var(--pw) * 3.1); height: calc(var(--pw) * 3.6);
  transform: translateZ(14px); pointer-events: none;
}

.float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 750; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap;
  transform: translateZ(56px);
  animation: bob 6s ease-in-out infinite;
}
.float .icon { width: 18px; height: 18px; color: var(--charcoal); }
.float .seal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lilac); }
.float .seal .icon { width: 15px; height: 15px; color: var(--on-lilac); }
.f1 { top: calc(var(--pw) * 0.138); left: calc(var(--pw) * 0.09); }
.f2 { bottom: calc(var(--pw) * 0.607); right: calc(var(--pw) * -0.1); animation-delay: -2s; }
.f3 { bottom: calc(var(--pw) * 0.296); left: calc(var(--pw) * 0.27); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }

@media (max-width: 899px) {
  .hero { align-items: start; min-height: 0; --pw: min(200px, calc((100vw - 40px) / 2.12)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding: 36px 0 0; gap: 22px; }
  .hero-phones { margin: 34px auto 92px; }
  .float { gap: 7px; padding: 9px 13px; font-size: 13px; }
  .float .icon { width: 16px; height: 16px; }
  .float .seal { width: 22px; height: 22px; }
  .float .seal .icon { width: 13px; height: 13px; }
}

/* ---------------------------------------------------------------- App Store badge */
.store { transition: transform 0.15s ease, background 0.15s ease; }
.store:hover { background: #1f1e25; }
.store:active { transform: scale(0.97); }

/* ---------------------------------------------------------------- How it works */
.how { background: var(--paper); }
.how-title { margin-bottom: clamp(48px, 6vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 36px); }
.step { display: grid; align-content: start; gap: 6px; }
.step p { margin: 0; color: var(--ink-2); max-width: 26ch; }
.step-num { margin-top: 22px; font-size: 14px; font-weight: 850; letter-spacing: 0.08em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step .h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; }

/* A tinted panel with the phone rising out of its bottom edge. home.js
   sets --rise (1 → 0) as the row scrolls in, so the phones lift and
   straighten up; without it they simply sit upright. */
.device {
  --rise: 0;
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); background: var(--tint);
  display: grid; justify-items: center; align-items: start; padding-top: 14%;
  perspective: 1100px;
}
.phone {
  display: block; width: 64%; padding: 8px; border-radius: 34px; background: var(--charcoal);
  box-shadow: 0 30px 60px rgba(36, 26, 61, 0.22);
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--rise) * 22%)) rotateX(calc(var(--rise) * 18deg));
  will-change: transform;
}
.phone img { width: 100%; height: auto; border-radius: 27px; }

.met-badge {
  position: absolute; top: 22px; right: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 9px;
  border-radius: 999px; background: var(--charcoal); color: #fff;
  font-size: 14px; font-weight: 750; letter-spacing: -0.01em; rotate: 4deg;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.22);
}
/* The Orbit mark, small: a ring with a gap and the dot sitting in it. */
.met-mark { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); }
.met-mark::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2.4px solid var(--charcoal); border-top-color: transparent; rotate: 45deg; }
.met-mark::after { content: ""; position: absolute; left: 9px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--charcoal); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .device { aspect-ratio: 1 / 1; padding-top: 12%; }
  .phone { width: 54%; }
}

/* ---------------------------------------------------------------- Safety */
.safety { background: var(--charcoal); color: #fff; }
.safety-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: clamp(72px, 8vw, 104px) 0; }
.safety .h2 { font-size: clamp(34px, 4.4vw, 56px); max-width: 12ch; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(24px, 3vw, 44px); }
.trust li { display: grid; justify-items: start; gap: 14px; width: 150px; font-weight: 700; font-size: 17px; line-height: 1.3; color: rgba(255, 255, 255, 0.92); }

/* App-style icon tiles: a squircle in one of the people colours. */
.app-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px;
  background: var(--tile, var(--lilac)); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.app-icon .icon { width: 28px; height: 28px; }
.trust li:nth-child(1) .app-icon { --tile: var(--lilac); }
.trust li:nth-child(2) .app-icon { --tile: var(--sky); }
.trust li:nth-child(3) .app-icon { --tile: var(--peach); }

@media (max-width: 960px) {
  .safety-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .trust { flex-direction: column; gap: 18px; }
  .trust li { width: auto; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .app-icon { width: 52px; height: 52px; border-radius: 15px; }
  .app-icon .icon { width: 25px; height: 25px; }
}

/* ---------------------------------------------------------------- Partners */
.partners { background: var(--paper); padding-bottom: clamp(32px, 4vw, 48px); }
.partner-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 48px;
  padding: clamp(40px, 6vw, 80px); border-radius: var(--radius-lg); background: var(--card);
}
.partner-copy { display: grid; justify-items: start; gap: 18px; }
.partner-copy .h2 { font-size: clamp(36px, 4.4vw, 60px); }
.partner-copy p { margin: 0; max-width: 32ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; height: 52px; padding: 0 22px;
  border-radius: 999px; background: var(--charcoal); color: #fff; font-weight: 750; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* The table pass a couple gets: a dark ticket, slightly turned. */
.table-pass {
  justify-self: center; width: min(320px, 100%); display: grid; gap: 4px; padding: 22px 24px 20px;
  border-radius: 26px; background: var(--charcoal); color: #fff; rotate: -4deg;
  box-shadow: 0 34px 70px rgba(36, 26, 61, 0.22);
}
.pass-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pass-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--lilac); color: var(--on-lilac); font-size: 13px; font-weight: 750; }
.pass-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-lilac); }
.pass-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--sand); color: var(--ink); }
.pass-icon .icon { width: 22px; height: 22px; }
.table-pass b { font-size: 28px; font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; }
.table-pass small { font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.pass-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed rgba(255, 255, 255, 0.18); font-size: 15px; }
.pair { display: inline-flex; }
.pair span { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 3px var(--charcoal); }
.pair span + span { margin-left: -8px; }

@media (max-width: 860px) {
  .partner-card { grid-template-columns: 1fr; gap: 44px; }
  .table-pass { rotate: -3deg; }
}

/* ---------------------------------------------------------------- Get */
.get { background: var(--paper); padding-top: 0; }
.get-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px); border-radius: var(--radius-lg);
  background: var(--lilac); color: var(--on-lilac);
}
.get-rings { position: absolute; z-index: -1; right: -120px; top: 50%; width: 720px; translate: 0 -50%; pointer-events: none; }
.get-copy { display: grid; justify-items: start; gap: 20px; }
.get-card .h2 { color: var(--ink); }
.get-copy p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); }
.get-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); }
.get-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
@media (max-width: 860px) {
  .get-card { grid-template-columns: 1fr; text-align: center; }
  .get-copy { justify-items: center; }
  .get-actions { justify-content: center; }
  .get-rings { right: 50%; top: 18%; translate: 50% -50%; }
}

/* ---------------------------------------------------------------- QR codes
   To the App Store page; the Orbit icon sits in the middle (the code has
   high error correction, so covering the centre doesn't break it). Hidden
   on phones, which can't scan their own screen. */
.qr-code { position: relative; display: block; background: #fff; border-radius: 18px; padding: 12px; }
.qr-code img:first-child { width: 100%; height: auto; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 22%; translate: -50% -50%; border-radius: 22%; box-shadow: 0 0 0 4px #fff; }
.qr-mini { display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border-radius: 20px; background: rgba(255, 255, 255, 0.5); text-decoration: none; color: var(--on-lilac); }
.qr-mini .qr-code { width: 60px; padding: 5px; border-radius: 12px; }
.qr-mini strong { display: block; font-size: 15px; }
.qr-mini small { display: block; font-size: 13px; opacity: 0.75; }
.qr-card { margin: 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.qr-big { width: 220px; border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.qr-card figcaption strong { display: block; font-size: 18px; color: var(--ink); }
.qr-card figcaption { font-size: 14px; opacity: 0.8; }
@media (max-width: 860px), (hover: none) and (pointer: coarse) { .qr-mini, .qr-card { display: none; } }

/* ---------------------------------------------------------------- Reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .phone { transform: none; will-change: auto; }
  .orbit-still, .orbit-gl { transition: none; }
  .float { animation: none; }
}

/* ---------------------------------------------------------------- Orbit Plus
   Less on the web than in the app. The words on the left; on the right a
   white price card, web price big and the app price struck through, with
   a dark sticker on its corner like the Met on Orbit badge. */
.plus { background: var(--paper); padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 8vw, 112px); }
.plus-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: clamp(40px, 6vw, 96px); }
.plus-copy { display: grid; justify-items: start; gap: 18px; }
.plus-copy .h2 { font-size: clamp(36px, 4.4vw, 60px); }
.plus-copy p { margin: 0; max-width: 30ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.plus-soon { font-size: 14px; color: var(--ink-3); }

.plus-card { position: relative; padding: 10px clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 1px 0 rgba(36, 26, 61, 0.04), 0 24px 60px rgba(36, 26, 61, 0.08); }
.plus-deal {
  position: absolute; top: -18px; right: 26px; z-index: 1;
  padding: 9px 15px; border-radius: 999px; rotate: 4deg;
  background: var(--charcoal); color: #fff; font-size: 14px; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.22);
}
.plus-deal[hidden] { display: none; }
.plus-plans { list-style: none; margin: 0; padding: 0; }
.plus-plans li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.plus-plans li + li { border-top: 1px solid var(--line); }
.plus-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -0.02em; }
.plus-name em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--lilac); color: var(--on-lilac); font-size: 12px; font-weight: 800; letter-spacing: 0.01em; }
.plus-price { display: inline-flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.plus-price strong { font-size: clamp(28px, 2.6vw, 36px); font-weight: 850; font-stretch: 108%; letter-spacing: -0.035em; line-height: 1; }
.plus-price s { order: -1; font-size: 16px; font-weight: 600; color: var(--ink-3); text-decoration-thickness: 1.5px; }
.plus-price s[hidden] { display: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .plus-inner { grid-template-columns: 1fr; gap: 52px; }
  .plus-plans li { padding: 18px 0; }
}

/* ---------------------------------------------------------------- Why six
   A short way into the story page, in the brush wordmark. */
.why-six { background: var(--card); }
.why-six-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-six-script { margin: 0; font-family: "Rustic Roadway", "Archivo", system-ui, sans-serif; font-size: clamp(72px, 10vw, 150px); line-height: 1; letter-spacing: -0.02em; color: var(--lilac-deep); }
.why-six .lede { margin: 18px 0 28px; }
@media (max-width: 860px) { .why-six-inner { grid-template-columns: minmax(0, 1fr); } }
