/* Upshot, getupshot.app, in the App Store set's world (round 4, "the sky").
   Short, like Locket: one hero with the app in the middle and stickers around it, the download
   button beside a QR code on desktop, four store slides in one row (a swipe on phones), then
   through the clouds onto the app's white ground: the paywall, questions, support, the floor line.
   One look, no dark variant. */
:root {
  --sky-top: #1563E4; --sky-mid: #2B85F3; --sky-low: #4FA6FB; --sky-horizon: #86C8FF;
  --ink: #000000; --secondary: rgba(60,60,67,.76); --caption: #6C6C70;
  --ground: #FFFFFF; --group: #F2F2F7; --separator: rgba(60,60,67,.29); --tangerine: #FF6A2B;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, system-ui, sans-serif;
  --text: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --shadow-text: 0 4px 0 rgba(10,60,170,.22), 0 16px 40px rgba(8,40,120,.30);
  --shadow-thing: drop-shadow(0 18px 24px rgba(8,45,130,.28));
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground) }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--sky-top) }
img { max-width: 100%; display: block }
a { color: inherit }
[hidden] { display: none !important }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r) }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px }

/* buttons: the app's black pill, and a white one on the sky */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 18px/1 var(--round); text-decoration: none; white-space: nowrap; transition: transform .15s ease }
.pill:active { transform: scale(.97) }
.pill.white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(8,40,120,.5) }
.pill.sm { height: 42px; padding: 0 20px; font-size: 16px }

/* ---------- the sky ---------- */
.sky { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 34%, var(--sky-low) 74%, var(--sky-horizon) 100%); color: #fff; overflow: hidden }
.sky::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>") }
.nav-in { display: flex; justify-content: space-between; align-items: center; height: 72px; position: relative; z-index: 8 }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff }
.logo img { width: 40px; height: 40px; filter: drop-shadow(0 4px 8px rgba(8,45,130,.28)) }
.logo span { font: 800 27px/1 var(--round); letter-spacing: -.045em; text-shadow: 0 2px 0 rgba(10,60,170,.2) }
.logo.ink { color: var(--ink) } .logo.ink img { width: 30px; height: 30px; filter: none } .logo.ink span { font-size: 22px; text-shadow: none }

.big { margin: 0; font: 900 clamp(48px, 7.6vw, 108px)/.98 var(--round); letter-spacing: -.045em; color: #fff; text-shadow: var(--shadow-text) }
.head { margin: 0; font: 900 clamp(30px, 2.7vw, 38px)/1.02 var(--round); letter-spacing: -.035em; color: #fff; text-shadow: var(--shadow-text); text-wrap: balance }
.say { margin: 0; font: 600 clamp(17px, 1.6vw, 21px)/1.35 var(--round); color: rgba(255,255,255,.94); text-shadow: 0 2px 12px rgba(8,40,120,.25); text-wrap: balance }

/* hero: centred, the app in the middle, stickers around it */
.hero { position: relative }
.hero-copy { position: relative; z-index: 7; display: grid; gap: 18px; justify-items: center; text-align: center; padding-top: clamp(8px, 2vw, 24px) }
.hero-copy .big { display: grid; justify-items: center }
.hero-copy .say { max-width: 30ch }
.keep { height: auto; width: min(500px, 70vw); margin: -.1em 0 -.06em; transform: rotate(-4deg); filter: var(--shadow-thing) }
/* tap the keep sticker: it squishes like a puffy sticker and suns fly out (app.js) */
.keep { cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: none }
.keep.pressed { animation: squish .42s cubic-bezier(.3,1.6,.5,1) }
@keyframes squish { 0% { scale: 1 } 30% { scale: .9 1.06 } 65% { scale: 1.06 .96 } 100% { scale: 1 } }
.burst { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden }
.burst img { position: absolute; left: 0; top: 0; will-change: transform, opacity; filter: drop-shadow(0 8px 10px rgba(8,45,130,.28)) }
/* the download button: on a computer it unfolds into a QR code for your iPhone's camera */
.dl { position: relative; z-index: 9; display: block; width: min(320px, 100%); height: 58px; margin-top: 6px; color: #fff; text-decoration: none }
.dl-body { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-rows: auto 0fr; background: var(--ink); border-radius: 29px; overflow: hidden;
  box-shadow: 0 16px 40px -14px rgba(8,40,120,.6); transition: grid-template-rows .5s cubic-bezier(.2,.8,.2,1), transform .15s ease }
.dl:active .dl-body { transform: scale(.98) }
.dl-qr { min-height: 0; overflow: hidden }
.dl-qr > span { display: grid; justify-items: center; gap: 10px; padding: 2px 18px 20px }
.dl-qr img { width: 156px; height: 156px; padding: 12px; background: #fff; border-radius: 18px; image-rendering: pixelated }
.dl-qr small { font: 600 14px/1.2 var(--round); color: rgba(255,255,255,.72) }
.dl-label { height: 58px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 30px; font: 700 18px/1 var(--round); white-space: nowrap }
@media (hover: hover) and (min-width: 861px) {
  .dl-label::after { content: ""; width: 20px; height: 20px; background: url("img/qr.svg") center / contain no-repeat; filter: invert(1); opacity: .9; image-rendering: pixelated }
  .dl:hover .dl-body, .dl:focus-visible .dl-body { grid-template-rows: auto 1fr }
}
.scene { position: relative; z-index: 2; max-width: 1160px; margin: 36px auto 0; height: clamp(420px, 44vw, 560px) }
.scene .hero-phone { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(310px, 66vw) }
.scene .hero-phone .rise { height: clamp(360px, 38vw, 480px) }
@media (max-width: 640px) { .scene .inner { display: none } .scene .thing, .scene .sun { scale: .75 } .scene { height: 440px } .keep { width: 60vw } }

/* clouds: round single clouds gathered under each phone, so the phone sinks into them */
.sun { position: absolute; pointer-events: none; z-index: 3; height: auto; filter: var(--shadow-thing) }
.thing { position: absolute; pointer-events: none; z-index: 6; height: auto; filter: var(--shadow-thing) }
.stage { position: relative; width: min(300px, 76vw) }
.rise { position: relative; z-index: 3; overflow: hidden; padding: 14px 14px 0; height: clamp(340px, 32vw, 420px) }
.cl { position: absolute; z-index: 4; pointer-events: none; height: auto; filter: drop-shadow(0 20px 30px rgba(8,45,130,.18)) }
.stage .cl.a { left: -34%; bottom: -54px; width: 76% } .stage .cl.b { left: 14%; bottom: -74px; width: 78% } .stage .cl.c { right: -38%; bottom: -46px; width: 74% }

/* the phone: the frame from the store set */
.device { position: relative; width: 100%; aspect-ratio: 1320 / 2868; padding: 2.6%; border-radius: 19.2% / 8.9%; background: #0E0E10;
  box-shadow: inset 0 0 0 1.5px #2a2a2e, 0 0 0 1.4px #8d8f95, 0 0 0 2.6px #3c3d41 }
.device img { width: 100%; height: 100%; border-radius: 16.5% / 7.6%; object-fit: cover; object-position: top }

/* the slides, side by side like the store set: a row you swipe, or move with the arrows */
.strip { position: relative; z-index: 3; isolation: isolate; padding-top: clamp(48px, 6vw, 84px) }
.strip-track { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 272px); grid-template-rows: auto auto auto; column-gap: 24px; row-gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 40px var(--gutter-r) 170px max(var(--gutter), calc((100vw - 1160px) / 2)); margin: -40px 0 -170px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1160px) / 2)) }
.strip-track::-webkit-scrollbar { display: none }
.card:last-child { scroll-snap-align: end }
.card { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 10px; justify-items: center; text-align: center; min-width: 0; scroll-snap-align: start }
.card .say { font-size: 16px; max-width: 24ch }
.card .stage { width: 100%; max-width: 260px; margin-top: 10px }
.rise.widgets { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px; padding: 22px 4px 0; overflow: visible }
.rise.widgets img { width: 100%; height: auto; filter: drop-shadow(0 18px 26px rgba(8,40,120,.32)) }
.rise.widgets .w-medium { grid-column: 1 / -1 }
.rise.widgets .w-loose { position: absolute; width: 46%; z-index: 2 }
.rise.widgets .w-loose.a { left: -8%; top: 150px; transform: rotate(-10deg) } .rise.widgets .w-loose.b { right: -10%; top: 170px; transform: rotate(9deg) }
.strip-nav { position: absolute; z-index: 3; left: 0; right: 0; top: 52%; display: flex; justify-content: space-between; padding-inline: max(12px, calc((100vw - 1260px) / 2)); pointer-events: none }
.strip-nav .arrow { pointer-events: auto }
.arrow { width: 46px; height: 46px; border-radius: 99px; border: 0; background: #fff; color: var(--ink); font: 700 26px/1 var(--round); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(8,40,120,.5) }
.arrow:disabled { opacity: .4; cursor: default }
@media (hover: none) { .strip-nav { display: none } }
/* one cumulus under the row: each card's clouds reach well into its neighbours', in two layers */
.puffs { position: absolute; left: -62%; right: -62%; bottom: -78px; height: 240px; pointer-events: none }
.puffs img { position: absolute; height: auto }
.puffs.back { z-index: 2 }
.puffs.back img { filter: drop-shadow(0 16px 24px rgba(8,45,130,.14)) brightness(.97) }
.puffs.back img:nth-child(1) { left: 2%; bottom: 96px; width: 40% } .puffs.back img:nth-child(2) { left: 31%; bottom: 120px; width: 38% } .puffs.back img:nth-child(3) { left: 60%; bottom: 100px; width: 40% }
.puffs.front { z-index: 4 }
.puffs.front img { filter: drop-shadow(0 20px 30px rgba(8,45,130,.18)) }
.puffs.front img:nth-child(1) { left: -2%; bottom: 10px; width: 38% } .puffs.front img:nth-child(2) { left: 21%; bottom: -10px; width: 40% }
.puffs.front img:nth-child(3) { left: 45%; bottom: 4px; width: 38% } .puffs.front img:nth-child(4) { left: 68%; bottom: -14px; width: 38% }

/* the descent: the last clouds, then the app's white ground */
/* the still bank sits in front of the row: it covers the bottom of the phones and their clouds */
.descent { position: relative; z-index: 2; height: clamp(180px, 17vw, 230px); margin-top: clamp(-150px, -11vw, -110px); pointer-events: none }
.descent .cl { z-index: 4; filter: none }
.descent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: var(--ground); z-index: 3 }

/* ---------- the ground ---------- */
.ground { background: var(--ground); color: var(--ink); position: relative }
.ground-title { margin: 0; font: 800 clamp(32px, 4vw, 52px)/1.02 var(--round); letter-spacing: -.045em; text-wrap: balance }
.band { padding-block: clamp(36px, 5vw, 72px) }
.band-head { display: grid; gap: 22px }

/* price: the paywall, as the app draws it */
.price-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start }
@media (max-width: 860px) { .price-in { grid-template-columns: 1fr } }
.trial { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; position: relative }
.trial li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; position: relative }
.trial li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; height: calc(100% - 24px); border-left: 2px dotted var(--separator) }
.trial img { width: 40px; height: 40px; object-fit: contain }
.trial b { display: block; font: 700 18px/1.25 var(--round) } .trial span { color: var(--secondary) }
.plans { display: grid; gap: 10px }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 20px; border-radius: 18px; background: var(--group) }
.plan.on { background: var(--ink); color: #fff }
.plan b { font: 700 19px/1.2 var(--round) }
.plan .what { color: var(--secondary) } .plan.on .what, .plan.on .per { color: rgba(255,255,255,.75) }
.plan .cost { text-align: right; font: 700 19px/1.2 var(--round); font-variant-numeric: tabular-nums; white-space: nowrap }
.plan .per { display: block; font: 500 13px/1.3 var(--text); color: var(--secondary) }
.plans-foot { display: grid; gap: 14px; margin-top: 8px }
.plans-foot .pill { width: 100% }
.fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--caption); text-align: center }
.fine a { color: inherit }

/* questions, then support in one quiet paragraph */
.qa-in { display: grid; gap: 22px; max-width: 820px }
.qa { background: var(--group); border-radius: 20px; overflow: hidden }
.qa details { border-bottom: .5px solid var(--separator) } .qa details:last-child { border-bottom: 0 }
.qa summary { list-style: none; cursor: pointer; padding: 17px 20px; font: 700 17px/1.3 var(--round); display: flex; justify-content: space-between; gap: 16px }
.qa summary::-webkit-details-marker { display: none }
.qa summary::after { content: "+"; color: var(--caption); font-weight: 500; transition: transform .2s }
.qa details[open] summary::after { transform: rotate(45deg) }
.qa details p { margin: 0; padding: 0 20px 18px; color: var(--secondary) }
.support { scroll-margin-top: 24px }
.support-in p { margin: 0; max-width: 820px; font-size: 15px; line-height: 1.5; color: var(--secondary) }
.support-in b { color: var(--ink) }
.support-in a { color: var(--ink) }

/* the floor: where the animals lie, before the footer */
.floor-band { position: relative; height: clamp(110px, 12vw, 160px); margin-top: clamp(8px, 2vw, 24px) }
.floor-line { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; border-top: 2.5px solid var(--ink) }
.floor-band .lie { position: absolute; bottom: 0; height: auto; z-index: 1; transform: translateY(16%) } /* the white die-cut edge dips under the line, so the drawing sits on it */
.floor-band .sun { bottom: 0; filter: none; z-index: 1; transform: translateY(14%) }
.foot { padding-block: 24px calc(28px + env(safe-area-inset-bottom, 0px)) }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between }
.foot-logo { height: 22px; width: auto }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px } .foot nav a { color: var(--caption); text-decoration: none } .foot nav a:hover, .foot nav a[aria-current] { color: var(--ink) }
.foot small { font-size: 13px; color: var(--caption) }

/* privacy and terms, on the white ground */
.legal { max-width: 760px; padding-block: clamp(32px, 6vw, 64px) clamp(48px, 7vw, 80px) }
.legal h1 { margin: 0; font: 900 clamp(40px, 5vw, 64px)/1 var(--round); letter-spacing: -.045em }
.legal .lede { margin: 18px 0 8px; font: 600 clamp(18px, 1.6vw, 20px)/1.45 var(--round) }
.legal h2 { margin: 40px 0 10px; font: 800 23px/1.2 var(--round); letter-spacing: -.02em; scroll-margin-top: 24px }
.legal h3 { margin: 22px 0 6px; font: 700 18px/1.3 var(--round) }
.legal p, .legal li { line-height: 1.55 } .legal p { margin: 0 0 12px }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px }
.legal a { color: inherit; text-decoration-color: var(--separator); text-underline-offset: 3px }
.legal .updated { margin-top: 36px; font-size: 13px; color: var(--caption) }
.legal code { font-size: .9em; background: var(--group); border-radius: 6px; padding: 1px 6px }
.legal-top .nav-in { height: 76px }

/* the opening, after Locket's: "Finally", the keep sticker and "your habits." pop in one at a time,
   large in the middle of the sky, hold, then shrink into the headline's place while the rest of the
   hero arrives around them. The page script adds .intro to <html> and lifts it; without the script,
   or with reduced motion, the page simply shows. */
.intro body { overflow: hidden }
.intro .big { position: relative; z-index: 20 }
.settle .big { position: relative; z-index: 20; transition: transform .8s cubic-bezier(.65,0,.25,1) }
.intro .big > * { opacity: 0; scale: .45 }
.intro.play .big > * { animation: pop .55s cubic-bezier(.3,1.7,.5,1) both }
.intro.play .big > :nth-child(2) { animation-delay: .38s }
.intro.play .big > :nth-child(3) { animation-delay: .76s }
.intro .nav-in, .intro .dl, .intro .scene > *, .intro .strip { opacity: 0 }
.intro .scene > * { scale: .9 }
.settle .nav-in, .settle .dl, .settle .strip { transition: opacity .6s ease .55s }
.settle .scene > * { transition: opacity .55s ease, scale .7s cubic-bezier(.3,1.5,.5,1) }
.settle .scene > :nth-child(odd) { transition-delay: .6s } .settle .scene > :nth-child(even) { transition-delay: .72s } .settle .scene .hero-phone { transition-delay: .5s }
@keyframes pop { from { opacity: 0; scale: .45 } 60% { opacity: 1 } to { opacity: 1; scale: 1 } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
@media (max-width: 640px) { .floor-band > :nth-child(3), .floor-band > :nth-child(4) { display: none } .floor-band .lie { width: 120px !important } }
