:root {
  --page: #f5f5f7;  /* the footer's gray, and whatever shows past the page's end */
  --top: #000;      /* what shows past the page's top: the colour of the first section */
  --fg: #ededed;
  --nav-fg: #ffffff;
  --nav-h: 64px;
  --gutter: 24px;
  --chip-size: clamp(128px, 24vmin, 210px); /* the hero chip and the cards' outlines */
}

* { box-sizing: border-box; }

html, body { margin: 0; }

/* Past either end of the page (a bounce, or a window taller than the page) the
   root background shows: the footer's gray at the bottom, and at the top a
   fixed backing in the first section's colour, behind every section. */
html { background: var(--page); }
html::before {
  content: "";
  position: fixed;
  inset: 0 0 60% 0;
  z-index: -1;
  background: var(--top);
  pointer-events: none;
}
:root:has(.tier-hero.orange) { --top: #c0612b; }
:root:has(.tier-hero.navy) { --top: #050d20; }

body {
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* Items sit 8px above the bar's middle, further into the shade: centered,
     the silver chip's lower half met the fade over white pages. */
  padding: 0 var(--gutter) 8px;
}

/* The bar's background: blur under, shade over.
   Blur goes 0 at the bottom to 10px at the top. One backdrop-filter has one
   radius, so it is a stack of five layers doubling in radius, each masked to
   its own band and cross-fading into the next. */
.nav-bg,
.nav-bg > i,
.nav-bg::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-bg > i:nth-child(1) {
  --blur: 0.625px;
  --mask: linear-gradient(to top, transparent 0%, #000 20%, #000 40%, transparent 60%);
}
.nav-bg > i:nth-child(2) {
  --blur: 1.25px;
  --mask: linear-gradient(to top, transparent 20%, #000 40%, #000 60%, transparent 80%);
}
.nav-bg > i:nth-child(3) {
  --blur: 2.5px;
  --mask: linear-gradient(to top, transparent 40%, #000 60%, #000 80%, transparent 100%);
}
.nav-bg > i:nth-child(4) {
  --blur: 5px;
  --mask: linear-gradient(to top, transparent 60%, #000 80%);
}
.nav-bg > i:nth-child(5) {
  --blur: 10px;
  --mask: linear-gradient(to top, transparent 80%, #000 100%);
}
.nav-bg > i {
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
}

/* .at-top (nav.js: the page has not scrolled) fades the blur and shade out.
   Each layer fades on its own: an opacity on .nav-bg would make it the
   layers' backdrop root, and the blur would lose the page behind it. */
.nav-bg > i,
.nav-bg::after { transition: opacity 0.3s; }
.nav.at-top .nav-bg > i,
.nav.at-top .nav-bg::after { opacity: 0; }

.nav-bg::after {
  content: "";
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.900) 0%,
    rgba(0, 0, 0, 0.875) 10%,
    rgba(0, 0, 0, 0.806) 20%,
    rgba(0, 0, 0, 0.706) 30%,
    rgba(0, 0, 0, 0.583) 40%,
    rgba(0, 0, 0, 0.450) 50%,
    rgba(0, 0, 0, 0.317) 60%,
    rgba(0, 0, 0, 0.194) 70%,
    rgba(0, 0, 0, 0.094) 80%,
    rgba(0, 0, 0, 0.025) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-fg);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img { display: block; }

.links {
  position: relative;
  display: flex;
  gap: 28px;
  margin-left: auto;
}

/* Dimmed by colour, not opacity: an opacity fade lifts the text onto a layer
   of its own for the fade, and some browsers draw it bolder there, so it
   flashed brighter as the pointer left. */
.links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.links a:hover { color: #fff; }

/* black ends under the headline; the page goes on in white */
.hero {
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* top-anchored, so what goes below does not move the chip */
  justify-content: flex-start;
  gap: clamp(20px, 4vh, 40px);
  padding: calc(var(--nav-h) + 3.5vh) var(--gutter) clamp(38px, 6.5vh, 62px);
  text-align: center;
}

.chip-wrap {
  position: relative;
  width: var(--chip-size);
}

.chip,
.chip-lit {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* the marking lit during the intro, laid over the chip */
.chip-lit {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero p {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: #9b9ba1;
}

/* an Apple-style text link under the hero's words, in the Why card's violet: it jumps to that card */
.hero .why {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: #b794ff;
  text-decoration: none;
}

.hero .why:hover { text-decoration: underline; }

/* The chevron after a text link, drawn rather than typed: the same weight
   and height beside any font, sitting on the baseline like Apple's. */
.hero .why::after,
.card .more::after,
.tile .more::after,
.price-terms .more::after {
  content: "";
  display: inline-block;
  width: 0.34em;
  height: 0.58em;
  margin-left: 0.3em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'><path fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.25 1.25 6 6 1.25 10.75'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'><path fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.25 1.25 6 6 1.25 10.75'/></svg>") center / contain no-repeat;
}

/* The intro's link: as much room on its left as the chevron takes on its
   right, so the words, not the words and the chevron, sit on the centre line. */
.hero .why { padding-left: 0.64em; }

/* apple.com-style tiles: square, edge to edge, one small gap everywhere */
.below {
  --tile-gap: 12px;
  background: #fff;
  color: #111113;
  padding: var(--tile-gap);
}

.cards {
  display: grid;
  /* minmax(0, …): a long code line scrolls inside its card instead of
     widening the column past the screen */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tile-gap);
}

/* as tall as its content: words, buttons, outline, then the same padding as
   on top */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 4.5vh, 40px) var(--gutter);
  text-align: center;
  color: #fff;
}

.card h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card p {
  margin: 8px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.4;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.75);
}

/* The chip as line art: one outline round the package and its 64 pins (the
   package edge traced clockwise, up and round every pin). A mask, so anything
   can fill it. */
.outline {
  --chip-outline: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='45.966 45.966 308.068 308.068'><path fill='none' stroke='white' stroke-width='2.4' stroke-linejoin='round' d='M78 91A13 13 0 0 1 91 78L91.5 78L91.5 59.6A1.6 1.6 0 0 1 93.1 58L96.9 58A1.6 1.6 0 0 1 98.5 59.6L98.5 78L105.5 78L105.5 59.6A1.6 1.6 0 0 1 107.1 58L110.9 58A1.6 1.6 0 0 1 112.5 59.6L112.5 78L119.5 78L119.5 59.6A1.6 1.6 0 0 1 121.1 58L124.9 58A1.6 1.6 0 0 1 126.5 59.6L126.5 78L133.5 78L133.5 59.6A1.6 1.6 0 0 1 135.1 58L138.9 58A1.6 1.6 0 0 1 140.5 59.6L140.5 78L147.5 78L147.5 59.6A1.6 1.6 0 0 1 149.1 58L152.9 58A1.6 1.6 0 0 1 154.5 59.6L154.5 78L161.5 78L161.5 59.6A1.6 1.6 0 0 1 163.1 58L166.9 58A1.6 1.6 0 0 1 168.5 59.6L168.5 78L175.5 78L175.5 59.6A1.6 1.6 0 0 1 177.1 58L180.9 58A1.6 1.6 0 0 1 182.5 59.6L182.5 78L189.5 78L189.5 59.6A1.6 1.6 0 0 1 191.1 58L194.9 58A1.6 1.6 0 0 1 196.5 59.6L196.5 78L203.5 78L203.5 59.6A1.6 1.6 0 0 1 205.1 58L208.9 58A1.6 1.6 0 0 1 210.5 59.6L210.5 78L217.5 78L217.5 59.6A1.6 1.6 0 0 1 219.1 58L222.9 58A1.6 1.6 0 0 1 224.5 59.6L224.5 78L231.5 78L231.5 59.6A1.6 1.6 0 0 1 233.1 58L236.9 58A1.6 1.6 0 0 1 238.5 59.6L238.5 78L245.5 78L245.5 59.6A1.6 1.6 0 0 1 247.1 58L250.9 58A1.6 1.6 0 0 1 252.5 59.6L252.5 78L259.5 78L259.5 59.6A1.6 1.6 0 0 1 261.1 58L264.9 58A1.6 1.6 0 0 1 266.5 59.6L266.5 78L273.5 78L273.5 59.6A1.6 1.6 0 0 1 275.1 58L278.9 58A1.6 1.6 0 0 1 280.5 59.6L280.5 78L287.5 78L287.5 59.6A1.6 1.6 0 0 1 289.1 58L292.9 58A1.6 1.6 0 0 1 294.5 59.6L294.5 78L301.5 78L301.5 59.6A1.6 1.6 0 0 1 303.1 58L306.9 58A1.6 1.6 0 0 1 308.5 59.6L308.5 78L309 78A13 13 0 0 1 322 91L322 91.5L340.4 91.5A1.6 1.6 0 0 1 342 93.1L342 96.9A1.6 1.6 0 0 1 340.4 98.5L322 98.5L322 105.5L340.4 105.5A1.6 1.6 0 0 1 342 107.1L342 110.9A1.6 1.6 0 0 1 340.4 112.5L322 112.5L322 119.5L340.4 119.5A1.6 1.6 0 0 1 342 121.1L342 124.9A1.6 1.6 0 0 1 340.4 126.5L322 126.5L322 133.5L340.4 133.5A1.6 1.6 0 0 1 342 135.1L342 138.9A1.6 1.6 0 0 1 340.4 140.5L322 140.5L322 147.5L340.4 147.5A1.6 1.6 0 0 1 342 149.1L342 152.9A1.6 1.6 0 0 1 340.4 154.5L322 154.5L322 161.5L340.4 161.5A1.6 1.6 0 0 1 342 163.1L342 166.9A1.6 1.6 0 0 1 340.4 168.5L322 168.5L322 175.5L340.4 175.5A1.6 1.6 0 0 1 342 177.1L342 180.9A1.6 1.6 0 0 1 340.4 182.5L322 182.5L322 189.5L340.4 189.5A1.6 1.6 0 0 1 342 191.1L342 194.9A1.6 1.6 0 0 1 340.4 196.5L322 196.5L322 203.5L340.4 203.5A1.6 1.6 0 0 1 342 205.1L342 208.9A1.6 1.6 0 0 1 340.4 210.5L322 210.5L322 217.5L340.4 217.5A1.6 1.6 0 0 1 342 219.1L342 222.9A1.6 1.6 0 0 1 340.4 224.5L322 224.5L322 231.5L340.4 231.5A1.6 1.6 0 0 1 342 233.1L342 236.9A1.6 1.6 0 0 1 340.4 238.5L322 238.5L322 245.5L340.4 245.5A1.6 1.6 0 0 1 342 247.1L342 250.9A1.6 1.6 0 0 1 340.4 252.5L322 252.5L322 259.5L340.4 259.5A1.6 1.6 0 0 1 342 261.1L342 264.9A1.6 1.6 0 0 1 340.4 266.5L322 266.5L322 273.5L340.4 273.5A1.6 1.6 0 0 1 342 275.1L342 278.9A1.6 1.6 0 0 1 340.4 280.5L322 280.5L322 287.5L340.4 287.5A1.6 1.6 0 0 1 342 289.1L342 292.9A1.6 1.6 0 0 1 340.4 294.5L322 294.5L322 301.5L340.4 301.5A1.6 1.6 0 0 1 342 303.1L342 306.9A1.6 1.6 0 0 1 340.4 308.5L322 308.5L322 309A13 13 0 0 1 309 322L308.5 322L308.5 340.4A1.6 1.6 0 0 1 306.9 342L303.1 342A1.6 1.6 0 0 1 301.5 340.4L301.5 322L294.5 322L294.5 340.4A1.6 1.6 0 0 1 292.9 342L289.1 342A1.6 1.6 0 0 1 287.5 340.4L287.5 322L280.5 322L280.5 340.4A1.6 1.6 0 0 1 278.9 342L275.1 342A1.6 1.6 0 0 1 273.5 340.4L273.5 322L266.5 322L266.5 340.4A1.6 1.6 0 0 1 264.9 342L261.1 342A1.6 1.6 0 0 1 259.5 340.4L259.5 322L252.5 322L252.5 340.4A1.6 1.6 0 0 1 250.9 342L247.1 342A1.6 1.6 0 0 1 245.5 340.4L245.5 322L238.5 322L238.5 340.4A1.6 1.6 0 0 1 236.9 342L233.1 342A1.6 1.6 0 0 1 231.5 340.4L231.5 322L224.5 322L224.5 340.4A1.6 1.6 0 0 1 222.9 342L219.1 342A1.6 1.6 0 0 1 217.5 340.4L217.5 322L210.5 322L210.5 340.4A1.6 1.6 0 0 1 208.9 342L205.1 342A1.6 1.6 0 0 1 203.5 340.4L203.5 322L196.5 322L196.5 340.4A1.6 1.6 0 0 1 194.9 342L191.1 342A1.6 1.6 0 0 1 189.5 340.4L189.5 322L182.5 322L182.5 340.4A1.6 1.6 0 0 1 180.9 342L177.1 342A1.6 1.6 0 0 1 175.5 340.4L175.5 322L168.5 322L168.5 340.4A1.6 1.6 0 0 1 166.9 342L163.1 342A1.6 1.6 0 0 1 161.5 340.4L161.5 322L154.5 322L154.5 340.4A1.6 1.6 0 0 1 152.9 342L149.1 342A1.6 1.6 0 0 1 147.5 340.4L147.5 322L140.5 322L140.5 340.4A1.6 1.6 0 0 1 138.9 342L135.1 342A1.6 1.6 0 0 1 133.5 340.4L133.5 322L126.5 322L126.5 340.4A1.6 1.6 0 0 1 124.9 342L121.1 342A1.6 1.6 0 0 1 119.5 340.4L119.5 322L112.5 322L112.5 340.4A1.6 1.6 0 0 1 110.9 342L107.1 342A1.6 1.6 0 0 1 105.5 340.4L105.5 322L98.5 322L98.5 340.4A1.6 1.6 0 0 1 96.9 342L93.1 342A1.6 1.6 0 0 1 91.5 340.4L91.5 322L91 322A13 13 0 0 1 78 309L78 308.5L59.6 308.5A1.6 1.6 0 0 1 58 306.9L58 303.1A1.6 1.6 0 0 1 59.6 301.5L78 301.5L78 294.5L59.6 294.5A1.6 1.6 0 0 1 58 292.9L58 289.1A1.6 1.6 0 0 1 59.6 287.5L78 287.5L78 280.5L59.6 280.5A1.6 1.6 0 0 1 58 278.9L58 275.1A1.6 1.6 0 0 1 59.6 273.5L78 273.5L78 266.5L59.6 266.5A1.6 1.6 0 0 1 58 264.9L58 261.1A1.6 1.6 0 0 1 59.6 259.5L78 259.5L78 252.5L59.6 252.5A1.6 1.6 0 0 1 58 250.9L58 247.1A1.6 1.6 0 0 1 59.6 245.5L78 245.5L78 238.5L59.6 238.5A1.6 1.6 0 0 1 58 236.9L58 233.1A1.6 1.6 0 0 1 59.6 231.5L78 231.5L78 224.5L59.6 224.5A1.6 1.6 0 0 1 58 222.9L58 219.1A1.6 1.6 0 0 1 59.6 217.5L78 217.5L78 210.5L59.6 210.5A1.6 1.6 0 0 1 58 208.9L58 205.1A1.6 1.6 0 0 1 59.6 203.5L78 203.5L78 196.5L59.6 196.5A1.6 1.6 0 0 1 58 194.9L58 191.1A1.6 1.6 0 0 1 59.6 189.5L78 189.5L78 182.5L59.6 182.5A1.6 1.6 0 0 1 58 180.9L58 177.1A1.6 1.6 0 0 1 59.6 175.5L78 175.5L78 168.5L59.6 168.5A1.6 1.6 0 0 1 58 166.9L58 163.1A1.6 1.6 0 0 1 59.6 161.5L78 161.5L78 154.5L59.6 154.5A1.6 1.6 0 0 1 58 152.9L58 149.1A1.6 1.6 0 0 1 59.6 147.5L78 147.5L78 140.5L59.6 140.5A1.6 1.6 0 0 1 58 138.9L58 135.1A1.6 1.6 0 0 1 59.6 133.5L78 133.5L78 126.5L59.6 126.5A1.6 1.6 0 0 1 58 124.9L58 121.1A1.6 1.6 0 0 1 59.6 119.5L78 119.5L78 112.5L59.6 112.5A1.6 1.6 0 0 1 58 110.9L58 107.1A1.6 1.6 0 0 1 59.6 105.5L78 105.5L78 98.5L59.6 98.5A1.6 1.6 0 0 1 58 96.9L58 93.1A1.6 1.6 0 0 1 59.6 91.5L78 91.5L78 91Z'/></svg>");
  position: relative;
  width: var(--chip-size);
  aspect-ratio: 1;
  color: rgba(255, 255, 255, 0.9);
}

.outline .line,
.outline .glow {
  position: absolute;
  inset: 0;
}

.outline .line {
  overflow: hidden;
  background: currentColor;
  -webkit-mask: var(--chip-outline) center / contain no-repeat;
  mask: var(--chip-outline) center / contain no-repeat;
}

/* the M1 ring turning under the outline, so its colours run round the chip */
.outline.flowing .line { background: none; }
.outline.flowing .line::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: conic-gradient(from -45deg,
    #f3c1ab, #eecfb3, #b2dbe2, #33cbf3, #21b9ec, #5ab9e6, #94a3d3, #8b67e2,
    #8952de, #a636d0, #e14aaa, #f04d94, #f04f90, #f47594, #f19aa0, #f0b5a2, #f3c1ab);
  animation: flow 6s linear infinite;
}
.outline.flowing .glow { filter: blur(8px); opacity: 0.8; }

@keyframes flow { to { transform: rotate(1turn); } }

@media (prefers-reduced-motion: reduce) {
  .outline.flowing .line::before { animation: none; }
}

/* Apple-style pair: a filled pill in the card's ink, and a ghost one */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 clamp(24px, 4vh, 36px);
}

.pill {
  padding: 9px 20px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--card-bg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s;
}

.pill:hover { background: rgba(255, 255, 255, 0.85); }

.pill.ghost {
  background: transparent;
  color: #fff;
}

.pill.ghost:hover { background: rgba(255, 255, 255, 0.12); }

.card.blue { --card-bg: #050d20; background: var(--card-bg); }
.card.orange { --card-bg: #c0612b; background: var(--card-bg); }
.card.green { --card-bg: #0c2b1e; background: var(--card-bg); }
.card.violet { --card-bg: #1b1133; background: var(--card-bg); }
.card.violet h3 { color: #a78bfa; }
.card.violet .pills { margin: clamp(24px, 4vh, 36px) 0 0; } /* the card's last thing: no outline below to make room for */

.card { scroll-margin-top: var(--nav-h); }

/* a card across the whole row */
.card.wide { grid-column: 1 / -1; }
.card.wide p { max-width: 40em; }
.card code { font-family: "SF Mono", ui-monospace, Menlo, Monaco, monospace; font-size: 0.9em; white-space: nowrap; }

/* an Apple-style text link: words and a chevron */
.card .more {
  margin-top: 14px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: #8fe0b0;
  text-decoration: none;
}

.card .more:hover { text-decoration: underline; }

.term {
  box-sizing: border-box;
  max-width: 100%;
  margin: clamp(24px, 4vh, 36px) 0 0;
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #e8f3ec;
  font: 14px/1.6 "SF Mono", ui-monospace, Menlo, Monaco, monospace;
  text-align: left;
}

.term .prompt { color: #6fd39c; user-select: none; }

/* the reasons in a row under a card's heading: a short name, one line each */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 40px);
  width: 100%;
  max-width: 1120px;
  margin-top: clamp(24px, 4vh, 36px);
}

.reasons h3 {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reasons p {
  margin-top: 6px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1090px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .reasons { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ---- Learn more pages ---- */

/* the tier's own colour, full bleed, its outline over the words */
.tier-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(44px, 7vh, 64px);
  text-align: center;
  color: #fff;
}

.tier-hero .outline { margin-bottom: clamp(20px, 3vh, 28px); }

.tier-hero.orange { --card-bg: #c0612b; background: var(--card-bg); }
.tier-hero.black { --card-bg: #000; background: var(--card-bg); }
.tier-hero.navy { --card-bg: #050d20; background: var(--card-bg); }
.tier-hero .outlines { display: flex; gap: clamp(20px, 4vw, 40px); }

.tier-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tier-hero .lede {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tier-hero .sub {
  max-width: 36em;
  margin: 10px auto 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.8);
}

.tier-hero .pills { margin: 22px 0 0; }

.section { padding: clamp(64px, 12vh, 120px) var(--gutter); }
.section.light { background: #fff; color: #1d1d1f; }
.section.gray { background: #f5f5f7; color: #1d1d1f; }
.section.dark { background: #000; color: #f5f5f7; }
.section.navy { --card-bg: #050d20; background: var(--card-bg); color: #fff; }
.section.orange { --card-bg: #c0612b; background: var(--card-bg); color: #fff; }

.section-in {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.section .intro-text {
  max-width: 40em;
  margin: 16px auto 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  color: #6e6e73;
}

.section.dark .intro-text { color: #a1a1a6; }
.section.navy .intro-text { color: rgba(255, 255, 255, 0.75); }
.section.orange .intro-text { color: rgba(255, 255, 255, 0.85); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 6vh, 64px);
}

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

.tile {
  padding: 28px;
  background: #f5f5f7;
}

.section.gray .tile { background: #fff; }
.section.dark .tile { background: #161617; }

.tile .kicker {
  font-size: 14px;
  font-weight: 600;
  color: #c0612b;
}

.section.dark .tile .kicker { color: #e8894f; }

.tile h3 {
  margin: 6px 0 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6e6e73;
}

.section.dark .tile p { color: #a1a1a6; }

.tile .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  color: #c0612b;
  text-decoration: none;
}

.tile .more:hover { text-decoration: underline; }

/* the feature flags Linux prints, as proof */
.hwcaps {
  max-width: 56em;
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #86868b;
}

.hwcaps span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #6e6e73;
}

.hwcaps code { font-family: "SF Mono", ui-monospace, Menlo, Monaco, monospace; }

.upsell .section-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upsell .outline { margin-bottom: 32px; }
.upsell .pills { margin: 28px 0 0; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tiles,
  .tiles.two { grid-template-columns: minmax(0, 1fr); }
}

/* ---- JIT page (pages/just-in-time.html): blue where the Interpreter page is orange,
   headline numbers, and Apple-style footnotes above the footer ---- */
.jit .tile .kicker, .jit .tile .more { color: #0071e3; }
.jit .section.dark .tile .kicker { color: #2997ff; }

.tile .stat {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section.dark .tile .stat { color: #f5f5f7; }

sup.fn { font-size: 0.7em; line-height: 0; }
sup.fn a { color: inherit; text-decoration: none; }

.footnotes {
  margin: 0 0 16px;
  padding: 0 0 16px 1.2em;
  border-bottom: 1px solid #d2d2d7;
}

.footnotes li { margin: 0 0 8px; }
.footnotes li:target { color: #1d1d1f; }

/* ---- License pages (pages/agpl.html, pages/commercial-license.html): the AGPL's text, verbatim, set for reading ---- */
.tier-hero.plain { padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 48px)); }
.section.license { padding-top: clamp(40px, 7vh, 72px); }

.legal {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #424245;
}

.legal p { margin: 0 0 14px; }
.legal p.item { padding-left: 1.5em; }
.legal ol.alpha { margin: 0 0 14px; padding-left: 1.75em; list-style: lower-alpha; }
.legal ol.alpha li { margin: 0 0 8px; padding-left: 0.25em; }
.legal ol.roman { margin: 8px 0 0; padding-left: 1.75em; list-style: lower-roman; }
.legal ol.roman li { margin: 0 0 6px; }
.legal b { font-weight: 600; color: #1d1d1f; }
.legal a { color: #1d1d1f; text-underline-offset: 3px; overflow-wrap: anywhere; }

.legal .note {
  margin: 0 0 clamp(40px, 6vh, 56px);
  padding: 20px 24px;
  background: #f5f5f7;
  font-size: 15px;
  color: #1d1d1f;
}

.section .legal h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  letter-spacing: -0.015em;
  text-align: left;
  color: #1d1d1f;
}

.legal h3 {
  margin: 32px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.legal pre {
  margin: 0 0 14px;
  padding: 16px 20px;
  background: #f5f5f7;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto; /* the notice keeps its lines, to be copied as is */
  color: #1d1d1f;
}

/* ---- Pricing (home) ---- */
.nowrap { white-space: nowrap; }
.pricing { scroll-margin-top: var(--nav-h); }
.pricing .price-table:first-child { margin-top: 0; }
.section.pricing { padding-top: clamp(40px, 7vh, 72px); }

.price-table {
  width: 100%;
  max-width: 760px;
  margin: clamp(40px, 6vh, 56px) auto 0;
  border-collapse: collapse;
  font-size: 17px;
}

.price-table th {
  padding: 0 4px 12px;
  border-bottom: 1px solid #d2d2d7;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: #6e6e73;
}

.price-table td {
  padding: 18px 4px;
  border-bottom: 1px solid #e8e8ed;
  vertical-align: top;
}

/* the price columns: right-aligned, one amount per cell */
.price-table th:not(:first-child),
.price-table td:not(:first-child) { text-align: right; }
.price-table td:not(:first-child) { color: #6e6e73; white-space: nowrap; }
.price-table td.wraps { white-space: normal; } /* a long price line may break before the amount */
.price-table b { font-size: 21px; font-weight: 600; color: #1d1d1f; }
.price-table small { display: block; margin-top: 2px; font-size: 13px; white-space: normal; }

/* The use switch above the price table, Apple-style: a grey track, and a
   white thumb on the chosen use (pricing.js places it). Pressing an item
   shows a bright pill on it; letting go puts the thumb there at once. */
.use-switch {
  position: relative;
  display: flex;
  contain: layout; /* the thumb's moves re-lay out only the switch */
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: #e8e8ed;
}

.use-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #6e6e73;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* no grey box from iOS Safari on a tap */
}

/* the chosen label is a little bigger (15.5px from 15px), by a zoom over
   0.2s, and darker, by a dark copy of it fading in on top. Both run on the
   GPU, so they start together and stay smooth on a phone saving power (a
   colour transition runs on the main thread). The weight isn't animated:
   Safari draws the system font's weights as fixed faces. */
.use-switch button span {
  position: relative;
  display: inline-block;
  transition: transform 0.2s linear;
}
.use-switch button span::after {
  content: attr(data-label);
  content: attr(data-label) / ""; /* screen readers read the label once */
  position: absolute;
  top: 0;
  left: 0;
  color: #1d1d1f;
  opacity: 0;
  transition: opacity 0.2s linear;
}
/* once the copy is opaque, the grey label under it goes, or its edges would
   thicken the copy's; the margin covers the GPU starting a frame or two late */
.use-switch button[aria-checked="true"] span {
  color: transparent;
  transform: scale(1.0333);
  transition: transform 0.2s linear, color 0s 0.25s;
}
.use-switch button[aria-checked="true"] span::after { opacity: 1; }

/* each item holds room for its chosen (bigger, bolder) look, so choosing one
   doesn't push the others sideways */
.use-switch button::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-size: 15.5px;
  font-weight: 600;
  pointer-events: none;
}

.use-switch button[aria-checked="true"] { font-weight: 600; }

/* the pressed pill (pricing.js sets .pressed) */
.use-switch button.pressed:not([aria-checked="true"]) { background: rgba(255, 255, 255, 0.6); }
.use-switch button:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }

.use-switch .thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}

.use-note {
  margin: 12px auto 0;
  text-align: center;
  font-size: 14px;
  color: #6e6e73;
}

.use-note + .price-table { margin-top: clamp(20px, 3vh, 28px); }

/* on a phone the notes wrap (pricing.js holds the longest one's height);
   the custom-terms amounts take their own line, so every use has the same rows */
@media (max-width: 600px) {
  .use-note { line-height: 1.4; }
  .price-table small .nowrap { display: block; }
}

@media (max-width: 380px) {
  .use-switch button { padding: 8px 11px; font-size: 14px; }
  .use-switch button::after { font-size: 14.5px; }
}

@media (max-width: 340px) {
  .use-switch button { padding: 8px 8px; font-size: 13.5px; }
  .use-switch button::after { font-size: 14px; }
}

.price-terms {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6e6e73;
}

.price-terms .more {
  display: block;
  width: max-content;
  margin-top: 8px;
  color: #1d1d1f;
  text-decoration: none;
}

.price-terms .more:hover { text-decoration: underline; }

.license-form {
  max-width: 760px;
  margin: clamp(56px, 9vh, 88px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  background: #f5f5f7;
}

.license-form h3,
.faq h3,
.contact h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.license-form .lead { margin: 6px 0 24px; font-size: 15px; color: #6e6e73; }

.license-form .fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.license-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.license-form label em { font-style: normal; font-weight: 400; color: #6e6e73; }
.license-form .wide { grid-column: 1 / -1; }

/* Every field drawn by us, not the browser: no native select, no inner
   shadows, no validation bubbles (pricing.js outlines what's missing and says
   so above the button). Fonts set longhand: a "font" shorthand ending in
   "inherit" is invalid and Safari dropped it, leaving 13px system text. */
.license-form input,
.license-form select,
.license-form textarea,
.license-form .select-button {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background-color: #fff;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.license-form select,
.license-form .select-button {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.license-form select:invalid { color: #86868b; } /* "Choose a band" reads as a placeholder */
.license-form select option { color: #1d1d1f; }

/* The band picker: pricing.js swaps the native select (whose menu is the
   OS's own, unstylable) for a button and a list drawn here; the select stays,
   hidden, to carry the value and the validation. */
.license-form .picker { position: relative; }
.license-form .select-button { text-align: left; }
.license-form .select-button.placeholder { color: #86868b; }

.select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.select-menu.open { display: block; }

.select-menu.up {
  top: auto;
  bottom: 100%;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.12), 0 -2px 6px rgba(0, 0, 0, 0.06);
}

.select-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 400;
  color: #1d1d1f;
  cursor: pointer;
}

.select-menu li.active { background: #f5f5f7; }
.select-menu li[aria-selected="true"] { font-weight: 500; }
.select-menu li[aria-selected="true"]::after { content: "\2713"; color: #1d1d1f; }

.license-form textarea { resize: none; overflow-y: hidden; max-height: 50vh; } /* pricing.js grows it to fit what's typed */

/* Usage: a row of dots. The legend floats so every browser lays it out like
   the other fields' labels. */
.license-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.license-form legend { float: left; width: 100%; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 600; color: #1d1d1f; }
.license-form .dots { clear: both; display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 4px 0; }
.license-form .dots label { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 400; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.license-form input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: none; /* a choice shows at once */
}
/* chosen: a black disc with a hole in the middle */
.license-form input[type="radio"]:checked {
  border-color: #1d1d1f;
  background: radial-gradient(circle, #fff 3.5px, #1d1d1f 4px);
}
.license-form input[type="radio"]:focus { box-shadow: none; }
.license-form input[type="radio"]:focus-visible { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }
/* held down, on the dot or its label: an empty dot greys, a chosen one lightens */
.license-form .dots label:active input[type="radio"],
.license-form input[type="radio"]:active { border-color: #86868b; background-color: #e8e8ed; }
.license-form .dots label:active input[type="radio"]:checked,
.license-form input[type="radio"]:checked:active { border-color: #6e6e73; background: radial-gradient(circle, #fff 3.5px, #6e6e73 4px); }
.license-form fieldset.invalid { box-shadow: none; }
.license-form fieldset.invalid input[type="radio"] { border-color: #d70015; }

.license-form input:focus,
.license-form select:focus,
.license-form textarea:focus,
.license-form .select-button:focus {
  outline: none;
  border-color: #1d1d1f;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.license-form .invalid,
.license-form .invalid:focus {
  border-color: #d70015;
  box-shadow: 0 0 0 3px rgba(215, 0, 21, 0.12);
}

.form-error { margin: 20px 0 0; font-size: 15px; color: #d70015; }
.form-error:empty { display: none; }

.license-form .submit {
  -webkit-appearance: none;
  appearance: none;
  margin-top: 20px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s;
}

.license-form .submit:hover { background: #000; }
.form-status { margin: 14px 0 0; font-size: 15px; color: #1d1d1f; }
.form-status:empty { display: none; }
.form-status a { color: inherit; }

/* FAQ: native details/summary, drawn as hairline rows with a thin plus whose
   upright shrinks into its center when open. pricing.js animates both. */
.faq {
  max-width: 760px;
  margin: clamp(56px, 9vh, 88px) auto 0;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.faq h3 { margin-bottom: 12px; }
.faq details { border-bottom: 1px solid #e8e8ed; position: relative; }

/* pricing.js: covers the answer while a row opens or closes, sliding with the
   content below it; its top border stands in for the row's own divider. */
.faq .curtain {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid #e8e8ed;
  background: #fff;
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 4px;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: #1d1d1f;
  cursor: pointer;
}

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

.faq summary::before,
.faq .upright {
  position: absolute;
  top: 50%;
  border-radius: 1px;
  background: #6e6e73;
}

.faq summary::before {
  content: "";
  right: 8px;
  width: 14px;
  height: 1.5px;
  margin-top: -0.75px;
}

/* The plus's upright is a real element, not ::after, and pricing.js shrinks
   it into its center with the row's own animation: Safari rebuilds a
   details' rendering when [open] changes, and a pseudo-element's transition
   restarted at its end state, so the bar just vanished. */
.faq .upright {
  right: 14.25px; /* centered on the bar: 8px + 7px - 0.75px */
  width: 1.5px;
  height: 14px;
  margin-top: -7px;
}

.faq details[open]:not(.closing) .upright { transform: scaleY(0); } /* a minus */
.faq summary:hover::before,
.faq summary:hover .upright { background: #1d1d1f; }

.faq details p {
  margin: -4px 0 0;
  padding: 0 40px 22px 4px;
  font-size: 17px;
  line-height: 1.5;
  color: #6e6e73;
}

.faq details a { color: #1d1d1f; text-underline-offset: 3px; }

.contact {
  max-width: 760px;
  margin: clamp(56px, 9vh, 88px) auto 0;
  text-align: center;
  scroll-margin-top: calc(var(--nav-h) + 40px);
}

.contact p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: #6e6e73; }
.contact a { color: #1d1d1f; text-underline-offset: 3px; }
.contact a:hover { text-decoration-thickness: 2px; }

@media (max-width: 600px) {
  .license-form .fields { grid-template-columns: minmax(0, 1fr); }
}

/* Apple-style footer: light gray, small gray type, link columns */
.footer {
  background: var(--page);
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.5;
  padding: 32px var(--gutter) 24px;
}

.footer-in {
  max-width: 1120px;
  margin: 0 auto;
}

/* Apple-style breadcrumb: the chip (home) › this page; the home page shows
   the chip alone. */
.footer-crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  color: #424245;
}

.footer-crumbs a { display: block; }
.footer-crumbs img { display: block; width: 22px; height: 22px; }

.crumb-chevron {
  flex: none;
  width: 7px;
  height: 12px;
  fill: none;
  stroke: #86868b;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #d2d2d7;
}

.footer h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
}

.footer-cols a {
  display: block;
  margin: 6px 0;
  color: #424245;
  text-decoration: none;
}

.footer-cols a:hover { text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* before and during the intro (intro.js drives it, then drops the class) */
.intro .chip,
.intro .reveal { opacity: 0; }
/* the intro only fades these whole, on their own layers */
.intro .chip,
.intro .chip-lit,
.intro .reveal { will-change: opacity; }

/* the intro's stage is the hero, not the screen */
.strips {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .links { gap: 20px; }
}

/* Printing (the license pages and their PDF): the text alone, black on white */
@media print {
  html::before, .nav, .footer { display: none; }
  html, body { background: #fff; }
  .tier-hero, .tier-hero.black { padding: 0 0 20px; background: none; color: #000; }
  .tier-hero .sub { color: #424245; }
  .section, .section.license { padding: 0; }
  .legal { max-width: none; font-size: 10.5pt; color: #1d1d1f; }
  .legal .note { padding: 0; background: none; }
  .legal h3 { break-after: avoid; }
  .legal li, .legal p { break-inside: avoid; }
  .legal a { color: inherit; text-decoration: none; }
}
