/* The home page: bold colour blocks, big type, the app on phones, the orbit
   motif in the background. */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }
.pill { justify-self: start; background: rgba(255, 255, 255, 0.55); padding: 8px 14px; border-radius: 999px; color: var(--on-lilac); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: var(--lilac); color: var(--on-lilac); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 72px 0 96px; min-height: min(860px, 92vh); }
.hero-copy { display: grid; gap: 26px; }
.hero .display { color: var(--ink); font-size: clamp(52px, 6.3vw, 92px); }
.hero .lede { color: var(--on-lilac); opacity: 0.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 0; font-size: 14px; font-weight: 600; opacity: 0.7; }

.hero-phones { position: relative; height: 640px; }
.phone {
  position: absolute; margin: 0; width: 290px; aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 10px; background: var(--charcoal);
  box-shadow: 0 40px 80px rgba(36, 26, 61, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone-front { left: 50%; top: 0; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.phone-back { left: 50%; top: 60px; transform: translateX(-95%) rotate(-7deg); opacity: 0.95; }

.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;
  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: 40px; left: -4%; }
.f2 { bottom: 120px; right: -2%; animation-delay: -2s; }
.f3 { bottom: 30px; left: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* The orbit: three rings turning slowly, a few people on them. */
.orbit-rings { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; left: 72%; top: 50%; border: 1.5px solid rgba(36, 26, 61, 0.12); border-radius: 50%; translate: -50% -50%; animation: spin 60s linear infinite; }
.ring i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4); }
.r1 { width: 520px; height: 520px; }
.r2 { width: 820px; height: 820px; animation-direction: reverse; animation-duration: 90s; }
.r3 { width: 1140px; height: 1140px; animation-duration: 120s; }
.r1 i { top: 8%; left: 14%; background: var(--peach); }
.r2 i:nth-child(1) { top: 50%; left: -9px; background: var(--sage); }
.r2 i:nth-child(2) { bottom: 6%; right: 18%; background: var(--sky); }
.r3 i { top: 12%; right: 20%; background: var(--pink); }
@keyframes spin { to { rotate: 360deg; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; min-height: 0; }
  .hero-phones { height: 560px; margin-top: 8px; }
  .phone { width: 240px; border-radius: 40px; }
  .phone img { border-radius: 31px; }
  .ring { left: 50%; top: 70%; }
}
@media (max-width: 520px) {
  .hero-phones { height: 500px; }
  .phone { width: 220px; }
  /* One phone, centred: two would run off a narrow screen. */
  .phone-back { display: none; }
  .phone-front { transform: translateX(-50%) rotate(3deg); }
  .f1 { left: 0; top: 24px; } .f2 { right: 0; } .f3 { left: 0; }
}

/* ---------------------------------------------------------------- Marquee */
.marquee { background: var(--charcoal); color: #fff; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee-track span { font-size: clamp(22px, 3vw, 34px); font-weight: 850; letter-spacing: -0.02em; padding: 0 28px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 56px; color: var(--lilac); font-size: 0.7em; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; overflow: hidden; display: grid; align-content: start; gap: 10px; padding: 32px 28px 0; border-radius: var(--radius-lg); background: var(--tint); min-height: 560px; }
.step p { margin: 0; color: #2b2a31; }
.step-num { font-size: 15px; font-weight: 900; letter-spacing: 0.08em; opacity: 0.55; }
.step-shot { margin-top: 18px; margin-inline: auto; width: 78%; border-radius: 30px 30px 0 0; padding: 8px 8px 0; background: var(--charcoal); align-self: end; }
.step-shot img { border-radius: 24px 24px 0 0; aspect-ratio: 1206 / 1500; object-fit: cover; object-position: top; width: 100%; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step-shot { width: 62%; } }

/* ---------------------------------------------------------------- Plans */
.plans { background: var(--lilac-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-copy { display: grid; gap: 22px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--lilac); color: var(--on-lilac); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.ticks b { color: var(--ink); }
.split-art { position: relative; height: 520px; }
.plan-card {
  position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  width: min(330px, 80%); padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow);
}
.plan-card span { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--ink); }
.plan-card .icon { width: 26px; height: 26px; }
.plan-card b { font-size: 20px; letter-spacing: -0.02em; }
.plan-card small { color: var(--ink-2); font-size: 14px; }
.pc1 { top: 0; left: 4%; rotate: -4deg; } .pc1 span { background: var(--sand); }
.pc2 { top: 130px; right: 0; rotate: 3deg; } .pc2 span { background: var(--sage); }
.pc3 { top: 265px; left: 0; rotate: 2deg; } .pc3 span { background: var(--lilac); }
.pc4 { top: 395px; right: 8%; rotate: -3deg; } .pc4 span { background: var(--peach); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } .split-art { height: 520px; } }

/* ---------------------------------------------------------------- Safety */
.safety { background: var(--charcoal); color: #fff; }
.safety .eyebrow { color: var(--lilac); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { display: grid; align-content: start; gap: 12px; padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tile p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lilac); color: var(--on-lilac); margin-bottom: 6px; }
.tile-icon .icon { width: 24px; height: 24px; }
@media (max-width: 1000px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Statement */
.statement { background: var(--paper); text-align: center; }
.big-quote { margin: 0 auto; max-width: 20ch; font-size: clamp(32px, 5vw, 60px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.08; }


/* ---------------------------------------------------------------- Get */
.get { padding-top: 0; background: var(--paper); }
.get-card { display: grid; grid-template-columns: 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-copy { display: grid; justify-items: start; gap: 22px; }
.get-card .h2 { color: var(--ink); }
.get-card .lede { color: var(--on-lilac); opacity: 0.85; max-width: 40ch; }
.get-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .get-card { grid-template-columns: 1fr; text-align: center; }
  .get-copy { justify-items: center; }
  .get .hero-actions { justify-content: center; }
}

/* ---------------------------------------------------------------- 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; justify-self: start; padding: 10px 18px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.45); text-decoration: none; color: var(--on-lilac); }
.qr-mini .qr-code { width: 96px; padding: 8px; border-radius: 14px; }
.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.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ring, .float, .marquee-track { animation: none; }
}
