/* The site's look since 2.7, the App Store gallery's (fitness-app#1747): condensed
   poster type, grounds of the app's red and black, and the real screen in a drawn
   iPhone with what a claim rests on lifted out of it. Shared by the home page, the
   programme pages and /import; privacy and support keep style.css. */

@font-face { font-family: 'BC'; font-weight: 800; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'BC'; font-weight: 900; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-latin-800-normal.woff2') format('woff2'); }

:root {
  --red: #FF2E3D;
  --black: #0A0A0B;
  --gold: #F5B93A;
  --blue: #5AA6FF;
  --card: #1D2025;
  --pw: 400px;              /* the drawn phone's width; everything on it scales with it */
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--black); overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; color: #fff; font-family: 'Inter', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 56px; padding-right: 56px; position: relative; }

/* Grounds */
.on-red { background: radial-gradient(1000px 1000px at 85% 10%, #FF4A57 0%, var(--red) 45%, #D91828 100%); }
.on-black { background: linear-gradient(180deg, #141416 0%, var(--black) 70%); }
.on-blue { background: radial-gradient(1000px 1000px at 85% 10%, #3D8BFF 0%, #1F63E0 45%, #1446B0 100%); }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Type */
.poster { margin: 0; font-family: 'BC', 'Arial Narrow', sans-serif; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.poster span { display: block; white-space: nowrap; }
.ink { color: var(--black); }
.redink { color: var(--red); }
.kicker { margin: 0 0 18px; font: 800 22px/1 'BC', sans-serif; text-transform: uppercase; letter-spacing: .14em; }
.lede { margin: 30px 0 0; font: 600 21px/1.45 'Inter', sans-serif; max-width: 520px; }
.on-red .lede, .on-blue .lede { color: rgba(255,255,255,.94); }
.on-black .lede { color: rgba(255,255,255,.78); }
.note { margin: 16px 0 0; font: 600 14px/1.3 'Inter', sans-serif; opacity: .75; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; z-index: 5; }
.lock { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lock img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lock span { font: 800 26px/1 'BC', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.navdl { font: 800 18px/1 'BC', sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 12px 20px 11px; border-radius: 999px;
  background: var(--black); color: #fff; text-decoration: none; }
.on-black .navdl { background: var(--red); }

/* The App Store badge, Apple's artwork drawn in markup */
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 13px; padding: 11px 20px;
  text-decoration: none; box-shadow: inset 0 0 0 1px #A6A6A6; }
.badge svg { flex: none; }
.badge .bt { line-height: 1.1; text-align: left; }
.badge .bt small { display: block; font: 500 11px/1.1 -apple-system, 'Inter', sans-serif; opacity: .85; }
.badge .bt b { display: block; font: 600 20px/1.1 -apple-system, 'Inter', sans-serif; letter-spacing: -.01em; }
.badge.light { background: #fff; color: #000; box-shadow: none; }

/* Programme chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: 800 20px/1 'BC', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 9px 14px 8px; border-radius: 999px;
  background: rgba(10,10,11,.88); color: #fff; text-decoration: none; }
.chip:hover { background: #000; }
.on-black .chip { background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.chips .more { font: 600 15px/1 'Inter', sans-serif; opacity: .85; }

/* The drawn iPhone: a real capture in a metal edge and bezel, the screen dimmed under
   what is lifted out of it. Sizes are in phone widths, so --pw scales the lot. */
.phone { position: relative; width: var(--pw); height: calc(var(--pw) * var(--ratio)); }
.phone-frame { position: absolute; inset: 0 auto auto 0; width: var(--pw); padding: calc(var(--pw) * .010);
  border-radius: calc(var(--pw) * .1587);
  background: linear-gradient(145deg,#6b6f76 0%,#2a2c30 18%,#55595f 40%,#1c1d20 62%,#4d5157 85%,#2b2d31 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 14px 30px rgba(0,0,0,.4); }
.phone-bezel { position: relative; padding: calc(var(--pw) * .022); border-radius: calc(var(--pw) * .1487); background: #050506; }
.phone-screen { position: relative; overflow: hidden; border-radius: calc(var(--pw) * .1264); }
.phone-screen img { width: 100%; height: auto; }
.phone-screen::after { content: ''; position: absolute; inset: 0; background: rgba(4,5,7,var(--dim, .36)); }
.phone-island { position: absolute; left: 50%; top: calc(var(--pw) * .0463); width: calc(var(--pw) * .2658); height: calc(var(--pw) * .0786);
  transform: translateX(-50%); background: #000; border-radius: 999px; }
.lift { position: absolute; z-index: 3; height: auto; background: var(--card);
  box-shadow: 0 36px 70px rgba(0,0,0,.6), 0 12px 24px rgba(0,0,0,.45), 0 0 0 1.5px rgba(255,255,255,.09); }

/* Bands: claim on one side, picture on the other; the phone runs off the band's foot */
.band { position: relative; overflow: hidden; }
.band > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 780px; z-index: 2; }
.band h2.poster { font-size: clamp(60px, 6.7vw, 96px); }
.art { position: relative; height: 780px; }
.art .phone { position: absolute; left: 70px; top: 70px; transform: rotate(var(--rot, 4deg)); }
.art.tall { height: 900px; }            /* a card lifted from low on the screen */
.band.flip .art { order: -1; }

/* Calls to download */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta .wrap { padding-top: 120px; padding-bottom: 120px; z-index: 2; }
.cta .icon { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 16px 40px rgba(0,0,0,.35); }
.cta .poster { margin-top: 26px; font-size: clamp(76px, 10.4vw, 150px); }
.cta p { margin: 22px 0 32px; font: 600 18px/1.4 'Inter', sans-serif; color: rgba(255,255,255,.85); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(255,255,255,.1); font: 600 13px/1.5 'Inter', sans-serif; color: #8E8E93; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: #B4B4BA; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { flex-basis: 100%; margin: 0; font-weight: 500; }

/* Two columns but not much room (1000–1200 px): a smaller phone, closer in, so its
   lifted cards stay on screen */
@media (max-width: 1200px) {
  :root { --pw: 340px; }
  .art .phone { left: 30px; }
}

/* One column below 1000 px: the claim, then its picture */
@media (max-width: 1000px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  :root { --pw: 340px; }
  .band > .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 80px; gap: 0; }
  .band h2.poster { font-size: clamp(54px, 12.6vw, 96px); }
  .art { height: 650px; margin-top: 30px; }
  .art.tall { height: 760px; }
  .art .phone { left: 50%; margin-left: calc(var(--pw) / -2); top: 50px; }
  .band.flip .art { order: 0; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  :root { --pw: 290px; }
  .lede { font-size: 17px; }
  .kicker { font-size: 17px; margin-bottom: 14px; }
  .lock span { font-size: 21px; } .lock img { width: 32px; height: 32px; }
  .navdl { font-size: 15px; padding: 10px 16px 9px; }
  .chip { font-size: 17px; padding: 8px 12px 7px; }
  .band > .wrap { padding-top: 64px; }
  .art { height: 560px; }
  .art.tall { height: 650px; }
  .cta .wrap { padding-top: 84px; padding-bottom: 84px; }
}
