/* Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* One blue, two jobs: a fill dark enough for white text, and a brighter
     one for links and outlines that have to read on black. */
  --primary: #2997ff;
  --primary-fill: #0071e3;
  --primary-focus: #2997ff;
  --primary-on-dark: #2997ff;
  --ink: #f5f5f7;
  --body-on-dark: #f5f5f7;
  --body-muted: #a1a1a6;
  --ink-muted-80: #a1a1a6;
  --ink-muted-48: #86868b;
  --hairline: rgba(255, 255, 255, 0.1);
  --canvas: #000000;
  --canvas-parchment: #0b0b0c;
  --surface-tile-1: #131314;
  --surface-black: #000000;
  --card: #161617;

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;

  --rounded-sm: 8px;
  --rounded-lg: 18px;
  --rounded-pill: 9999px;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 17px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 104px;

  --gutter: 22px;
  --nav-height: 44px;
  --product-shadow: rgba(0, 0, 0, 0.6) 0 30px 80px -24px;
}

/* Base ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-lg));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

svg {
  flex: none;
}

.sprite {
  position: absolute;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

/* Typography ------------------------------------------------------------ */

h1,
h2,
h3,
.lead {
  text-wrap: balance;
}

.hero-display {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}

.display-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.display-md {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}

.tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
}

.caption-strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

/* Buttons and links ----------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--rounded-pill);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.button:active {
  transform: scale(0.95);
}

.button--primary {
  background: var(--primary-fill);
  color: #ffffff;
}

.button--secondary {
  border-color: var(--primary);
  color: var(--primary);
}

.button--on-dark {
  border-color: var(--primary-on-dark);
  color: var(--primary-on-dark);
}

.button--nav {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.12px;
}

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

.text-link::after {
  content: "\00a0\203a";
}

.text-link:hover {
  text-decoration: underline;
}

.text-link--on-dark {
  color: var(--primary-on-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* Global nav ------------------------------------------------------------ */

.global-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  border-bottom: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--body-on-dark);
}

.global-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  justify-self: start;
  height: 100%;
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.global-nav__links {
  display: flex;
  height: 100%;
}

.global-nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.12px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.global-nav__links a:hover,
.global-nav__links a:focus-visible {
  opacity: 1;
}

.global-nav__links svg {
  width: 16px;
  height: 16px;
}

.global-nav .button--nav {
  justify-self: end;
}

/* Tiles ----------------------------------------------------------------- */

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

.tile--light {
  background: var(--canvas);
}

.tile--parchment {
  background: var(--canvas-parchment);
}

.tile--dark {
  background: var(--surface-tile-1);
  color: var(--body-on-dark);
}

.tile__copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.tile__copy .lead {
  max-width: 720px;
  margin: var(--space-md) auto 0;
}

.tile--dark .tile__copy .lead {
  color: var(--body-muted);
}

.tile__copy .cta-row {
  margin-top: var(--space-xl);
}

/* Utility card ---------------------------------------------------------- */

.utility-card {
  padding: var(--space-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Stage: a window floating over a backdrop ------------------------------ */

.stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--rounded-lg);
  background: var(--surface-tile-1);
}

.stage__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage__backdrop--flip {
  transform: scaleX(-1);
}

/* Chrome is sized in cqw so it scales with the window, not the viewport. */
.window {
  container-type: inline-size;
}

.window__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5cqw;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: -1px;
  background: var(--surface-black);
  box-shadow: var(--product-shadow);
}

/* Sits on the backdrop, above the top-left corner of the screenshot. */
.window__controls {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.7cqw;
  gap: 0.85cqw;
  height: 2.6cqw;
  padding: 0 0.85cqw;
  border-radius: 0.8cqw;
  background: rgba(29, 29, 31, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--body-muted);
}

.window__lights {
  display: flex;
  gap: 0.55cqw;
}

.window__lights i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 50%;
  background: #ff5f57;
}

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

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

.window__controls svg {
  width: 1.3cqw;
  height: 1.3cqw;
}

.window__controls svg:last-child {
  transform: rotate(180deg);
  opacity: 0.4;
}

.window__frame > img {
  width: 100%;
  aspect-ratio: 1899 / 941;
  object-fit: cover;
  object-position: center top;
}

.stage--bleed {
  container-type: size;
  touch-action: pan-y;
  cursor: grab;
}

/* --expand runs 0 -> 1 (see .site-card). At 0 the window runs off the right and
   bottom edge; at 1 the whole window is centred, as large as fits the stage. */
.stage--bleed .window {
  --fit: min(86cqw, 160cqh);
  position: absolute;
  top: calc(9cqh * (1 - var(--expand)) + (100cqh - var(--fit) * 0.53) / 2 * var(--expand));
  left: calc(8cqw * (1 - var(--expand)) + (100cqw - var(--fit)) / 2 * var(--expand));
  width: calc(150cqw * (1 - var(--expand)) + var(--fit) * var(--expand));
}

.stage--bleed img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Hero gallery ---------------------------------------------------------- */

.gallery {
  max-width: 1240px;
  margin: 64px auto 0;
}

.gallery__viewport {
  position: relative;
  container-type: inline-size;
}

.gallery__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--rounded-lg);
  cursor: grab;
}

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

.gallery__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.gallery .stage {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
}

.gallery .window {
  width: 80%;
}

.gallery img {
  -webkit-user-drag: none;
  user-select: none;
}

.gallery__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xxs) var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--ink-muted-80);
  text-align: center;
  cursor: auto;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--rounded-pill);
  background: rgba(58, 58, 60, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.icon-button:active {
  transform: scale(0.95);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

/* Centred on the stage (16:9 of the viewport width), not on the caption. */
.gallery__arrow {
  position: absolute;
  top: calc(100cqw * 9 / 32 - 22px);
}

.gallery__arrow--prev {
  left: var(--space-md);
}

.gallery__arrow--prev svg {
  transform: rotate(180deg);
}

.gallery__arrow--next {
  right: var(--space-md);
}

.gallery__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.gallery__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chip:active {
  transform: scale(0.95);
}

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

/* Border grows from 1px to 2px; padding gives the pixel back. */
.chip[aria-pressed="true"] {
  padding: 10px 15px;
  border: 2px solid var(--primary-focus);
}

/* Without JS the track still scrolls; the controls would do nothing. */
html:not(.js) .gallery__arrow,
html:not(.js) .gallery__tabs {
  display: none;
}

/* Feature grid (dark tile) ---------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xxl);
  max-width: 980px;
  margin: 64px auto 0;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
}

/* Tile-coloured stroke under the slash, so it reads as a cut-out. */
.icon-cut {
  stroke: var(--surface-tile-1);
  stroke-width: 7;
}

.feature .body {
  margin: var(--space-sm) 0;
  color: var(--body-muted);
}

/* Per-site cards -------------------------------------------------------- */

.site-stack {
  display: grid;
  gap: var(--space-lg);
  max-width: 1240px;
  margin: 64px auto 0;
}

/* Animatable 0 -> 1: how far the screenshot has taken over the card. */
@property --expand {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.site-card {
  --expand: 0;
  --copy-track: calc((100% - var(--space-xl)) * 5 / 12 * (1 - var(--expand)));
  display: grid;
  grid-template-columns: var(--copy-track) minmax(0, 1fr);
  column-gap: calc(var(--space-xl) * (1 - var(--expand)));
  container-type: inline-size;
  scroll-margin-top: calc(var(--nav-height) + var(--space-lg));
}

.site-card--reverse {
  grid-template-columns: minmax(0, 1fr) var(--copy-track);
}

.site-card--reverse .site-card__media {
  order: -1;
}

/* Expanded: the text column closes and the screenshot takes the whole card. */
.site-card.is-expanded {
  --expand: 1;
}

/* Beats .js .reveal, which would otherwise replace this transition. */
.js .site-card.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease, --expand 0.5s ease;
}

.site-card__copy {
  min-width: 0;
  overflow: hidden;
  opacity: calc(1 - var(--expand));
}

/* Fixed to the column's resting width, so the text slides away instead of rewrapping. */
.site-card__copy-inner {
  width: calc((100cqw - var(--space-xl)) * 5 / 12);
  padding: var(--space-lg) var(--space-xs) var(--space-lg) var(--space-lg);
}

.site-card--reverse .site-card__copy-inner {
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xs);
}

.site-card__toggle {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
}

.site-card__toggle svg:last-child,
.site-card.is-expanded .site-card__toggle svg:first-child {
  display: none;
}

.site-card.is-expanded .site-card__toggle svg:last-child {
  display: block;
}

html:not(.js) .site-card__toggle {
  display: none;
}

.site-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-card__label svg {
  width: 20px;
  height: 20px;
}

.site-card__copy .display-md {
  margin-top: var(--space-xs);
}

.site-card__copy-inner > .body {
  color: var(--ink-muted-80);
}

.site-card__media {
  min-width: 0;
  min-height: 420px;
  border-radius: var(--rounded-sm);
}

.change-list {
  margin: var(--space-lg) 0;
  border-top: 1px solid var(--hairline);
}

.change-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--hairline);
}

.change-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.change-list strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

.change-list span {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted-80);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
}

/* Pricing --------------------------------------------------------------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 760px;
  margin: 64px auto 0;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-xl);
}

/* Border grows from 1px to 2px; padding gives the pixel back. */
.plan--selected {
  padding: calc(var(--space-xl) - 1px);
  border: 2px solid var(--primary-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 90px -30px rgba(0, 113, 227, 0.55);
}

.plan__price {
  margin-top: var(--space-sm);
}

.plan__note {
  margin-top: var(--space-xxs);
  color: var(--ink-muted-80);
}

.plan__list {
  flex: 1;
  align-self: stretch;
  margin: var(--space-lg) 0 var(--space-xl);
  border-top: 1px solid var(--hairline);
}

.plan__list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--hairline);
}

.plan__list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* FAQ ------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin: var(--space-xxl) auto 0;
  border-top: 1px solid var(--hairline);
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

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

.faq__item .body {
  max-width: 680px;
  padding-bottom: var(--space-lg);
  color: var(--ink-muted-80);
}

/* Footer ---------------------------------------------------------------- */

.footer {
  padding: 64px var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
}

.footer__inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-xl);
  color: var(--ink);
}

.footer__brand .caption {
  color: var(--ink-muted-80);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.footer__columns h2 {
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.footer__columns a {
  font-size: 17px;
  line-height: 2.41;
  letter-spacing: 0;
}

.footer__columns a:hover {
  text-decoration: underline;
}

.footer__legal {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted-48);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
}

.footer__legal a {
  text-decoration: underline;
}

.footer__legal p + p {
  margin-top: var(--space-xs);
}

/* Document pages: privacy, terms, guides --------------------------------- */

.crumbs {
  max-width: calc(820px + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--space-lg) var(--gutter) 0;
  color: var(--ink-muted-48);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
}

.crumbs a:hover {
  text-decoration: underline;
}

.doc {
  padding: var(--space-xl) var(--gutter) var(--space-section);
}

.doc .wrap {
  max-width: 820px;
  margin: 0 auto;
}

.doc .eyebrow {
  color: var(--ink-muted-48);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
}

.doc h1 {
  margin-top: var(--space-xs);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.doc .lede {
  margin-top: var(--space-md);
  color: var(--ink-muted-80);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: 0.011em;
}

.doc section {
  margin-top: var(--space-xxl);
}

.doc section.faq {
  max-width: none;
  border-top: 0;
}

.doc h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.196px;
}

.doc h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: 0.012em;
}

.doc p,
.doc ol,
.doc ul,
.doc details,
.doc .grid,
.doc .callout,
.doc .table-scroll {
  margin-top: var(--space-md);
}

.doc .card > :first-child,
.doc .callout > :first-child {
  margin-top: 0;
}

.doc .sub {
  color: var(--ink-muted-80);
}

.doc ol,
.doc ul {
  padding-left: 1.3em;
  list-style: revert;
}

.doc li + li {
  margin-top: var(--space-xs);
}

.doc a:not(.button) {
  color: var(--primary);
}

.doc a:not(.button):hover {
  text-decoration: underline;
}

.doc code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--card);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  letter-spacing: 0;
}

.doc .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.24px;
}

.doc th,
.doc td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 600;
}

.doc thead th {
  background: var(--card);
  font-size: 14px;
}

.doc tbody tr:last-child > * {
  border-bottom: 0;
}

.doc .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.doc .card,
.doc .callout {
  padding: var(--space-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  background: var(--card);
}

.doc .cta-row {
  align-items: center;
  justify-content: flex-start;
  margin-top: var(--space-lg);
}

.doc .cta-note {
  color: var(--ink-muted-48);
  font-size: 14px;
  letter-spacing: -0.224px;
}

.doc details {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--hairline);
}

.doc summary {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.21;
  cursor: pointer;
}

@media (max-width: 640px) {
  .doc {
    padding-bottom: var(--space-xxl);
  }

  .doc h1 {
    font-size: 32px;
  }

  .doc h2 {
    font-size: 24px;
  }

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

/* Presentation: one idea per screen --------------------------------------- */

/* A slide lands flush under the nav, not a line of text below it. */
html:has(.deck) {
  scroll-padding-top: var(--nav-height);
}

.global-nav__links a[aria-current="page"] {
  opacity: 1;
}

.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xxl);
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  padding: var(--space-section) var(--gutter);
  overflow: hidden;
}

.slide--light {
  background: var(--canvas);
}

.slide--parchment {
  background: var(--canvas-parchment);
}

.slide--dark {
  background: var(--surface-tile-1);
  color: var(--body-on-dark);
}

.slide--black {
  background: var(--surface-black);
  color: var(--body-on-dark);
}

.slide__copy {
  max-width: 980px;
  text-align: center;
}

.slide__copy--start {
  text-align: left;
}

.slide__copy .lead {
  max-width: 720px;
  margin: var(--space-md) auto 0;
}

.slide__copy--start .lead {
  margin-left: 0;
  color: var(--ink-muted-80);
}

.slide--dark .lead,
.slide--black .lead {
  color: var(--body-muted);
}

.slide__eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--primary-on-dark);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

/* The laptop carries its own contact shadow; nothing is added here. */
.slide__render {
  width: 100%;
  max-width: 1120px;
}

.slide__render--wide {
  max-width: 1240px;
}

.slide__render img,
.slide__strip img,
.slide__shot img,
.slide__card img {
  width: 100%;
}

.slide__strip,
.slide__shot {
  overflow: hidden;
  border-radius: var(--rounded-lg);
  outline: 1px solid var(--hairline);
  outline-offset: -1px;
  box-shadow: var(--product-shadow);
}

.slide__strip {
  width: 100%;
  max-width: 1240px;
}

.slide__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--space-xxl);
  width: 100%;
  max-width: 1240px;
}

.slide__pair {
  display: grid;
  grid-template-columns: minmax(0, 1036fr) minmax(0, 482fr);
  align-items: stretch;
  gap: var(--space-lg);
  width: 100%;
  max-width: 1100px;
}

.slide__pair--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  max-width: 1240px;
}

.slide__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.slide__card img {
  flex: 1;
  min-height: 0;
  border-radius: var(--rounded-sm);
  object-fit: cover;
}

.slide__card .body {
  margin-top: var(--space-xxs);
  color: var(--ink-muted-80);
}

.slide__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xxl);
  width: 100%;
  max-width: 980px;
  margin: 0;
  text-align: center;
}

.slide__stats dt {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}

.slide__stats dd {
  margin: var(--space-xs) 0 0;
  color: var(--body-muted);
}

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

  .slide__copy--start {
    text-align: center;
  }

  .slide__copy--start .lead {
    margin-left: auto;
  }

  .slide__card--tall img {
    aspect-ratio: 4 / 3;
    object-position: top;
  }

  .slide__stats dt {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .slide {
    gap: var(--space-xl);
    min-height: 0;
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
  }

  .slide__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

/* Scroll reveal --------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal,
  .js .site-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .chip,
  .icon-button,
  .faq__item summary svg {
    transition: none;
  }
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1068px) {
  .hero-display {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .lead {
    font-size: 24px;
  }

  .site-card,
  .site-card--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  /* Stacked layout: there is no column to close, the text just steps aside. */
  .site-card.is-expanded .site-card__copy {
    display: none;
  }

  .site-card .site-card__media {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .site-card__copy-inner,
  .site-card--reverse .site-card__copy-inner {
    width: auto;
    padding: var(--space-lg) var(--space-xs) var(--space-xs);
  }
}

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

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .tile {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
  }

  .hero-display {
    font-size: 34px;
  }

  .display-lg {
    font-size: 32px;
  }

  .display-md {
    font-size: 28px;
    line-height: 1.25;
  }

  .lead {
    font-size: 21px;
  }

  .gallery,
  .feature-grid,
  .site-stack,
  .plan-grid {
    margin-top: var(--space-xxl);
  }

  .gallery .stage {
    aspect-ratio: 4 / 3;
  }

  .gallery .window {
    width: 88%;
  }

  /* Touch screens swipe; the arrows would only cover the window. */
  .gallery__arrow {
    display: none;
  }

  .global-nav__inner {
    grid-template-columns: auto 1fr auto;
    column-gap: var(--space-xs);
  }

  .global-nav__links {
    justify-self: end;
  }

  .global-nav__links a {
    padding: 0 8px;
  }

  .global-nav__links span {
    display: none;
  }

  .global-nav__links svg {
    width: 18px;
    height: 18px;
  }

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

  .utility-card {
    padding: var(--space-md);
  }

  .plan {
    padding: var(--space-lg);
  }

  .plan--selected {
    padding: calc(var(--space-lg) - 1px);
  }

  .footer {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
  }

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

@media (max-width: 374px) {
  .global-nav .brand__name {
    display: none;
  }
}

@media (max-width: 419px) {
  .hero-display {
    font-size: 28px;
  }

  .display-lg {
    font-size: 26px;
  }

  .lead {
    font-size: 19px;
  }

  .cta-row .button {
    flex: 1 1 100%;
  }

  .faq__item summary {
    font-size: 19px;
  }
}

/* One continuous dark page -------------------------------------------------
   Sections no longer own a flat colour. The page is black; a section that
   wants to sit a shade higher fades up to it and back down, so no two
   colours ever meet on a line. Light comes from a few soft glows that end
   inside their own section. */

:root {
  --rounded-lg: 24px;
  --fade: clamp(120px, 22vh, 260px);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --glass-line: rgba(255, 255, 255, 0.09);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

::selection {
  background: rgba(41, 151, 255, 0.35);
}

body {
  background: #000000;
}

/* Film grain: keeps the long dark gradients from banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
}

.tile,
.slide {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.tile--dark,
.slide--dark {
  --tint: #121214;
}

.tile--parchment,
.slide--parchment {
  --tint: #0c0c0e;
}

.tile--dark,
.tile--parchment,
.slide--dark,
.slide--parchment {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0,
    var(--tint) var(--fade),
    var(--tint) calc(100% - var(--fade)),
    rgba(0, 0, 0, 0) 100%
  );
}

.footer {
  border-top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #0c0c0e var(--fade));
}

/* Glows. Each one is centred well inside its section and is gone before
   the section's edge, so it can never be cut into a line. */
.tile::before,
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#features::before {
  background: radial-gradient(ellipse 46% 38% at 50% 46%, rgba(41, 151, 255, 0.13), rgba(41, 151, 255, 0) 100%);
}

#sites::before {
  background:
    radial-gradient(ellipse 38% 30% at 16% 34%, rgba(124, 92, 255, 0.11), rgba(124, 92, 255, 0) 100%),
    radial-gradient(ellipse 38% 30% at 84% 70%, rgba(255, 122, 69, 0.08), rgba(255, 122, 69, 0) 100%);
}

#pricing::before {
  background: radial-gradient(ellipse 34% 40% at 58% 58%, rgba(0, 113, 227, 0.16), rgba(0, 113, 227, 0) 100%);
}

#faq::before {
  background: radial-gradient(ellipse 42% 34% at 50% 50%, rgba(124, 92, 255, 0.07), rgba(124, 92, 255, 0) 100%);
}

#download::before {
  background:
    radial-gradient(ellipse 50% 46% at 50% 54%, rgba(41, 151, 255, 0.2), rgba(41, 151, 255, 0) 100%),
    radial-gradient(ellipse 30% 30% at 66% 46%, rgba(190, 80, 255, 0.1), rgba(190, 80, 255, 0) 100%);
}

.slide--dark::before {
  background: radial-gradient(ellipse 50% 40% at 50% 58%, rgba(41, 151, 255, 0.12), rgba(41, 151, 255, 0) 100%);
}

.slide--parchment::before {
  background: radial-gradient(ellipse 44% 36% at 62% 50%, rgba(124, 92, 255, 0.09), rgba(124, 92, 255, 0) 100%);
}

.slide--black:not(.slide--hero)::before {
  background: radial-gradient(ellipse 46% 38% at 50% 62%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 100%);
}

/* Type ------------------------------------------------------------------ */

.hero-display,
.display-lg,
.doc h1 {
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #a4a4ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
}

.doc h2 {
  letter-spacing: -0.02em;
}

.lead {
  color: var(--body-muted);
}

/* Buttons --------------------------------------------------------------- */

.button {
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.button--primary {
  background: linear-gradient(180deg, #2a8dfa 0%, #0068d6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 34px -10px rgba(0, 113, 227, 0.85);
}

.button--primary:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 14px 44px -10px rgba(0, 113, 227, 1);
}

.button--nav {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button--secondary,
.button--on-dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.button--secondary:hover,
.button--on-dark:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.hero .cta-row .button,
#download .cta-row .button,
.slide--last .cta-row .button {
  padding: 14px 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--body-muted);
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.18);
}

/* Surfaces -------------------------------------------------------------- */

.utility-card,
.chip,
.doc .card,
.doc .callout,
.doc .table-scroll {
  border-color: var(--glass-line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.doc thead th,
.doc code {
  background: rgba(255, 255, 255, 0.05);
}

.chip[aria-pressed="true"] {
  border-color: var(--primary);
}

.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-card__media {
  border-radius: 16px;
}

.gallery .stage,
.site-card__media {
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.gallery .stage {
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
}

/* The hero screenshot sits in its own light, in the colours of its wallpaper. */
.hero .gallery {
  position: relative;
  z-index: 0;
}

.hero .gallery__viewport::before,
.hero .gallery__viewport::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero .gallery__viewport::before {
  inset: 6% 38% 0 -4%;
  background: rgba(0, 113, 227, 0.34);
}

.hero .gallery__viewport::after {
  inset: 22% -4% -4% 46%;
  background: rgba(255, 86, 120, 0.2);
}

/* Features: three cards instead of three columns of loose text. */
.feature-grid {
  gap: var(--space-lg);
  max-width: 1080px;
}

.feature {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.feature:hover,
.plan:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.feature__icon {
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #19191c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -12px rgba(41, 151, 255, 0.55);
  color: #ffffff;
}

.icon-cut {
  stroke: #19191c;
}

/* Pricing: the Pro card is lit from its top edge. */
.plan {
  transition: border-color 0.3s ease;
}

.plan--selected {
  padding: var(--space-xl);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #15171c 0%, #0c0c0e 100%) padding-box,
    linear-gradient(180deg, #2997ff 0%, rgba(41, 151, 255, 0.12) 70%) border-box;
  box-shadow: 0 30px 110px -34px rgba(0, 113, 227, 0.7);
}

.plan--selected:hover {
  border-color: transparent;
}

/* FAQ: one panel, not a list of rules across the page. */
.faq {
  padding: 0 var(--space-xl);
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__item summary {
  transition: color 0.2s ease;
}

.faq__item summary svg {
  color: var(--ink-muted-48);
}

.doc section.faq {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.slide__strip,
.slide__shot {
  outline-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
}

.slide__stats dt {
  background: linear-gradient(180deg, #ffffff 30%, #a4a4ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Motion ---------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.js .site-card.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease), --expand 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .feature-grid .reveal:nth-child(2),
.js .plan-grid .reveal:nth-child(2),
.js .slide__pair .reveal:nth-child(2) {
  transition-delay: 0.09s;
}

.js .feature-grid .reveal:nth-child(3) {
  transition-delay: 0.18s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
}

.hero .tile__copy > *,
.slide--hero .slide__copy > * {
  animation: rise 0.9s var(--ease) backwards;
}

.hero .tile__copy > :nth-child(2),
.slide--hero .slide__copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero .tile__copy > :nth-child(3),
.slide--hero .slide__copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero .tile__copy > :nth-child(4) {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .site-card.reveal {
    filter: none;
  }

  .hero .tile__copy > *,
  .slide--hero .slide__copy > * {
    animation: none;
  }
}

/* Sizes ----------------------------------------------------------------- */

@media (min-width: 1069px) {
  .hero-display {
    font-size: 72px;
    line-height: 1.04;
  }

  .display-lg {
    font-size: 48px;
    line-height: 1.08;
  }

  .tile__copy .lead,
  .slide__copy .lead {
    margin-top: var(--space-lg);
  }

  .tile:not(.hero) .tile__copy .lead {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .tile.hero {
    padding-top: 120px;
  }
}

@media (max-width: 640px) {
  :root {
    --rounded-lg: 20px;
  }

  .hero .gallery__viewport::before,
  .hero .gallery__viewport::after {
    filter: blur(60px);
  }

  .plan--selected {
    padding: var(--space-lg);
  }

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

  .feature {
    padding: var(--space-lg) var(--space-md);
  }
}

/* Detail pages ------------------------------------------------------------ */

.pill--static {
  cursor: default;
}

.pill--static:hover {
  border-color: var(--glass-line);
  color: var(--body-muted);
}

.pill svg {
  width: 16px;
  height: 16px;
  color: var(--ink);
}

/* The laptop on a detail page, in the same pool of light as the home gallery. */
.page-render {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0;
}

.page-render img {
  width: 100%;
}

.page-render::before {
  content: "";
  position: absolute;
  inset: 12% 14% 8%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.3);
  filter: blur(110px);
  pointer-events: none;
}

.tag {
  display: inline-block;
  flex: none;
  padding: 3px 9px;
  border-radius: var(--rounded-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--body-muted);
}

.tag--pro {
  background: linear-gradient(180deg, #ffffff, #c4c4ce);
  color: #0b0b0c;
}

/* The lab: real switch names on the left, a drawing that obeys them ------ */

.lab {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-lg);
  max-width: 1240px;
  margin: 56px auto 0;
}

.lab__panel {
  padding: 18px 20px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lab__views {
  display: flex;
  gap: var(--space-xs);
}

.lab__views .chip {
  flex: 1;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.lab__views .chip[aria-pressed="true"] {
  padding: 7px 11px;
}

.lab__label {
  margin: 18px 0 2px;
  color: var(--ink-muted-48);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab__label:first-child {
  margin-top: 2px;
}

.lab__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.24px;
  cursor: pointer;
}

.lab__name {
  flex: 1;
  min-width: 0;
}

.lab__name em {
  display: block;
  color: var(--ink-muted-48);
  font-size: 12.5px;
  font-style: normal;
}

.lab__row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sw {
  position: relative;
  flex: none;
  width: 42px;
  height: 26px;
  border-radius: var(--rounded-pill);
  background: #2c2c2e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.25s ease;
}

.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.28s var(--ease);
}

.lab__row input:checked + .sw {
  background: var(--primary-fill);
  box-shadow: 0 0 18px -2px rgba(41, 151, 255, 0.8);
}

.lab__row input:checked + .sw::after {
  transform: translateX(16px);
}

.lab__row input:focus-visible + .sw {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

.lab[data-view="home"] .lab__row[data-pane="watch"],
.lab[data-view="watch"] .lab__row[data-pane="home"] {
  display: none;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 0 2px;
}

.swatch {
  display: grid;
  justify-items: center;
  padding: 4px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.swatch span {
  display: none;
}

.swatch i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1) 50%, var(--p2) 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.swatch i.swatch__none {
  background: linear-gradient(135deg, transparent 45%, #86868b 45%, #86868b 55%, transparent 55%);
  box-shadow: inset 0 0 0 1.5px #86868b;
}

.swatch:hover i {
  transform: scale(1.12);
}

.swatch.is-on i {
  box-shadow: 0 0 0 2px #0b0b0c, 0 0 0 4px var(--primary);
}

.lab__all {
  width: 100%;
  margin-top: 16px;
  padding: 9px 18px;
  font-size: 15px;
  cursor: pointer;
}

/* The drawing. Sized in px on purpose: it is a picture of a page, not a page. */
.mock {
  --mx-bg: #0f0f0f;
  --mx-text: #f1f1f1;
  --mx-accent: #ff3d3d;
  --mx-line: rgba(255, 255, 255, 0.1);
  --mx-soft: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: var(--rounded-lg);
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
  background: var(--mx-bg);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
  color: var(--mx-text);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
  user-select: none;
}

.mock--x {
  --mx-bg: #000000;
  --mx-accent: #1d9bf0;
}

.mock p,
.mock h4 {
  margin: 0;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--mx-line);
  background: rgba(255, 255, 255, 0.05);
}

.mock__bar .window__lights {
  gap: 5px;
}

.mock__bar .window__lights i {
  width: 8px;
  height: 8px;
}

.mock__url {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  padding: 3px 10px;
  border-radius: var(--rounded-pill);
  background: rgba(255, 255, 255, 0.07);
  color: #98989f;
  font-size: 10px;
  text-align: center;
}

.mock__page {
  position: relative;
  height: 540px;
  overflow: hidden;
  padding: 12px;
}

.mock[data-view="home"] [data-pane="watch"],
.mock[data-view="watch"] [data-pane="home"] {
  display: none;
}

/* A block that leaves: its row closes rather than vanishing. */
.fold {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.35s ease;
}

.fold > * {
  min-height: 0;
  overflow: hidden;
}

.yt-greet,
.f-no-shorts .yt-shorts,
.f-no-chips .yt-chips,
.f-no-feed .yt-feed,
.f-no-rec .yt-rec,
.f-no-chat .yt-chat,
.f-no-merch .yt-merch,
.f-no-comments .yt-comments,
.f-no-reposts .x-repost,
.f-no-ads .x-ad,
.f-no-wtf .x-wtf,
.f-no-media .x-media,
.f-no-premium .x-premium,
.f-no-trends .x-trends {
  grid-template-rows: 0fr;
  opacity: 0;
}

.f-look .yt-greet {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* YouTube, drawn */
.yt-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: var(--rounded-pill);
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s var(--ease);
}

.yt-burger {
  width: 14px;
  height: 10px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  opacity: 0.8;
}

.yt-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.yt-logo b {
  width: 18px;
  height: 13px;
  border-radius: 4px;
  background: var(--mx-accent);
}

.yt-search {
  flex: 1;
  max-width: 46%;
  margin: 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--mx-line);
  border-radius: var(--rounded-pill);
  color: #8a8a8f;
}

.yt-me {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mx-soft);
}

.yt-home {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  transition: grid-template-columns 0.5s var(--ease);
}

.yt-guide {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.yt-guide span {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.yt-guide span.on {
  background: var(--mx-soft);
}

.yt-guide i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.7;
}

.f-no-shorts .yt-shorts-entry,
.f-no-ads .yt-ad {
  display: none;
}

.yt-greet p {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 8px;
  border: 1px solid var(--mx-line);
  border-radius: var(--rounded-pill);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yt-greet h4 {
  padding-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.yt-greet h4 b {
  display: block;
  color: #8fe3b0;
}

.yt-chips > div {
  display: flex;
  gap: 6px;
  padding-bottom: 10px;
}

.yt-chips span {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--mx-soft);
  white-space: nowrap;
}

.yt-chips span.on {
  background: var(--mx-text);
  color: var(--mx-bg);
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 12px;
}

.yt-card {
  display: grid;
  gap: 5px;
}

.yt-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: linear-gradient(135deg, #27466e, #0f1c33);
  transition: border-radius 0.4s ease;
}

.yt-card--2 .yt-thumb { background: linear-gradient(135deg, #7a4630, #2b1410); }
.yt-card--3 .yt-thumb { background: linear-gradient(135deg, #2f6a4a, #102018); }
.yt-card--4 .yt-thumb { background: linear-gradient(135deg, #5b3a78, #1c1026); }
.yt-card--5 .yt-thumb { background: linear-gradient(135deg, #736226, #231d0a); }

.yt-card b {
  width: 86%;
  height: 6px;
  border-radius: 3px;
  background: var(--mx-text);
  opacity: 0.55;
}

.yt-card u {
  width: 52%;
  height: 5px;
  border-radius: 3px;
  background: var(--mx-text);
  opacity: 0.25;
  text-decoration: none;
}

.yt-ad .yt-thumb {
  background: repeating-linear-gradient(45deg, #3b3413, #3b3413 6px, #4a4218 6px, #4a4218 12px);
}

.yt-ad u {
  width: auto;
  height: auto;
  background: none;
  color: #e6c04f;
  font-size: 9px;
  font-weight: 600;
  opacity: 1;
}

.yt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.yt-label i {
  width: 10px;
  height: 12px;
  border-radius: 3px;
  background: var(--mx-accent);
}

.yt-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 12px;
}

.yt-shelf i {
  aspect-ratio: 9 / 11;
  border-radius: 9px;
  background: linear-gradient(180deg, #6a3344, #1d0f14);
}

.yt-shelf i:nth-child(even) {
  background: linear-gradient(180deg, #35506e, #0f1820);
}

.yt-shelf--sq {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.yt-shelf--sq i,
.yt-shelf--sq i:nth-child(even) {
  aspect-ratio: 1;
  background: var(--mx-soft);
}

.yt-empty {
  display: none;
  place-items: center;
  height: 260px;
  color: #8a8a8f;
  font-size: 13px;
}

.f-no-feed .yt-empty {
  display: grid;
}

/* The look: a wallpaper, glass bars, a rail. */
.mock--yt.f-look[data-view="home"] .mock__page {
  background: linear-gradient(rgba(6, 8, 14, 0.5), rgba(6, 8, 14, 0.78)), url("/assets/backdrop.webp") center / cover;
}

.f-look .yt-top,
.f-look .yt-guide {
  border-color: var(--mx-line);
  background: rgba(20, 22, 28, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.f-look .yt-top {
  padding: 6px 10px;
}

.f-look .yt-home {
  grid-template-columns: 34px minmax(0, 1fr);
}

.f-look .yt-guide {
  justify-items: center;
  gap: 4px;
  padding: 6px 0;
}

.f-look .yt-guide span {
  gap: 0;
  padding: 6px;
  font-size: 0;
}

.f-look .yt-thumb {
  border-radius: 15px;
}

/* Watch page */
.yt-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  gap: 12px;
  transition: grid-template-columns 0.5s var(--ease), gap 0.5s var(--ease);
}

.f-no-rec.f-no-chat .yt-watch {
  grid-template-columns: minmax(0, 1fr) 0%;
  gap: 0;
}

.yt-primary {
  width: 100%;
  max-width: 600px;
  justify-self: center;
}

.yt-secondary {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
}

.yt-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #8fc1e3 0%, #a6d687 46%, #3f7a3a 100%);
  transition: box-shadow 0.5s ease;
}

.yt-play {
  position: absolute;
  bottom: 14px;
  left: 12px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #ffffff;
}

.yt-scrub {
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.yt-scrub i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 2px;
  background: var(--mx-accent);
}

.yt-end {
  position: absolute;
  inset: 12% 8% 22%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.yt-end i {
  border-radius: 8px;
  outline: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
}

.f-no-end .yt-end {
  opacity: 0;
  transform: scale(0.95);
}

.yt-title {
  margin: 10px 0 7px !important;
  font-size: 13px;
  font-weight: 700;
}

.yt-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 12px;
}

.yt-channel i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mx-soft);
}

.yt-channel span {
  flex: 1;
  opacity: 0.7;
}

.yt-channel b {
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  background: var(--mx-text);
  color: var(--mx-bg);
  font-weight: 600;
}

.yt-comment {
  display: flex;
  gap: 7px;
  padding-bottom: 8px;
}

.yt-comment i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mx-soft);
}

.yt-comment span {
  flex: 1;
  height: 18px;
  border-radius: 6px;
  background: var(--mx-soft);
}

.yt-chatbox {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--mx-line);
  border-radius: 10px;
}

.yt-chatbox span {
  height: 7px;
  border-radius: 4px;
  background: var(--mx-soft);
}

.yt-chatbox span:nth-child(odd) {
  width: 70%;
}

.yt-recrow {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  gap: 7px;
  padding-bottom: 8px;
}

.yt-recrow i {
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  background: linear-gradient(135deg, #35506e, #0f1820);
}

.yt-recrow:nth-child(even) i {
  background: linear-gradient(135deg, #6a3344, #1d0f14);
}

.yt-recrow span {
  height: 7px;
  margin-top: 3px;
  border-radius: 4px;
  background: var(--mx-soft);
}

.mock--yt.f-room[data-view="watch"] .mock__page {
  background: radial-gradient(120% 90% at 32% 22%, #33602c 0%, #15280f 46%, #070b06 100%);
}

.f-room .yt-player {
  box-shadow: 0 24px 70px -12px rgba(130, 210, 100, 0.55);
}

/* X, drawn */
.x-page {
  display: grid;
  grid-template-columns: var(--c1, 132px) minmax(0, 1fr) var(--c3, 30%);
  padding: 0;
  transition: grid-template-columns 0.55s var(--ease);
}

.f-compact {
  --c1: 52px;
}

.f-no-side {
  --c3: 0%;
}

.f-focus {
  --c1: 0px;
  --c3: 0%;
}

.x-nav {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  padding: 12px 10px;
  border-right: 1px solid var(--mx-line);
  transition: padding 0.55s var(--ease);
}

.f-focus .x-nav {
  padding-right: 0;
  padding-left: 0;
  border-right-color: transparent;
}

.x-logo {
  padding: 0 6px 6px;
  font-size: 18px;
  font-weight: 400;
}

.x-nav span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  font-size: 12px;
  white-space: nowrap;
}

.x-nav span.on {
  font-weight: 700;
}

.x-nav i {
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.x-nav span.on i {
  background: currentColor;
}

.x-nav em {
  overflow: hidden;
  font-style: normal;
  transition: opacity 0.25s ease;
}

.x-nav strong {
  display: grid;
  place-items: center;
  height: 30px;
  margin-top: 8px;
  border-radius: var(--rounded-pill);
  background: var(--mx-accent);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.f-compact .x-nav em {
  width: 0;
  opacity: 0;
}

.f-compact .x-nav strong {
  width: 30px;
}

.x-feed {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--mx-line);
}

.x-col {
  max-width: 330px;
  transition: max-width 0.55s var(--ease);
}

.f-wide .x-col {
  max-width: 520px;
  margin: 0 auto;
}

.x-tabs {
  display: flex;
  border-bottom: 1px solid var(--mx-line);
}

.x-tabs span {
  position: relative;
  flex: 1;
  padding: 10px 0 9px;
  color: #71767b;
  font-weight: 600;
  text-align: center;
}

.x-tabs .x-foryou,
.f-no-foryou .x-following {
  color: var(--mx-text);
}

.x-foryou::after,
.f-no-foryou .x-following::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 38px;
  height: 3px;
  margin-left: -19px;
  border-radius: 2px;
  background: var(--mx-accent);
}

.f-no-foryou .x-foryou {
  display: none;
}

.x-post {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mx-line);
  transition: padding 0.3s ease;
}

.f-dense .x-post {
  padding-top: 6px;
  padding-bottom: 6px;
}

.x-ctx {
  grid-column: 1 / -1;
  padding-left: 34px;
  color: #71767b;
  font-size: 10px;
  font-weight: 600;
}

.x-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6ea5, #1b2f4a);
}

.x-name {
  color: #71767b;
}

.x-name b {
  color: var(--mx-text);
}

.x-adtag {
  float: right;
  padding: 1px 5px;
  border: 1px solid var(--mx-line);
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
}

.x-text {
  padding: 2px 0 6px;
}

.x-media span {
  display: block;
  aspect-ratio: 16 / 8;
  margin-bottom: 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b6cb0, #f6ad55);
}

.x-acts {
  display: flex;
  justify-content: space-between;
  max-width: 260px;
  color: #71767b;
}

.x-acts span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.x-acts i {
  width: 10px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.x-acts u {
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.f-no-counts .x-acts span:not(.x-views) u,
.f-no-views .x-views {
  opacity: 0;
}

.x-box {
  display: grid;
  gap: 6px;
  margin: 0 12px 10px;
  padding: 10px;
  border: 1px solid var(--mx-line);
  border-radius: 14px;
}

.x-box p {
  font-size: 13px;
  font-weight: 800;
}

.x-box small {
  color: #71767b;
  font-size: 10px;
  line-height: 1.35;
}

.x-box b {
  justify-self: start;
  padding: 5px 12px;
  border-radius: var(--rounded-pill);
  background: var(--mx-accent);
  color: #ffffff;
  font-weight: 700;
}

.x-wtf .x-box {
  margin: 10px 12px;
}

.x-wtf span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.x-wtf span i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mx-soft);
}

.x-wtf span u {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: var(--mx-soft);
}

.x-wtf span b {
  padding: 3px 9px;
  background: var(--mx-text);
  color: var(--mx-bg);
}

.x-side {
  min-width: 0;
  overflow: hidden;
  padding-top: 10px;
}

.x-search {
  margin: 0 12px 10px !important;
  padding: 7px 12px;
  border-radius: var(--rounded-pill);
  background: var(--mx-soft);
  color: #71767b;
}

/* Bento: the product, in pictures --------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 1240px;
  margin: 56px auto 0;
}

.bento__tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: #0b0b0c;
}

.bento__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.bento__tile:hover img {
  transform: scale(1.04);
}

.bento__tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 64px 22px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88) 72%);
}

.bento__tile h3,
.mini h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.01em;
}

.bento__tile h3 {
  margin-top: var(--space-xs);
}

.bento__tile p,
.mini p {
  margin-top: 4px;
  color: var(--body-muted);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.24px;
}

.bento__tile--a {
  grid-column: span 4;
  aspect-ratio: 2 / 1.05;
}

.bento__tile--a img {
  object-position: left center;
}

.bento__tile--b {
  grid-column: span 4;
  aspect-ratio: 1498 / 440;
}

.bento__tile--b img {
  object-position: center top;
}

.bento__tile--c {
  grid-column: span 2;
  grid-row: span 2;
}

.bento__tile--c img {
  object-position: center top;
}

.bento__tile--d {
  grid-column: span 3;
  aspect-ratio: 16 / 10;
}

.bento__minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: span 3;
  gap: var(--space-md);
}

.mini {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mini i {
  position: relative;
  display: block;
  height: 46px;
  margin-bottom: var(--space-sm);
}

.mini h3 {
  font-size: 19px;
}

@keyframes mini-fly {
  0%, 12% { transform: translate(0, 14px) scale(0.55); border-radius: 6px; opacity: 0.6; }
  60%, 100% { transform: translate(72px, 0) scale(1.25); border-radius: 9px; opacity: 1; }
}

.mini--motion i::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 44px;
  height: 26px;
  background: linear-gradient(135deg, #2a8dfa, #7c5cff);
  animation: mini-fly 2.6s var(--ease) infinite alternate;
}

@keyframes mini-eq {
  from { height: 18%; }
  to { height: 100%; }
}

.mini--sound i {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.mini--sound b {
  width: 6px;
  border-radius: 3px;
  background: var(--primary);
  animation: mini-eq 0.9s ease-in-out infinite alternate;
}

.mini--sound b:nth-child(2) { animation-delay: -0.35s; animation-duration: 0.7s; }
.mini--sound b:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.mini--sound b:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }

.mini--lamp {
  background: radial-gradient(120% 90% at 28% 0%, rgba(255, 217, 168, 0.3), rgba(255, 217, 168, 0) 62%), var(--glass);
}

.mini--lamp i::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffd9a8;
  box-shadow: 0 0 44px 12px rgba(255, 217, 168, 0.5);
}

@keyframes mini-snow {
  from { transform: translateY(-8px); opacity: 0; }
  15% { opacity: 1; }
  to { transform: translateY(150px); opacity: 0; }
}

.mini--snow i b {
  position: absolute;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  animation: mini-snow 3.4s linear infinite;
}

.mini--snow i b:nth-child(1) { left: 6%; }
.mini--snow i b:nth-child(2) { left: 24%; animation-delay: -1.1s; }
.mini--snow i b:nth-child(3) { left: 43%; animation-delay: -2.3s; }
.mini--snow i b:nth-child(4) { left: 60%; animation-delay: -0.5s; }
.mini--snow i b:nth-child(5) { left: 78%; animation-delay: -1.8s; }
.mini--snow i b:nth-child(6) { left: 92%; animation-delay: -2.9s; }

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

.bento--x .bento__tile {
  aspect-ratio: 16 / 9;
  background: #000000;
}

.bento--x .bento__tile img {
  object-fit: contain;
  object-position: center 32%;
}

.bento--x .bento__tile--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: 48px 7% 0;
  background: radial-gradient(60% 70% at 50% 60%, rgba(41, 151, 255, 0.16), rgba(41, 151, 255, 0) 100%), #050506;
}

.bento--x .bento__tile--wide img {
  position: static;
  height: auto;
}

.bento--x .bento__tile--wide:hover img {
  transform: none;
}

/* The picker's little page ---------------------------------------------- */

.pick {
  max-width: 780px;
  margin: 56px auto 0;
}

.pick__page {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: #0e0e10;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}

.pick [data-pickable] {
  max-height: 160px;
  overflow: hidden;
  border-radius: 12px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: crosshair;
  transition: outline-color 0.15s ease, opacity 0.3s ease, transform 0.35s var(--ease), max-height 0.45s var(--ease), padding 0.45s var(--ease);
}

.pick [data-pickable]:hover {
  outline-color: var(--primary);
}

.pick [data-pickable].is-gone {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.pick__top,
.pick__banner,
.pick__cookie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
}

.pick__top {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.pick__top span {
  color: var(--body-muted);
  font-weight: 400;
}

.pick__banner {
  background: linear-gradient(90deg, #3b2a5c, #5c2a4a);
}

.pick__cookie {
  border: 1px solid var(--hairline);
  background: #1c1c1f;
}

.pick__page b {
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pick__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
  gap: 10px;
}

.pick__article {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.pick__article h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.pick__article i,
.pick__aside i {
  display: block;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
}

.pick__article i:last-child {
  width: 60%;
  margin-bottom: 0;
}

.pick__aside {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pick__aside > div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.pick__aside p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.pick__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: var(--space-md);
  color: var(--body-muted);
}

.pick__foot b {
  color: var(--ink);
}

.pick__foot button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* The sheet: every option, compact --------------------------------------- */

.sheet {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 4px var(--space-xl) var(--space-lg);
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  columns: 2;
  column-gap: var(--space-xxl);
}

.sheet__group {
  padding-top: var(--space-lg);
  break-inside: avoid-column;
}

.sheet__group h3 {
  margin-bottom: var(--space-xs);
}

.sheet dl {
  margin: 0;
}

.sheet dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  break-inside: avoid;
}

.sheet dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.24px;
}

.sheet dd {
  margin: 2px 0 0;
  color: var(--body-muted);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.224px;
}

.sheet__group:nth-of-type(n + 2) {
  break-before: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--glass-line);
  border-radius: var(--rounded-lg);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steps__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: #19191c;
  box-shadow: 0 10px 26px -10px rgba(41, 151, 255, 0.6);
  font-weight: 600;
}

.steps .body {
  margin-top: var(--space-xs);
  color: var(--body-muted);
}

.plan-foot {
  max-width: 760px;
  margin: var(--space-lg) auto 0;
  color: var(--body-muted);
  text-align: center;
}

.plan-foot strong {
  color: var(--ink);
  font-weight: 600;
}

.plan-foot .text-link {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .fold,
  .x-page,
  .yt-home,
  .yt-watch,
  .sw::after,
  .pick [data-pickable],
  .bento__tile img {
    transition: none;
  }

  .mini--motion i::before,
  .mini--sound b,
  .mini--snow i b {
    animation: none;
  }

  .mini--sound b {
    height: 60%;
  }

  .mini--motion i::before {
    transform: translate(40px, 4px);
  }
}

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

  .mock {
    order: -1;
  }

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

  .bento__tile--a,
  .bento__tile--b,
  .bento__tile--c,
  .bento__tile--d,
  .bento__minis {
    grid-column: auto;
    grid-row: auto;
  }

  .bento__tile--c {
    aspect-ratio: 4 / 3;
  }

  .bento--x .bento__tile--wide {
    grid-column: auto;
  }
}

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

  .sheet {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .lab,
  .bento,
  .pick,
  .sheet,
  .steps {
    margin-top: var(--space-xl);
  }

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

  .mock__page {
    height: 440px;
  }

  .x-page {
    grid-template-columns: var(--c1, 52px) minmax(0, 1fr) var(--c3, 0%);
  }

  .x-nav em {
    width: 0;
    opacity: 0;
  }

  .x-nav strong {
    width: 30px;
  }

  .yt-home {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .yt-guide span {
    gap: 0;
    padding: 6px;
    font-size: 0;
  }

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

  .yt-shelf i:nth-child(n + 5) {
    display: none;
  }

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

  .page-render {
    margin-top: var(--space-xxl);
  }

  .page-render::before {
    filter: blur(60px);
  }
}
