@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/roboto.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --raise: #eef0f3;
  --text: #15171c;
  --muted: #5b606b;
  --faint: #9ea2ab;
  --line: #e4e6ea;
  --accent: #2c6be0;
  --accent-hover: #2f323a;
  --accent-ink: #1f57c3;
  --display: "Instrument Sans", "Roboto", "Segoe UI", system-ui, sans-serif;

  /* type and spacing scale (body text is 17px) */
  --small: 0.875rem;                    /* nav, meta line, footer */
  --title: 1.2rem;                      /* step captions, tray facts, questions */
  --space: clamp(80px, 10vw, 144px);    /* between sections */
  --gutter: clamp(48px, 6vw, 88px);     /* between the two columns of a section */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* background texture: a light grain behind everything that stays put while the page scrolls */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
.brand,
.facts dt,
.faq summary,
.wordmark {
  font-family: var(--display);
}

.wrap {
  width: min(1240px, 100% - 64px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* buttons and links */

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.button:hover {
  background: var(--accent-hover);
}

.button.small {
  padding: 8px 18px;
  font-size: var(--small);
}

.link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.link:hover {
  color: var(--text);
}

/* top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--small);
}

.top nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:not(.button):hover {
  color: var(--text);
}

/* language picker: flag and code, opening a list of every language */

.lang {
  position: relative;
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.lang summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang summary:hover,
.lang[open] summary {
  color: var(--text);
}

.lang img {
  width: 21px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.1);
}

.lang ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 210px;
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21, 23, 28, 0.12);
}

/* more languages below: a fade and a down arrow pinned to the bottom of the list,
   shown while it can still scroll down (the script sets data-more) */
.lang ul::after {
  content: "";
  position: sticky;
  bottom: -6px;
  display: block;
  height: 48px;
  margin: -48px -6px -6px;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b606b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom 10px / 12px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0), var(--bg) 65%);
}

.lang ul[data-more]::after {
  opacity: 1;
}

.top nav .lang li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  white-space: nowrap;
}

.top nav .lang li a:hover {
  background: var(--raise);
}

.top nav .lang li a[aria-current] {
  font-weight: 600;
}

/* hero */

.hero {
  padding: clamp(40px, 6vw, 88px) 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 7.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
}

.lede {
  max-width: 30em;
  margin: 24px auto 0;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  font-size: var(--small);
  line-height: 1.5;
  color: var(--faint);
}

/* items only break between each other, never inside */
.meta span {
  white-space: nowrap;
}

.meta span + span::before {
  content: "\00b7";
  margin: 0 0.6em;
}

/* hero laptop: pinned while you scroll through it. the script sets --lid, --on, --pull and --lock.
   sizes inside .laptop are in cqw, so 1cqw = 1% of the laptop's width */

/* the cable fades out past the wrap, so let it run to the edge of the window without a sideways scrollbar */
main {
  overflow-x: clip;
}

.scroll-scene {
  container-type: inline-size;
  height: 240vh;
  height: 240svh;
  margin-top: 24px;
}

/* pinned to the full window height while you scroll through .scroll-scene.
   --w sizes the laptop and the captions: as wide as the window allows (past the text column on big screens),
   but short enough to leave room for the captions */
.scene {
  --w: min(84vw, 1200px, calc((100vh - 260px) * 1.45));
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vh, 64px);
}

@supports (height: 100svh) {
  .scene {
    --w: min(84vw, 1200px, calc((100svh - 260px) * 1.45));
  }
}

.laptop {
  --lid: -32deg;
  --on: 0;
  --pull: 0;
  --lock: 0;
  position: relative;
  width: var(--w);
  container-type: inline-size;
  perspective: 240cqw;
  perspective-origin: 50% 0%;
}

/* rainbow light thrown by the screen. the halo is a copy of the lid's box that tilts with it,
   coloured by direction from the middle so each edge throws its own colour (warm on the left,
   cool on the right) and the bottom edge throws none, so nothing spills under the laptop.
   two layers: a tight bright one right at the edge and a wide faint bloom, like real light.
   it comes up with the screen and eases back a little once it locks */
.halo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 7%;
  width: 86%;
  aspect-ratio: 16 / 10.3;
  transform-origin: 50% 100%;
  transform: rotateX(var(--lid));
  opacity: calc((0.1 + 0.9 * var(--on)) * (1 - 0.25 * var(--lock)));
  pointer-events: none;
}

.halo::before,
.halo::after {
  content: "";
  position: absolute;
  border-radius: 3cqw;
  background: conic-gradient(#74e3a8, #5cc4ff 50deg, #8b7bff 100deg, #ff7ad9 140deg, transparent 168deg 192deg, #ff7a7a 220deg, #ffb85c 280deg, #ffe27a 325deg, #74e3a8);
}

.halo::before {
  inset: -0.6cqw -0.6cqw 14% -0.6cqw;
  filter: blur(2.2cqw);
  opacity: 0.75;
}

.halo::after {
  inset: -2cqw -3cqw 22% -3cqw;
  filter: blur(8cqw);
  opacity: 0.55;
}

/* the three steps under the laptop; the script fills each line as you scroll through its part */
.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: var(--w);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: beat;
}

/* each step is a rounded track that fills in the accent colour as you scroll */
.beats li {
  --fill: 0;
  position: relative;
  padding-top: 28px;
  color: var(--faint);
  counter-increment: beat;
  transition: color 0.3s, opacity 0.3s;
}

.beats li::before,
.beats li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--raise);
}

.beats li::after {
  background: var(--accent);
  transform: scaleX(var(--fill));
  transform-origin: left;
}

/* small step number above the title */
.beat-title::before {
  content: "0" counter(beat);
  display: block;
  margin-bottom: 6px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  transition: color 0.3s;
}

.beats li.is-on {
  color: var(--text);
}

.beats li.is-on .beat-title::before {
  color: var(--accent-ink);
}

.beat-title {
  display: block;
  font-family: var(--display);
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.beat-body {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--faint);
  transition: color 0.3s;
}

.is-on .beat-body {
  color: var(--muted);
}

.lid {
  position: relative;
  z-index: 1;
  width: 86%;
  margin: 0 auto;
  aspect-ratio: 16 / 10.3;
  padding: 1.7cqw 1.7cqw 2.6cqw;
  border-radius: 2.2cqw 2.2cqw 0.6cqw 0.6cqw;
  background: linear-gradient(#222429, #141519);
  box-shadow: inset 0 0 0 0.16cqw #44474f, inset 0 0 0 0.45cqw #0b0c0f;
  transform-origin: 50% 100%;
  transform: rotateX(var(--lid));
  will-change: transform;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5cqw;
  background: #050607;
}

.desktop,
.lockscreen {
  position: absolute;
  inset: 0;
}

.desktop {
  opacity: var(--on);
  background:
    radial-gradient(70% 90% at 50% 118%, #a8ccff 0%, #4f8ef5 30%, transparent 68%),
    radial-gradient(45% 70% at 18% 105%, #6ea9ff 0%, transparent 70%),
    linear-gradient(165deg, #0a1b45 0%, #17429e 55%, #2a66dc 100%);
}

/* a browser signed in to a bank, plus a security code toast: the stuff the lock screen hides */
.win {
  position: absolute;
  top: 1.8cqw;
  left: 2.4cqw;
  right: 2.4cqw;
  bottom: 4.9cqw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.7cqw;
  background: #f6f7f9;
  box-shadow: 0 0.2cqw 0.4cqw rgb(0 0 0 / 0.18), 0 1.4cqw 3cqw rgb(4 14 40 / 0.45);
  color: #1b1e25;
  font-size: 1cqw;
  line-height: 1.25;
  text-align: left;
}

.win-top {
  display: flex;
  align-items: flex-end;
  gap: 0.3cqw;
  height: 2.5cqw;
  padding: 0 0 0 0.8cqw;
  background: #dfe3ea;
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  width: 13cqw;
  height: 1.9cqw;
  padding: 0 0.8cqw;
  border-radius: 0.5cqw 0.5cqw 0 0;
  font-size: 0.9cqw;
  color: #5b606b;
  white-space: nowrap;
}

.tab.is-active {
  background: #f6f7f9;
  color: #1b1e25;
}

.fav {
  flex: none;
  width: 1cqw;
  height: 1cqw;
  border-radius: 0.25cqw;
  background: #0f7b5f;
}

.fav-mail {
  background: #2c6be0;
}

.win-ctl {
  display: flex;
  gap: 1.6cqw;
  align-self: center;
  margin-left: auto;
  padding-right: 1.2cqw;
}

.win-ctl i {
  width: 0.8cqw;
  height: 0.8cqw;
  border: 0.12cqw solid #6a6f7a;
  border-radius: 0.1cqw;
}

.win-ctl i:first-child {
  height: 0;
  border-width: 0.12cqw 0 0;
  align-self: center;
}

.win-bar {
  display: flex;
  align-items: center;
  height: 2.4cqw;
  padding: 0 1cqw;
  border-bottom: 0.1cqw solid #e3e6eb;
}

.url {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  width: 40%;
  height: 1.6cqw;
  padding: 0 0.8cqw;
  border-radius: 0.8cqw;
  background: #e9ecf1;
  color: #0f7b5f;
}

.url svg {
  width: 0.7cqw;
}

.url i {
  width: 11cqw;
  height: 0.45cqw;
  border-radius: 1cqw;
  background: #b9bec8;
}

.bank {
  flex: 1;
  display: flex;
  min-height: 0;
  background: #fff;
}

.bank-nav {
  display: flex;
  flex-direction: column;
  gap: 1.3cqw;
  width: 12cqw;
  padding: 2cqw 1.4cqw;
  background: #f3f5f7;
}

.bank-nav b {
  margin: -0.5cqw -0.6cqw;
  padding: 0.5cqw 0.6cqw;
  border-radius: 0.4cqw;
  background: #dcefe8;
  color: #0b5e48;
  font-weight: 500;
}

.bank-nav i {
  width: 70%;
  height: 0.5cqw;
  border-radius: 1cqw;
  background: #d3d7de;
}

.bank-nav i:nth-of-type(2) { width: 55%; }
.bank-nav i:nth-of-type(3) { width: 80%; }

.bank-main {
  flex: 1;
  padding: 1.8cqw 2.4cqw;
}

.bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-hi {
  font-family: var(--display);
  font-size: 1.9cqw;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bank-send {
  padding: 0.5cqw 1.1cqw;
  border-radius: 1cqw;
  background: #0f7b5f;
  color: #fff;
  font-size: 0.9cqw;
  font-weight: 500;
}

.accts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4cqw;
  margin: 1.6cqw 0 1.8cqw;
}

.acct {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  padding: 1.3cqw 1.5cqw;
  border: 0.1cqw solid #e3e6eb;
  border-radius: 0.8cqw;
}

.acct-main {
  border-color: transparent;
  background: linear-gradient(135deg, #0b5e48, #13916f);
  color: #fff;
}

.acct-name {
  font-size: 0.95cqw;
  opacity: 0.8;
}

.acct-name em {
  margin-left: 0.4cqw;
  font-style: normal;
  letter-spacing: 0.05em;
}

.acct-bal {
  font-family: var(--display);
  font-size: 2.6cqw;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tx-head {
  display: block;
  margin-bottom: 0.4cqw;
  font-size: 0.95cqw;
  font-weight: 500;
  color: #5b606b;
}

.tx {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tx li {
  display: flex;
  justify-content: space-between;
  padding: 0.6cqw 0;
  border-bottom: 0.1cqw solid #eef0f3;
  font-variant-numeric: tabular-nums;
}

.tx .in {
  color: #0f7b5f;
}

/* windows notification above the tray */
.toast {
  position: absolute;
  right: 1.2cqw;
  bottom: 4.3cqw;
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
  width: 21cqw;
  padding: 1.1cqw 1.3cqw;
  border-radius: 0.7cqw;
  background: rgb(36 39 47 / 0.96);
  box-shadow: 0 1cqw 2.4cqw rgb(0 0 0 / 0.4);
  color: #fff;
  font-size: 1cqw;
  line-height: 1.35;
  text-align: left;
}

.toast-app {
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  font-size: 0.85cqw;
  color: #b9bec8;
}

.toast-app i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 0.25cqw;
  background: #7ee08a;
}

.toast-body b {
  font-size: 1.15cqw;
  letter-spacing: 0.04em;
}

.tb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.3cqw;
  background: rgb(14 22 44 / 0.6);
}

.tb-icons {
  display: flex;
  gap: 0.9cqw;
}

.tb-icons i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 0.4cqw;
  background: #fff;
}

.tb-icons i:nth-child(2) { background: #4cc2ff; }
.tb-icons i:nth-child(3) { background: #ffd25a; }
.tb-icons i:nth-child(4) { background: #7ee08a; }
.tb-icons i:nth-child(5) { background: #ff8a65; }

.tb-tray {
  position: absolute;
  right: 1.6cqw;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  color: #fff;
  font-size: 1.15cqw;
  font-weight: 500;
}

.battery {
  width: 2.3cqw;
}

.bolt {
  transition: opacity 0.25s;
}

.unplugged .bolt {
  opacity: 0;
}

.lockscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6.5cqw;
  color: #fff;
  opacity: var(--lock);
  background: linear-gradient(165deg, #081536 0%, #132f73 55%, #1d4aa8 100%);
}

.lock-time {
  font-family: var(--display);
  font-size: 9cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lock-date {
  margin-top: 0.8cqw;
  font-size: 1.6cqw;
  font-weight: 500;
}

.lock-icon {
  width: 4.4cqw;
  margin-top: 5cqw;
  transform: scale(calc(0.8 + 0.2 * var(--lock)));
}

.glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.06) 0 32%, transparent 32.2%);
  pointer-events: none;
}

.camera {
  position: absolute;
  top: 0.7cqw;
  left: 50%;
  width: 0.5cqw;
  height: 0.5cqw;
  border-radius: 50%;
  background: #2b2e35;
  transform: translateX(-50%);
}

.base {
  position: relative;
  z-index: 2;
}

.deck {
  display: block;
  height: 1.2cqw;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  background: linear-gradient(#2a2c31 0 45%, #45484f 45% 100%);
}

.edge {
  position: relative;
  display: block;
  height: 1.9cqw;
  border-radius: 0 0 2.6cqw 2.6cqw / 0 0 1.6cqw 1.6cqw;
  background: linear-gradient(#eceef1, #babec5 45%, #8b9098);
  box-shadow: 0 0.5cqw 1cqw rgb(0 0 0 / 0.16);
}

/* the empty charging port, seen once the plug is out */
.edge::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.55cqw;
  width: 0.3cqw;
  height: 0.7cqw;
  border-radius: 0.1cqw;
  background: #2a2c31;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13cqw;
  height: 0.7cqw;
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(#a7abb2, #c9ccd2);
  transform: translateX(-50%);
}

.led {
  position: absolute;
  left: 6cqw;
  top: 0.75cqw;
  width: 1cqw;
  height: 0.32cqw;
  border-radius: 1cqw;
  background: #ffb347;
  box-shadow: 0 0 0.7cqw #ffb347;
  transition: background 0.25s, box-shadow 0.25s;
}

.unplugged .led {
  background: #6c7079;
  box-shadow: none;
}

/* stays put beside the laptop and fades the cord out before the edge of the scene;
   the charger slides along inside it */
.cable-track {
  --reach: 6cqw;
  position: absolute;
  z-index: 1;
  left: 100%;
  bottom: 0.4cqw;
  width: 13cqw;
  height: 1.3cqw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent);
  mask-image: linear-gradient(to right, #000 45%, transparent);
}

.charger {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: 100%;
  transform: translateX(calc(var(--pull) * var(--reach)));
  will-change: transform;
}

.plug {
  position: relative;
  width: 3.8cqw;
  height: 1.3cqw;
  border-radius: 0.4cqw;
  background: linear-gradient(#45484f, #1d1f23);
  box-shadow: inset 0 0.1cqw 0 rgb(255 255 255 / 0.12);
}

/* metal tip, hidden behind the laptop until the plug comes out */
.plug::before {
  content: "";
  position: absolute;
  left: -1.1cqw;
  top: 0.4cqw;
  width: 1.2cqw;
  height: 0.5cqw;
  border-radius: 0.15cqw;
  background: #9aa0a8;
}

.cord {
  flex: none;
  width: 30cqw;
  height: 0.55cqw;
  border-radius: 0.3cqw;
  background: #26282d;
}

.floor-shadow {
  position: absolute;
  z-index: 0;
  left: 3%;
  right: 3%;
  bottom: -2.4cqw;
  height: 3cqw;
  background: radial-gradient(closest-side, rgb(23 25 30 / 0.26), transparent);
}


/* sections */

.section {
  padding: var(--space) 0 0;
}

/* the pinned laptop already leaves space under its captions */
.hero + .section {
  padding-top: clamp(48px, 6vw, 88px);
}

/* both two-column sections share one grid, so their right-hand columns line up */
.split,
.tray {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--gutter);
}

.heading {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tray .heading {
  margin-bottom: 0;
}

/* tray menu, drawn to match the real one */

/* the title sits over the list, and the mockup spans exactly the list,
   so its top and bottom meet the list's first and last lines */
.tray {
  row-gap: 32px;
}

.tray > div:not(.desk) {
  display: contents;
}

.tray .heading {
  grid-column: 2;
  grid-row: 1;
}

.tray .desk {
  grid-column: 1;
  grid-row: 2;
}

.tray .facts {
  grid-column: 2;
  grid-row: 2;
}

.desk {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 48px 40px 0;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 85% 100%, #2a3550 0%, transparent 60%),
    linear-gradient(160deg, #161b27, #10131b);
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
  color: #f3f3f3;
  user-select: none;
}

.menu {
  width: max-content;
  max-width: 100%;
  min-width: 270px;
  margin-right: 24px;
  padding: 4px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  color: #1b1b1b;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}

.menu hr {
  height: 1px;
  margin: 4px 8px;
  border: 0;
  background: #e5e5e5;
}

.item {
  position: relative;
  padding: 9px 12px 9px 34px;
  border-radius: 4px;
  white-space: nowrap;
}

.item.dim {
  color: #808080;
}

.item.hover {
  background: #f0f0f0;
}

.item.on::before {
  content: "\2713";
  position: absolute;
  left: 12px;
}

.item.sub::after {
  content: "\203A";
  position: absolute;
  right: 12px;
  font-size: 15px;
  line-height: 13px;
}

.taskbar {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: stretch;
  justify-content: flex-end;
  margin: 18px -40px 0;
  padding: 8px 24px;
  background: rgb(28 30 36 / 0.92);
  border-top: 1px solid #2e3038;
}

.taskbar img {
  padding: 6px;
  box-sizing: content-box;
  border-radius: 4px;
  background: #34363d;
}

.chev {
  color: #bdbdbd;
}

.clock {
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.facts > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.facts > div:first-child {
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.facts dd {
  margin-top: 6px;
  color: var(--muted);
}

/* questions */

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

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.3;
}

.faq summary:hover {
  color: var(--accent-ink);
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq p {
  max-width: 40em;
  padding-bottom: 22px;
  color: var(--muted);
}

/* support */

.support p {
  max-width: 34em;
  margin-bottom: 28px;
  font-size: var(--title);
  line-height: 1.5;
  color: var(--muted);
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* the site's blue instead of the usual black: the suggested $5 is filled, the rest are a light tint */
.amounts .button {
  min-width: 76px;
  text-align: center;
  background: var(--accent);
}

.amounts .button:hover {
  background: var(--accent-ink);
}

.amounts .button.ghost {
  background: #eaf1fd;
  color: var(--accent-ink);
}

.amounts .button.ghost:hover {
  background: #dbe7fb;
}

/* footer */

.footer {
  margin-top: var(--space);
  font-size: var(--small);
  line-height: 1.5;
  color: var(--muted);
  container-type: inline-size;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* sized to the footer's width: the word is ~5.14em wide, so 19cqi fits with a little room */
.wordmark {
  font-size: 19cqi;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--raise);
  white-space: nowrap;
}

/* smaller screens */

@media (max-width: 1000px) {
  .split,
  .tray {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* one column: title, mockup, then the list */
  .tray .heading,
  .tray .desk,
  .tray .facts {
    grid-column: auto;
    grid-row: auto;
  }

  .tray .heading {
    order: -1;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .top nav a:not(.button) {
    display: none;
  }

  .hero h1 .line {
    display: inline;
  }

  .lede {
    font-size: 1.1rem;
  }

  .scroll-scene {
    margin-top: 32px;
  }

  /* a shorter pinned area on phones, so there's no big gap above the small laptop */
  .scene {
    --w: 84%;
    top: 18vh;
    top: 18svh;
    height: 64vh;
    height: 64svh;
  }

  .scroll-scene {
    height: 200vh;
    height: 200svh;
  }

  .cable-track {
    --reach: 4.5cqw;
  }

  .beats {
    grid-template-columns: 1fr;
  }

  .beats li {
    grid-area: 1 / 1;
    opacity: 0;
  }

  .beats li.is-on {
    opacity: 1;
  }

  .desk {
    padding: 28px 16px 0;
  }

  .menu {
    min-width: 0;
    margin-right: 0;
  }

  .taskbar {
    margin-inline: -16px;
  }

  .footer-row {
    flex-direction: column;
  }
}

/* no motion wanted: no pinning, the laptop just shows its end state (last, so it beats the size rules above) */
@media (prefers-reduced-motion: reduce) {
  .scroll-scene {
    height: auto;
  }

  .scene {
    position: relative;
    top: auto;
    height: auto;
    padding: 48px 0 0;
  }
}
