/* Pecunia's site. One page for every width, phone first: a phone and a computer get the same
   sections, the same words and the same order. The base is the app's black with cream ink. Colour
   comes twice: the dusk the page opens on and the coral it ends on. Source Serif 4 sets the
   wordmark and the figures, Instrument Sans sets the rest. */

:root {
  --black: #000;
  --raised: #0f0f0f;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, 0.68);
  --ink-3: rgba(244, 241, 234, 0.46);
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.28);
  --coral: #f05d35;
  --gutter: clamp(22px, calc(9.5vw - 13px), 124px);
  --page: 1440px;
  --radius: 28px;
  --section: clamp(96px, 12.5vw, 184px);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  background: var(--black);
  scrollbar-color: rgba(244, 241, 234, 0.3) var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

::selection {
  background: var(--coral);
  color: var(--black);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--black);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-top: var(--section);
}

/* ---------- words ---------- */

.title {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.06;
  text-wrap: balance;
}

.statement {
  max-width: 21em;
  font-size: clamp(1.62rem, 1rem + 2.1vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-wrap: pretty;
}

.label {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 0.96rem;
}

.say {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--black);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease);
}

.pill:active {
  transform: scale(0.98);
}

/* ---------- the join form ---------- */

.join {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 460px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.join input[type='email'] {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding-inline: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  caret-color: var(--coral);
  font: inherit;
  font-size: 1.04rem;
  outline: none;
  transition: box-shadow 160ms ease;
}

.join input[type='email']::placeholder {
  color: rgba(244, 241, 234, 0.56);
}

.join input[type='email']:focus {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.join input[aria-invalid='true'] {
  box-shadow: inset 0 0 0 2px var(--coral);
}

.join button {
  height: 54px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--black);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    opacity 160ms ease;
}

.join button:active {
  transform: scale(0.98);
}

.join.busy button {
  opacity: 0.6;
  cursor: progress;
}

.join-err {
  margin-top: 10px;
  color: #ff9a7c;
  font-size: 0.96rem;
}

.fine {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.fine a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fine b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sent {
  display: grid;
  gap: 2px;
  max-width: 460px;
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: none;
  animation: land 500ms var(--ease) both;
}

.sent b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.sent span {
  color: var(--ink-2);
  font-size: 0.96rem;
}

@keyframes land {
  from {
    transform: translateY(8px);
  }
}

/* ---------- the top: the dusk, the wordmark, the words, three screens ---------- */

.hero {
  --hw: min(58vw, 300px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #2a1a33;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* The app's night: indigo at the top, ember at the foot (theme/tokens.ts). */
.hero::before {
  background: linear-gradient(176deg, #1a1848 0%, #47203f 52%, #7f3118 100%);
}

.hero::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.36),
    rgba(0, 0, 0, 0.14) 46%,
    rgba(0, 0, 0, 0.4)
  );
}

.hero-in {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: calc(env(safe-area-inset-top) + 20px);
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 16.6vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-decoration: none;
}

.wordmark img {
  flex: none;
  width: 0.66em;
  height: 0.66em;
  margin-left: -0.05em;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 0.2em;
}

.top-links a:not(.pill) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.top-links .pill {
  display: none;
  min-height: 44px;
}

.hero-words {
  margin-top: 30px;
}

.hero h1 {
  font-size: clamp(1.62rem, 1.3rem + 1vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.1;
  text-wrap: balance;
}

.lede {
  margin-top: 12px;
  max-width: 32ch;
  color: rgba(244, 241, 234, 0.8);
  font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.38;
  text-wrap: pretty;
}

.hero .act {
  margin-top: 22px;
}

.hero-screens {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  height: calc(var(--hw) * 1.26);
  margin: 36px calc(var(--gutter) * -1) 0;
}

.rise {
  flex: none;
  width: var(--hw);
  overflow: hidden;
  border-radius: calc(var(--hw) * 0.115) calc(var(--hw) * 0.115) 0 0;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.16);
}

.rise:nth-child(odd) {
  margin-top: 46px;
}

.rise img {
  width: 100%;
  height: auto;
}

/* The short top of the About page: no screens. */
.hero.short .hero-in {
  min-height: clamp(400px, 44vw, 620px);
  justify-content: space-between;
  padding-bottom: clamp(30px, 4vw, 54px);
}

/* ---------- the strip under the top ---------- */

.strip-in {
  display: grid;
  gap: 16px;
  padding-block: 28px 0;
}

.strip-label {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.strip-facts {
  display: grid;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.strip-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-facts svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- how Pecunia helps you save ---------- */

/* Six ways, each led by one figure from the demo account, and each a link to its part. */
.ways-label {
  margin: clamp(44px, 5.5vw, 72px) 0 18px;
  font-weight: 500;
}

.ways {
  display: grid;
  gap: 12px;
}

.ways a {
  display: grid;
  align-content: start;
  height: 100%;
  padding: 24px 22px 26px;
  border-radius: 20px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: box-shadow 200ms ease;
}

.ways a:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.way-figure {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.way-eg {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.35;
}

.ways b {
  margin-top: 22px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.way-line {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.42;
  text-wrap: pretty;
}

.ways-note {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.what .pill,
.going .pill {
  margin-top: clamp(36px, 4vw, 52px);
}

/* ---------- the picture board ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* On a phone the four pictures sit two by two under the card. */
.bento-col {
  display: contents;
}

.card {
  grid-column: 1 / -1;
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 300px;
  padding: 40px 24px;
  border-radius: 20px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.card .title {
  max-width: 11em;
}

.tile {
  --zoom: 1.4;
  --cx: 0.5;
  --cy: 0.3;
  --ar: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar);
  border-radius: 20px;
  background: var(--black);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Each tile shows one part of a screen: --cx and --cy are that part's middle, as shares of the
   screen, and --zoom is how wide the screen is drawn against the tile. */
.tile img {
  position: absolute;
  max-width: none;
  width: calc(var(--zoom) * 100%);
  height: auto;
  left: calc(50% - var(--cx) * var(--zoom) * 100%);
  top: calc(50% - var(--cy) * var(--zoom) * var(--ar) * 216.4%);
}

/* The picture melts into the tile at every edge, so no word is cut in half by one. */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, #000, transparent 15%, transparent 76%, #000 96%),
    linear-gradient(to right, #000, transparent 7%, transparent 93%, #000);
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

.t-ring {
  --zoom: 1.75;
  --cy: 0.468;
}

.t-score {
  --zoom: 1.6;
  --cx: 0.33;
  --cy: 0.165;
}

.t-line {
  --zoom: 1.04;
  --cy: 0.367;
}

.t-bars {
  --zoom: 1.04;
  --cy: 0.377;
}

/* ---------- one part of the app: its words and its screens ---------- */

.feature-words .title {
  max-width: 12em;
}

.screens {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 34px calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screens::-webkit-scrollbar {
  display: none;
}

.screen {
  flex: none;
  width: min(72vw, 320px);
  scroll-snap-align: start;
}

/* Its name, then one line on what it is. Screens in a row stand on one line at the foot, so a
   longer caption grows upward and the screens stay level. */
.screen figcaption {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.screen figcaption b {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.screen figcaption span {
  font-size: 0.93rem;
  line-height: 1.4;
  text-wrap: pretty;
}

/* The app is black and so is the page, so a screen fades into the page and has no foot. */
.glass {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 390 / 640;
  border-radius: 26px;
  background: var(--black);
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 99%);
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.14);
  pointer-events: none;
}

.glass img {
  width: 100%;
  height: auto;
}

/* A whole screen, foot and all: the night plays in one, so its neighbour stands as tall. */
.screen.whole .glass {
  aspect-ratio: 780 / 1688;
  -webkit-mask-image: none;
  mask-image: none;
}

/* A sheet cut out of its screen: the app's own sheet, with no phone drawn round it. */
.screen.sheet .glass {
  aspect-ratio: 780 / 1196;
  border-radius: 0 0 26px 26px;
  -webkit-mask-image: none;
  mask-image: none;
}

.screen.sheet .glass::after {
  display: none;
}

.js .reveal .screens,
.js .reveal .bento {
  transform: translateY(26px);
  transition: transform 900ms var(--ease);
}

.js .reveal.seen .screens,
.js .reveal.seen .bento {
  transform: none;
}

.asks {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 30px;
}

.asks li {
  padding: 14px 20px;
  border-radius: 22px 22px 22px 6px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  letter-spacing: -0.015em;
}

/* ---------- a part with a live choice ---------- */

/* Its screen is a stack of photographs of the demo account, the first one in front. A price or
   the switch brings another forward (`data-shows` on the part, set in page.js). */
.stack img {
  transition: opacity 240ms ease;
}

.stack img + img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

[data-shows='1'] .stack img:nth-child(2),
[data-shows='2'] .stack img:nth-child(3),
[data-shows='3'] .stack img:nth-child(4) {
  opacity: 1;
}

.live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.live-word {
  flex-basis: 100%;
  color: var(--ink-3);
  font-size: 0.96rem;
}

.price,
.switch {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease);
}

.price:active,
.switch:active {
  transform: scale(0.97);
}

.price {
  min-width: 78px;
  padding-inline: 20px;
  font-variant-numeric: tabular-nums;
}

.price[aria-pressed='true'] {
  background: var(--ink);
  box-shadow: none;
  color: var(--black);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px 0 8px;
}

.switch-track {
  position: relative;
  flex: none;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.16);
  transition: background-color 200ms ease;
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  transition:
    transform 220ms var(--ease),
    background-color 200ms ease;
}

.switch[aria-checked='true'] .switch-track {
  background: var(--ink);
}

.switch[aria-checked='true'] .switch-track::after {
  background: var(--black);
  transform: translateX(22px);
}

/* What the app tells you, as the lines of its Updates list. */
.notes {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  max-width: 26em;
}

.notes li {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

.notes b {
  font-weight: 600;
  letter-spacing: -0.012em;
}

.notes span {
  color: var(--ink-3);
  font-size: 0.94rem;
}

/* ---------- it can't move your money ---------- */

.vault {
  display: grid;
  gap: 34px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

.vault .pill {
  margin-top: 26px;
  background: rgba(244, 241, 234, 0.1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.proofs {
  display: grid;
  gap: 22px;
}

.proofs li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  color: var(--ink-2);
  line-height: 1.42;
}

.proofs b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.proofs svg {
  width: 24px;
  height: 24px;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  gap: 36px;
  margin-top: clamp(40px, 5vw, 72px);
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.12);
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 8px;
  max-width: 30ch;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.42;
}

/* ---------- questions ---------- */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 18px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 260ms var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 52ch;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* ---------- the end: coral, and the form again ---------- */

.close {
  margin: var(--section) clamp(8px, 1.4vw, 20px) 0;
  padding: clamp(72px, 10vw, 148px) 0;
  border-radius: var(--radius);
  background: var(--coral);
  color: var(--black);
  text-align: center;
}

.close h2 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 1.6rem + 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1;
  text-wrap: balance;
}

.close .act {
  display: grid;
  justify-items: center;
  margin-top: clamp(28px, 3.4vw, 44px);
}

.close .join input[type='email'] {
  background: var(--black);
  box-shadow: none;
}

.close .join input[type='email']:focus {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.close .join button {
  background: var(--black);
  color: var(--ink);
}

.close .fine {
  color: rgba(0, 0, 0, 0.72);
}

.close .fine b {
  color: var(--black);
}

.close .join-err {
  color: var(--black);
  font-weight: 600;
}

.close .sent {
  width: 100%;
  background: var(--black);
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

/* ---------- the foot ---------- */

.foot {
  display: grid;
  gap: 44px;
  padding-block: clamp(64px, 8vw, 112px) calc(env(safe-area-inset-bottom) + 96px);
}

.foot .wordmark {
  font-size: clamp(3.2rem, 2rem + 4vw, 4.6rem);
}

.foot-say {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 20px;
}

.foot-links h3 {
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 0.92rem;
  font-weight: 500;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.98rem;
  text-decoration: none;
}

/* The parts of the app are many, so their links run down two columns. */
.foot-links .many {
  display: grid;
  grid-template-rows: auto repeat(9, auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  column-gap: 20px;
  grid-column: 1 / -1;
  order: 3;
}

.foot-links .many h3 {
  grid-column: 1 / -1;
}

.legal {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* On a phone a Join button stays at hand, except where a form is already on screen. */
.stick {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  z-index: 30;
  min-height: 52px;
  padding-inline: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 90px);
  transition: transform 420ms var(--ease);
}

.stick.on {
  transform: translate(-50%, 0);
}

.in-line .stick {
  display: none;
}

/* ---------- the About page ---------- */

.idea-grid {
  display: grid;
  gap: 40px;
}

.idea-grid .screen {
  width: min(78vw, 340px);
}

.beliefs {
  display: grid;
  gap: 34px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  counter-reset: belief;
}

.beliefs li {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  counter-increment: belief;
}

.beliefs li::before {
  content: '0' counter(belief);
  display: block;
  margin-bottom: 26px;
  color: var(--ink-3);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.beliefs h3 {
  font-size: 1.36rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.beliefs p {
  margin-top: 8px;
  max-width: 30ch;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.42;
}

.parts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.parts a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  min-height: 76px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.parts b {
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.parts span {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.parts svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- wider than a phone ---------- */

@media (min-width: 480px) {
  .join {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 720px) {
  .top-links .pill {
    display: inline-flex;
  }

  .strip-in {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px 48px;
    padding-block: 24px 0;
  }

  .strip-facts {
    grid-template-columns: repeat(2, auto);
    justify-content: end;
    gap: 12px 40px;
  }

  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
  }

  /* A column of two pictures, the card, a column of two pictures. Both columns are as tall as
     each other: 1 + 1/1.5 and 1/0.9 + 1/1.8 of a column's width. */
  .bento-col {
    display: grid;
    align-content: start;
    gap: 12px;
  }

  .card {
    order: 0;
    grid-column: auto;
    min-height: 0;
  }

  .t-score {
    --ar: 1.5;
    --cy: 0.13;
  }

  .t-line {
    --ar: 0.9;
    --cy: 0.392;
  }

  .t-bars {
    --ar: 1.8;
    --cy: 0.2785;
  }

  .screens {
    display: grid;
    grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
    align-items: end;
    gap: clamp(26px, 3vw, 40px) clamp(14px, 1.8vw, 24px);
    max-width: calc(var(--n, 2) * 340px);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .screen,
  .idea-grid .screen {
    width: auto;
  }

  .vault {
    grid-template-columns: 5fr 6fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .beliefs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-links {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 36px clamp(40px, 7vw, 96px);
  }

  .foot-links .many {
    grid-template-columns: repeat(2, auto);
    column-gap: clamp(24px, 3vw, 44px);
    grid-column: auto;
    order: 0;
  }

  .stick {
    display: none;
  }

  .foot {
    padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
  }
}

/* ---------- a computer ---------- */

@media (min-width: 1100px) {
  .hero {
    --hw: clamp(200px, 19vw, 274px);
  }

  .ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .hero-in {
    min-height: calc(var(--hw) * 2.12 + clamp(176px, 17.2vw, 248px));
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 52px;
  }

  .hero-words {
    max-width: min(440px, 32%);
  }

  .hero-screens {
    position: absolute;
    left: 44%;
    bottom: 0;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(12px, 1.25vw, 18px);
    height: auto;
    margin: 0;
  }

  .rise:nth-child(odd) {
    margin-top: 0;
  }

  .rise:nth-child(1) {
    height: calc(var(--hw) * 1.8);
  }

  .rise:nth-child(2) {
    height: calc(var(--hw) * 2.12);
  }

  .rise:nth-child(3) {
    height: calc(var(--hw) * 1.5);
  }

  .hero.short .hero-words {
    max-width: none;
  }

  .strip-facts {
    grid-template-columns: repeat(4, auto);
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }

  /* A part with two rows of screens keeps its words beside them as the page moves. */
  .feature-words {
    position: sticky;
    top: 72px;
    grid-column: 1 / span 4;
    grid-row: 1;
    padding-top: 30px;
  }

  .feature-grid > .screens {
    grid-column: 6 / -1;
    grid-row: 1;
    margin-top: 0;
    max-width: none;
  }

  /* A part with one screen keeps it at a phone's size. */
  .feature-grid > .screens.one {
    max-width: 340px;
  }

  .feature.flip .feature-words {
    grid-column: 9 / -1;
  }

  .feature.flip .feature-grid > .screens {
    grid-column: 1 / span 7;
  }

  /* A part with three screens: its words above, its screens across the page. */
  .feature.wide .feature-words {
    position: static;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 7fr 5fr;
    column-gap: 24px;
    align-items: end;
    grid-column: 1 / -1;
    padding-top: 0;
  }

  /* Its line stands beside the label and the title together, so a long line opens no gap
     between the two. */
  .feature.wide .label,
  .feature.wide .title {
    grid-column: 1;
  }

  .feature.wide .say {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0 0 6px;
  }

  .feature.wide .feature-grid > .screens {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 44px;
  }

  .asks li:nth-child(2) {
    margin-left: 12%;
  }

  .asks li:nth-child(3) {
    margin-left: 24%;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* The dashed line that carries one step to the next. */
  .steps li::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 44px;
    right: -10px;
    border-top: 1px dashed var(--line-strong);
  }

  .steps li:last-child::after {
    display: none;
  }

  .faq-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }

  .faq-grid .title {
    grid-column: 1 / span 4;
  }

  .faq-grid .faq,
  .faq-grid .parts {
    grid-column: 6 / -1;
    margin-top: 0;
  }

  .idea-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }

  .idea-words {
    grid-column: 1 / span 7;
  }

  .idea-grid .screen {
    grid-column: 9 / -1;
  }

  .beliefs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .foot {
    grid-template-columns: 5fr 7fr;
    gap: 44px 24px;
  }

  .foot-links {
    justify-content: end;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .js .reveal .screens,
  .js .reveal .bento {
    transform: none;
  }
}
