/* Cougny website. The page wears the orb's colors (palette.js sets the
   tokens): the background is the orb's body color, and each section can
   switch the whole page to a light or deep tone as it reaches the middle
   of the screen (effects.js → body[data-tone]). */

/* The two typefaces, served from cougny.com itself so a visit reaches no
   one else: the variable fonts Google Fonts publishes, Latin and, only when
   a page shows those letters, Latin Extended. Both under the SIL Open Font
   License (fonts/*-OFL.txt). */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --c1: #c4f1ff;
  --c2: #3a8dff;
  --c3: #1b34a8;
  --bg: #3074d1;
  --bg-deep: #215192;
  --ink: #091729;
  --paper: #eefbff;
  --mark: #ff2d55;
  --radius: 16px;
  --max: 1200px;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --travel: cubic-bezier(0.45, 0, 0.2, 1);

  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

body {
  --page: var(--bg);
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.24);
  --surface: #ffffff;
  --on-surface: var(--ink);
  margin: 0;
  background: var(--page);
  color: var(--fg);
  overflow-x: hidden;
  transition:
    background-color 0.7s ease,
    color 0.7s ease;
}

body[data-tone="light"] {
  --page: var(--paper);
  --fg: var(--ink);
  --fg-dim: color-mix(in srgb, var(--ink) 72%, transparent);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --surface: #ffffff;
}

body[data-tone="deep"] {
  --page: var(--bg-deep);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html.is-locked,
html.is-menu {
  overflow: hidden;
}

::selection {
  background: var(--fg);
  color: var(--page);
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font: 700 0.8em/1.5 var(--mono);
  text-align: center;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
}

.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 72px;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: var(--fg);
  color: var(--page);
  font: 800 17px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    translate 0.3s var(--ease),
    background-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  background: transparent;
  color: var(--fg);
}

.button-ghost {
  background: transparent;
  color: var(--fg);
}

.button-ghost:hover {
  background: var(--fg);
  color: var(--page);
}

.button-small {
  padding: 10px 16px;
  font-size: 15px;
}

.button-big {
  padding: 22px 36px;
  font-size: 21px;
}

.button.is-pulsing {
  animation: pulse 1.2s ease 3;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--fg) 25%, transparent);
  }
}

.apple {
  flex: none; /* in a squeezed button the logo shrank to a dot */
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.65s var(--travel);
}

.intro.is-out {
  clip-path: inset(0 0 100% 0);
}

.intro-line {
  font-weight: 900;
  font-size: clamp(32px, 6vw, 84px);
  letter-spacing: -0.04em;
  overflow: hidden;
  padding: 0 16px;
  text-align: center;
}

.intro-line span {
  display: inline-block;
  animation: rise 0.7s var(--ease) both;
}

.intro-line span:nth-child(2) {
  animation-delay: 0.08s;
}

.intro-line span:nth-child(3) {
  animation-delay: 0.16s;
}

.intro-line span:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    transform: translateY(110%);
  }
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  display: none;
  pointer-events: none;
}

.has-cursor .cursor {
  display: block;
}

.has-cursor body,
.has-cursor a,
.has-cursor button,
.has-cursor summary,
.has-cursor label,
.has-cursor [role="tab"] {
  cursor: none;
}

.cursor::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 2px var(--page);
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s ease;
}

.cursor.is-link::before {
  transform: scale(2.6);
  opacity: 0.35;
}

.cursor.is-label::before {
  transform: scale(5);
}

.cursor.is-hidden::before,
.cursor.is-away::before {
  opacity: 0;
}

.cursor-label {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  color: var(--page);
  white-space: nowrap;
  opacity: 0;
}

.cursor.is-label .cursor-label {
  opacity: 1;
}

/* ---------- nav: links, Cougny's resting place, download ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(16px, 3vw, 32px);
  transition: background-color 0.4s ease;
}

body:not([data-tone]) .nav,
.nav {
  background: color-mix(in srgb, var(--page) 0%, transparent);
}

html:not(.is-top) .nav {
  background: var(--page);
  box-shadow: 0 1px 0 var(--line);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 15px;
}

.menu-lines {
  display: grid;
  gap: 5px;
  width: 22px;
}

.menu-lines i {
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-button[aria-expanded="true"] .menu-lines i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-lines i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.dock {
  position: absolute;
  left: calc(50% - 15px);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dock-slot {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.dock-ring {
  position: absolute;
  inset: -7px;
  width: 44px;
  height: 44px;
  rotate: -90deg;
}

.dock-ring circle {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-dasharray: 125.66;
  stroke-linecap: round;
  opacity: 0.5;
}

.dock-note {
  position: relative;
  display: grid;
  height: 26px;
  min-width: 10px;
  padding: 0 12px;
  border-radius: 13px;
  background: #000;
  color: #fff;
  overflow: hidden;
  font: 700 12px/26px var(--mono);
  white-space: nowrap;
  opacity: 0;
  translate: -8px 0;
  transition:
    opacity 0.3s ease,
    translate 0.4s var(--ease);
}

.dock.is-docked .dock-note {
  opacity: 1;
  translate: 0 0;
}

.dock-note-text {
  grid-area: 1 / 1;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s ease;
}

.dock-note-text.is-entering {
  transform: translateY(100%);
  opacity: 0;
}

.dock-note-text.is-leaving {
  transform: translateY(-100%);
  opacity: 0;
}

.dock.is-busy .dock-note-text {
  background: linear-gradient(90deg, #fff 30%, var(--c1) 50%, #fff 70%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  /* Centered, but scrolled from the top when a short phone can't fit it all. */
  justify-content: safe center;
  gap: 32px;
  padding: 90px 24px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--page);
}

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

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  font-weight: 900;
  font-size: clamp(28px, min(9vw, 6vh), 64px);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.menu-links span {
  font: 700 13px var(--mono);
  opacity: 0.6;
}

/* With the menu open, Cougny steps aside (he flies above everything and
   would cover the links), and the menu's own Download stands alone. */
html.is-menu .flyer,
html.is-menu .bubble,
html.is-menu .nav-right {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Cougny, flying ---------- */

.flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform-origin: 50% 50%;
  will-change: transform;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flyer-body {
  position: absolute;
  inset: 0;
  display: block;
}

.is-intro .flyer-body,
body:not(.is-ready) .flyer-body {
  scale: 0.4;
  opacity: 0;
}

.is-ready .flyer-body {
  animation: orb-in 1.2s cubic-bezier(0.25, 1.4, 0.4, 1) both;
}

@keyframes orb-in {
  from {
    scale: 0.4;
    opacity: 0;
  }
}

.orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.orb-fallback::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 55%, var(--c3));
}

.flyer-shadow {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -6%;
  height: 8%;
  border-radius: 50%;
  background: #000;
  opacity: calc(var(--hero, 1) * 0.22);
  filter: blur(14px);
}

.bubble {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 56;
  pointer-events: none;
}

.bubble::before {
  content: attr(data-text);
}

.bubble {
  padding: 0;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.bubble.is-big {
  translate: -50% -100%;
}

.bubble:empty {
  display: none;
}

.bubble {
  background: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  opacity: 0;
  scale: 0.9;
  transition:
    opacity 0.25s ease,
    scale 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.bubble.is-shown.is-big {
  opacity: 1;
  scale: 1;
}

/* ---------- Ask: the overlay ---------- */

/* Looks as the app's overlay does (Overlay.tsx, App.css): the clouds over a
   light veil, so the page behind is as quiet as a desktop under the app;
   the app's system font, status line, chat box, key hints and pills. */
.ask {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: transparent;
  transition: background-color 0.6s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.ask.is-open {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.ask[hidden] {
  display: none;
}

.ask-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky-fallback .ask-sky {
  display: none;
}

.ask.sky-fallback.is-open {
  background: color-mix(in srgb, var(--c1) 85%, white);
}

.ask-away {
  position: absolute;
  inset: 0;
}

.ask.is-closing {
  pointer-events: none;
}

/* Under the orb, as the app's (his middle place in flyer.js). */
.ask-ui {
  position: absolute;
  left: 50%;
  top: calc(40vh + clamp(70px, 16vh, 130px) + 22px);
  width: min(640px, calc(100vw - 32px));
  translate: -50% 0;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  color: #18181b;
}

.ask-ui > * {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.45s ease,
    translate 0.55s var(--ease);
}

.ask.is-open .ask-ui > * {
  opacity: 1;
  translate: 0 0;
}

.ask.is-open .ask-ui > :nth-child(2) {
  transition-delay: 0.1s;
}

.ask.is-open .ask-ui > :nth-child(3) {
  transition-delay: 0.18s;
}

.ask.is-open .ask-ui > :nth-child(4) {
  transition-delay: 0.26s;
}

.ask.is-open .ask-ui > :nth-child(5) {
  transition-delay: 0.32s;
}

.ask-state {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  min-height: 1.2em;
}

.ask-reply {
  width: 100%;
  padding: 16px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 70px -26px rgba(60, 40, 140, 0.45),
    0 0 0 1px #fff;
  color: #27272a;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.ask-reply:empty {
  display: none;
}

@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.ask-form {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 20px;
  border-radius: 26px;
  background: #fff;
  box-shadow:
    0 24px 70px -20px rgba(60, 40, 140, 0.45),
    0 0 0 1px rgba(24, 24, 27, 0.05);
}

/* The app's ring of the orb's colors, turning while you type. */
.ask-form::before,
.ask-form::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: conic-gradient(
    from var(--ring-angle),
    color-mix(in srgb, var(--c1) 60%, white),
    color-mix(in srgb, var(--c2) 45%, white),
    color-mix(in srgb, var(--c3) 45%, white),
    color-mix(in srgb, var(--c2) 45%, white),
    color-mix(in srgb, var(--c1) 60%, white)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  animation: ring-spin 6s linear infinite;
}

.ask-form::before {
  inset: -2px;
  padding: 2px;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.ask-form::after {
  inset: -10px;
  z-index: -1;
  filter: blur(22px);
}

.ask-form:focus-within::before {
  opacity: 0.9;
}

.ask-form:focus-within::after {
  opacity: 0.2;
}

@keyframes ring-spin {
  to {
    --ring-angle: 360deg;
  }
}

.ask-form input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #18181b;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
}

.ask-form input::placeholder {
  color: #a1a1aa;
}

.ask-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #18181b;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ask-send:hover {
  background: #3f3f46;
}

.ask-form:has(input:placeholder-shown) .ask-send {
  background: #e4e4e7;
  color: #a1a1aa;
}

.ask-send svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The suggestions wear the app's History and Settings pills. */
.ask-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-list li {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px #fff;
  color: #3f3f46;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ask-list li:hover,
.ask-list li[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.95);
  color: #18181b;
}

.ask-foot {
  color: #71717a;
  font-size: 12px;
}

.ask-foot kbd {
  min-width: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(24, 24, 27, 0.05);
  color: #52525b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .ask-form::before,
  .ask-form::after {
    animation: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: 0 16px clamp(28px, 4svh, 48px);
}

/* The orb, the words and the buttons all fit on the first screen. */
.hero-stage {
  position: relative;
  width: 100%;
  height: 58svh;
  min-height: 360px;
  padding-top: 64px;
  display: grid;
  place-items: start center;
  overflow-x: clip;
}

.giant {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(64px + 5svh);
  font-weight: 900;
  font-size: clamp(72px, 18vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
}

/* A gentle arc over the orb: outer letters sit lower and lean outward,
   and each letter is pushed away from the middle. --c is the letter's
   distance from the middle (-2.5 … 2.5), set by effects.js. */
.giant span {
  --c: 0;
  translate: calc(var(--c) * 1.6vw) calc(var(--c) * var(--c) * 1.2%);
  rotate: calc(var(--c) * 1.6deg);
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  will-change: transform;
}

.giant.is-in span {
  transform: none;
  opacity: 1;
  transition:
    opacity 0.6s ease,
    transform 1.1s cubic-bezier(0.2, 0.9, 0.2, 1.05);
}

.giant.is-settled span {
  transition: none;
}

.hero-slot {
  width: min(42svh, 64vw, 600px);
  aspect-ratio: 1;
  margin-top: 8px;
}

.hero-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 clamp(0px, 2vw, 24px);
  z-index: 3;
}

/* Bottom-left of the first screen; it fades once you start scrolling. */
.scroll-hint {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  bottom: 28px;
  z-index: 4;
  font: 700 12px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

html:not(.is-top) .scroll-hint {
  opacity: 0;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 2px;
  height: 34px;
  margin: 10px 0 0 4px;
  background: var(--fg);
  transform-origin: top;
  animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.try-pill {
  grid-column: 2;
  display: inline-flex;
  max-width: calc(100vw - 32px);
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: translate 0.3s var(--ease);
}

.try-pill-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 55%, var(--c3));
}

.try-pill-text {
  min-width: min(16ch, 50vw);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.try-pill-go {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  flex: none;
}

.swatches {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* The app's swatches (components/orb/PaletteSwatches.tsx): a little live
   orb in each palette, and an outline with a gap around the chosen one, so
   the gap shows the page behind. The gradient shows until the orb draws,
   and stays where there's no WebGL. */
.swatch {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--s1), var(--s2) 55%, var(--s3));
  color: #fff;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s;
}

.swatch:hover {
  outline-color: var(--line);
}

.swatch[aria-pressed="true"],
.swatch.is-on {
  outline-color: var(--fg);
}

.swatch:focus-visible,
.swatch:has(:focus-visible) {
  outline-color: var(--fg);
  outline-style: dashed;
}

.swatch-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.swatch-icon {
  position: relative;
  display: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.swatch[aria-pressed="true"] .swatch-check,
.swatch.is-on .swatch-check,
.swatch-custom:not(.is-on) .swatch-plus {
  display: block;
}

.swatch-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.swatch-name {
  margin: -6px 0 6px;
  color: var(--fg-dim);
  font-size: 14px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  /* Never wider than the screen: the two buttons, which don't wrap, made
     it 330 px on a 320 px phone and the page scrolled sideways. */
  max-width: min(1100px, 100%);
  margin-top: clamp(12px, 2svh, 24px);
  text-align: center;
}

.roller-line {
  margin-bottom: 10px;
  font-weight: 800;
  font-size: clamp(20px, min(2.4vw, 3.6svh), 32px);
  letter-spacing: -0.02em;
}

.roller {
  position: relative;
  display: inline-block;
  height: 1.3em;
  vertical-align: bottom;
  padding: 0 0.3em;
  border-radius: 10px;
  background: var(--fg);
  color: var(--page);
  overflow: hidden;
  transition: width 0.5s var(--ease);
  box-sizing: content-box;
}

.roller-word {
  position: absolute;
  left: 0.3em;
  top: 0;
  line-height: 1.3em;
  white-space: nowrap;
  transition:
    transform 0.6s var(--ease),
    opacity 0.4s ease;
}

.roller-word.is-in {
  transform: translateY(100%);
  opacity: 0;
}

.roller-word.is-out {
  transform: translateY(-100%);
  opacity: 0;
}

.roller-measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(40px, min(5.8vw, 9svh), 92px);
}

@media (min-width: 901px) {
  .hero h1 br {
    display: none;
  }
}

.lede {
  max-width: 680px;
  margin: clamp(10px, 1.6svh, 18px) auto 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--fg-dim);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 2.4svh, 26px);
}

.fineprint {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ---------- words rising, reveals ---------- */

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

[data-split] .wi {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 0.06s);
}

[data-split].is-in .wi {
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- marquee ---------- */

.marquee {
  padding: 26px 0;
  border-block: 2px solid var(--fg);
  overflow: hidden;
  transform: skewY(var(--skew, 0deg));
}

.marquee-row {
  display: flex;
  width: max-content;
  font-weight: 900;
  font-size: clamp(46px, 8vw, 128px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* A stroke alone traces every contour, so the letters' overlapping parts
   and the tight letters' overlaps show as lines inside them. Instead the
   stroke goes under a fill in the page color (fading with it), which
   leaves only the outer half: one clean 2px outline. */
.marquee-row.outline {
  color: var(--page);
  -webkit-text-stroke: 4px var(--fg);
  paint-order: stroke fill;
  transition: color 0.7s ease;
}

.marquee-row span {
  padding-right: 0.3em;
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) 16px;
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font: 700 13px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.idx {
  padding: 3px 8px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.section h2,
.skills h2,
.privacy h2,
.final h2 {
  max-width: 940px;
  font-size: clamp(42px, 6.6vw, 96px);
}

.section-lede {
  max-width: 600px;
  margin-top: 24px;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ---------- Teach it ---------- */

.teach-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.teach-grid > * {
  min-width: 0;
}

.tapp {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  background: var(--bg);
  transition: box-shadow 0.3s ease;
}

.tapp.is-recording {
  box-shadow: 0 0 0 4px var(--mark);
}

.tapp-rec {
  position: absolute;
  left: 50%;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  translate: -50% 0;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 700 13px var(--mono);
  white-space: nowrap;
}

.tapp-rec[hidden] {
  display: none;
}

.tapp-rec-count {
  opacity: 0.6;
}

.tapp-rec button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.tapp-win {
  border-radius: 14px;
  background: #fff;
  color: #1c1e2a;
  overflow: hidden;
  min-height: 340px;
}

.tapp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #ececf2;
  font-size: 14px;
}

.tapp-bar b {
  color: #6b6f86;
}

.t-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #ececf2;
}

.t-toolbar button,
.t-seg button {
  padding: 8px 12px;
  border: 1px solid #dcdde6;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.12s ease;
}

.t-toolbar button:hover {
  background: #f1f2f7;
}

.t-seg {
  display: inline-flex;
}

.t-seg button {
  border-radius: 0;
}

.t-seg button:first-child {
  border-radius: 8px 0 0 8px;
}

.t-seg button:last-child {
  border-radius: 0 8px 8px 0;
}

.t-seg button.is-on {
  background: #1c1e2a;
  color: #fff;
}

.tapp .is-pressed {
  outline: 3px solid var(--mark);
  outline-offset: 2px;
  transform: scale(0.95);
}

.t-notes {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 250px;
}

.t-list {
  margin: 0;
  padding: 8px;
  list-style: none;
  border-right: 1px solid #ececf2;
  background: #f7f7fa;
  font-size: 14px;
}

.t-list li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t-list li.is-on {
  background: #ffd54a;
}

.t-editor {
  width: 100%;
  min-height: 250px;
  padding: 16px;
  border: 0;
  outline: 0;
  resize: none;
  font: 500 16px/1.6 var(--display);
  color: inherit;
}

.t-events {
  margin: 0;
  padding: 14px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.t-events li {
  padding: 10px 12px;
  border-left: 4px solid var(--c2);
  border-radius: 6px;
  background: #f4f5fb;
  font-weight: 600;
}

.t-events li.is-flash,
.t-events li.is-new {
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
  background: color-mix(in srgb, var(--c2) 20%, #fff);
}

@keyframes pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}

.t-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
}

.t-player span:last-child {
  display: grid;
}

.t-player small {
  color: #6b6f86;
}

.t-cover {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: conic-gradient(from 90deg, var(--c1), var(--c2), var(--c3), var(--c1));
  transition: border-radius 0.4s ease;
}

.t-cover.is-playing {
  border-radius: 50%;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    rotate: 1turn;
  }
}

.t-cover i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.tapp-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.tapp-tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.tapp-tabs button.is-on {
  background: #fff;
  color: #1c1e2a;
}

.teach-side {
  display: grid;
  gap: 18px;
}

.teach-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.teach-orb {
  position: relative;
  flex: none;
  width: 120px;
  height: 120px;
}

.teach-guide {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g;
  font-weight: 700;
}

.teach-guide li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-dim);
  transition: color 0.3s ease;
}

.teach-guide li::before {
  counter-increment: g;
  content: counter(g);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font: 700 12px var(--mono);
}

.teach-guide li.is-now {
  color: var(--fg);
}

.teach-guide li.is-now::before {
  background: var(--fg);
  color: var(--page);
  border-color: var(--fg);
}

.teach-guide li.is-done::before {
  content: "✓";
}

.teach-form {
  display: grid;
  gap: 8px;
}

.teach-form[hidden] {
  display: none;
}

.teach-form label {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.field input {
  flex: 1;
  /* No built-in width (about 20 letters): it kept the form wider than a
     320 px phone. It takes the room the button leaves. */
  width: 0;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: none;
  font: 600 17px var(--display);
  color: var(--on-surface);
}

.field .button {
  padding: 10px 18px;
  font-size: 15px;
}

.teach-status {
  font-weight: 700;
}

.teach-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
}

.teach-steps li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--on-surface);
  font-weight: 600;
  animation: pop 0.3s ease;
}

.teach-steps li::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  font: 700 12px/1.9 var(--mono);
  opacity: 0.5;
}

.teach-steps li.is-now {
  box-shadow: 0 0 0 3px var(--c2);
}

.teach-steps li.is-done {
  opacity: 0.55;
}

.teach-fine {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ---------- Skills ---------- */

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mark);
  animation: blink 1s steps(2) infinite;
}

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

.skills-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 80px 0 40px;
  overflow: hidden;
}

.skills-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skills-count {
  font: 700 15px var(--mono);
  white-space: nowrap;
}

.skills-count b {
  font-size: 40px;
}

.skills-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2 + 16px));
  will-change: transform;
}

.skill {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(280px, 30vw, 380px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--on-surface);
  overflow: hidden;
  transition: rotate 0.4s var(--ease);
}

.skill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill:hover::after {
  opacity: 1;
}

.skill-say {
  margin-top: 18px;
  font: 700 13px/1.5 var(--mono);
  color: color-mix(in srgb, var(--on-surface) 60%, transparent);
}

.skill h3 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.05;
}

.skill p:not(.skill-say) {
  margin-top: 10px;
  color: color-mix(in srgb, var(--on-surface) 75%, transparent);
  font-weight: 500;
  font-size: 16px;
}



.skill-try {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px 0 0;
  border: 0;
  background: none;
  color: var(--on-surface);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.skill-try:hover {
  text-decoration: underline;
}

.skills-bar {
  width: min(var(--max), calc(100% - 32px));
  height: 3px;
  margin: 0 auto;
  background: var(--line);
}

.skills-bar i {
  display: block;
  height: 100%;
  background: var(--fg);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.skill-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 150px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c1) 35%, #fff);
  overflow: hidden;
}

.art-volume i {
  width: 12px;
  border-radius: 3px;
  background: var(--c2);
  animation: level 1.6s ease-in-out infinite alternate;
}

.art-volume i:nth-child(n) {
  height: calc(20px + var(--h, 30px));
}

.art-volume i:nth-child(1) { --h: 6px; animation-delay: -0.1s; }
.art-volume i:nth-child(2) { --h: 18px; animation-delay: -0.3s; }
.art-volume i:nth-child(3) { --h: 30px; animation-delay: -0.5s; }
.art-volume i:nth-child(4) { --h: 42px; animation-delay: -0.7s; }
.art-volume i:nth-child(5) { --h: 54px; opacity: 0.25; animation-delay: -0.9s; }
.art-volume i:nth-child(6) { --h: 66px; opacity: 0.25; animation-delay: -1.1s; }
.art-volume i:nth-child(7) { --h: 78px; opacity: 0.25; animation-delay: -1.3s; }
.art-volume i:nth-child(8) { --h: 90px; opacity: 0.25; animation-delay: -1.5s; }

@keyframes level {
  to {
    transform: scaleY(0.7);
  }
}

.art-volume b {
  position: absolute;
  right: 12px;
  top: 10px;
  font: 700 12px var(--mono);
}

.art-marks {
  flex-wrap: wrap;
  padding: 18px;
  align-content: center;
}

.art-marks span {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  outline: 2px solid var(--mark);
  font-weight: 700;
  font-size: 14px;
}

.art-marks span.wide {
  flex-basis: 60%;
  color: #9a9db3;
}

.art-marks i {
  position: absolute;
  left: -8px;
  top: -10px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--mark);
  color: #fff;
  font: 700 11px/1.5 var(--mono);
  font-style: normal;
  animation: pop 2.4s ease infinite;
}

.art-split i {
  width: 40%;
  height: 70%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.3);
  animation: split-left 3s var(--ease) infinite;
}

.art-split i:last-child {
  animation-name: split-right;
}

@keyframes split-left {
  0%, 15% { transform: translate(20%, 10%) rotate(-4deg); }
  45%, 100% { transform: none; }
}

@keyframes split-right {
  0%, 15% { transform: translate(-30%, -8%) rotate(5deg); }
  45%, 100% { transform: none; }
}

.art-files i {
  width: 34px;
  height: 44px;
  border-radius: 5px;
  background: linear-gradient(#fff 60%, #ff5f57 60%);
  animation: into 3s var(--ease) infinite;
}

.art-files i:nth-child(2) { animation-delay: 0.2s; }
.art-files i:nth-child(3) { animation-delay: 0.4s; }

.art-files b {
  width: 64px;
  height: 50px;
  margin-left: 30px;
  border-radius: 7px;
  background: #6fb5ff;
  box-shadow: inset 0 12px 0 #8fc6ff;
}

@keyframes into {
  0%, 20% { transform: none; opacity: 1; }
  60%, 100% { transform: translateX(90px) scale(0.3); opacity: 0; }
}

.art-banner span {
  display: grid;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
  animation: slide-in 3s var(--ease) infinite;
}

@keyframes slide-in {
  0%, 10% { transform: translateX(130%); }
  35%, 85% { transform: none; }
  100% { transform: translateX(130%); }
}

.art-week span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c2);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.art-week span.off {
  background: #fff;
  color: #9a9db3;
}

.art-week b {
  position: absolute;
  bottom: 14px;
  font: 700 13px var(--mono);
}

.art-sheet {
  flex-direction: column;
  gap: 5px;
}

.art-sheet i {
  width: 70%;
  height: 16px;
  border-radius: 4px;
  background: #fff;
  animation: row 3s ease infinite;
}

.art-sheet i:nth-child(1) { background: var(--c2); }
.art-sheet i:nth-child(2) { animation-delay: 0.3s; }
.art-sheet i:nth-child(3) { animation-delay: 0.6s; }
.art-sheet i:nth-child(4) { animation-delay: 0.9s; }
.art-sheet i:nth-child(5) { animation-delay: 1.2s; }

@keyframes row {
  0% { transform: scaleX(0); transform-origin: left; }
  20%, 100% { transform: none; }
}

.art-memory {
  flex-direction: column;
  font-weight: 700;
}

.art-memory span {
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
}

.art-memory b {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--c2);
  color: #fff;
  font-size: 14px;
}

.art-steer {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 600;
}

.art-steer span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}

.art-steer .you {
  background: var(--ink);
  color: #fff;
  font-style: italic;
}

.art-undo i {
  width: 70px;
  height: 70px;
  border: 8px solid var(--c2);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 2.4s var(--ease) infinite reverse;
}

.art-connect {
  flex-wrap: wrap;
  padding: 18px;
  font-weight: 700;
  font-size: 13px;
}

.art-connect span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}

.art-connect span:first-child {
  background: var(--c2);
  color: #fff;
}

.art-connect i {
  width: 30px;
  height: 2px;
  background: var(--ink);
}

.art-teach {
  gap: 10px;
  font: 700 14px var(--mono);
}

/* ---------- Make it yours ---------- */

.yours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.yours-controls {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.control-label {
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.moods button {
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.moods button[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--page);
}

.palette-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  margin: -4px;
}

.mic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 12px 18px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: none;
  font-weight: 800;
  cursor: pointer;
}

.mic[aria-pressed="true"] {
  background: var(--fg);
  color: var(--page);
}

.mic-icon {
  width: 12px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-radius: 7px;
}

.mic[aria-pressed="true"] .mic-icon {
  background: currentColor;
  animation: blink 1s steps(2) infinite;
}

.mic-note {
  max-width: 440px;
  font-size: 14px;
  color: var(--fg-dim);
}

.yours-arena {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed var(--line);
  border-radius: 28px;
}

.yours-orb {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  touch-action: none;
}

.is-dragging .yours-orb {
  cursor: grabbing;
}

.yours-say {
  position: absolute;
  top: 8%;
  left: 50%;
  translate: -50% 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  scale: 0.9;
  transition:
    opacity 0.25s ease,
    scale 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
  pointer-events: none;
}

.yours-say.is-shown {
  opacity: 1;
  scale: 1;
}

.arena-hint {
  position: absolute;
  bottom: 16px;
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
}

.how-visual {
  position: sticky;
  top: 18vh;
  height: min(64vh, 520px);
  border-radius: 24px;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.how-visual[data-scene="ask"] .scene-ask,
.how-visual[data-scene="look"] .scene-look,
.how-visual[data-scene="do"] .scene-do {
  opacity: 1;
}

.scene-keys {
  display: flex;
  gap: 10px;
  font-size: 30px;
}

.scene-keys kbd {
  min-width: 2em;
  padding: 0.3em 0.6em;
  border-color: rgba(255, 255, 255, 0.6);
}

.scene-keys .wide {
  min-width: 5em;
}

.is-playing .scene-keys kbd {
  animation: press 1.8s ease infinite;
}

@keyframes press {
  0%, 60%, 100% { transform: none; border-bottom-width: 3px; }
  20%, 50% { transform: translateY(3px); border-bottom-width: 1px; }
}

.scene-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
}

.scene-wave i {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: #fff;
  animation: level 0.9s ease-in-out infinite alternate;
}

.scene-wave i:nth-child(3n) { animation-delay: -0.3s; height: 60%; }
.scene-wave i:nth-child(3n + 1) { animation-delay: -0.6s; height: 80%; }
.scene-wave i:nth-child(4n) { animation-delay: -0.15s; height: 40%; }

.scene-heard {
  min-height: 1.4em;
  font-weight: 800;
  font-size: 24px;
}

.scene-win {
  position: relative;
  width: min(420px, 100%);
  border-radius: 14px;
  background: #fff;
  color: #1c1e2a;
  overflow: hidden;
}

.scene-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #ececf2;
  font-size: 13px;
}

.scene-bar b {
  color: #6b6f86;
}

.scene-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 20px;
  min-height: 180px;
  align-content: flex-start;
}

.scene-body .ctl {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f2f7;
  font-weight: 700;
}

.scene-body .ctl.field {
  flex-basis: 62%;
  color: #9a9db3;
}

.scene-body .ctl i {
  position: absolute;
  left: -8px;
  top: -10px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--mark);
  color: #fff;
  font: 700 11px/1.5 var(--mono);
  font-style: normal;
  opacity: 0;
}

.is-playing .scene-look .ctl {
  animation: marked 0.4s ease forwards;
}

.is-playing .scene-look .ctl i {
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.is-playing .scene-look .c1, .is-playing .scene-look .c1 i { animation-delay: 0.9s; }
.is-playing .scene-look .c2, .is-playing .scene-look .c2 i { animation-delay: 1.1s; }
.is-playing .scene-look .c3, .is-playing .scene-look .c3 i { animation-delay: 1.3s; }
.is-playing .scene-look .c4, .is-playing .scene-look .c4 i { animation-delay: 1.5s; }

@keyframes marked {
  to {
    outline: 2px solid var(--mark);
  }
}

.scene-look .ctl i {
  animation-fill-mode: forwards;
}

@keyframes pop-in {
  to {
    opacity: 1;
  }
}

.is-playing .scene-look .ctl i {
  animation-name: pop-in;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 3px;
  background: var(--c3);
  box-shadow: 0 0 16px 4px color-mix(in srgb, var(--c3) 60%, transparent);
  opacity: 0;
}

.is-playing .scan {
  animation: scan 1.2s ease-in-out 0.1s;
}

@keyframes scan {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(200px); }
}

.scene-do .scene-body {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
}

.scene-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 15px;
}

.scene-bubble.them {
  align-self: flex-start;
  background: #ececf2;
}

.scene-bubble.me {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
  opacity: 0;
}

.is-playing .scene-bubble.me {
  animation: pop-in 0.3s ease 1.9s forwards;
}

.scene-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #dcdde6;
  border-radius: 20px;
  outline: 2px solid var(--mark);
  font-size: 15px;
}

.scene-field i {
  position: absolute;
  left: -8px;
  top: -10px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--mark);
  color: #fff;
  font: 700 11px/1.5 var(--mono);
  font-style: normal;
}

.scene-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

.is-playing .scene-typed {
  animation: typing 1.2s steps(13) 0.3s forwards, clear 0.1s 1.9s forwards;
}

@keyframes typing {
  to { width: 13ch; }
}

@keyframes clear {
  to { width: 0; }
}

.scene-done {
  font-weight: 800;
  font-size: 20px;
  opacity: 0;
}

.is-playing .scene-done {
  animation: pop-in 0.4s ease 2.2s forwards;
}

.how-list {
  position: relative;
  padding-left: 36px;
}

.how-line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.how-line i {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: top;
  transform: scaleY(var(--how, 0));
}

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

.how-steps li {
  min-height: 62vh;
  padding: 6vh 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.how-steps li:last-child {
  min-height: 44vh;
}

.how-steps li.is-active {
  opacity: 1;
}

.how-num {
  display: block;
  font-weight: 900;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.how-steps h3 {
  margin-top: 18px;
  font-size: clamp(32px, 3.6vw, 52px);
}

.how-steps p {
  max-width: 480px;
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ---------- Privacy ---------- */

.privacy-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) 16px;
}

.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.flow-tabs button {
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: none;
  font-weight: 700;
  cursor: pointer;
}

.flow-tabs button[aria-selected="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--page);
}

.flow-panel {
  padding: clamp(16px, 3vw, 32px);
  border-radius: 24px;
  background: color-mix(in srgb, #000 18%, transparent);
}

.flow-map {
  display: block;
  width: 100%;
  height: auto;
}

.flow-map text {
  fill: currentColor;
  font: 700 17px var(--display);
  text-anchor: middle;
}

.flow-map text.sub {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.7;
}

.flow-map .box-label {
  text-anchor: start;
  font: 700 14px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.flow-map .box {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.node rect {
  fill: color-mix(in srgb, #fff 10%, transparent);
  stroke: currentColor;
  stroke-opacity: 0.25;
  stroke-width: 1.5;
  transition:
    fill 0.4s ease,
    stroke-opacity 0.4s ease;
}

.node {
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.node.is-on {
  opacity: 1;
}

.node.is-on rect {
  fill: color-mix(in srgb, #fff 22%, transparent);
  stroke-opacity: 0.9;
}

.node-cougny circle {
  fill: var(--c2);
  stroke: #fff;
  stroke-width: 2;
}

.node-none {
  opacity: 0.7;
}

.node-none rect {
  stroke-dasharray: 6 6;
}

.node-none text:first-of-type {
  text-decoration: line-through;
}

.flow-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-opacity: 0.12;
  stroke-dasharray: 8 10;
  transition: stroke-opacity 0.4s ease;
}

.flow-path.is-on {
  stroke-opacity: 1;
  animation: flow 1s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -18;
  }
}

.flow-map marker path {
  fill: currentColor;
}

.path-label {
  opacity: 0;
  font: 700 13px var(--mono) !important;
  transition: opacity 0.4s ease;
}

.path-label.is-on {
  opacity: 1;
}

.flow-caption {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  min-height: 3em;
}

.privacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  padding: 22px 0;
  border-top: 2px solid var(--line);
  font-size: 17px;
  color: var(--fg-dim);
}

.privacy-list b {
  display: block;
  margin-bottom: 4px;
  font-size: 21px;
  color: var(--fg);
}

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

.faq-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.faq-search input {
  width: min(320px, 80vw);
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: none;
  color: var(--fg);
  font: 600 16px var(--display);
}

.faq-search input::placeholder {
  color: var(--fg-dim);
}

.faq-search input:focus {
  border-color: var(--fg);
}

.faq {
  border-top: 2px solid var(--fg);
}

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

.faq details.is-flash {
  animation: flash 1.6s ease;
}

@keyframes flash {
  30% {
    background: color-mix(in srgb, var(--fg) 12%, transparent);
  }
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-weight: 900;
  transition: rotate 0.3s var(--ease);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  max-width: 720px;
  padding-bottom: 26px;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-dim);
}

.faq-empty {
  padding: 26px 0;
  font-weight: 700;
}

/* ---------- final ---------- */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(60px, 8vw, 110px) 16px clamp(90px, 12vw, 170px);
  text-align: center;
}

.final-slot {
  width: min(320px, 64vw);
  aspect-ratio: 1;
}

.platform {
  font-weight: 700;
}

/* ---------- footer ---------- */

.footer {
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 40px) 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 2px solid var(--fg);
}

.footer-label {
  margin-bottom: 12px;
  font: 700 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.footer-links,
.footer-keys {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
}

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

.footer-social a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-keys li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-keys span {
  display: inline-flex;
  gap: 4px;
  min-width: 92px;
}

.footer-about {
  font-weight: 600;
}

.to-top {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 800;
  cursor: pointer;
}

.to-top:hover {
  text-decoration: underline;
}

.footer-word {
  display: flex;
  justify-content: center;
  font-weight: 900;
  font-size: 21.5vw;
  line-height: 0.8;
  letter-spacing: -0.07em;
  padding-bottom: 0.04em;
  user-select: none;
}

.footer-word span {
  display: inline-block;
  transform: translateY(calc((1 - var(--foot, 0)) * (60% + var(--i) * 14%)));
}

/* ---------- smaller screens ---------- */

.only-narrow {
  display: none;
}

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

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .dock-note {
    display: none;
  }

  /* The first screen holds what the desktop's does: the word, the orb, the
     pill and colors, the headline on one line, both buttons side by side
     and the fine print. The orb gives way to the screen's height. */
  .hero {
    padding-bottom: 2svh;
  }

  .hero-row {
    position: static;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.2svh;
  }

  .hero-stage {
    height: auto;
    min-height: 0;
    padding-top: 64px;
  }

  /* On narrow screens the word sits whole above the orb, barely curved. */
  .hero-slot {
    width: min(58vw, 28svh, calc(100svh - 430px));
    margin-top: calc(1svh + 15.5vw + 4px);
    margin-bottom: 1svh;
  }

  .giant {
    padding-top: calc(64px + 1svh);
    font-size: 19vw;
  }

  .hero-copy {
    margin-top: 1.8svh;
  }

  .roller-line {
    margin-bottom: 0.6svh;
    font-size: min(5.4vw, 2.8svh);
  }

  .hero h1 {
    font-size: min(8.6vw, 5svh);
    white-space: nowrap;
  }

  .hero h1 br {
    display: none;
  }

  .lede {
    margin-top: 1svh;
    font-size: max(12px, min(4vw, 2.1svh));
    line-height: 1.4;
  }

  .cta {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 1.8svh;
  }

  .cta .button {
    gap: 6px;
    padding: 1.6svh 22px;
    font-size: min(3.6vw, 17px);
    white-space: nowrap;
  }

  .fineprint {
    margin-top: 1.2svh;
    font-size: min(3.1vw, 13px);
  }

  .giant span {
    translate: 0 calc(var(--c) * var(--c) * 0.8%);
    rotate: calc(var(--c) * 1deg);
  }

  .scroll-hint {
    display: none;
  }

  .try-pill {
    grid-column: auto;
  }

  .swatches {
    justify-content: center;
  }

  /* Smaller under the pill, so the first screen still holds the hero. */
  .swatches .swatch {
    width: 30px;
    height: 30px;
  }

  .teach-grid,
  .yours,
  .how-grid,
  .privacy-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .skills-pin {
    position: static;
    height: auto;
    padding: 90px 0;
  }

  .skills-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .skill {
    flex: none;
    width: min(82vw, 340px);
    scroll-snap-align: center;
  }

  .how-visual {
    top: 80px;
    height: 46vh;
    z-index: 1;
  }

  .how-steps li {
    min-height: 60vh;
  }

  /* The last step needs room below the pinned picture, or the picture
     comes to rest on top of it. */
  .how-steps li:last-child {
    min-height: 0;
    padding-bottom: calc(46vh + 24px);
  }

  /* The skills show their own progress bar; the track's scrollbar is noise. */
  .skills-track {
    scrollbar-width: none;
  }

  .skills-track::-webkit-scrollbar {
    display: none;
  }

  /* The app sits above the steps here, not on the left. */
  .only-wide {
    display: none;
  }

  .only-narrow {
    display: inline;
  }
}


@media (max-width: 560px) {
  .t-notes {
    grid-template-columns: 1fr;
  }

  .t-list {
    display: none;
  }


  .skills-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-small {
    padding: 9px 12px;
  }

  /* Both hero buttons share the row equally. */
  .cta .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }

  /* A long line wraps instead of running off the screen. */
  .bubble {
    max-width: calc(100vw - 24px);
    white-space: normal;
    text-align: center;
  }

  /* The privacy map keeps a readable size and scrolls sideways. */
  .flow-scroll {
    margin: 0 calc(-1 * clamp(16px, 3vw, 32px));
    padding: 0 clamp(16px, 3vw, 32px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .flow-scroll::-webkit-scrollbar {
    display: none;
  }

  .flow-map {
    width: 640px;
    max-width: none;
  }
}

/* Touch screens have no keyboard shortcuts to mention. */
@media (hover: none) and (pointer: coarse) {
  .keys-only {
    display: none;
  }
}

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

  [data-reveal],
  [data-split] .wi,
  .giant span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint::after,
  .art-volume i,
  .art-split i,
  .art-files i,
  .art-banner span,
  .art-sheet i,
  .art-undo i,
  .art-marks i,
  .scene-wave i {
    animation: none;
  }
}

/* ---------- download buttons ---------- */

/* The hero's phone rules squeeze .cta into one row; the page's last
   section keeps its big buttons and wraps them instead. */
.final .cta {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.final .cta .button {
  flex: 0 1 auto;
  min-width: auto;
  gap: 10px;
  padding: 22px 36px;
  font-size: 21px;
}

@media (max-width: 560px) {
  .final .cta .button {
    padding: 18px 28px;
    font-size: 19px;
  }
}

/* 404.html: the page Cloudflare Pages serves, with a real 404, for any
   path that isn't a file (without it, every path would get index.html). */
.not-found {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  min-height: 100svh;
  padding: 24px 16px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(48px, 10vw, 120px);
}

.not-found .lede {
  margin: 0;
}

/* Both hero buttons side by side need about 380 px, and a phone draws the
   words a little wider: stacked on narrow phones, as long as the screen is
   tall enough to keep the whole hero on it (and always under 360 px). */
@media (max-width: 439px) and (min-height: 720px), (max-width: 359px) {
  .hero .cta {
    flex-wrap: wrap;
  }

  .hero .cta .button {
    flex: 1 1 100%;
    font-size: min(4.4vw, 17px); /* a whole row each: room for the full size */
  }
}

/* Side by side on a short, narrow phone (an iPhone SE), where stacking
   would push the buttons off the first screen: only "Mac" and "Windows"
   beside their logos (the buttons' labels say it all). */
@media (min-width: 360px) and (max-width: 439px) and (max-height: 719px) {
  .hero .cta-words {
    display: none;
  }
}


/* privacy.html and terms.html: plain reading pages in the light tone,
   one readable column, with the huge word Cougny home at the top (the
   logo never goes on a page). The word has the hero's cut, and a solid
   rule under it, inside the gutters, closes the masthead off from the
   page's own title. */
.legal-top {
  --gutter: 16px;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px) var(--gutter) clamp(18px, 2.6vw, 26px);
}

.legal-top::after {
  content: "";
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  height: 2px;
  background: currentColor;
}

.legal-home {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(56px, 14vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.legal-home:hover {
  opacity: 0.72;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 16px 48px;
  font-weight: 500;
  overflow-wrap: break-word;
}

.legal h1 {
  font-size: clamp(40px, 8vw, 72px);
}

.legal-date {
  margin-top: 14px;
  font: 700 13px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
}

.legal p,
.legal ul {
  margin: 12px 0 0;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  font-weight: 700;
  text-underline-offset: 3px;
}

/* The features page: a picture under each feature */
.legal img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
  border-radius: 18px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 2px solid var(--line);
  font-weight: 700;
}

.legal-footer a {
  text-decoration: none;
}

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

/* changelog.html: each version a card on a timeline, newest first; what
   it added, improved and fixed under a colored label. */
.changelog-intro {
  max-width: 34em;
  color: var(--fg-dim);
}

.release {
  position: relative;
  margin-top: 40px;
  padding: clamp(20px, 4vw, 32px);
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.release-next {
  border-color: color-mix(in srgb, var(--c2) 45%, transparent);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    var(--surface);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.legal .release h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0;
  font: 700 13px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.legal .release-meta {
  margin: 0;
}

.release-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c2) 14%, transparent);
  color: var(--c3);
}

.release-summary {
  color: var(--fg-dim);
}

.change-kind {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 28px 0 0;
  font: 700 13px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.change-kind::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.change-new {
  color: #1b6fd8;
}

.change-better {
  color: #0f7d5c;
}

.change-fixed {
  color: #b4510f;
}

.release ul {
  margin-top: 10px;
}

.release li::marker {
  color: var(--fg-dim);
}

.release strong {
  font-weight: 800;
}

.legal .release-downloads {
  margin-top: 16px;
}

.legal a.release-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
}

.legal a.release-download:hover {
  border-color: color-mix(in srgb, var(--c2) 45%, transparent);
}

/* The blog (cougny.com/blog, served by the service: backend/src/blog/):
   the reading pages' light tone, a grid of posts on the front page and a
   readable column for a post, with its contents beside it on wide screens. */
.blog-top {
  display: flex;
  flex-wrap: wrap;
  --gutter: clamp(16px, 4vw, 40px);
  gap: 12px 24px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: var(--max);
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(18px, 2.6vw, 26px);
}

.blog-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}

.blog-top-links a {
  text-decoration: none;
}

.blog-top-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-top-links .blog-top-download {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

.blog-top-links .blog-top-download:hover {
  text-decoration: none;
  background: var(--bg-deep);
}

.blog {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 40px) 56px;
  overflow-wrap: break-word;
}

.blog-hero {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.blog-kicker,
.post-tags {
  margin: 0 0 12px;
  font: 700 13px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.blog-kicker a,
.post-tags a {
  color: inherit;
  text-decoration: none;
}

.blog-kicker a:hover,
.post-tags a:hover {
  color: var(--fg);
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.blog-lead {
  margin: 18px 0 0;
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 500;
  color: var(--fg-dim);
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.blog-topics a {
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.blog-topics a:hover {
  border-color: var(--fg);
}

.blog-topics a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.blog-empty {
  padding: 48px 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-dim);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.post-card {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c2) 45%, transparent);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: var(--c1);
}

.post-card-blank {
  background:
    radial-gradient(90% 120% at 15% 10%, var(--c1), transparent 60%),
    radial-gradient(80% 120% at 90% 100%, var(--c2), transparent 65%),
    var(--bg);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 24px);
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.post-card-excerpt {
  margin: 0;
  font-weight: 500;
  color: var(--fg-dim);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.post-card-tags span {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c1) 70%, transparent);
  font-size: 13px;
  font-weight: 700;
}

.post-card-more {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 800;
}

.post-card-featured {
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

@media (min-width: 860px) {
  .post-card-featured .post-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .post-card-featured .post-card-cover {
    height: 100%;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .post-card-featured .post-card-body {
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
  }

  .post-card-featured h2 {
    font-size: clamp(28px, 3vw, 38px);
  }
}

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  font-weight: 700;
}

.blog-pager a,
.blog-pager span {
  min-width: 44px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.blog-pager a:hover {
  border-color: var(--fg);
}

.blog-pager [aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.blog-cta {
  margin-top: clamp(48px, 8vw, 88px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    var(--bg);
  color: #ffffff;
}

.blog-cta h2 {
  margin: 0;
  max-width: 18em;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.blog-cta p {
  max-width: 34em;
  margin: 12px 0 24px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.blog-cta-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.blog-cta-button:hover {
  transform: translateY(-2px);
}

.blog-missing .blog-cta-button {
  margin-top: 12px;
  background: var(--ink);
  color: #ffffff;
}

/* One post */
.post {
  max-width: 1080px;
  margin: 0 auto;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.crumbs li[aria-current] {
  overflow: hidden;
  max-width: 28ch;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.crumbs a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.post-head {
  max-width: 760px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.post-head h1 {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.post-lead {
  margin: 18px 0 0;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg-dim);
}

.post-head .post-meta {
  margin-top: 20px;
}

.post-cover {
  margin: clamp(28px, 5vw, 44px) 0 0;
}

.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 24px;
}

.post-layout {
  display: grid;
  gap: 32px;
  margin-top: clamp(28px, 5vw, 48px);
}

.post-body {
  max-width: 720px;
  min-width: 0;
  font-size: 18px;
  font-weight: 450;
  line-height: 1.7;
}

@media (min-width: 1000px) {
  .post-layout.has-toc {
    grid-template-columns: minmax(0, 720px) 240px;
    justify-content: space-between;
  }

  .post-layout.has-toc .post-toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

.post-toc {
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 18px;
  font-size: 14px;
}

.post-toc h2 {
  margin: 0 0 10px;
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.post-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc .toc-3 {
  padding-left: 12px;
}

.post-toc .toc-4 {
  padding-left: 24px;
}

.post-toc a {
  font-weight: 600;
  color: var(--fg-dim);
  text-decoration: none;
}

.post-toc a:hover {
  color: var(--fg);
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body figure,
.post-body pre,
.post-body .callout {
  margin: 0 0 1.25em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 1.8em 0 0.6em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

.post-body h2 {
  font-size: clamp(26px, 3.4vw, 32px);
}

.post-body h3 {
  font-size: clamp(21px, 2.6vw, 24px);
}

.post-body h4 {
  font-size: 19px;
}

.post-body a {
  font-weight: 700;
  color: var(--bg-deep);
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4em;
}

.post-body li + li,
.post-body li > ul,
.post-body li > ol {
  margin-top: 0.4em;
}

.post-body li > ul,
.post-body li > ol {
  margin-bottom: 0;
}

.post-body blockquote {
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--c2);
  font-size: 1.08em;
  font-style: italic;
  color: var(--fg-dim);
}

.post-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  font-family: var(--mono);
  font-size: 0.86em;
}

.post-body pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: #e6edf6;
  font-size: 15px;
  line-height: 1.6;
  tab-size: 2;
}

.post-body pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.post-body pre[data-language]::before {
  content: attr(data-language);
  display: block;
  margin-bottom: 8px;
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.post-body figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
}

.post-body figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--fg-dim);
}

.post-body hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 2px solid var(--line);
}

.post-body .callout {
  padding: 16px 20px;
  border-radius: 16px;
  border-left: 5px solid var(--c2);
  background: color-mix(in srgb, var(--c1) 45%, var(--surface));
  font-size: 17px;
}

.post-body .callout p {
  margin: 0;
}

.post-body .callout p + p {
  margin-top: 0.6em;
}

.post-body .callout-tip {
  border-left-color: #1baf7a;
  background: #e9f8f1;
}

.post-body .callout-warning {
  border-left-color: #e8a317;
  background: #fff6e2;
}

/* In the text's column of .post-layout, under the body (its gap adds 32px). */
.post-end {
  max-width: 720px;
  min-width: 0;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 0;
  font-weight: 700;
}

.post-share span {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.post-share a {
  text-underline-offset: 3px;
}

.post-neighbours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 24px;
}

.post-neighbour {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.post-neighbour[rel="next"] {
  text-align: right;
}

.post-neighbour:hover {
  border-color: var(--fg);
}

.post-neighbour span {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.post-more {
  margin-top: clamp(48px, 8vw, 80px);
}

.post-more > h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 36px);
}

.blog-footer {
  max-width: var(--max);
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}
