/* Casseti: flat bands of colour, like the app icon. Dusk purple on the
   outside, through magenta and pink, to orange at the reel. No gradients
   that fade, no glow, no outlines. */
@font-face { font-family: "Righteous"; src: url("fonts/righteous.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #1d0b45;
  --indigo: #35167a;
  --violet: #5a24a0;
  --magenta: #a02a9c;
  --pink: #f2418f;
  --orange: #ff8442;
  --text: #fff6ee;
  --muted: #dccdf5;
}

* { box-sizing: border-box; }
/* Room for the scrollbar is always kept, so the page does not shift
   sideways between long pages and short ones. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--text);
  background: var(--night);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; position: relative; }
.narrow { max-width: 760px; }

/* The bands, laid flat */
.stripes { height: 40px; background: linear-gradient(var(--orange) 0 25%, var(--pink) 25% 50%, var(--magenta) 50% 75%, var(--violet) 75% 100%); }
.stripes.thin { height: 16px; }

/* Header */
header.site { position: relative; z-index: 3; }
header.site .wrap { display: flex; align-items: center; gap: 14px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font: 26px/1 "Righteous", sans-serif; letter-spacing: 0.5px; }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
header.site nav { margin-left: auto; display: flex; gap: 6px; }
header.site nav a { font: 15px/1 "Righteous", sans-serif; letter-spacing: 0.5px; text-decoration: none; color: var(--text); padding: 10px 15px; border-radius: 999px; }
header.site nav a:hover { background: var(--violet); color: #fff; }
header.site nav a[aria-current="page"] { background: var(--orange); color: var(--night); }

/* Hero: the icon's rings, spreading out from behind the phone */
.hero { position: relative; overflow: hidden; background-color: var(--night); background-image: radial-gradient(circle at 76% 58%, var(--orange) 0 200px, var(--pink) 200px 330px, var(--magenta) 330px 470px, var(--violet) 470px 620px, var(--indigo) 620px 780px, var(--night) 780px); }
.hero main.wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; padding-top: 30px; padding-bottom: 70px; z-index: 2; }
.hero h1 { margin: 0; font: 400 clamp(54px, 10vw, 104px)/0.95 "Righteous", sans-serif; letter-spacing: 1px; color: #fff; }
.hero .tag { margin: 10px 0 18px; font: clamp(22px, 3.6vw, 32px)/1.15 "Righteous", sans-serif; color: var(--orange); }
.hero p.lead { font-size: 19px; margin: 0 0 24px; max-width: 28em; }

.button { display: inline-block; padding: 15px 24px; border-radius: 999px; background: var(--orange); color: var(--night); font: 17px/1 "Righteous", sans-serif; letter-spacing: 0.5px; text-decoration: none; }
.button.soon { cursor: default; }
a.button:hover { background: #fff; color: var(--night); }
.price { display: block; margin-top: 18px; font-size: 15px; }
.price b { color: #fff; font: 22px/1 "Righteous", sans-serif; }

/* Pictures of the app */
.shot { margin: 0; text-align: center; }
.shot img, .shot video { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; border-radius: 26px; border: 3px solid #0b0420; background: #0b0420; }
.shot.wide img { max-width: 100%; }
.shot figcaption { margin-top: 14px; font: 15px/1.2 "Righteous", sans-serif; color: var(--text); letter-spacing: 0.5px; }

/* Sections step through the bands */
section { position: relative; padding: 64px 0; background: var(--night); }
section.alt { background: var(--indigo); }
h2 { margin: 0 0 12px; font: 400 clamp(28px, 4.6vw, 44px)/1.08 "Righteous", sans-serif; letter-spacing: 0.5px; color: #fff; }
p.intro { color: var(--muted); max-width: 40em; margin: 0 0 30px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--violet); border-radius: 22px; padding: 22px; }
.card:nth-child(3n+2) { background: var(--magenta); }
.card:nth-child(3n) { background: var(--pink); }
.card:nth-child(n+4) { background: var(--magenta); }
.card:nth-child(5) { background: var(--pink); }
.card:nth-child(6) { background: #c8501d; }
.card h3 { margin: 0 0 6px; font: 400 21px/1.15 "Righteous", sans-serif; color: #fff; }
.card p { margin: 0; color: #fff; font-size: 16px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.pair ul { margin: 10px 0 0; padding: 0; list-style: none; }
.pair li { margin: 9px 0; padding-left: 28px; position: relative; color: var(--muted); }
.pair li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.pair h2 + p { color: var(--muted); }
.pair h2:not(:first-child) { margin-top: 34px; }

.shots { display: flex; flex-wrap: wrap; gap: 30px 14px; }
.shots .shot { width: calc(25% - 11px); min-width: 200px; transition: transform .25s ease; }
.shots .shot:hover { transform: translateY(-6px); }
.row-title { margin: 30px 0 10px; font: 400 22px/1.2 "Righteous", sans-serif; color: var(--orange); }

/* Text pages: plain and easy to read, on one flat sheet */
.page { padding: 34px 0 70px; }
.sheet { background: var(--indigo); border-radius: 26px; padding: 32px 36px; }
.sheet h1 { margin: 0 0 4px; font: 400 clamp(32px, 6vw, 46px)/1.05 "Righteous", sans-serif; color: #fff; }
.sheet .updated { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.sheet h2 { font: 400 23px/1.2 "Righteous", sans-serif; color: var(--orange); margin: 32px 0 8px; }
.sheet h3 { font-size: 18px; margin: 22px 0 4px; color: #fff; }
.sheet p, .sheet li { color: var(--text); }
.sheet ul { padding-left: 22px; }

/* Questions that open and close. site.js eases them; without it they
   simply open. */
details { border-top: 3px solid var(--violet); }
details:last-of-type { border-bottom: 3px solid var(--violet); }
summary { cursor: pointer; font-weight: 700; color: #fff; padding: 14px 34px 14px 0; position: relative; list-style: none; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); transition: transform .28s ease, margin .28s ease; }
details.open summary::after, details[open]:not(.eased) summary::after { transform: rotate(225deg); margin-top: -2px; }
summary:hover { color: var(--orange); }
details .answer { overflow: hidden; }
details p { margin: 0; padding: 0 0 16px; }

/* Footer */
footer.site { background: var(--night); padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; justify-content: space-between; }
footer.site .name { display: flex; align-items: center; gap: 10px; font: 22px/1 "Righteous", sans-serif; color: #fff; }
footer.site .name img { width: 32px; height: 32px; border-radius: 8px; }
footer.site .credit p { margin: 10px 0 0; font-size: 15px; color: var(--text); }
footer.site .credit a { color: inherit; text-decoration-color: var(--violet); text-decoration-thickness: 2px; }
footer.site .credit a:hover { color: #fff; text-decoration-color: var(--orange); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; }
footer.site nav a { color: var(--text); text-decoration: none; border-bottom: 2px solid var(--violet); padding-bottom: 2px; transition: border-color .2s, color .2s; }
footer.site nav a:hover { color: #fff; border-color: var(--orange); }
footer.site .legal { flex-basis: 100%; margin: 4px 0 0; }

/* Small things that move ------------------------------------------------ */
/* The level lights beside the tagline */
.levels { display: inline-flex; gap: 4px; align-items: flex-end; height: .8em; margin-left: .35em; vertical-align: baseline; }
.levels i { width: 5px; height: 100%; border-radius: 2px; background: var(--orange); transform-origin: bottom; animation: level 1.1s ease-in-out infinite; }
.levels i:nth-child(2) { animation-delay: -.7s; background: var(--pink); }
.levels i:nth-child(3) { animation-delay: -.25s; }
.levels i:nth-child(4) { animation-delay: -.9s; background: var(--pink); }
.levels i:nth-child(5) { animation-delay: -.45s; }
@keyframes level { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* The phone in the hero drifts a little */
.float img, .float video { animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* The cassette beside the heading, reels turning */
.heading { display: flex; align-items: center; gap: 30px; justify-content: space-between; }
.tape-art { width: 200px; flex: none; margin-bottom: 24px; }
.tape-art .shell { fill: var(--violet); }
.tape-art .label { fill: var(--text); }
.tape-art .rule { stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; fill: none; }
.tape-art .window { fill: var(--night); }
.tape-art .hub { fill: var(--orange); }
.tape-art .spoke { stroke: var(--night); stroke-width: 4; stroke-linecap: round; fill: none; }
.tape-art .foot { fill: var(--magenta); }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

/* Icons on the cards */
.card { transition: transform .25s ease; }
.card:hover { transform: translateY(-4px); }
.ico { display: block; width: 56px; height: 40px; margin-bottom: 12px; color: #fff; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill, .ico .dot, .ico .base { fill: currentColor; stroke: none; }
.ico .base { opacity: .35; }
.ico .spin { animation-duration: 3s; }
.ico .press { animation: press 2.4s ease-in-out infinite; }
.ico .press.late { animation-delay: -1.2s; }
@keyframes press { 0%, 38%, 62%, 100% { transform: translateY(0); } 46%, 54% { transform: translateY(4px); } }
.ico.bars rect { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: bottom; animation: level 1s ease-in-out infinite; }
.ico.bars rect:nth-child(2) { animation-delay: -.6s; }
.ico.bars rect:nth-child(3) { animation-delay: -.2s; }
.ico.bars rect:nth-child(4) { animation-delay: -.8s; }
.ico.bars rect:nth-child(5) { animation-delay: -.4s; }
.ico .ring { transform-box: fill-box; transform-origin: center; animation: beat 1.6s ease-out infinite; }
.ico .ring.late { animation-delay: -.8s; }
.ico .dot { transform-box: fill-box; transform-origin: center; animation: thump .8s ease-in-out infinite; }
@keyframes beat { from { transform: scale(.7); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@keyframes thump { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } }
.ico .scribble { stroke-dasharray: 70; animation: write 3.6s ease-in-out infinite; }
@keyframes write { 0% { stroke-dashoffset: 70; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 70; } }
.ico-flip { position: relative; width: 40px; height: 40px; border: 3px solid #fff; border-radius: 50%; animation: flip 4s ease-in-out infinite; }
.ico-flip span { position: absolute; inset: 0; display: grid; place-items: center; font: 20px/1 "Righteous", sans-serif; color: #fff; animation: side 4s steps(1) infinite; }
.ico-flip span:last-child { animation-name: other; transform: scaleX(-1); }
@keyframes flip { 0%, 30% { transform: rotateY(0); } 50%, 80% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes side { 0% { opacity: 1; } 40% { opacity: 0; } 90% { opacity: 1; } }
@keyframes other { 0% { opacity: 0; } 40% { opacity: 1; } 90% { opacity: 0; } }

/* Things come up into place as they are scrolled to (site.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.seen { opacity: 1; transform: none; }
.grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid .reveal:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero { background-image: radial-gradient(circle at 50% 76%, var(--orange) 0 150px, var(--pink) 150px 250px, var(--magenta) 250px 360px, var(--violet) 360px 480px, var(--indigo) 480px 610px, var(--night) 610px); }
  .hero main.wrap, .pair { grid-template-columns: 1fr; }
  .hero main.wrap { padding-bottom: 50px; }
  .grid, .shots { grid-template-columns: 1fr; }
  .tape-art { display: none; }
  footer.site .wrap { flex-direction: column; }
  .sheet { padding: 22px 18px; }
  header.site nav { gap: 2px; }
  header.site nav a { padding: 8px 9px; font-size: 13px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
}
