/* SneakyNotes · sneakynotes.com
   One stylesheet, no frameworks, no external requests. Light page,
   Parkinsans throughout, vivid gradient cards and hand-drawn doodles.
   Spacing on an 8-point grid. The note colours and paper grain inside the
   demos are the app's own. */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/parkinsans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfaf8;
  --bg-2: #f3f1ec;
  --surface: #ffffff;
  --ink: #17151a;
  --ink-2: #57525c;
  --ink-3: #8b8690;
  --line: rgba(23, 21, 26, 0.09);
  --line-2: rgba(23, 21, 26, 0.16);

  /* Gradients (warm orange → rose → violet, and friends) */
  --g-sunset: linear-gradient(135deg, #ff8a3d 0%, #ff5c8a 52%, #a05cf7 100%);
  --g-violet: linear-gradient(140deg, #7b5cfa 0%, #b45cf2 100%);
  --g-ocean: linear-gradient(140deg, #2f7cf6 0%, #6a5cf7 100%);
  --g-rose: linear-gradient(140deg, #f2558f 0%, #ff8a5c 100%);
  --g-ink: linear-gradient(140deg, #201c26 0%, #3a2f4a 100%);

  --f-sans: "Parkinsans", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  --content: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 12vw, 152px);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --paper-grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'240'%20height%3D'240'%3E%3Cfilter%20id%3D'n'%20color-interpolation-filters%3D'sRGB'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.8%200.5'%20numOctaves%3D'4'%20seed%3D'11'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0.42%200%200%200%200.29000000000000004%200.42%200%200%200%200.29000000000000004%200.42%200%200%200%200.29000000000000004%200%200%200%200%201'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E");
  --paper-cloud: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'720'%20height%3D'720'%3E%3Cfilter%20id%3D'n'%20color-interpolation-filters%3D'sRGB'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.008'%20numOctaves%3D'3'%20seed%3D'3'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0.24%200%200%200%200.38%200.24%200%200%200%200.38%200.24%200%200%200%200.38%200%200%200%200%201'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
::selection {
  background: #ffd2b3;
}
:focus-visible {
  outline: 2.5px solid #7b5cfa;
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: var(--sp-4);
}
.container {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container-wide {
  width: min(1240px, 100% - 2 * var(--gutter));
}
.center {
  text-align: center;
}
/* Paper: the app's grain blended into whatever colour the element has. */
.paper.is-textured {
  background-image: var(--paper-grain), var(--paper-cloud);
  background-size: 240px 240px, 720px 720px;
  background-blend-mode: overlay, soft-light;
}

/* =================================================================== */
/* Demos (the app's look, drawn in CSS)                                 */
/* =================================================================== */

/* ---------- The stage (demo desktop) ---------- */
.stage-frame {
  width: 100%;
  padding: var(--sp-2);
  border-radius: calc(var(--r-lg) + var(--sp-2));
  background: var(--card);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.stage + .mono-fine,
.stage-frame + .mono-fine {
  margin-top: var(--sp-4);
}
.stage {
  --s: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1120 / 680;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #2a2520;
  text-align: left;
}
.stage-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 1120px;
  height: 680px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color: #1c1915;
  user-select: none;
}
.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 15% 20%, #f4c9a6 0%, transparent 60%),
    radial-gradient(55% 65% at 85% 15%, #c9b8e6 0%, transparent 62%),
    radial-gradient(70% 70% at 70% 95%, #9fc3dd 0%, transparent 60%),
    radial-gradient(60% 60% at 20% 95%, #e7a8a0 0%, transparent 60%),
    #e9d6c4;
}
.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-grain);
  background-size: 240px;
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.win {
  position: absolute;
  left: 92px;
  top: 64px;
  width: 700px;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: #fbfaf8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 60px -18px rgba(40, 20, 10, 0.45);
}
.win-bar {
  display: flex;
  align-items: center;
  height: 40px;
  padding-left: 16px;
  background: #f1eee9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: #4a443b;
}
.win-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--c, #7a8fbf);
}
.win-ctl {
  display: flex;
  margin-left: auto;
  height: 100%;
}
.win-ctl i {
  position: relative;
  width: 46px;
  height: 100%;
}
.win-ctl i::before,
.win-ctl i:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.3px;
  translate: -50% -50%;
  background: #6d665b;
}
.win-ctl i:nth-child(2)::before {
  height: 9px;
  background: none;
  border: 1.3px solid #6d665b;
  border-radius: 2px;
}
.win-ctl i:nth-child(3)::before {
  width: 12px;
  rotate: 45deg;
}
.win-ctl i:nth-child(3)::after {
  width: 12px;
  rotate: -45deg;
}
.win-body {
  position: absolute;
  inset: 40px 0 0;
  padding: 34px 48px;
  transition: opacity 0.4s var(--ease);
}
.win-sheet,
.win.is-sheet .win-doc {
  opacity: 0;
}
.win.is-sheet .win-sheet {
  opacity: 1;
}
.doc-h {
  width: 46%;
  height: 22px;
  margin-bottom: 22px;
  border-radius: 6px;
  background: #2f2a24;
  opacity: 0.85;
}
.doc-l {
  height: 10px;
  margin-bottom: 13px;
  border-radius: 5px;
  background: #d9d3ca;
}
.w95 { width: 95%; }
.w90 { width: 90%; }
.w85 { width: 85%; }
.w80 { width: 80%; }
.w70 { width: 70%; }
.w60 { width: 60%; }
.doc-gap {
  height: 16px;
}
.doc-img {
  width: 56%;
  height: 120px;
  margin-top: 22px;
  border-radius: 10px;
  background:
    radial-gradient(40% 60% at 30% 40%, #f4c9a6, transparent 70%),
    radial-gradient(40% 60% at 75% 60%, #9fc3dd, transparent 70%),
    #e8e1d6;
}
.sheet-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border: 1px solid #e3ded6;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  color: #3a352e;
}
.sheet-grid span {
  padding: 9px 14px;
  border-bottom: 1px solid #ece8e1;
  border-right: 1px solid #ece8e1;
  font-variant-numeric: tabular-nums;
}
.sheet-grid .sh {
  background: #eef4ee;
  font-weight: 600;
  color: #2e5a3c;
}
.sheet-grid .hl {
  background: #fbf3d6;
  font-weight: 600;
}
.sheet-chart {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 150px;
  margin-top: 28px;
  padding: 0 8px;
  border-bottom: 2px solid #e3ded6;
}
.sheet-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#7fbf91, #5fa77a);
}
/* ---------- The deck, as the app draws it ---------- */
.stage-screen,
.mini-deck-host {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.stage-screen > *,
.mini-deck-host > * {
  pointer-events: auto;
}
.sdeck {
  --pill-stroke: rgba(25, 20, 12, 0.22);
  --pill-highlight: rgba(255, 255, 255, 0.6);
  --pill-ink: #2a2620;
  --shadow-tab: 0 0.5px 1px rgba(45, 33, 15, 0.12), 0 2px 5px rgba(45, 33, 15, 0.1);
  --shadow-tab-lift: 0 1px 2px rgba(45, 33, 15, 0.12), 0 6px 14px rgba(45, 33, 15, 0.16);
  --signal: #d2692e;
  --signal-soft: rgba(210, 105, 46, 0.22);
  --spring-soft: cubic-bezier(0.25, 1.1, 0.45, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stab,
.splus {
  pointer-events: auto;
}
.stab {
  position: absolute;
  cursor: pointer;
  transition:
    left 0.34s var(--spring-soft),
    top 0.34s var(--spring-soft),
    width 0.34s var(--spring-soft),
    height 0.34s var(--spring-soft),
    opacity 0.9s var(--ease);
}
.stab-body {
  position: absolute;
  inset: 0;
  rotate: 0deg;
  transition:
    translate 0.24s var(--spring),
    rotate 0.34s var(--spring-soft),
    scale 0.16s var(--ease);
}
[data-edge="right"] .stab-body {
  translate: calc(var(--lean) * -1) 0;
  transform-origin: 100% 50%;
}
[data-edge="left"] .stab-body {
  translate: var(--lean) 0;
  transform-origin: 0 50%;
}
[data-edge="top"] .stab-body {
  translate: 0 var(--lean);
  transform-origin: 50% 0;
}
.stab:active .stab-body {
  scale: 0.97;
}
/* Pill and ticket share one skin, so the change is one continuous move. */
.stab-pill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--note-bg);
  box-shadow:
    inset 0 0 0 1px var(--pill-stroke),
    inset 0 1px 0 var(--pill-highlight),
    var(--shadow-tab);
  transition:
    border-radius 0.34s var(--spring-soft),
    box-shadow 0.24s var(--ease);
}
/* The deeper band down the pill's outer side. */
.stab-pill::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--band);
  background: color-mix(in oklab, var(--note-bg) 35%, var(--note-edge));
  transition: opacity 0.24s var(--ease);
}
[data-edge="right"] .stab-pill::before {
  left: 0;
}
[data-edge="left"] .stab-pill::before {
  right: 0;
}
[data-edge="top"] .stab-pill::before {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: var(--band);
}
.stab-perf {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s var(--ease);
}
[data-edge="right"] .stab-perf,
[data-edge="left"] .stab-perf {
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, color-mix(in oklab, var(--pill-ink) 34%, transparent) 0 3px, transparent 3px 6px);
}
[data-edge="right"] .stab-perf {
  left: var(--strip);
}
[data-edge="left"] .stab-perf {
  right: var(--strip);
}
[data-edge="top"] .stab-perf {
  left: 0;
  right: 0;
  bottom: var(--strip);
  height: 1px;
  background: repeating-linear-gradient(to right, color-mix(in oklab, var(--pill-ink) 34%, transparent) 0 3px, transparent 3px 6px);
}
.stab-label {
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: var(--label, 11.5px);
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--note-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}
.stab-shape {
  position: absolute;
  display: none;
  overflow: visible;
  filter: drop-shadow(0 0.5px 0.5px rgba(45, 33, 15, 0.16)) drop-shadow(0 2px 3px rgba(45, 33, 15, 0.1));
  transition: filter 0.24s var(--ease);
}
.stab-fill {
  fill: var(--note-bg);
}
.stab-stroke {
  fill: none;
  stroke: var(--note-edge);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Pills at rest: no label, half tucked. */
/* Tickets (pointer at the edge): the stub of a card behind the edge, a
   bold label running up it, a perforation where the card begins. */
.sdeck[data-mode="ticket"] .stab-body {
  rotate: var(--tilt);
}
.sdeck[data-mode="ticket"] .stab-pill::before {
  opacity: 0;
}
.sdeck[data-mode="ticket"][data-edge="right"] .stab-pill {
  right: calc(var(--deck-inset, 8px) * -1);
}
.sdeck[data-mode="ticket"][data-edge="left"] .stab-pill {
  left: calc(var(--deck-inset, 8px) * -1);
}
.sdeck[data-mode="ticket"][data-edge="top"] .stab-pill {
  top: calc(var(--deck-inset, 8px) * -1);
}
.sdeck[data-mode="ticket"] .stab-perf {
  opacity: 1;
  transition-delay: 0.16s;
}
.sdeck[data-mode="ticket"] .stab-label {
  opacity: 1;
  font-size: var(--label, 10.5px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pill-ink);
  transition: opacity 0.24s var(--ease) 0.16s;
}
.sdeck[data-mode="ticket"][data-edge="right"] .stab-label,
.sdeck[data-mode="ticket"][data-edge="left"] .stab-label {
  top: 12px;
  bottom: 12px;
  width: var(--strip);
  line-height: var(--strip);
  writing-mode: vertical-rl;
  /* Reads bottom to top, like the spine of a book. */
  rotate: 180deg;
}
.sdeck[data-mode="ticket"][data-edge="right"] .stab-label {
  left: 0;
}
.sdeck[data-mode="ticket"][data-edge="left"] .stab-label {
  left: calc(var(--depth) - var(--strip));
}
.sdeck[data-mode="ticket"][data-edge="top"] .stab-label {
  top: calc(var(--depth) - var(--strip));
  left: 12px;
  right: 12px;
  height: var(--strip);
  line-height: var(--strip);
}
.stab.is-hot .stab-pill {
  box-shadow:
    inset 0 0 0 1px var(--pill-stroke),
    inset 0 1px 0 var(--pill-highlight),
    var(--shadow-tab-lift);
}
.stab.is-matched .stab-pill {
  box-shadow:
    inset 0 0 0 1px var(--pill-stroke),
    0 0 0 2px var(--signal),
    0 0 12px var(--signal-soft);
}

/* Labelled tabs: index-divider shapes, title reading down the tab. */
.sdeck[data-mode="tab"] .stab-pill,
.sdeck[data-mode="tab"] .stab-perf {
  display: none;
}
.sdeck[data-mode="tab"] .stab-shape {
  display: block;
}
.sdeck[data-mode="tab"] .stab.is-hot .stab-shape {
  filter: drop-shadow(0 1px 1px rgba(45, 33, 15, 0.14)) drop-shadow(0 6px 9px rgba(45, 33, 15, 0.18));
}
.sdeck[data-mode="tab"] .stab.is-matched .stab-stroke {
  stroke: var(--signal);
  stroke-width: 1.5;
}
.sdeck[data-mode="tab"] .stab-label {
  opacity: 1;
  line-height: var(--depth);
}
.sdeck[data-mode="tab"][data-edge="right"] .stab-label,
.sdeck[data-mode="tab"][data-edge="left"] .stab-label {
  left: 0;
  width: var(--depth);
  top: 16px;
  bottom: 16px;
  writing-mode: vertical-rl;
}
.sdeck[data-mode="tab"][data-edge="left"] .stab-label {
  rotate: 180deg;
}
.sdeck[data-mode="tab"][data-edge="top"] .stab-label {
  top: 0;
  height: var(--depth);
  left: 16px;
  right: 16px;
}

/* The + with a live colour ring. */
.splus {
  position: absolute;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.5px 1px rgba(45, 33, 15, 0.12), 0 2px 5px rgba(45, 33, 15, 0.1);
  cursor: pointer;
  isolation: isolate;
  transition:
    left 0.34s var(--spring-soft),
    top 0.34s var(--spring-soft),
    scale 0.22s var(--spring),
    opacity 0.2s var(--ease);
}
.splus:hover {
  scale: 1.1;
}
/* Resting pills keep the + tucked away; it shows once the deck wakes. */
.sdeck[data-mode="pill"] .splus {
  opacity: 0;
  scale: 0.5;
  pointer-events: none;
}
.splus::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 0deg, #ff8fa3, #ffc56e, #7ee0b5, #7fb2ff, #c59bff, #ff8fa3) border-box;
  opacity: 0;
  transition: opacity 0.34s var(--ease);
  animation: plus-spin 6s linear infinite;
  animation-play-state: paused;
}
.sdeck.is-awake .splus::before {
  opacity: 1;
  animation-play-state: running;
}
.splus i {
  position: relative;
  width: 11px;
  height: 11px;
}
.splus i::before,
.splus i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.8px;
  translate: -50% -50%;
  border-radius: 2px;
  background: #23201c;
}
.splus i::after {
  rotate: 90deg;
}
@keyframes plus-spin {
  to {
    rotate: 1turn;
  }
}

/* The pulled-out note (preview card). */
.pcard {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 300px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--note-edge);
  background-color: var(--note-bg);
  color: var(--note-ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(45, 33, 15, 0.08),
    0 6px 16px rgba(45, 33, 15, 0.1),
    0 18px 38px -10px rgba(45, 33, 15, 0.22);
  opacity: 0;
  scale: 0.97;
  translate: 42px 0;
  transform-origin: right center;
  pointer-events: none;
  transition:
    translate 0.4s var(--ease),
    scale 0.4s var(--ease),
    opacity 0.32s var(--ease),
    top 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.pcard.is-open {
  opacity: 1;
  scale: 1;
  translate: 0 0;
  transition:
    translate 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.31s var(--ease),
    top 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.pc-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px 2px;
}
.pc-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.pc-age {
  flex: none;
  font-size: 11px;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}
.pc-perf,
.nw-perf,
.nm-perf {
  height: 12px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--note-ink) 30%, transparent) 1.1px, transparent 1.7px);
  background-size: 8px 12px;
  background-repeat: repeat-x;
  background-position: center;
}
.pc-perf {
  margin: 0 16px;
}
.pc-body {
  margin: 4px 16px 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.5;
}
.pc-chips {
  margin: -4px 16px 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--note-ink) 9%, transparent);
  font-size: 11px;
  font-weight: 600;
}
.chip.is-live {
  background: #fff3c4;
  box-shadow: 0 0 0 1px rgba(200, 150, 30, 0.35);
}
.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d68a12;
}

/* The note window, as the app draws it. */
.note-win {
  position: absolute;
  z-index: 4;
  left: 410px;
  top: 70px;
  width: 470px;
  height: 470px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--note-edge);
  background-color: var(--note-bg);
  color: var(--note-ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 30px 70px -20px rgba(40, 20, 10, 0.55);
  opacity: 0;
  transform: translate(120px, 20px) scale(0.86);
  transform-origin: 100% 50%;
  transition:
    opacity 0.35s var(--ease),
    transform 0.6s var(--spring);
  pointer-events: none;
}
.note-win.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.note-win svg {
  width: 100%;
  height: 100%;
}
.nw-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: 8px 8px 0;
}
.nw-clock {
  justify-self: start;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  color: color-mix(in srgb, var(--note-ink) 70%, transparent);
}
.nw-clock svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.nw-title {
  padding: 5px 11px;
  border-radius: 9px;
  background: color-mix(in oklab, var(--note-ink) 7%, var(--note-bg));
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 14.4px;
  font-weight: 600;
}
.nw-ctl {
  justify-self: end;
  display: flex;
  gap: 4px;
}
.nw-ctl span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 4px;
  opacity: 0.8;
}
.nw-ctl [data-close] {
  cursor: pointer;
}
.nw-perf {
  margin: 0 16px;
}
.nw-tools {
  display: flex;
  align-items: center;
  padding: 8px 12px 4px 13px;
}
.nw-tools-l {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nw-tool {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  opacity: 0.86;
}
.nw-tool svg {
  width: 14px;
  height: 14px;
}
.nw-tool svg :is(path, circle) {
  stroke-width: 1.9;
}
.nw-tool.is-bold svg path {
  stroke-width: 2.75;
}
.nw-tools > .nw-tool {
  margin-left: auto;
}
.nw-sep {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: color-mix(in srgb, var(--note-ink) 16%, transparent);
}
.nw-body {
  flex: 1;
  overflow: hidden;
  padding: 4px 16px 12px;
  font-size: 14.5px;
  line-height: 1.55;
}
.nw-body p {
  margin: 0 0 2px;
}
.nw-h {
  margin-top: 6px !important;
  font-weight: 700;
}
.nw-task,
.nm-task {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nw-task i,
.nm-task i {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid color-mix(in srgb, var(--note-ink) 62%, transparent);
  border-radius: 4px;
}
.nw-task.is-done i,
.nm-task.is-done i {
  background: var(--note-ink);
  border-color: var(--note-ink);
}
.nw-task.is-done span {
  color: color-mix(in srgb, var(--note-ink) 60%, transparent);
  text-decoration: line-through;
}
.nw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 8px 8px 16px;
  border-top: 1px solid color-mix(in srgb, var(--note-edge) 85%, transparent);
}
.nw-theme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: color-mix(in srgb, var(--note-ink) 75%, transparent);
}
.nw-theme > i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--note-bg);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--note-ink) 28%, transparent),
    0 0 0 1.5px var(--note-bg),
    0 0 0 2.5px color-mix(in oklab, var(--note-ink) 22%, transparent);
}
.nw-chev {
  width: 12px;
  height: 12px;
  rotate: -90deg;
}
.nw-actions {
  display: flex;
  gap: 4px;
}
.nw-actions span {
  width: 24px;
  height: 24px;
  padding: 4px;
}

/* Shared with the colour demo's note. */
.note-mock {
  --note-bg: #d7e2c5;
  --note-edge: #b8c8a0;
  --note-ink: #141810;
  background-color: var(--note-bg);
  color: var(--note-ink);
}
.nm-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nm-title {
  padding: 4px 11px;
  border-radius: 9px;
  background: color-mix(in oklab, var(--note-ink) 8%, transparent);
  font-weight: 650;
}

.taskbar {
  position: absolute;
  inset: auto 0 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 246, 240, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}
.tb-icons {
  display: flex;
  gap: 10px;
}
.tb-icons i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tb-clock {
  position: absolute;
  right: 18px;
  font-size: 12.5px;
  color: #4a443b;
}
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 26px;
  height: 26px;
  fill: #1c1915;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  translate: 560px 340px;
  transition: translate 0.9s var(--ease), scale 0.15s var(--ease);
  pointer-events: none;
}
.cursor.is-click {
  scale: 0.82;
}
.stage.is-manual .cursor {
  opacity: 0;
  transition: opacity 0.3s;
}

/* Mini screens (light scenes inside the dark tiles) */
.mini-screen,
.yours-desk {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  color: #1c1915;
}
.mini-wall,
.yours-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 20% 20%, #f4c9a6, transparent 62%),
    radial-gradient(55% 65% at 85% 25%, #c9b8e6, transparent 62%),
    radial-gradient(70% 70% at 60% 100%, #9fc3dd, transparent 60%),
    #e9d6c4;
}
.mini-win {
  position: absolute;
  inset: 13% 22% 17% 12%;
  display: grid;
  align-content: start;
  gap: 9%;
  padding: 10% 9%;
  border-radius: 10px;
  background: #fbfaf8;
  box-shadow: 0 16px 36px -14px rgba(40, 20, 10, 0.4);
}
.mini-win i {
  height: 8px;
  border-radius: 4px;
  background: #ddd7ce;
}
.mini-win i:nth-child(1) {
  width: 55%;
  height: 12px;
  background: #3a352e;
  opacity: 0.75;
}
.mini-win i:nth-child(3) {
  width: 75%;
}
/* Context demo */
.ctx-win {
  position: absolute;
  inset: 11% 30% 13% 8%;
  border-radius: 10px;
  overflow: hidden;
  background: #fbfaf8;
  box-shadow: 0 16px 36px -14px rgba(40, 20, 10, 0.4);
  transition: transform 0.45s var(--ease);
}
.ctx-win.is-swapping {
  transform: scale(0.97);
}
.ctx-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  background: #f1eee9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: #4a443b;
  white-space: nowrap;
  overflow: hidden;
}
.ctx-bar .app-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.ctx-body {
  position: absolute;
  inset: 28px 0 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 8%;
}
.ctx-body i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #ddd7ce;
}
.ctx-body .cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.ctx-body .cells i {
  height: 14px;
  border-radius: 3px;
  background: #eef0ea;
}
.ctx-body .cells i.h {
  background: #dfeee2;
}
.ctx-body .swatch-row {
  display: flex;
  gap: 8px;
}
.ctx-body .swatch-row i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.ctx-deck {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.ctx-deck span {
  width: 12px;
  height: 44px;
  border-radius: 999px 0 0 999px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px var(--e), 0 4px 10px -4px rgba(40, 20, 10, 0.35);
  transition:
    width 0.55s var(--spring),
    box-shadow 0.4s var(--ease);
}
.ctx-deck span.is-bound {
  width: 24px;
  box-shadow:
    inset 0 0 0 1px var(--e),
    0 0 0 2.5px rgba(255, 255, 255, 0.8),
    0 0 18px 3px rgba(255, 214, 120, 0.95);
}
.ctx-card {
  position: absolute;
  right: 32px;
  top: 50%;
  width: 48%;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: var(--note-bg, #d7e2c5);
  color: #1c1915;
  box-shadow:
    inset 0 0 0 1px var(--note-edge, #b8c8a0),
    0 18px 40px -14px rgba(40, 20, 10, 0.5);
  transform: translate(26px, -50%) scale(0.96);
  opacity: 0;
  transition:
    opacity 0.3s var(--ease),
    transform 0.5s var(--ease);
}
.ctx-card.is-open {
  opacity: 1;
  transform: translate(0, -50%);
}
.ctx-card b {
  display: block;
  font-size: 13px;
}
.ctx-card p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
}
.ctx-card .chip {
  margin-top: 6px;
  font-size: 10px;
}

/* Fade demo */
.fade-tab {
  position: absolute;
  right: 0;
  top: 26%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 112px;
  border-radius: 12px 0 0 12px;
  background: #ebcbc3;
  box-shadow: inset 0 0 0 1px #d4a99f, 0 6px 14px -6px rgba(40, 20, 10, 0.4);
  transition: opacity 0.2s linear;
}
.fade-tab span {
  writing-mode: vertical-rl;
  font-size: 11.5px;
  font-weight: 650;
  color: #1b1412;
  white-space: nowrap;
}
.fade-tab.is-archived {
  animation: to-archive 0.9s var(--ease) forwards;
}
@keyframes to-archive {
  to {
    right: 72%;
    top: 72%;
    width: 30px;
    height: 30px;
    opacity: 0;
    border-radius: 8px;
  }
}
.fade-archive {
  position: absolute;
  left: 7%;
  bottom: 9%;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 12px 7px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 8px 20px -10px rgba(40, 20, 10, 0.35);
  font-size: 11px;
  font-weight: 600;
  color: #4a443b;
  transition: transform 0.4s var(--spring);
}
.fade-archive.is-hit {
  transform: scale(1.12);
}
.fade-archive svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #4a443b;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fade-slider {
  display: grid;
  gap: var(--sp-2);
}
input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--card-2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--peach);
}

/* Make it yours */
.yours-desk {
  display: grid;
  place-items: center;
}
.note-mock {
  position: relative;
  width: min(62%, 300px);
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px var(--note-edge),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 30px 60px -22px rgba(40, 20, 10, 0.55);
  rotate: -2deg;
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease);
}
.nm-head {
  padding: 12px 12px 0;
}
.nm-clock {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.nm-title {
  font-size: 13.5px;
}
.nm-x {
  position: relative;
  justify-self: end;
  width: 11px;
  height: 11px;
  opacity: 0.6;
}
.nm-x::before,
.nm-x::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  rotate: 45deg;
}
.nm-x::after {
  rotate: -45deg;
}
.nm-perf {
  height: 10px;
  margin: 8px 14px 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--note-ink) 30%, transparent) 1.1px, transparent 1.7px);
  background-size: 8px 10px;
  background-repeat: repeat-x;
  background-position: center;
}
.nm-body {
  padding: 8px 16px 16px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.8;
}
.nm-body.font-serif {
  font-family: "Sitka Text", Georgia, serif;
}
.nm-body.font-hand {
  font-family: var(--f-hand);
  font-size: 20px;
  line-height: 1.5;
}
.nm-body.font-mono {
  font-family: var(--f-mono);
  font-size: 13px;
}
.nm-task.is-done {
  text-decoration: line-through;
  opacity: 0.55;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-bottom: var(--sp-1);
}
.swatches button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  transition:
    transform 0.3s var(--spring),
    box-shadow 0.2s var(--ease);
}
.swatches button:hover {
  transform: scale(1.14);
}
.swatches button[aria-checked="true"] {
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 4px var(--ink);
}


/* =================================================================== */
/* Page                                                                 */
/* =================================================================== */

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  max-width: 620px;
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: balance;
}
.underline {
  position: relative;
  white-space: nowrap;
}
.underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  height: 0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C60 4 120 6 170 9s96 2 126-4' fill='none' stroke='%23ff5c8a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Pills (buttons) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 44px;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--spring),
    box-shadow 0.3s var(--ease),
    background-color 0.2s var(--ease);
}
.pill:hover {
  transform: translateY(-2px);
}
.pill:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.pill-lg {
  height: 56px;
  padding: 0 var(--sp-8);
  font-size: 17px;
}
.pill-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(23, 21, 26, 0.6);
}
.pill-ink:hover {
  box-shadow: 0 16px 30px -12px rgba(23, 21, 26, 0.6);
}
.pill-line {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.pill-line:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.pill-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(40, 10, 40, 0.5);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  width: min(var(--content), 100% - 2 * var(--gutter));
  height: 72px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.nav-links {
  display: flex;
  gap: var(--sp-4);
  margin-inline: auto;
}
.nav-links a {
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.nav-cta {
  display: flex;
  gap: var(--sp-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--sp-16);
  isolation: isolate;
  overflow-x: clip;
}
.hero-copy {
  display: grid;
  justify-items: center;
  gap: var(--sp-6);
  text-align: center;
}
.hero .h1 {
  margin-top: var(--sp-2);
}
.hero .hl {
  white-space: nowrap;
}
.rotator {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  vertical-align: bottom;
  white-space: nowrap;
}
.rot-tile {
  flex: none;
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  border-radius: 0.22em;
  background: var(--c, #5fa77a);
  box-shadow: inset 0 -0.06em 0 rgba(0, 0, 0, 0.12), 0 0.08em 0.2em -0.06em rgba(0, 0, 0, 0.3);
  transition: background-color 0.4s var(--ease);
}
[data-rot-word] {
  display: inline-block;
  background: var(--g-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease),
    filter 0.3s var(--ease);
}
.rotator.is-swapping [data-rot-word] {
  opacity: 0;
  transform: translateY(0.3em);
  filter: blur(4px);
}
.hero .pill-lg {
  margin-top: var(--sp-4);
}

/* Hand-drawn doodles */
.doodle {
  position: absolute;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
/* Doodles sit in the margins around the copy, never over the headline. */

/* ---------- The live desktop, framed like a screen ---------- */
.showcase {
  margin-top: var(--sp-16);
}
.showcase .stage-frame {
  padding: 9px;
  border-radius: calc(var(--r-lg) + 9px);
  background: linear-gradient(180deg, #6b6966, #4d4b49);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(23, 21, 26, 0.3),
    0 40px 80px -40px rgba(40, 25, 15, 0.5);
}

/* ---------- Sections ---------- */
.section {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin: var(--section) auto 0;
}
.section-tight {
  margin-top: var(--sp-24);
}
.section > .h2 {
  margin-bottom: var(--sp-12);
}

/* Who it's for */
.who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
  text-align: center;
}
.who article {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
}
.who svg {
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-2);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.who h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.who p {
  max-width: 320px;
  color: var(--ink-2);
}

/* ---------- Feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8);
}
@media (min-width: 981px) {
  .bento > .feat:not(.feat-wide) {
    aspect-ratio: 1;
    grid-template-rows: auto auto auto 1fr;
    /* clip (not hidden) so a card can still grow if its content needs it */
    overflow: clip;
    width: 100%;
    min-width: 0;
    /* Cards in a row stay the same height if one has to grow. */
    align-self: stretch;
  }
  .bento > .feat:not(.feat-wide) > .feat-demo {
    align-self: end;
    margin-top: var(--sp-3);
  }
  .feat-demo .mini-screen,
  .feat-demo .yours-desk {
    width: min(100%, 400px);
    margin-inline: auto;
  }
  .feat-demo .yours-desk {
    width: min(100%, 356px);
  }
}
@media (min-width: 981px) and (max-width: 1279px) {
  /* Narrower cards: smaller screens so the cards stay (close to) square. */
  .feat-demo .mini-screen {
    width: min(100%, 360px);
  }
  .feat-demo .yours-desk {
    width: min(100%, 320px);
  }
}
.feat {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--paper-grain);
  background-size: 240px;
  mix-blend-mode: soft-light;
  opacity: 0.5;
}
.g-sunset {
  background: var(--g-sunset);
}
.g-violet {
  background: var(--g-violet);
}
.g-ocean {
  background: var(--g-ocean);
}
.g-rose {
  background: var(--g-rose);
}
.g-ink {
  background: var(--g-ink);
}
.tag {
  justify-self: start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}
.feat h3 {
  margin-top: var(--sp-2);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.feat > p {
  max-width: 440px;
  font-size: 16px;
  opacity: 0.88;
}
.feat-demo {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.feat-demo .mini-screen,
.feat-demo .yours-desk {
  border-radius: var(--r-md);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.22),
    0 24px 48px -20px rgba(30, 10, 40, 0.55);
}
.feat-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
}
/* Controls on the gradient cards: frosted white */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.seg button,
.app-chips button {
  height: 32px;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.seg button[aria-checked="true"],
.app-chips button[aria-checked="true"] {
  background: #fff;
  color: var(--ink);
}
.app-chips button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.app-chips i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--c);
}
/* On the feature cards the controls stay small and quiet. */
.feat .seg {
  padding: 2px;
}
.feat .seg button,
.feat .app-chips button {
  height: 26px;
  padding: 0 10px;
  font-size: 12.5px;
}
.feat .app-chips {
  gap: 6px;
}
.feat .app-chips button {
  gap: 6px;
}
.feat .app-chips i {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
}
.feat .swatches {
  justify-content: center;
  gap: 7px;
}
.feat .swatches button {
  width: 20px;
  height: 20px;
}
.fade-slider {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
}
.feat .fade-slider input[type="range"] {
  max-width: 320px;
  height: 22px;
}
.feat input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
}
.feat input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
}
.slider-label {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}
input[type="range"]::-moz-range-track {
  background: rgba(255, 255, 255, 0.3);
}
input[type="range"]::-webkit-slider-thumb {
  background: #fff;
}
input[type="range"]::-moz-range-thumb {
  background: #fff;
}
.swatches {
  margin-bottom: 0;
}
.swatches button {
  box-shadow: inset 0 0 0 1px rgba(23, 21, 26, 0.12);
}
.swatches button[aria-checked="true"] {
  box-shadow:
    0 0 0 2px #f2558f,
    0 0 0 4px #fff;
}

/* Privacy (wide card) */
.feat-wide {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-10);
}
.feat-wide-copy {
  display: grid;
  gap: var(--sp-3);
}
.feat-wide-copy > p {
  opacity: 0.85;
}
.feat-wide .text-link {
  margin-top: var(--sp-2);
  color: #ffb98f;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.facts b {
  font-size: 18px;
  font-weight: 700;
}
.facts span {
  font-size: 14.5px;
  opacity: 0.7;
}

/* ---------- Pricing: a ticket, like the deck's ticket tabs ---------- */
.launch-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #ff6a2b;
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.18);
  animation: launch-pulse 2.4s var(--ease) infinite;
}
@keyframes launch-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(255, 106, 43, 0);
  }
}
[data-site-when][hidden],
[data-site-unless][hidden] {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ticket-shadow {
  max-width: 900px;
  margin: var(--sp-12) auto 0;
  filter: drop-shadow(0 1px 1px rgba(40, 20, 60, 0.1)) drop-shadow(0 18px 30px rgba(40, 20, 60, 0.1));
}
.ticket {
  --stub: 352px;
  --notch: 16px;
  display: grid;
  grid-template-columns: var(--stub) 1fr;
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
  /* Two bites out of the edges where the stub tears off. */
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--sp-1);
  padding: var(--sp-10);
  background: var(--g-sunset);
  color: #fff;
  isolation: isolate;
}
.ticket-stub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--paper-grain);
  background-size: 240px;
  mix-blend-mode: soft-light;
  opacity: 0.6;
}
/* The perforation */
.ticket-stub::after {
  content: "";
  position: absolute;
  top: calc(var(--notch) + 12px);
  bottom: calc(var(--notch) + 12px);
  right: -1px;
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
}
.ticket-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
}
.ticket-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.ticket-once {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-size: 15px;
  font-weight: 500;
}
.ticket-once s {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.75;
  text-decoration-thickness: 2px;
}
.ticket-spots {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1.5px solid rgba(255, 255, 255, 0.32);
  font-size: 15px;
  font-weight: 600;
}
.ticket-body {
  display: grid;
  align-content: center;
  gap: var(--sp-6);
  padding: var(--sp-10) var(--sp-10) var(--sp-10) var(--sp-12);
}
.ticket-head h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ticket-head p {
  color: var(--ink-2);
}
.checks {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: var(--sp-8);
  font-weight: 500;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--g-sunset);
}
.price-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.price-cta .pill {
  width: 100%;
}

/* ---------- Ready band ---------- */
.ready {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-12) var(--sp-12);
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
}
.ready h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ready p {
  margin-top: var(--sp-2);
  font-size: 18px;
  opacity: 0.9;
}
.doodle-arrow {
  position: static;
  width: 120px;
  margin-left: auto;
  stroke: #fff;
  stroke-width: 3;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--sp-3);
  max-width: 760px;
  margin: 0 auto;
}
details {
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease);
}
details[open] {
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 16px 30px -20px rgba(40, 20, 60, 0.25);
}
summary {
  position: relative;
  padding: var(--sp-5) var(--sp-16) var(--sp-5) var(--sp-6);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: var(--sp-6);
  top: 50%;
  width: 28px;
  height: 28px;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--bg-2);
  transition: rotate 0.35s var(--spring);
}
details[open] summary::after {
  rotate: 45deg;
}
details p {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--ink-2);
}

/* ---------- Legal pages ---------- */
.legal {
  width: min(720px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: var(--sp-16);
}
.legal-head {
  display: grid;
  gap: var(--sp-3);
  padding-bottom: var(--sp-10);
  margin-bottom: var(--sp-10);
  border-bottom: 1px solid var(--line);
}
.legal-head .tag {
  color: #fff;
  background: var(--g-sunset);
  box-shadow: none;
}
.legal-summary {
  margin-bottom: var(--sp-12);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal-summary p + p {
  margin-top: var(--sp-2);
}
.legal h2 {
  margin: var(--sp-12) 0 var(--sp-3);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.legal h3 {
  margin: var(--sp-6) 0 var(--sp-2);
  font-size: 17px;
  font-weight: 700;
}
.legal p,
.legal li {
  color: var(--ink-2);
  line-height: 1.65;
}
.legal b {
  color: var(--ink);
}
.legal p + p {
  margin-top: var(--sp-3);
}
.legal ul {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 0;
  padding-left: var(--sp-6);
}
.legal a {
  color: #c2410c;
  text-underline-offset: 3px;
}
.fine {
  font-size: 15px;
  color: var(--ink-3);
}


/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}

/* ---------- Words that rise (headings) ---------- */
.rise-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: bottom;
}
.rise-word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0.001;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--rise-delay, 0s),
    opacity 0.6s ease var(--rise-delay, 0s);
  will-change: transform;
}
.is-risen .rise-word {
  transform: none;
  opacity: 1;
}
.no-js .rise-word {
  transform: none;
  opacity: 1;
}

/* ---------- Hero: Windows chip, two buttons ---------- */
.os-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.os-chip svg {
  width: 18px;
  height: 18px;
  fill: #0078d4;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.hero-fine {
  margin-top: calc(var(--sp-2) * -1);
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Hero: little notes, stars and threads floating around ---------- */
.floaters {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.fl {
  position: absolute;
  left: var(--x);
  top: var(--y);
  rotate: var(--r);
  animation: drift var(--t, 14s) ease-in-out var(--d, 0s) infinite alternate;
  will-change: transform;
}
.fl-note {
  display: grid;
  align-content: start;
  gap: 7px;
  width: 128px;
  padding: 12px 14px 16px;
  border-radius: 12px;
  background-color: var(--c);
  background-image: var(--paper-grain);
  background-size: 160px;
  background-blend-mode: overlay;
  box-shadow:
    inset 0 0 0 1px var(--e),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 30px -14px rgba(60, 30, 20, 0.35);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
.fl-note b {
  padding-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1b150f;
  background: radial-gradient(circle, rgba(27, 21, 15, 0.3) 0.9px, transparent 1.3px) 0 100% / 6px 4px repeat-x;
}
.fl-note i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(27, 21, 15, 0.16);
}
.fl-note i:nth-of-type(2) {
  width: 78%;
}
.fl-note i:nth-of-type(3) {
  width: 56%;
}
.fl-sm {
  width: 104px;
  scale: 0.9;
}
/* Sparkle stars and loose threads, drawn by hand. */
.fl-star,
.fl-thread {
  width: var(--w);
}
.fl-star svg,
.fl-thread svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fl-star svg path {
  fill: var(--c);
  stroke-width: 1.8px;
  vector-effect: non-scaling-stroke;
}
.fl-thread svg path {
  fill: none;
  stroke-width: 2.2px;
  vector-effect: non-scaling-stroke;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(10px, -18px, 0) rotate(3deg);
  }
  100% {
    transform: translate3d(-8px, 12px, 0) rotate(-2.5deg);
  }
}

/* ---------- The small any-edge deck: drawn at 760 × 475, scaled ---------- */
.mini-deck-host {
  inset: auto;
  left: 0;
  top: 0;
  width: 760px;
  height: 475px;
  transform: scale(var(--ms, 0.6));
  transform-origin: 0 0;
}
.mini-screen[data-mini-deck] {
  aspect-ratio: 16 / 10;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: var(--section);
  padding: var(--sp-16) 0 0;
  background: var(--bg-2);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-10);
}
.footer-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--sp-4);
}
.footer-brand .brand {
  font-size: 22px;
}
.footer-brand p {
  max-width: 300px;
  color: var(--ink-2);
}
.footer nav {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
}
.footer nav b {
  margin-bottom: var(--sp-1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer nav a {
  justify-self: start;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.footer nav a:hover {
  background-size: 100% 1.5px;
}
.maker {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-16);
  padding: var(--sp-6) var(--sp-8);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 20px 40px -28px rgba(40, 20, 60, 0.3);
}
.maker-text {
  display: grid;
  gap: 2px;
}
.maker-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.maker-name {
  justify-self: start;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  background: var(--g-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.maker-note {
  color: var(--ink-2);
}
.maker-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.maker-links .ico {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill-coffee {
  background: #ffdd00;
  color: #1a160e;
  box-shadow: 0 10px 22px -12px rgba(160, 120, 0, 0.6);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-10);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.footer-word {
  margin: var(--sp-2) 0 -0.24em;
  font-size: clamp(56px, 15.6vw, 236px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(23, 21, 26, 0.08), rgba(23, 21, 26, 0.015));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}


/* ---------- 404 ---------- */
.lost {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--sp-5);
  min-height: 100vh;
  padding: var(--sp-12) var(--gutter);
  text-align: center;
}
.lost p {
  max-width: 420px;
  color: var(--ink-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  /* Narrower screens: only the floaters clear of the headline stay. */
  .fl-inner {
    display: none;
  }
  .fl {
    scale: 0.85;
  }
}
@media (max-width: 860px) {
  .hero .br-wide {
    display: none;
  }
  .hero .hl-a,
  .hero .rise-rot {
    display: block;
  }
}
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .bento,
  .feat-wide {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .maker {
    grid-template-columns: 1fr;
  }
  .floaters {
    display: none;
  }
}
@media (max-width: 720px) {
  .who {
    grid-template-columns: 1fr;
  }
  .ready {
    padding: var(--sp-10) var(--sp-6);
  }
  .doodle-arrow {
    display: none;
  }
  /* Pricing: the stub sits on top and tears off along the bottom. */
  .ticket {
    --stub-h: 252px;
    grid-template-columns: 1fr;
    grid-template-rows: var(--stub-h) auto;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .ticket-stub {
    justify-items: center;
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
  }
  .ticket-stub::after {
    top: auto;
    right: calc(var(--notch) + 12px);
    bottom: -1px;
    left: calc(var(--notch) + 12px);
    border-right: 0;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.6);
  }
  .ticket-price {
    font-size: 72px;
  }
  .ticket-spots {
    margin-top: var(--sp-4);
  }
  .ticket-body {
    padding: var(--sp-8) var(--sp-6);
  }
  .price-cta {
    grid-template-columns: 1fr;
  }

  /* Footer on phones: centred and compact. Brand, then short rows of links. */
  .footer {
    padding-top: var(--sp-12);
  }
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--sp-5);
    text-align: center;
  }
  .footer-brand {
    grid-column: auto;
    justify-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
  }
  .footer-brand p {
    max-width: 290px;
    font-size: 15px;
    text-wrap: balance;
  }
  .footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2) var(--sp-5);
  }
  .footer nav b {
    display: none;
  }
  .footer nav a {
    font-size: 15px;
  }
  /* Buy me a coffee is right below, on the maker card. */
  .footer nav[aria-label="Contact"] a[href*="buymeacoffee"] {
    display: none;
  }
  .maker {
    justify-items: center;
    text-align: center;
  }
  .maker-name {
    justify-self: center;
  }
  .maker-links {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .nav-inner {
    height: 60px;
  }
  .nav-cta .pill-line {
    display: none;
  }
  .brand span {
    font-size: 17px;
  }
  /* A compact hero, so the live demo shows up sooner on a phone. */
  .hero {
    padding-top: var(--sp-6);
  }
  .hero-copy {
    gap: var(--sp-4);
  }
  .os-chip {
    font-size: 14px;
  }
  .os-chip svg {
    width: 15px;
    height: 15px;
  }
  .hero .h1 {
    margin-top: 0;
    font-size: clamp(27px, 7.6vw, 34px);
    line-height: 1.12;
  }
  .lede {
    font-size: 16px;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 0;
  }
  .hero-cta .pill-lg {
    height: 50px;
    padding: 0 var(--sp-3);
    font-size: 15px;
  }
  .hero-fine {
    margin-top: calc(var(--sp-1) * -1);
    font-size: 13px;
  }
  .showcase {
    margin-top: var(--sp-10);
  }
  .showcase .stage-frame {
    padding: 5px;
    border-radius: calc(var(--r-md) + 5px);
  }
  .stage {
    border-radius: var(--r-md);
  }
  .ready .pill-lg {
    width: 100%;
  }
  .feat {
    padding: var(--sp-6);
    border-radius: var(--r-lg);
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .ticket .checks li {
    font-size: 15px;
  }
  .maker {
    gap: var(--sp-4);
    margin-top: var(--sp-10);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }
  .maker-name {
    font-size: 26px;
  }
  .maker-note {
    font-size: 15px;
  }
  .maker-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .maker-links .pill {
    gap: 6px;
    padding: 0 var(--sp-2);
    font-size: 13.5px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: var(--sp-8);
    padding: var(--sp-5) 0;
    font-size: 13px;
    text-align: center;
  }
}
@media (max-width: 370px) {
  .maker-links {
    grid-template-columns: 1fr;
  }
}

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