/* Spin's own page. Colours, shapes and the rounded face follow the app:
   navy ink, water blue, linen. The legal page beside it keeps /style.css. */

@font-face { font-family: 'General Sans'; src: url('/assets/fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('/assets/fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #1B2A4E; --ink-2: #55607C; --water: #3D8BFF; --water-2: #2F6FE0; --sky: #8DBBFF;
  --linen: #F5F0E7; --paper: #FFFFFF; --rule: rgba(27, 42, 78, .14);
  --round: ui-rounded, 'SF Pro Rounded', 'General Sans', system-ui, sans-serif;
  --sans: 'General Sans', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; background: #fff; color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ── top bar ─────────────────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3; height: 72px; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--round); text-decoration: none; }
.brand img { border-radius: 22%; }
.top nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 15px; }
.top nav a { padding: 12px 0; text-decoration-color: rgba(255, 255, 255, .35); }
.top nav a:hover { text-decoration-color: #fff; }

/* ── hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; background: var(--ink); color: var(--linen);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 104px var(--gutter) clamp(150px, 22vh, 230px);
}
.hero h1 {
  margin: 0 0 22px;
  font: 800 clamp(48px, 7.4vw, 124px)/.98 var(--round); letter-spacing: -.015em;
  animation: up .9s var(--ease) both;
}
.hero h1 span { color: var(--sky); display: block; }
.hero__lede { margin: 0 0 18px; max-width: 46ch; font-size: clamp(17px, 1.45vw, 21px); color: #D5DCEC; animation: up .9s var(--ease) .1s both; }
.hero__meta { margin: 0 0 10px; font: 700 17px/1.4 var(--round); color: #fff; animation: up .9s var(--ease) .18s both; }
.hero__help { margin: 0; font-size: 15px; color: #AEB9D3; animation: up .9s var(--ease) .24s both; }
.hero__dial { justify-self: center; animation: pop 1s var(--ease) .2s both; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.96); } }

.waves { position: absolute; left: 0; bottom: -1px; width: 200%; height: clamp(110px, 17vh, 190px); z-index: -1; }
.waves .w1 { fill: var(--water-2); animation: drift 16s linear infinite; }
.waves .w2 { fill: var(--water); animation: drift 11s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bubbles i { position: absolute; bottom: 12%; border-radius: 50%; background: var(--sky); opacity: 0; animation: rise 9s ease-in infinite; }
.bubbles i:nth-child(1) { left: 6%;  width: 22px; height: 22px; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 13%; width: 46px; height: 46px; animation-delay: 2.4s; animation-duration: 12s; }
.bubbles i:nth-child(3) { left: 44%; width: 16px; height: 16px; animation-delay: 4.1s; }
.bubbles i:nth-child(4) { left: 58%; width: 30px; height: 30px; animation-delay: 1.2s; animation-duration: 11s; }
.bubbles i:nth-child(5) { left: 86%; width: 52px; height: 52px; animation-delay: 5.5s; animation-duration: 13s; }
.bubbles i:nth-child(6) { left: 93%; width: 20px; height: 20px; animation-delay: 3s; }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(-82vh) scale(1); opacity: 0; } }

/* ── features: text scrolls, the phone stays ─────────── */
.feats {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter);
  padding: 0 var(--gutter); background: var(--linen);
}
.feat { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; padding-block: 48px; }
.feat h3 { margin: 0 0 20px; font: 800 clamp(32px, 4vw, 60px)/1.02 var(--round); letter-spacing: -.01em; }
.feat ul { margin: 0; padding: 0; list-style: none; }
.feat li { position: relative; padding: 12px 0 12px 30px; border-top: 1.5px solid var(--rule); color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); }
.feat li::before { content: ''; position: absolute; left: 2px; top: 1.22em; width: 12px; height: 12px; border-radius: 50%; background: var(--water); }
.feats__stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }

.phone {
  position: relative; width: min(300px, 34vh, 70vw); aspect-ratio: 660 / 1434;
  border-radius: 13.5% / 6.2%; overflow: hidden; background: var(--linen);
  box-shadow: 0 0 0 9px var(--ink), 0 0 0 11px #31406A, 0 50px 80px -30px rgba(27, 42, 78, .5);
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .7s var(--ease); }
.phone img.is-on { opacity: 1; transform: none; }
.phone--inline { display: none; }
.phone--inline img { position: static; opacity: 1; transform: none; }

/* ── free band ───────────────────────────────────────── */
.band { background: var(--water); color: #fff; padding: clamp(72px, 12vw, 160px) var(--gutter); }
.band p { margin: 0; font: 800 clamp(34px, 5.4vw, 88px)/1.02 var(--round); max-width: 14em; }
.band .band__small { margin-top: 22px; font: 400 clamp(16px, 1.25vw, 19px)/1.55 var(--sans); max-width: 44em; color: #EAF2FF; }

/* ── help: the support page, as it was ───────────────── */
.help { background: var(--paper); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.help > * { max-width: 720px; }
.help__title { margin: 0 0 8px; font: 800 clamp(40px, 5vw, 72px)/1 var(--round); }
.help__lede { margin: 0 0 32px; color: var(--ink-2); font-size: 15px; }
.help h2:not(.help__title) { margin: 44px 0 10px; font: 700 24px/1.2 var(--round); }
.help p { margin: 0 0 12px; color: var(--ink-2); }
.help a { color: var(--water-2); }

.foot {
  background: var(--ink); color: #C9D2E6; padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px;
}
.foot .brand { color: #fff; font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ── phones ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .top nav a:last-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 112px; gap: 40px; }
  .feats { grid-template-columns: 1fr; }
  .feats__stage { display: none; }
  .feat { min-height: 0; padding-block: 56px 24px; max-width: none; }
  .phone--inline { display: block; margin: 36px auto 0; width: min(260px, 70vw); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero__lede, .hero__meta, .hero__help, .hero__dial { animation: none; }
  .waves path, .bubbles i { animation: none; }
  .bubbles i { opacity: .8; bottom: auto; top: 18%; }
  .phone img { transition: none; }
}
