/* Colors from Logo/Peel.icon. */
:root {
  --black: #0b0a09;
  --tile: #1c1b19;
  --line: rgba(255, 242, 224, 0.12);
  --text: #f5f2ed;
  --text-2: #a39d94;
  --text-3: #8a847b;
  --orange: #ff9933;
  --orange-hover: #ffa64d;
  --orange-ink: #a84f00;
  --cream: #fff2e0;
  --paper: #fbf6ee;
  --ink: #201f1d;
  --ink-2: #5f5a52;
  --sticker-edge: #d6d4cf;
  --sticker-dark: #302e2b;
  --sticker-gray: #4d4d4d;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --page: 1080px;
  --gutter: 22px;
  --nav-height: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: 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: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h2,
h3,
summary {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0;
}

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

.skip:focus {
  top: 10px;
}

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pill:hover {
  background: var(--orange-hover);
  text-decoration: none;
}

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

.pill-small {
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.pill-large {
  padding: 13px 26px;
  font-size: 17px;
}

.pill svg {
  width: 18px;
  height: 18px;
}

.pill-small {
  gap: 6px;
}

.pill-small svg {
  width: 14px;
  height: 14px;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.pill-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 242, 224, 0.28);
  color: var(--text);
}

.pill-ghost:hover {
  background: rgba(255, 242, 224, 0.08);
}

.pill-ghost svg {
  color: var(--orange);
}

.sponsor {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
  padding: 9px 18px;
  font-size: 15px;
}

.sponsor svg {
  width: 16px;
  height: 16px;
}

.more {
  white-space: nowrap;
}

.more::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.3em;
  border-top: 0.11em solid currentColor;
  border-right: 0.11em solid currentColor;
  transform: translateY(-0.06em) rotate(45deg);
}

.link-line {
  margin: 24px 0 0;
  font-size: 17px;
}

.sticker {
  --turn: 0deg;
  --size: 112px;
  display: inline-flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--size) * 0.07);
  width: var(--size);
  height: var(--size);
  padding: 6px;
  border: calc(var(--size) * 0.045) solid var(--sticker-edge);
  border-radius: 26%;
  background: var(--sticker-dark);
  color: var(--text);
  font-family: var(--font-rounded);
  letter-spacing: 0;
  text-align: center;
  transform: rotate(var(--turn));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease);
  user-select: none;
}

.sticker:hover {
  transform: rotate(0deg) scale(1.05);
}

.sticker b,
.sticker span {
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.sticker b {
  font-size: calc(var(--size) * 0.27);
  font-weight: 700;
}

.sticker span {
  font-size: calc(var(--size) * 0.12);
  font-weight: 600;
  opacity: 0.82;
}

.sticker.round {
  border-radius: 50%;
}

.sticker.orange {
  background: var(--orange);
  color: var(--ink);
}

.sticker.cream {
  background: var(--cream);
  color: var(--ink);
}

.sticker.gray {
  background: var(--sticker-gray);
}

.sticker.wide {
  width: calc(var(--size) * 1.32);
}

.tape {
  --turn: -4deg;
  display: inline-block;
  padding: 7px 26px 6px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--turn));
  clip-path: polygon(2% 0, 98% 0, 100% 18%, 97.5% 34%, 100% 50%, 97.5% 66%, 100% 82%, 98% 100%, 2% 100%, 0 82%,
      2.5% 66%, 0 50%, 2.5% 34%, 0 18%);
}

.section {
  position: relative;
  padding: 120px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}

.headline {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 600;
  line-height: 1.0625;
  letter-spacing: -0.009em;
  text-wrap: balance;
}

.lede {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: clamp(19px, 2.1vw, 21px);
  font-weight: 600;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.lede code,
.points code {
  white-space: nowrap;
}

.center .lede {
  margin-inline: auto;
}

.gradient {
  background: linear-gradient(100deg, var(--orange) 10%, #ffc27a 55%, var(--cream) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero,
.download {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero {
  padding: 72px 0 40px;
}

.hero::before,
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(ellipse closest-side at 50% 68%, rgba(255, 153, 51, 0.17), rgba(255, 153, 51, 0));
}

.download::before {
  background: radial-gradient(ellipse closest-side at 50% 42%, rgba(255, 153, 51, 0.15), rgba(255, 153, 51, 0));
}

.hero .wrap,
.download .wrap {
  position: relative;
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8.4vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.tagline {
  margin: 14px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 640px;
  margin: 22px auto 0;
  font-weight: 400;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin-top: 34px;
}

.actions .more {
  font-size: 17px;
}

.requirements {
  margin: 18px 0 0;
  color: var(--text-3);
  font-size: 14px;
  letter-spacing: -0.016em;
}

.brew {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-top: 26px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.brew code {
  font-size: 14px;
  white-space: nowrap;
}

.brew code::before {
  content: "$ ";
  color: var(--orange);
}

.copy {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.copy:hover {
  background: rgba(255, 255, 255, 0.18);
}

.copy.done {
  background: var(--orange);
  color: var(--ink);
}

.stage {
  margin-top: 56px;
}

.statement {
  padding: 110px 0 40px;
}

.statement p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-3);
  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
}

.statement strong {
  color: var(--text);
  font-weight: 600;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.tile {
  padding: 32px 34px 34px;
  border-radius: 28px;
  background: var(--tile);
  text-align: center;
}

.tile.span-2 {
  grid-column: span 2;
}

.tile.span-3 {
  grid-column: span 3;
}

.tile-art {
  --size: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: calc(var(--size) + 24px);
}

.tile-art .sticker {
  --size: inherit;
}

.tile h3 {
  margin: 24px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
  text-wrap: balance;
}

.tile p {
  margin: 8px 0 0;
  color: var(--text-2);
}

.feature-head {
  max-width: 900px;
}

.feature-head.center {
  margin-inline: auto;
}

.shot-frame {
  margin-top: 64px;
}

.shot {
  display: block;
}

.shot img {
  width: 100%;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.points.left {
  text-align: left;
}

.points li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.points h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: 0.012em;
}

.points p {
  margin: 8px 0 0;
  color: var(--text-2);
}

.points .icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--orange);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
}

.split.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split .headline {
  font-size: clamp(34px, 4.4vw, 52px);
}

.split.flip .split-text {
  order: 2;
}

.split .lede {
  font-size: 19px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips.centered {
  justify-content: center;
  margin-inline: auto;
}

.chips li {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.divider {
  width: min(var(--page), 100% - 2 * var(--gutter));
  height: 1px;
  margin: 0 auto;
  border: 0;
  background: var(--line);
}

.themes {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
}

.theme-view {
  display: grid;
  width: min(820px, 100%);
}

.theme-image {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.theme-image.shown {
  opacity: 1;
}

.theme-name {
  margin: 18px 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.theme-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 920px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.theme-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.theme-list button:hover {
  border-color: rgba(255, 242, 224, 0.3);
  color: var(--text);
}

.theme-list button[aria-pressed="true"] {
  border-color: var(--orange);
  background: rgba(255, 153, 51, 0.1);
  color: var(--text);
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.paper {
  background: var(--paper);
  color: var(--ink);
}

.paper a {
  color: var(--orange-ink);
}

.paper .lede,
.paper .points p {
  color: var(--ink-2);
}

.paper .lede strong {
  color: var(--ink);
}

.paper .points li {
  border-top-color: rgba(32, 31, 29, 0.14);
}

.paper .points .icon {
  color: var(--orange-ink);
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 13px;
  background: var(--paper);
  -webkit-mask: var(--teeth) center / 24px 13px repeat-x;
  mask: var(--teeth) center / 24px 13px repeat-x;
}

.paper::before {
  --teeth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 13'%3E%3Cpath d='M0 13 12 1l12 12z'/%3E%3C/svg%3E");
  bottom: calc(100% - 1px);
}

.paper::after {
  --teeth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 13'%3E%3Cpath d='M0 0l12 12L24 0z'/%3E%3C/svg%3E");
  top: calc(100% - 1px);
}

.tape.seam {
  --turn: -3deg;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--turn));
}

.terminal {
  max-width: 860px;
  margin: 60px auto 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0c1f2b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.55);
  color: #d6e4ea;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  text-align: left;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #182b36;
}

.terminal-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-bar i:nth-child(2) {
  background: #febc2e;
}

.terminal-bar i:nth-child(3) {
  background: #28c840;
}

.terminal-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8fa6b3;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

.terminal-lines {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0 3ch;
  margin: 0;
  padding: 22px 24px 0;
}

.terminal-lines dt,
.terminal-lines dd {
  margin: 0;
}

.terminal-lines code {
  font-size: 1em;
}

.terminal-lines dd {
  color: #758e9d;
}

.terminal .p {
  color: #6ec3e6;
}

.terminal .f {
  color: #ffb86b;
}

.terminal-prompt {
  margin: 0;
  padding: 0 24px 24px;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  vertical-align: -0.2em;
  background: var(--orange);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;
  max-width: 900px;
  margin: 52px auto 0;
  padding: 0;
  list-style: none;
}

.languages li {
  --turn: 0deg;
  padding: 10px 18px;
  border: 3px solid var(--sticker-edge);
  border-radius: 16px;
  background: var(--sticker-dark);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  transform: rotate(var(--turn));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.languages li:nth-child(4n + 1) {
  --turn: -2deg;
}

.languages li:nth-child(4n + 2) {
  --turn: 1.5deg;
  background: var(--cream);
  color: var(--ink);
}

.languages li:nth-child(4n + 3) {
  --turn: -1deg;
  background: var(--sticker-gray);
}

.languages li:nth-child(4n) {
  --turn: 2.5deg;
}

.languages li:nth-child(7n) {
  background: var(--orange);
  color: var(--ink);
}

.faq {
  max-width: 820px;
  margin: 56px auto 0;
}

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

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

.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.012em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--orange);
  transition: transform 0.3s var(--ease);
}

.faq summary::after {
  transform: rotate(90deg);
}

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

.faq details p {
  margin: -6px 0 26px;
  padding-right: 48px;
  color: var(--text-2);
  line-height: 1.53;
}

.download {
  padding: 140px 0 120px;
}

/* Lighter gray for contrast on the glow. */
.download .requirements {
  color: var(--text-2);
}

.download .hero-icon {
  width: 128px;
  height: 128px;
}

.notice {
  display: flex;
  gap: 16px;
  max-width: 720px;
  margin: 64px auto 0;
  padding: 22px 26px;
  border: 1px solid rgba(255, 153, 51, 0.35);
  border-radius: 20px;
  background: rgba(255, 153, 51, 0.07);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
  text-align: left;
}

.notice svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--orange);
}

.notice p {
  margin: 0;
}

.notice strong {
  color: var(--text);
  font-weight: 600;
}

footer {
  padding: 28px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #141312;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

footer li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px;
  vertical-align: -1px;
  background: rgba(255, 255, 255, 0.18);
}

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

footer p {
  margin: 0 0 10px;
}

footer p a {
  text-decoration: underline;
  text-decoration-color: rgba(163, 157, 148, 0.45);
  text-underline-offset: 3px;
}

footer .maker {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}

footer .maker + nav ul {
  margin-top: 8px;
}

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(28, 27, 25, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: var(--text);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out), visibility 0s, color 0.2s;
}

.js .to-top:not(.shown) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}

.to-top:hover {
  color: var(--orange);
}

.to-top:focus-visible {
  outline-color: var(--cream);
}

.to-top svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top .track {
  stroke: var(--line);
}

.to-top .ring {
  stroke: var(--orange);
  stroke-dasharray: 141.4;
  stroke-dashoffset: calc(141.4 - 141.4 * var(--progress, 0));
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center;
}

.to-top path {
  stroke: currentColor;
  stroke-width: 2.25;
}

@supports (animation-timeline: scroll()) {
  .to-top .ring {
    animation: fill-ring linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes fill-ring {
  from {
    stroke-dashoffset: 141.4;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Moved, never faded, to keep full contrast. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transform: translateY(28px);
    transition: transform 1.1s var(--ease-out);
  }

  .js .reveal.shown {
    transform: none;
  }
}

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

  .js .to-top:not(.shown) {
    transform: none;
  }

  .cursor {
    animation: none;
  }
}

@media (min-width: 1320px) {
  .split > .shot {
    width: calc(100% + 100px);
    max-width: none;
  }

  .split.flip > .shot {
    margin-left: -100px;
  }
}

/* Room under the last line for the back-to-top button. */
@media (max-width: 1215px) {
  footer {
    padding-bottom: 88px;
  }
}

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

  .tile.span-2,
  .tile.span-3 {
    grid-column: span 1;
  }

  .tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .split.flip .split-text {
    order: 0;
  }
}

@media (max-width: 833px) {
  .nav-links {
    display: none;
  }

  .section {
    padding: 88px 0;
  }

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

/* Under 360px only the heart fits. */
@media (max-width: 360px) {
  .nav-actions .label {
    display: none;
  }

  .nav-actions .pill-ghost {
    padding-inline: 9px;
  }
}

@media (max-width: 640px) {
  footer ul {
    gap: 10px 22px;
  }

  footer li:not(:last-child)::after {
    content: none;
  }

  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
  }

  .actions {
    margin-top: 28px;
  }

  .brew {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .brew code {
    white-space: normal;
  }

  .stage {
    margin-top: 40px;
  }

  .statement {
    padding-top: 72px;
  }

  .highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tile {
    padding: 26px 24px 28px;
  }

  .tile-art {
    --size: 80px;
  }

  .tile h3 {
    margin-top: 20px;
    font-size: 22px;
  }

  .shot-frame {
    margin-top: 40px;
  }

  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 44px;
  }

  .terminal {
    margin-top: 44px;
    font-size: 13px;
  }

  .terminal-lines {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 18px 0;
  }

  .terminal-lines dd {
    margin-bottom: 10px;
    padding-left: 2.5ch;
  }

  .terminal-prompt {
    padding: 0 18px 18px;
  }

  .theme-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }

  .theme-list::-webkit-scrollbar {
    display: none;
  }

  .theme-list li {
    flex: none;
    scroll-snap-align: center;
  }

  .theme-list button {
    gap: 6px;
    padding: 6px 12px 6px 7px;
    font-size: 14px;
    white-space: nowrap;
  }

  .swatch {
    width: 14px;
    height: 14px;
  }

  .languages {
    gap: 10px 8px;
  }

  .languages li {
    padding: 8px 14px;
    font-size: 15px;
  }

  .faq summary {
    padding: 20px 40px 20px 0;
    font-size: 17px;
  }

  .faq details p {
    padding-right: 0;
  }

  .download {
    padding: 96px 0 88px;
  }

  .download .hero-icon {
    width: 100px;
    height: 100px;
  }

  .notice {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }
}
