/* brag for me — the brag launch site's world, plus the order form and the order page */

:root {
  --hue: 35;

  --hero-bg: oklch(64% 0.22 var(--hue));
  --hero-ink: oklch(16% 0.06 var(--hue));
  --hero-ink-soft: oklch(21% 0.06 var(--hue));
  --hero-tint: oklch(96% 0.02 var(--hue));

  --dark-bg: oklch(14% 0.03 var(--hue));
  --dark-bg-elev: oklch(18% 0.04 var(--hue));
  --dark-ink: oklch(96% 0.02 var(--hue));
  --dark-ink-soft: oklch(72% 0.04 var(--hue));
  --dark-rule: oklch(26% 0.03 var(--hue));
  --dark-accent: oklch(72% 0.22 var(--hue));

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max-line: 64ch;
  --max-page: 1480px;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light dark; }
/* In-page links (how it works, skip link) glide to their section instead of jumping. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
  background: var(--hero-bg);
  color: var(--hero-ink);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 12px;
  background: var(--hero-ink);
  color: var(--hero-tint);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* === Hero === */
.hero {
  min-height: 100svh;
  background: var(--hero-bg);
  color: var(--hero-ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 40px);
  gap: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.005em;
  z-index: 2;
}
.topbar .mark {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.topbar nav { display: flex; gap: 22px; }
.topbar nav a {
  color: var(--hero-ink);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 180ms var(--ease-out);
}
.topbar nav a:hover,
.topbar nav a:focus-visible { opacity: 1; }
.topbar nav a:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 4px; border-radius: 3px; }

.hero-main {
  align-self: center;
  max-width: var(--max-page);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 320px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 48px);
  }
}
.hero-body { min-width: 0; }
.hero-headline {
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin: 0;
  text-transform: lowercase;
}
.hero-headline .emph {
  font-style: italic;
  background: var(--hero-ink);
  color: var(--hero-bg);
  padding: 0 0.06em;
}
.hero-sub {
  margin: clamp(28px, 3vw, 44px) 0 0;
  max-width: 38ch;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--hero-ink-soft);
}
.hero-sub strong { color: var(--hero-ink); font-weight: 600; }

.install {
  font-family: var(--mono);
  background: var(--hero-ink);
  color: var(--hero-tint);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.7;
  display: inline-grid;
  gap: 4px;
  margin: 0;
  position: relative;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
/* The <code> scrolls, not the <pre> — so the copy button stays glued to the frame. */
.install code {
  display: block;
  min-width: 0;
  overflow-x: auto;
}
.install .prompt { color: oklch(72% 0.18 var(--hue)); }
.install .copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: oklch(28% 0.06 var(--hue));
  color: var(--hero-tint);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 180ms var(--ease-out), background 180ms var(--ease-out);
}
.install .copy:hover,
.install .copy:focus-visible { opacity: 1; background: oklch(38% 0.08 var(--hue)); outline: 2px solid var(--hero-tint); outline-offset: 2px; }
.install .copy[data-state="copied"] { background: oklch(58% 0.18 145); color: oklch(15% 0.05 145); }

.install-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
  max-width: 100%;
}
.install-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-ink-soft);
  margin-top: 2px;
}
.install-stack .install-label:first-child { margin-top: 0; }

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Hero video slot — the brag-about-brag video (made by /brag itself) */
.hero-video {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--hero-ink);
  color: var(--hero-tint);
  transform: rotate(2.5deg);
  box-shadow: 0 30px 80px -20px oklch(20% 0.08 var(--hue) / 0.45);
  overflow: hidden;
  justify-self: end;
}
.hero-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video controls, lower-right of the hero tile */
.hero-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-control {
  display: inline-flex;
  align-items: center;
  background: oklch(15% 0.05 var(--hue) / 0.78);
  backdrop-filter: blur(8px);
  color: var(--hero-tint);
  border: 1px solid oklch(96% 0.02 var(--hue) / 0.18);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}
.hero-mute {
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
}
.hero-playback {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}
.hero-control:hover,
.hero-control:focus-visible {
  background: oklch(20% 0.06 var(--hue) / 0.92);
  transform: translateY(-2px);
  outline: none;
}
.hero-control:focus-visible { box-shadow: 0 0 0 3px var(--hero-tint); }
.hero-control svg { width: 16px; height: 16px; }
.hero-playback .icon-play,
.hero-mute .icon-sound { display: none; }
.hero-playback[data-mode="play"] .icon-play { display: inline-block; }
.hero-playback[data-mode="play"] .icon-pause { display: none; }
.hero-mute[aria-pressed="false"] .icon-muted { display: none; }
.hero-mute[aria-pressed="false"] .icon-sound { display: inline-block; }
.hero-mute[aria-pressed="false"] .hero-mute-label::after { content: attr(data-on); }
.hero-mute[aria-pressed="false"] .hero-mute-label { font-size: 0; line-height: 0; }
.hero-mute[aria-pressed="false"] .hero-mute-label::after {
  content: attr(data-on);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
}
.hero-video::after {
  /* subtle scanline overlay on top of the video for site-cohesion with the placeholder treatment */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      oklch(100% 0 0 / 0.04) 3px,
      oklch(100% 0 0 / 0.04) 4px
    );
  pointer-events: none;
  z-index: 2;
}
.hero-video-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}
.hero-video-top,
.hero-video-bot {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(72% 0.04 var(--hue));
}
.hero-video-top .rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hero-bg);
}
.hero-video-top .rec::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--hero-bg);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out;
}
.hero-video-mid {
  align-self: center;
  text-align: center;
  display: grid;
  gap: 10px;
}
.hero-video-tag {
  font-family: var(--sans);
  text-transform: lowercase;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--hero-tint);
  margin: 0;
  font-style: italic;
}
.hero-video-state {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(72% 0.04 var(--hue));
  margin: 0;
}
.hero-video-state .dots::after {
  content: "...";
  display: inline-block;
  animation: ellipsis 1.6s infinite steps(4, end);
  width: 1em;
  letter-spacing: 0;
  overflow: hidden;
  vertical-align: bottom;
}
@media (max-width: 900px) {
  .hero-video {
    width: clamp(180px, 48vw, 240px);
    justify-self: center;
    transform: none;
  }
}

/* used by the hero "rendering" dots */
@keyframes ellipsis {
  0% { width: 0; }
  100% { width: 1em; }
}

/* === Outro === */
.outro {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: clamp(80px, 12vw, 180px) clamp(20px, 3vw, 40px) clamp(40px, 5vw, 60px);
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
.outro-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
.outro-headline {
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin: 0;
  text-transform: lowercase;
  max-width: 12ch;
}
.outro-headline em {
  font-style: italic;
  background: var(--hero-ink);
  color: var(--hero-bg);
  padding: 0 0.06em;
}
.outro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.outro-meta {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 32ch;
}
.outro-meta a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--hero-ink);
  transition: text-decoration-color 180ms var(--ease-out);
}
.outro-meta a:hover,
.outro-meta a:focus-visible {
  text-decoration-color: var(--hero-bg);
  outline: 2px solid var(--hero-ink);
  outline-offset: 4px;
  border-radius: 2px;
}
.outro-actions { display: grid; gap: 14px; justify-items: end; }

.colophon {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--hero-ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid oklch(28% 0.08 var(--hue) / 0.4);
  padding-top: 20px;
}

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .outro-grid { grid-template-columns: 1fr; }
  .outro-actions { justify-items: start; }
}

/* === Browser surfaces === */
::selection { background: var(--hero-ink); color: var(--hero-bg); }
html { scrollbar-color: oklch(40% 0.1 var(--hue)) transparent; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* === The brag form: the /brag prompt, with the site as its argument === */
.brag-form {
  margin: clamp(32px, 3.4vw, 48px) 0 0;
  max-width: 880px;
  display: grid;
  gap: 12px;
}
.brag-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "field check" "shape go" "tag tag";
  align-items: center;
  gap: 6px 10px;
  background: var(--hero-ink);
  color: var(--hero-tint);
  padding: 10px 10px 10px clamp(16px, 1.6vw, 24px);
  border-radius: var(--radius-md);
  transform: rotate(-1deg);
  box-shadow: 0 18px 40px -22px oklch(20% 0.08 var(--hue) / 0.7);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.brag-bar:focus-within {
  transform: rotate(0deg);
  box-shadow: 0 26px 60px -24px oklch(20% 0.08 var(--hue) / 0.8);
}
.brag-field {
  grid-area: field;
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(17px, 1.75vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  cursor: text;
}
.brag-lead { white-space: nowrap; color: oklch(84% 0.04 var(--hue)); }
.brag-lead .prompt { color: oklch(72% 0.18 var(--hue)); margin-right: 0.3em; }
.brag-input {
  flex: 1 1 auto;
  min-width: 6ch;
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  color: var(--hero-tint);
  caret-color: var(--hero-bg);
  background: transparent;
  border: 0;
  padding: 0.5em 0;
  outline: none;
  border-bottom: 2px solid oklch(40% 0.07 var(--hue));
  border-radius: 0;
  transition: border-color 180ms var(--ease-out);
}
.brag-input::placeholder { color: oklch(66% 0.06 var(--hue)); opacity: 1; }
.brag-input:focus { border-bottom-color: var(--hero-bg); }
.brag-input[aria-invalid="true"] { border-bottom-color: oklch(70% 0.19 25); }
/* An empty field blinks a block caret, terminal-style, so it reads as the place to type. */
.brag-input:placeholder-shown:not(:focus) {
  background: linear-gradient(var(--hero-bg), var(--hero-bg)) no-repeat 0 50% / 0.55em 1.05em;
  text-indent: 0.85em;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { background-size: 0 0; } }

.brag-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: calc(var(--radius-md) - 4px);
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 0 14px 0 20px;
  min-height: clamp(52px, 4.4vw, 64px);
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}
.brag-go:hover { background: oklch(70% 0.2 var(--hue)); transform: translateY(-1px); }
.brag-go:active { transform: translateY(1px); }
.brag-go:focus-visible { outline: 3px solid var(--hero-tint); outline-offset: 3px; }
.brag-go:disabled { cursor: default; transform: none; background: var(--hero-bg); }
.brag-go:disabled:not([aria-busy="true"]) { opacity: 0.45; }
.brag-go:disabled svg { display: none; }
.brag-go-price {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 700;
  background: var(--hero-ink);
  color: var(--hero-tint);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: -0.01em;
}
.brag-go svg { width: 20px; height: 20px; flex: 0 0 20px; transition: transform 220ms var(--ease-out); }
.brag-go:hover svg { transform: translateX(3px); }
.brag-go[aria-busy="true"] { cursor: progress; }
.brag-go[aria-busy="true"] svg { animation: nudge 900ms var(--ease-out) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.brag-fine {
  margin: 6px 0 0;
  padding-inline-start: 2px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--hero-ink-soft);
}
.brag-fine a { color: inherit; text-underline-offset: 3px; }
.brag-error {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  background: var(--hero-ink);
  color: var(--hero-tint);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
}
.brag-error svg { width: 16px; height: 16px; flex: 0 0 16px; color: oklch(72% 0.19 25); }
.brag-error[hidden] { display: none; }
/* The address check, just above the button: what we found at the address, or why not. */
.brag-check {
  grid-area: check;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  color: oklch(84% 0.04 var(--hue));
}
.brag-check[hidden] { display: none; }
/* Beside the address, the line takes the button's width and never widens that column. */
.brag-check { width: 0; min-width: 100%; align-self: end; }
.brag-check svg { width: 14px; height: 14px; flex: 0 0 14px; }
.brag-check strong { color: var(--hero-tint); font-weight: 700; white-space: nowrap; }
.brag-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brag-check[data-state="found"] svg { color: oklch(78% 0.17 145); }
.brag-check[data-state="missing"] { color: var(--hero-tint); }
.brag-check[data-state="missing"] svg { color: oklch(72% 0.19 25); }
.brag-check[data-state="missing"] span { white-space: normal; }
.brag-check-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--hero-bg); animation: pulse 1.1s infinite ease-in-out; }
/* The video's shape: the prompt's next argument, a --format flag under the address.
   The picked shape lifts onto a chip with an orange frame; the rest stay placeholder-quiet. */
.brag-shape {
  grid-area: shape;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: -0.01em;
}
.brag-shape-label { float: left; padding: 0; margin-right: 0.6em; color: oklch(72% 0.18 var(--hue)); }
.shape {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: oklch(66% 0.06 var(--hue));
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.shape input { position: absolute; opacity: 0; pointer-events: none; }
.shape:hover { color: var(--hero-tint); }
.shape:has(input:checked) { background: oklch(27% 0.07 var(--hue)); color: var(--hero-tint); }
.shape:has(input:checked) .shape-box { border-color: var(--hero-bg); }
.shape:has(input:focus-visible) { outline: 2px solid var(--hero-bg); outline-offset: 1px; }
.shape-ratio { font-weight: 700; }
.shape-word { font-weight: 400; }
.shape-box { display: block; border: 2px solid currentColor; border-radius: 2px; transition: border-color 180ms var(--ease-out); }
.shape-landscape .shape-box { width: 18px; height: 11px; }
.shape-vertical .shape-box { width: 10px; height: 16px; }
.shape-square .shape-box { width: 13px; height: 13px; }
@container (max-width: 460px) { .shape-word { display: none; } }

/* The launch price: a line straight under the button, its right edge on the price pill's,
   so "$19" and "$29 later" read as one. */
.launch-tag {
  grid-area: tag;
  justify-self: end;
  margin: 2px 0 0;
  padding-inline-end: 46px;
  font-family: var(--mono);
  font-size: clamp(14px, 1.05vw, 16px);
  letter-spacing: -0.01em;
  color: var(--hero-tint);
  white-space: nowrap;
}
.launch-tag strong { color: oklch(72% 0.18 var(--hue)); font-weight: 700; }

/* The hero's footer line under the form */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--hero-ink-soft);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 14px; height: 14px; color: var(--hero-ink); }

/* === How it works: a paper band, like /brag-slim's === */
.how {
  background: var(--hero-tint);
  color: var(--hero-ink);
  padding: clamp(72px, 10vw, 150px) clamp(20px, 3vw, 40px);
}
.how ::selection { background: var(--hero-bg); color: var(--hero-ink); }
.how-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.how-title {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: lowercase;
}
.how-title em {
  font-style: italic;
  background: var(--hero-ink);
  color: var(--hero-bg);
  padding: 0 0.06em;
}
.steps-lead {
  margin: 0 0 clamp(22px, 2.4vw, 32px);
  max-width: 40ch;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--hero-ink);
}
.steps-lead strong { font-weight: 800; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr);
  gap: 0 clamp(16px, 2vw, 28px);
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-top: 1px solid oklch(80% 0.05 var(--hue));
}
.step:last-child { border-bottom: 1px solid oklch(80% 0.05 var(--hue)); }
.step::before {
  content: counter(step);
  grid-row: span 2;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--hero-bg);
  -webkit-text-stroke: 0;
  font-variant-numeric: tabular-nums;
}
.step-name {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: lowercase;
}
.step-text {
  margin: 10px 0 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--hero-ink-soft);
}
.step-text code, .diy code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--hero-ink);
  background: oklch(90% 0.04 var(--hue));
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.diy {
  margin-top: clamp(40px, 4vw, 56px);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.diy p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--hero-ink-soft); }
.diy a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.diy .install { padding-right: 76px; }
.diy .install code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* The outro sends people back up to the hero's form */
/* It's made of the same dark, tilted stuff as the hero's form bar, so it reads as "that, up there". */
.outro-cta { display: grid; justify-items: end; gap: 16px; }
.outro-go {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 24px);
  background: var(--hero-ink);
  color: var(--hero-tint);
  padding: 12px 12px 12px clamp(20px, 2vw, 28px);
  border-radius: var(--radius-md);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
  transform: rotate(-1deg);
  box-shadow: 0 18px 40px -22px oklch(20% 0.08 var(--hue) / 0.7);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.outro-go:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 24px 44px -20px oklch(20% 0.08 var(--hue) / 0.8); }
.outro-go:active { transform: rotate(0deg) translateY(1px); }
.outro-go:focus-visible { outline: 3px solid var(--hero-ink); outline-offset: 4px; }
.outro-go-chip {
  display: grid;
  place-items: center;
  width: clamp(44px, 3.6vw, 52px);
  aspect-ratio: 1;
  border-radius: calc(var(--radius-md) - 4px);
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
}
.outro-go-chip svg { width: 22px; height: 22px; transition: transform 320ms var(--ease-out); }
.outro-go:hover .outro-go-chip svg { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .outro-go, .outro-go:hover, .outro-go:active { transform: none; }
}
@media (max-width: 720px) {
  .outro-cta { justify-items: stretch; }
  .outro-go { justify-content: space-between; transform: none; }
}
.outro-lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--hero-ink-soft);
}

/* === The order page: /b/<id> === */
.hero.order-page { min-height: 100svh; gap: clamp(20px, 3vh, 40px); }
.order {
  max-width: var(--max-page);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: clamp(20px, 3.5vh, 44px);
  align-content: center;
  /* The tallest the video frame may be and still fit under the headline in one window. */
  --screen-h: max(240px, 72svh - 140px);
}
.order-headline {
  margin: 0;
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: lowercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.order-headline .emph {
  font-style: italic;
  background: var(--hero-ink);
  color: var(--hero-bg);
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.screen {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--hero-ink);
  color: var(--hero-tint);
  overflow: hidden;
  width: min(100%, var(--screen-h) * 16 / 9);
  justify-self: center;
  container-type: inline-size;
  transform: rotate(-1.5deg);
  box-shadow: 0 30px 80px -24px oklch(20% 0.08 var(--hue) / 0.5);
}
.screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--hero-ink);
}
.screen-wait {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 1.6vw, 22px);
  z-index: 3;
  background: var(--hero-ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease-out);
}
.screen-wait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, oklch(100% 0 0 / 0.04) 3px, oklch(100% 0 0 / 0.04) 4px);
  pointer-events: none;
}
/* The reveal: the waiting card wipes up off the finished video. */
/* Tall and square videos keep the frame under the fold's height, centred in its column. */
.order[data-format="vertical"] .screen { aspect-ratio: 9 / 16; width: min(100%, var(--screen-h) * 9 / 16); }
.order[data-format="square"] .screen { aspect-ratio: 1 / 1; width: min(100%, var(--screen-h)); }
.order[data-state="done"] .screen-wait { clip-path: inset(0 0 100% 0); pointer-events: none; }
.screen-wait .hero-video-tag { font-size: clamp(15px, 5cqi, 40px); overflow-wrap: anywhere; }
.screen-wait .hero-video-top { gap: 12px; }
.screen-wait #screen-host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-wait .hero-video-top .rec { color: var(--hero-bg); }
.screen-wait .hero-video-state { font-variant-numeric: tabular-nums; }
.order:not([data-state="running"]):not([data-state="queued"]) .rec::before { animation: none; }

.order-side { display: grid; gap: 22px; align-content: start; min-width: 0; }
.order-note {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--hero-ink-soft);
}
.order-help {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--hero-ink-soft);
  overflow-wrap: anywhere;
}
.order-help a { color: var(--hero-ink); font-weight: 700; text-underline-offset: 3px; }
.order-note strong { color: var(--hero-ink); font-weight: 650; }
.order-note a { text-underline-offset: 3px; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; }
.stage {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 14px 0;
  border-top: 1px solid oklch(28% 0.08 var(--hue) / 0.35);
  opacity: 0.55;
  transition: opacity 400ms var(--ease-out);
}
.stage:last-child { border-bottom: 1px solid oklch(28% 0.08 var(--hue) / 0.35); }
.stage[data-state="active"], .stage[data-state="done"] { opacity: 1; }
.stage-mark {
  grid-row: span 2;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--hero-ink);
  display: grid;
  place-items: center;
}
.stage-mark svg { width: 13px; height: 13px; display: none; }
.stage[data-state="done"] .stage-mark { background: var(--hero-ink); color: var(--hero-bg); }
.stage[data-state="done"] .stage-mark svg { display: block; }
.stage[data-state="active"] .stage-mark::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hero-ink);
  animation: pulse 1.4s infinite ease-in-out;
}
.stage-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-transform: lowercase; }
.stage-detail {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--hero-ink-soft);
}
.elapsed {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--hero-ink-soft);
  margin: 0;
}
.elapsed strong { color: var(--hero-ink); font-weight: 700; }

.order-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--hero-ink);
  background: var(--hero-ink);
  color: var(--hero-tint);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), color 220ms var(--ease-out);
}
.button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--hero-ink); outline-offset: 3px; }
.button.is-quiet { background: transparent; color: var(--hero-ink); }
.button.is-quiet:hover { background: oklch(16% 0.06 var(--hue) / 0.08); }
.order .install-stack { width: 100%; }
.order .install { width: 100%; padding-right: 76px; }
.order .install code { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
/* The private link never runs under its copy button: where the two don't fit on a line
   (the button's word is longer in some languages), the link goes on the line below. */
.order .install:has(#page-link) { display: inline-flex; flex-flow: row-reverse wrap; direction: ltr; padding-right: 22px; }
.order .install:has(#page-link) .copy { position: static; display: block; margin: -8px -12px 0 12px; }
.order .install:has(#page-link) code { flex: 1 1 auto; }
.share-text { font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .how-inner { grid-template-columns: minmax(0, 1fr); }
  .order-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .screen { transform: rotate(-1deg); }
  /* Stacked, the frame leaves room for the progress below it to peek into the first screen. */
  .order { --screen-h: max(260px, 58svh); }
}
/* Short laptop windows: tighten the progress column so it fits beside the frame. */
@media (min-width: 901px) and (max-height: 820px) {
  .order-side { gap: 16px; }
  .stage { padding: 10px 0; }
  .stage-name { font-size: 18px; }
}
@media (max-width: 640px) {
  .brag-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "field" "shape" "check" "go" "tag"; transform: none; padding: 14px; }
  .brag-bar:focus-within { transform: none; }
  .brag-field { flex-direction: column; align-items: stretch; gap: 2px; font-size: 18px; }
  .brag-go { justify-content: space-between; }
  .order-actions .button { flex: 1 1 auto; justify-content: center; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.outro .outro-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 720px) { .outro .outro-grid { grid-template-columns: minmax(0, 1fr); } }

/* Knockout words sit on their own line box, so the ink block never covers the line above. */
.hero-headline .emph,
.how-title em,
.outro-headline em,
.order-headline .emph {
  display: inline-block;
  line-height: 0.9;
  margin-top: 0.1em;
  padding: 0.02em 0.08em 0.08em 0.04em;
}
/* The order headline shrinks to hold the site's name on one line. */
.order-headline {
  font-size: min(clamp(40px, 9vw, 150px), 10svh, calc((min(100vw, 1480px) - 2 * clamp(20px, 3vw, 40px)) / (var(--chars, 10) * 0.6)));
}

/* === The mark's tag: this is /brag, done for you === */
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark-tag {
  background: var(--hero-ink);
  color: var(--hero-bg);
  border-radius: 999px;
  padding: 4px 10px 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

/* === Hero: the headline, then the pitch and the form === */
.hero { min-height: auto; }
.hero-main {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
  padding: clamp(24px, 5vw, 72px) 0 clamp(8px, 2vw, 24px);
}
.hero-copy { min-width: 0; }
.hero-main .hero-headline { font-size: clamp(56px, 6.4vw, 112px); margin-bottom: clamp(18px, 2vw, 28px); }
.hero-main .hero-sub { margin-top: 0; margin-bottom: clamp(18px, 2vw, 26px); max-width: 32ch; font-size: clamp(20px, 1.7vw, 26px); }
.hero-main .brag-field { font-size: clamp(16px, 1.2vw, 20px); }
.hero-facts { margin-top: 10px; padding-inline-start: 2px; }
@media (max-width: 900px) {
  .hero-main { grid-template-columns: minmax(0, 1fr); }
}

/* === Examples, beside the form: the whole site scrolling on the left, its brag on the right === */
.pair {
  min-width: 0;
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 1.8vw, 26px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  transform: rotate(-1deg);
}
.pair-row {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
}

/* The site, top to bottom: it scrolls down over the length of its brag, from the top each time. */
.pair-site {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--hero-tint);
  container-type: size;
  text-decoration: none;
}
.pair-site img {
  width: 100%;
  height: auto;
  max-width: none;
  animation: scroll-site var(--scroll-duration, 20s) ease-in-out both;
}
.pair-site:hover img { animation-play-state: paused; }
@keyframes scroll-site {
  0%, 10% { transform: translateY(0); }
  90%, 100% { transform: translateY(calc(-100% + 100cqh)); }
}
.pair-site:focus-visible { outline: 3px solid var(--dark-accent); outline-offset: 3px; }
.pair-visit {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.pair-site:hover .pair-visit, .pair-site:focus-visible .pair-visit { opacity: 1; }

.pair-arrow { width: clamp(24px, 2.6vw, 40px); height: auto; color: var(--hero-bg); }
.pair[data-phase="typing"] .pair-arrow { animation: nudge 700ms var(--ease-out) infinite; }

.show-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--hero-ink);
  overflow: hidden;
}
.show-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The controls keep to the top corner, clear of the captions every brag puts at the bottom:
   two round icons, quiet until the pointer comes near, always there on touch. */
.show-screen .hero-controls { top: 10px; right: 10px; bottom: auto; gap: 6px; transition: opacity 200ms var(--ease-out); }
.show-screen .hero-control { width: 36px; height: 36px; flex: 0 0 36px; padding: 0; justify-content: center; border-radius: 50%; }
.show-screen .hero-mute-label { display: none; }
@media (hover: hover) {
  .show-screen .hero-controls { opacity: 0.55; }
  .show-screen:hover .hero-controls, .show-screen .hero-controls:focus-within { opacity: 1; }
}
/* Phones: a 30px icon on a small video, with the 44px tap area drawn around it. */
@media (pointer: coarse) {
  .show-screen .hero-controls { top: 7px; right: 7px; gap: 14px; }
  .show-screen .hero-control { position: relative; width: 30px; height: 30px; flex-basis: 30px; }
  .show-screen .hero-control::before { content: ""; position: absolute; inset: -7px; }
  .show-screen .hero-control svg { width: 14px; height: 14px; }
}
.show-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: oklch(96% 0.02 var(--hue) / 0.15);
  z-index: 3;
}
.show-progress i { display: block; height: 100%; background: var(--hero-bg); transform-origin: 0 50%; transform: scaleX(0); }

.pair-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pair-prompt {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(13px, 1vw, 15px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pair-prompt .prompt { color: var(--hero-bg); margin-right: 0.5em; font-weight: 700; }
.pair-typed { font-weight: 700; }

/* The count sits over the arrows: says these are examples, and that there are more. */
.pair-nav { display: grid; grid-template-columns: auto auto; gap: 6px 8px; flex: 0 0 auto; }
.pair-count {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--dark-ink-soft);
}
.pair-arrow-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dark-rule);
  background: transparent;
  color: var(--dark-ink);
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.pair-arrow-btn svg { width: 20px; height: 20px; }
.pair-arrow-btn:hover { background: var(--dark-ink); color: var(--dark-bg); border-color: var(--dark-ink); transform: translateY(-2px); }
.pair-arrow-btn:focus-visible { outline: 2px solid var(--dark-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pair-site img { animation: none; }
}
@media (max-width: 900px) {
  .pair { transform: none; }
}
/* Phones: just the video, full width, in the browser's own player (main.js turns on its controls). */
@media (max-width: 560px) {
  .pair-row { grid-template-columns: minmax(0, 1fr); }
  .pair-site, .pair-arrow, .show-screen .hero-controls, .show-progress { display: none; }
  .show-video { object-fit: contain; }
  .pair-prompt { font-size: 12px; white-space: normal; line-height: 1.5; }
  .pair-typed { white-space: nowrap; }
  .pair-lets { display: none; }
  /* The examples are their own black band between the hero and how it works:
     edge to edge, square, down to the hero's bottom (its 20px padding plus hero-main's 8px). */
  .pair { margin: 16px -20px -28px; border-radius: 0; padding: 28px 20px 32px; }
  /* The count moves over the prompt, so the head is no taller than the arrows. */
  .pair-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 6px; align-items: center; }
  .pair-nav { display: contents; }
  .pair-count { grid-area: 1 / 1; text-align: start; }
  .pair-prompt { grid-area: 2 / 1; }
  .pair-nav .pair-arrow-btn { grid-row: 1 / 3; }
  /* A 34px circle on a 335px panel, with the 44px tap area drawn around it. */
  .pair-arrow-btn { position: relative; width: 34px; height: 34px; }
  .pair-arrow-btn::before { content: ""; position: absolute; inset: -5px; }
  .pair-arrow-btn svg { width: 16px; height: 16px; }
}

/* === Credibility, focus and touch (landing critique pass) === */
.star { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.12em; }
.topbar nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.topbar nav a { opacity: 1; text-underline-offset: 4px; }
.topbar nav a:hover { text-decoration: underline; }
.hero-cred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(16px, 1.6vw, 22px);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--hero-ink);
  color: var(--hero-tint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transform: rotate(-1.5deg);
  transition: transform 220ms var(--ease-out);
}
.hero-cred .star { color: oklch(84% 0.16 85); }
.hero-cred strong { font-weight: 700; }
.hero-cred:hover { transform: rotate(0deg) translateY(-1px); }
.hero-main .hero-sub { line-height: 1.3; }

/* Tighter hero so the examples band starts inside the first screen. */
.hero:not(.order-page) { grid-template-rows: auto auto; }
.hero-main { padding-top: clamp(8px, 2vw, 28px); padding-bottom: clamp(8px, 1.5vw, 20px); }
.hero { gap: clamp(28px, 4vw, 56px); }

/* Visible focus everywhere on the orange and dark grounds. */
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skip-link:focus-visible { outline: 2px solid var(--hero-tint); }
.brag-bar:focus-within { outline: 3px solid var(--hero-ink); outline-offset: 4px; }

/* 44px touch targets. */
.colophon a { display: inline-block; padding: 12px 2px; margin: -12px 0; }

/* The DIY route is an aside, not a step. */
.diy { margin-top: clamp(24px, 2.6vw, 32px); }
.diy p { font-size: 14px; }
.diy .install { font-size: 13px; }
.diy .install code { overflow-wrap: break-word; }

.nowrap { white-space: nowrap; }

/* === Phones: tighter, one idea per screen === */
@media (max-width: 640px) {
  .hero .topbar { flex-direction: row; align-items: center; }
  .topbar nav { gap: 14px; }
  .hero { gap: 20px; }

  .how { padding: 56px 20px; }
  .how-inner { gap: 28px; }
  .how-title { font-size: 44px; }
  .steps-lead { font-size: 18px; margin-bottom: 18px; }
  /* The number sits beside the title; the text gets the full width. */
  .step { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 10px; padding: 18px 0; }
  .step::before { grid-row: auto; font-size: 26px; }
  .step-name { font-size: 22px; }
  .step-text { grid-column: 1 / -1; font-size: 16px; margin-top: 8px; }
  .hero-facts { gap: 8px 14px; }
  .hero-facts li { gap: 6px; }

  .outro { padding-top: 64px; }
  .outro-inner { gap: 28px; }
}

/* === Buzz: creators posting about /brag === */
.buzz {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: clamp(56px, 7vw, 110px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.buzz-head {
  max-width: var(--max-page);
  margin: 0 auto clamp(28px, 3vw, 44px);
  padding: 0 clamp(20px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
}
.buzz-title {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: lowercase;
}
.buzz-title em { font-style: italic; background: var(--hero-ink); color: var(--hero-bg); display: inline-block; line-height: 0.9; padding: 0.02em 0.08em 0.08em 0.04em; margin-top: 0.1em; }

.buzz-row {
  display: flex;
  gap: clamp(14px, 1.4vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: clamp(20px, 3vw, 40px);
  padding: 12px clamp(20px, 3vw, 40px) 20px;
  scrollbar-width: none;
}
.buzz-row::-webkit-scrollbar { display: none; }
.buzz-card {
  flex: 0 0 clamp(190px, 16vw, 250px);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--hero-ink);
  text-decoration: none;
}
.buzz-card:nth-child(odd) .buzz-media { transform: rotate(-1.5deg); }
.buzz-card:nth-child(even) .buzz-media { transform: rotate(1.5deg); }
.buzz-media {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--hero-ink);
  box-shadow: 8px 8px 0 0 var(--hero-ink);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.buzz-media img { width: 100%; height: 100%; object-fit: cover; }
.buzz-play {
  position: absolute;
  left: 12px; bottom: 12px;
  width: 34px; height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: oklch(15% 0.05 var(--hue) / 0.8);
  color: var(--hero-tint);
}
.buzz-card:hover .buzz-media, .buzz-card:focus-visible .buzz-media { transform: rotate(0deg) translateY(-4px); box-shadow: 12px 12px 0 0 var(--hero-ink); }
.buzz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
}
.buzz-user { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Buzz, compact: one line of title, all eight reels in a row on desktop. */
.buzz { padding: clamp(40px, 4.5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.buzz-head { margin-bottom: clamp(16px, 1.8vw, 24px); }
.buzz-title { font-size: clamp(30px, 3.2vw, 48px); line-height: 1; }
.buzz-row { gap: clamp(10px, 1vw, 16px); padding-top: 8px; padding-bottom: 12px; }
.buzz-card { flex: 1 0 clamp(128px, 11vw, 168px); gap: 6px; }
.buzz-media { border-radius: var(--radius-sm); box-shadow: 5px 5px 0 0 var(--hero-ink); }
.buzz-card:hover .buzz-media, .buzz-card:focus-visible .buzz-media { box-shadow: 8px 8px 0 0 var(--hero-ink); }
.buzz-play { width: 26px; height: 26px; padding: 7px; left: 8px; bottom: 8px; }
.buzz-meta { font-size: 11px; margin-top: 4px; }
@media (max-width: 640px) {
  .buzz-card { flex: 0 0 36vw; }
  .buzz-title { font-size: 30px; }
}
.buzz-user { min-width: 0; }

/* Buzz as a straight grid: equal cards, no tilt, no scrolling. */
.buzz { overflow: visible; }
.buzz-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  max-width: var(--max-page);
  margin: 0 auto;
  overflow: visible;
  padding: 0 clamp(20px, 3vw, 40px);
}
.buzz-card { flex: none; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.buzz-meta { min-width: 0; }
.buzz-card:nth-child(odd) .buzz-media,
.buzz-card:nth-child(even) .buzz-media { transform: none; }
.buzz-card:hover .buzz-media, .buzz-card:focus-visible .buzz-media { transform: translateY(-3px); }
@media (max-width: 1000px) { .buzz-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 640px) {
  .buzz-row { gap: 12px 10px; }
  .buzz-card { flex: none; }
  .buzz-meta { font-size: 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .buzz-user { max-width: 100%; }
  .buzz-play { width: 22px; height: 22px; padding: 6px; left: 6px; bottom: 6px; }
}

/* Buzz as one row with arrows. */
.buzz { overflow: hidden; }
.buzz-row {
  display: flex;
  gap: clamp(10px, 1vw, 16px);
  max-width: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(20px, 3vw, 40px);
  padding: 4px clamp(20px, 3vw, 40px) 12px;
  scrollbar-width: none;
}
.buzz-card { flex: 0 0 clamp(128px, 12.5vw, 176px); scroll-snap-align: start; }
@media (max-width: 1000px) { .buzz-row { display: flex; } }
@media (max-width: 640px) {
  .buzz-card { flex: 0 0 34vw; }
  .buzz-meta { flex-direction: row; align-items: center; font-size: 10px; }
}
.buzz-head { align-items: center; flex-wrap: nowrap; }
.buzz-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.buzz-nav[hidden] { display: none; }
.buzz-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--hero-ink);
  background: var(--hero-ink);
  color: var(--hero-tint);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.buzz-arrow svg { width: 20px; height: 20px; }
.buzz-arrow:hover:not(:disabled) { transform: translateY(-2px); }
.buzz-arrow:disabled { background: transparent; color: var(--hero-ink); opacity: 0.35; cursor: default; }

/* The form responds to its own width, not the screen's: under 700px the prompt, the
   address and the button can't share a row, so the button drops under the prompt and
   the address always has room. */
.brag-form { container-type: inline-size; }
@container (max-width: 700px) {
  .brag-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "field" "shape" "check" "go" "tag"; padding: 12px 12px 12px 18px; }
  .brag-shape { margin: 2px 0 6px; }
  .brag-go { justify-content: space-between; }
}
@container (max-width: 420px) {
  .brag-bar { padding: 14px; }
  .brag-field { flex-direction: column; align-items: stretch; gap: 2px; }
}

/* === Legal pages: terms, refunds, privacy. The orange header, then a paper band === */
.legal-head { min-height: auto; grid-template-rows: auto auto; }
.legal-title {
  margin: 0;
  max-width: var(--max-page);
  width: 100%;
  margin-inline: auto;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: lowercase;
}
.legal {
  background: var(--hero-tint);
  color: var(--hero-ink);
  padding: clamp(48px, 7vw, 110px) clamp(20px, 3vw, 40px);
}
.legal ::selection { background: var(--hero-bg); color: var(--hero-ink); }
.legal-body {
  max-width: var(--max-line);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
}
.legal-body h2 {
  margin: 2.2em 0 0.5em;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.legal-body p, .legal-body ul { margin: 0 0 1em; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.4em; }
.legal-body a { color: inherit; text-underline-offset: 3px; }
.legal-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--hero-ink-soft);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid color-mix(in oklch, var(--hero-ink) 18%, transparent);
  font-family: var(--mono);
  font-size: 13px;
}

/* === Buzz on the dark band, between the orange hero and the paper steps === */
.buzz { background: var(--dark-bg); color: var(--dark-ink); }
.buzz-title em { background: var(--hero-bg); color: var(--hero-ink); }
.buzz-card { color: var(--dark-ink); }
.buzz-media { background: var(--dark-bg-elev); box-shadow: 5px 5px 0 0 var(--hero-bg); }
.buzz-card:hover .buzz-media, .buzz-card:focus-visible .buzz-media { box-shadow: 8px 8px 0 0 var(--hero-bg); }
.buzz-card:focus-visible { outline: 2px solid var(--dark-accent); outline-offset: 6px; }
.buzz-arrow { border: 1px solid var(--dark-ink); background: var(--dark-ink); color: var(--dark-bg); }
.buzz-arrow:disabled { background: transparent; color: var(--dark-ink-soft); border-color: var(--dark-rule); opacity: 1; }
.buzz-arrow:focus-visible { outline: 2px solid var(--dark-accent); outline-offset: 3px; }

/* === Languages === */
/* The selector, in the top bar: a globe and the page's own language, opening a menu of
   every language by its own name. */
.topbar { z-index: 3; }  /* Its menu opens over the hero below it. */
.topbar nav { align-items: center; }
.topbar nav a, .mark-tag { white-space: nowrap; }
.langs { position: relative; }
.langs summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: oklch(16% 0.06 var(--hue) / 0.14);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 180ms var(--ease-out);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: oklch(16% 0.06 var(--hue) / 0.24); }
.langs summary:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 3px; }
.langs summary svg { width: 16px; height: 16px; flex: 0 0 16px; }
.langs summary .langs-chevron { width: 13px; height: 13px; flex-basis: 13px; transition: transform 180ms var(--ease-out); }
.langs[open] .langs-chevron { transform: rotate(180deg); }
.lang-short { display: none; }
.langs-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 10;
  display: grid;
  gap: 2px;
  min-width: 100%;
  padding: 5px;
  border-radius: var(--radius-md);
  background: var(--hero-ink);
  box-shadow: 0 18px 40px -18px oklch(20% 0.08 var(--hue) / 0.8);
}
.topbar nav .lang {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--hero-tint);
  text-decoration: none;
}
.topbar nav .lang:hover, .topbar nav .lang:focus-visible { background: oklch(27% 0.07 var(--hue)); text-decoration: none; outline: none; }
.topbar nav .lang[aria-current] { color: var(--hero-bg); font-weight: 700; }
/* On the English page too, Hebrew's own name is in the Hebrew font, and Arabic's in the Arabic one. */
.topbar nav .lang:lang(he) { font-family: "Heebo", var(--sans); letter-spacing: 0; }
.topbar nav .lang:lang(ar) { font-family: "Cairo", var(--sans); letter-spacing: 0; }
/* Phones: the short name, and a taller menu to tap. */
@media (max-width: 640px) {
  .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lang-short { display: inline; }
  .langs summary { padding: 0 10px; gap: 6px; }
  /* The bar's words are longer in some languages than a narrow phone is wide. It closes
     up first, and where that isn't enough the tag by the logo drops to a second line,
     out of sight, rather than push the page past the screen's edge. */
  .topbar nav { gap: 10px; }
  .langs summary .langs-chevron { display: none; }
  .topbar .mark { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; gap: 44px 10px; max-height: 44px; padding-block: 8px; overflow-y: clip; }
  .topbar .mark > bdi { line-height: 28px; }
  .topbar nav .lang { min-height: 44px; padding: 0 14px; }
}

/* Hebrew: Geist has no Hebrew letters, so Heebo draws them, next to Geist's Latin. It has
   no italic either, and Hebrew isn't set slanted. */
:lang(he) {
  --sans: "Geist", "Heebo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Heebo", ui-monospace, monospace;
}
em:lang(he), .emph:lang(he), .hero-video-tag:lang(he) { font-style: normal; }

/* Arabic: Geist and Heebo have no Arabic letters, so Cairo draws them, next to Geist's Latin.
   Arabic letters join, and any letter-spacing pulls them apart, so Arabic has none, anywhere;
   it isn't set slanted either. */
:lang(ar) {
  --sans: "Geist", "Cairo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Cairo", ui-monospace, monospace;
  letter-spacing: 0 !important;
}
em:lang(ar), .emph:lang(ar), .hero-video-tag:lang(ar) { font-style: normal; }
/* The brand's English in an Arabic headline keeps the headline's tight setting. */
:lang(ar) > :is(em, .emph):lang(en) { letter-spacing: -0.04em; }
/* Arabic letters hang lower than Latin ones, and carry dots and marks above: a knockout
   word sits further under the line above, clear of its tails, and an Arabic one gets a
   taller ink block, so none of it falls outside. */
:is(h1, h2):lang(ar) > :is(em, .emph) { margin-top: 0.3em; }
:is(h1, h2) > :is(em, .emph):lang(ar) { line-height: 1.2; padding-bottom: 0.18em; }

/* Right to left: arrows that point onward point left. The examples stay left to right,
   a site turning into its video, like the /brag prompt over them. */
[dir="rtl"] .brag-go svg,
[dir="rtl"] .buzz-arrow svg { scale: -1 1; }
[dir="rtl"] .brag-go:hover svg { transform: translateX(-3px); }
[dir="rtl"] .brag-go[aria-busy="true"] svg { animation-name: nudge-left; }
@keyframes nudge-left { 50% { transform: translateX(-5px); } }
[dir="rtl"] .brag-shape-label { float: right; margin-right: 0; margin-left: 0.6em; }
