/* Homepage design system. Loaded last: one set of tokens for type, colour, radius, space and motion,
   then the rules that put every section of the homepage on them. */

#ud-home {
  /* colour */
  --ds-paper: #fff;
  --ds-surface: #f2f2f0;
  --ds-hair: #e6e6e3;
  --ds-ink: #0a0a0a;
  --ds-ink-2: #6f6f6b;
  --paper: var(--ds-paper); --tint: var(--ds-surface); --hair: var(--ds-hair);
  --ink: var(--ds-ink); --ink-2: var(--ds-ink-2);

  /* radius */
  --ds-r-xs: 8px; --ds-r-s: 12px; --ds-r-m: 16px; --ds-r-l: 24px; --ds-r-pill: 999px;

  /* space */
  --ds-wrap: none;
  --ds-edge: 16px;
  --ds-head-gap: 32px;
  --gap-sec: var(--section-spacing);

  /* type */
  --ds-display: 40px;
  --ds-section: 32px;
  --ds-panel: 32px;
  --ds-card: 20px;
  --ds-lead: 16px;
  --heading-size: var(--ds-section);
  --heading-leading: 1;

  /* motion */
  --ds-fast: .2s; --ds-base: .45s; --ds-slow: .8s;
  --ds-ease: var(--ud-out);
  --ds-ease-io: cubic-bezier(.65, 0, .35, 1);
  --micro-ease: var(--ds-ease);

  --ds-control: 48px;
}
@media (min-width: 700px) {
  #ud-home { --ds-edge: 32px; --ds-head-gap: 48px; --ds-display: 48px; --ds-section: 40px; --ds-panel: 40px; --ds-card: 24px; --ds-lead: 18px; }
}
@media (min-width: 1024px) {
  #ud-home { --ds-display: 48px; --ds-section: 48px; --ds-panel: 48px; --ds-lead: 20px; }
}

/* ---------- type ---------- */
html #ud-home main :is(h1, h2, .end__h) {
  font-size: var(--ds-section); line-height: 1; letter-spacing: -.035em; text-wrap: balance;
}
html #ud-home main :is(#hero .hero__h, #end .end__h) { font-size: var(--ds-display); line-height: 1; letter-spacing: -.04em; }
html #ud-home :is(.product-pair__copy h2, .mcp__h, #awards .awards-copy h2, #awards .awards-copy p) {
  font-size: var(--ds-panel); line-height: 1.04; letter-spacing: -.035em;
}
html #ud-home :is(#features .ftc h3, .plate__h, .plan__name) { font-size: var(--ds-card); line-height: 1.2; letter-spacing: -.03em; }
html #ud-home :is(.lead, .product-pair__copy p) {
  font-size: var(--ds-lead); line-height: 1.35; color: var(--ds-ink-2); max-width: 44ch;
}
html #ud-home :is(.sec__head--c, .end__t) .lead { margin-inline: auto; }
html #ud-home .hero__t { width: min(100% - 2 * var(--ds-edge), 640px); }


/* ---------- colour ---------- */
html #ud-home :is(.product-panel, .product-panel--studio, #mcp) { background: var(--ds-surface); }
html #ud-home :is(.live, .tc__m) { background-color: var(--ds-paper); }
html #ud-home .partner-band { color: var(--ds-ink-2); }
html #ud-home :is(.btn--glass, .pill):not(.btn--primary) {
  --action-fill: var(--ds-surface); --action-ink: var(--ds-ink); --action-border: var(--ds-hair);
}
html #ud-home .action-text { --action-ink: var(--ds-ink); }

/* ---------- radius ---------- */
html #ud-home :is(.plate, .plan, .mcp, .q, .tc, .lbc, .win, .ftc__v, .cc, .product-panel) { border-radius: var(--ds-r-l); }
html #ud-home :is(.lbc__m, .live, .vc, .tc__m) { border-radius: var(--ds-r-m); }
html #ud-home :is(.vth, .vsim, .card__img, .cc__paste, .pr__diff, .mcp__ic, .mcp-preview img, .mcp-preview video) { border-radius: var(--ds-r-s); }
html #ud-home .template-flight video { border-radius: var(--ds-r-xs); }
html #ud-home .library-search { border-radius: var(--ds-r-pill); }

/* ---------- one container ---------- */
html #ud-home main > :is(#features, #product-demo, #proof, #library, #where, #mcp-card, #tools, #pricing, #faq, #explore) {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--ds-edge));
  max-width: var(--ds-wrap);
  margin-inline: auto;
  padding-inline: 0;
}
html #ud-home #features { --feature-edge: var(--ds-edge); }

/* ---------- head to content ---------- */
html #ud-home :is(.sec__head, .lbx__head) { margin-bottom: var(--ds-head-gap); }
html #ud-home :is(#features .feat__row, .demo .stage) { margin-top: var(--ds-head-gap); }
html #ud-home .sec__head > div { gap: 16px; max-width: 720px; }
html #ud-home #pricing .sec__head { justify-content: flex-start; text-align: left; }
html #ud-home #pricing .sec__head > div { align-items: flex-start; }
html #ud-home #pricing .sec__head .lead { margin-inline: 0; }

/* ---------- controls ---------- */
html #ud-home main :is(.btn, .wbtn, .pill):not(#stage *) {
  min-height: var(--ds-control) !important;
  padding: 12px 24px !important;
  transition: background-color var(--ds-fast) var(--ds-ease), border-color var(--ds-fast) var(--ds-ease), transform var(--ds-fast) var(--ds-ease);
}
html #ud-home main :is(.btn, .wbtn, .pill):not(#stage *):active { transform: scale(.97); }
html #ud-home .otp__chips a { height: 44px; padding-inline: 20px; }
html #ud-home #cta-main { min-height: var(--ds-control); }

/* ====================================================================
   Layout widths: reading blocks stay narrow, galleries run edge to edge
   ==================================================================== */
html #ud-home main > :is(#product-demo, #proof, #pricing, #faq) { max-width: 1280px; }
html #ud-home #end[hidden] { display: none; }

/* ====================================================================
   Buttons: primary, secondary, arrow link. One height everywhere.
   ==================================================================== */
html #ud-home main :is(.btn, .wbtn, .pill, .action-text, .awards-copy a, #cta-main):not(#stage *) {
  min-height: var(--ds-control) !important;
  height: var(--ds-control) !important;
  padding: 0 24px !important;
  gap: 8px;
  font-size: 16px !important;
  line-height: 1 !important;
  white-space: nowrap;
  border-radius: var(--ds-r-pill) !important;
  transition: background-color var(--ds-fast) var(--ds-ease), border-color var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease), transform var(--ds-fast) var(--ds-ease);
}
html #ud-home main :is(.action-text, .awards-copy a:not(:first-child)) { padding-inline: 0 !important; border-color: transparent !important; background: transparent !important; }
html #ud-home main :is(.btn, .wbtn, .pill, .action-text, .awards-copy a) :is(svg) { width: 16px; height: 16px; flex: none; }
html #ud-home main :is(.btn, .wbtn, .pill, .action-text, .awards-copy a) > :is(svg, span[aria-hidden]) { transition: transform var(--ds-fast) var(--ds-ease); }
html #ud-home main :is(.btn, .wbtn, .pill, .action-text, .awards-copy a):hover > :is(svg, span[aria-hidden]) { transform: translate(2px, -2px); }
html #ud-home main :is(.action-text, .awards-copy a:not(:first-child)):hover { text-decoration: none; }
html #ud-home .pill:not(.btn--primary) { --action-fill: var(--ds-surface); --action-ink: var(--ds-ink); --action-border: var(--ds-hair); }
html #ud-home main :is(.btn--glass, .pill):hover { --action-fill: var(--ds-hair); }

/* ====================================================================
   Dark zone: Awards and Tools
   ==================================================================== */
html #ud-home .zone-dark, html #ud-home .awards-scene {
  --ds-paper: #000; --ds-surface: #151515; --ds-hair: #2a2a2a; --ds-ink: #fff; --ds-ink-2: #9a9a96;
  --paper: var(--ds-paper); --tint: var(--ds-surface); --hair: var(--ds-hair); --ink: var(--ds-ink); --ink-2: var(--ds-ink-2);
  --text-primary: var(--ds-ink); --text-secondary: var(--ds-ink-2); --text-tertiary: var(--ds-ink-2);
  --stroke-primary: var(--ds-hair); --stroke-secondary: var(--ds-hair);
  --action-primary: #fff; --action-hover: #e8e8e4;
  color: var(--ds-ink);
}
html #ud-home :is(.zone-dark, .awards-scene) :is(.btn--primary, .wbtn, .awards-copy a:first-child) { --action-ink: #000; }
html #ud-home :is(.zone-dark, .awards-scene) :is(.btn--glass, .pill) { --action-fill: #ffffff1f; --action-ink: #fff; --action-border: transparent; }
html #ud-home :is(.zone-dark, .awards-scene) :is(.btn--glass, .pill):hover { --action-fill: #ffffff33; }
html #ud-home :is(.zone-dark, .awards-scene) :is(.action-text, .awards-copy a:not(:first-child)) { --action-ink: #fff; }

/* header follows the zone under it */
#hd.hd2 { transition: background-color var(--ds-base, .45s) var(--ds-ease, ease), color var(--ds-base, .45s) var(--ds-ease, ease); }
body.zone-dark-on #hd.hd2 { background: #000; color: #fff; }
body.zone-dark-on #hd .nav-primary .hl:is(:hover, :focus-visible, .is-on, [aria-expanded="true"]) { background: #ffffff1f; }
body.zone-dark-on .pb--top { opacity: 0 !important; }

/* tools on black, full bleed */
html #ud-home main > #tools {
  width: 100%; max-width: none;
  margin-block-start: 0;
  padding: var(--section-spacing) var(--ds-edge);
  background: #000;
  border-radius: 0 0 var(--ds-r-l) var(--ds-r-l);
}
html #ud-home #tools :is(.tc__f b, h2) { color: var(--ds-ink); }
html #ud-home #tools .tc__f span { color: var(--ds-ink-2); }
html #ud-home #tools .tc__tag { background: #ffffff1f; color: #fff; box-shadow: none; }
html #ud-home #tools .sec__head { align-items: center; }

/* ---------- Awards: a card that opens into a black screen ---------- */
html #ud-home main > #brief + #awards.awards-scene {
  --e: 0; --p: 0;
  display: block; position: relative;
  width: 100%; max-width: none; height: 260svh; min-height: 0;
  margin: 16px 0 0; padding: 0;
  background: none; border-radius: 0; overflow: visible; box-shadow: none !important;
}
.awards-scene__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.awards-scene__bg {
  position: absolute; inset: 0; background: #000;
  clip-path: inset(calc((1 - var(--e)) * 16px) round calc((1 - var(--e)) * 24px));
}
.awards-orbit { position: absolute; inset: 0; pointer-events: none; }
.awards-orbit { perspective: 900px; perspective-origin: 50% 50%; transform-style: preserve-3d; }
.awards-orbit img {
  position: absolute; left: 50%; top: 50%;
  width: clamp(220px, 26vw, 420px); aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--ds-r-s); opacity: 0;
  will-change: transform, opacity; backface-visibility: hidden;
}
html #ud-home #awards .awards-copy {
  position: relative; z-index: 2; padding: 24px; background: none;
  opacity: var(--copy-o, 1); transform: translateY(calc((1 - var(--copy-o, 1)) * 24px));
}
html #ud-home #awards .awards-copy div { margin-top: 32px; gap: 24px; }
@media (max-width: 740px) {
  html #ud-home main > #brief + #awards.awards-scene { width: 100%; margin-top: 16px; height: 220svh; }
  html #ud-home #awards .awards-copy div { flex-wrap: wrap; gap: 8px 24px; }
  .awards-orbit img { width: 200px; }
}

/* ====================================================================
   Logos: ticker
   ==================================================================== */
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; flex: none; align-items: center; gap: 80px; margin: 0; padding: 0 80px 0 0; list-style: none; }
.ticker__set li { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 20px; color: var(--ds-ink); }
.ticker__set img { height: 28px; max-width: 120px; object-fit: contain; filter: brightness(0); opacity: .8; }
.ticker__set .yc { height: 22px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 699px) { .ticker__set { gap: 48px; padding-right: 48px; } .ticker__set img { height: 22px; } .ticker__set li { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  html #ud-home main > #brief + #awards.awards-scene { height: 100svh; }
}
html[data-theme="light"][data-css] body.zone-dark-on .pb--bot i:nth-child(4) { background: linear-gradient(#0000, #000000b3); }

/* ====================================================================
   No haze over the page: the fixed blur bands are off on the homepage
   ==================================================================== */
html[data-theme="light"][data-css] body#ud-home .pb { display: none !important; }

/* ====================================================================
   Header: a floating pill that opens into the menu
   ==================================================================== */
html #ud-home #hd.hd2 {
  top: calc(16px + env(safe-area-inset-top)); left: 50%; right: auto; translate: -50% 0;
  width: min(560px, calc(100% - 32px)); height: 56px;
  padding: 0 8px 0 8px; gap: 8px;
  grid-template-columns: auto 1fr auto;
  border-radius: var(--ds-r-pill);
  background: #0a0a0a; color: #fff;
  z-index: 60;
  transition: background-color var(--ds-base) var(--ds-ease), color var(--ds-base) var(--ds-ease);
}
html #ud-home #hd :is(.nav-primary, .nav-wordmark, .nav-account .hg--in) { display: none; }
html #ud-home #hd .nav-start { gap: 4px; }
html #ud-home #hd .nav-mark { margin: 0; width: 40px; height: 40px; }
html #ud-home #hd .nav-account { gap: 8px; }
html #ud-home #hd .nav-signup { height: 40px !important; min-height: 40px !important; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px 0 8px;
  border: 0; border-radius: var(--ds-r-pill); background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: 16px; letter-spacing: -.02em;
}
.menu-btn i { position: relative; width: 20px; height: 20px; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 1.5px; background: currentColor;
  transition: transform var(--ds-base) var(--ds-ease);
}
.menu-btn i::before { transform: translateY(-4px); }
.menu-btn i::after { transform: translateY(4px); }
.menu-open .menu-btn i::before { transform: rotate(45deg); }
.menu-open .menu-btn i::after { transform: rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.menu-pct {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 40px; padding: 0 12px; border-radius: var(--ds-r-pill);
  background: #ffffff24; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
html #ud-home.zone-dark-on:not(.menu-open) #hd.hd2 { background: #fff; color: #0a0a0a; }
html #ud-home.zone-dark-on:not(.menu-open) .menu-pct { background: #0000001a; }

.site-menu__scrim {
  position: fixed; inset: 0; z-index: 54; background: #0a0a0a40;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity var(--ds-base) var(--ds-ease);
}
.menu-open .site-menu__scrim { opacity: 1; pointer-events: auto; }
.site-menu {
  position: fixed; z-index: 55; top: calc(8px + env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  width: min(576px, calc(100% - 16px)); max-height: calc(100svh - 16px); overflow: auto; overscroll-behavior: contain;
  box-sizing: border-box; padding: 104px 32px 32px;
  border-radius: 36px; background: #e2e2de; color: #0a0a0a;
  font-family: "Neue Montreal", Arial, sans-serif; letter-spacing: -.03em;
  clip-path: inset(8px 8px calc(100% - 64px) 8px round 28px);
  visibility: hidden;
  transition: clip-path var(--ds-base) var(--ds-ease-io), visibility 0s var(--ds-base);
}
.menu-open .site-menu { clip-path: inset(0 round 36px); visibility: visible; transition: clip-path .7s var(--ds-ease), visibility 0s; }
.site-menu p { margin: 0 0 16px; font-size: 14px; color: #6f6f6b; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu__main a { display: block; padding: 4px 0; font-size: 40px; line-height: 1.1; letter-spacing: -.04em; color: inherit; text-decoration: none; transition: color var(--ds-fast) var(--ds-ease), translate var(--ds-base) var(--ds-ease); }
.site-menu__main a:hover, .site-menu__main a:focus-visible { translate: 8px 0; }
.site-menu__main:hover a:not(:hover) { color: #8b8b87; }
.site-menu hr { border: 0; border-top: 1px solid #0000002e; margin: 40px 0 32px; }
.site-menu__other a { display: inline-block; padding: 4px 0; font-size: 20px; color: inherit; text-decoration: none; }
.site-menu__other a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-menu__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; }
.site-menu__foot a { font-size: 16px; color: #6f6f6b; text-decoration: none; }
.site-menu__foot a:hover { color: #0a0a0a; }
.site-menu a:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 4px; border-radius: 4px; }
.site-menu :is(p, li, hr, .site-menu__foot) { opacity: 0; translate: 0 16px; transition: opacity var(--ds-base) var(--ds-ease), translate var(--ds-slow) var(--ds-ease); }
.menu-open .site-menu :is(p, li, hr, .site-menu__foot) { opacity: 1; translate: 0 0; transition-delay: calc(120ms + var(--mi, 0) * 40ms); }
@media (max-width: 600px) {
  html #ud-home #hd.hd2 { height: 56px; }
  .site-menu { padding: 96px 24px 24px; }
  .site-menu__main a { font-size: 32px; }
}

/* ====================================================================
   Motion: reveals and scroll-linked scenes
   ==================================================================== */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity var(--ds-slow) var(--ds-ease), transform 1s var(--ds-ease); transition-delay: calc(var(--ri, 0) * 70ms); }
.js .rv.rv-in { opacity: 1; transform: none; }

html #ud-home #hero .hero__t { transform: translateY(calc(var(--hp, 0) * -72px)) scale(calc(1 - var(--hp, 0) * .06)); opacity: calc(1 - var(--hp, 0) * 1.4); }
html #ud-home #product-demo .stage { transform: scale(calc(.86 + .14 * var(--sp, 1))); transform-origin: 50% 0; }
html #ud-home .otp__logo { transform: translateY(calc((1 - var(--sp, 1)) * 96px)); opacity: var(--sp, 1); }

html #ud-home .lbc__m :is(img, video) { transition: transform 1s var(--ds-ease); }
html #ud-home .lbc:hover .lbc__m :is(img, video) { transform: scale(1.04); }

/* Brief and Studio hold still while the Awards card slides over them */
@media (min-width: 741px) and (min-height: 600px) {
  html #ud-home main > #brief { position: sticky; top: 0; z-index: 0; }
  html #ud-home main > #brief .product-panel { transform: scale(calc(1 - var(--cover, 0) * .05)); filter: brightness(calc(1 - var(--cover, 0) * .3)); transform-origin: 50% 100%; }
  html #ud-home main > #brief.is-covered { visibility: hidden; }
  html #ud-home main > #brief + #awards.awards-scene { z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  html #ud-home #hero .hero__t, html #ud-home #product-demo .stage, html #ud-home .otp__logo { transform: none; opacity: 1; }
  html #ud-home main > #brief { position: static; }
  .site-menu, .site-menu * { transition-duration: .01s !important; }
}

/* ====================================================================
   Smooth scroll (Lenis)
   ==================================================================== */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ====================================================================
   Cards. Two kinds.
   Media card (library, tools, paste plates): 8px frame, media with a 16px radius,
   text set 24px from the card's edge.
   Content card (plans, MCP, Brief, Studio): one padding all round.
   ==================================================================== */
#ud-home { --card-frame: 8px; --card-inset: 16px; --card-pad: 32px; --panel-pad: 48px; }
@media (max-width: 699px) { #ud-home { --card-pad: 24px; --panel-pad: 24px; } }

html #ud-home :is(.lbc, .tc, .plate) {
  padding: var(--card-frame); gap: 0;
  background: var(--ds-surface);
  box-shadow: inset 0 0 0 1px var(--ds-hair) !important;
}
html #ud-home :is(.lbc__m, .tc__m, .plate > .term, .plate > .pr) { border-radius: var(--ds-r-m); margin: 0; }
html #ud-home :is(.lbc__f, .tc__f) {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--card-inset) var(--card-inset) calc(var(--card-inset) - var(--card-frame) + 8px);
}
html #ud-home :is(.lbc__f b, .tc__f b) { font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -.03em; color: var(--ds-ink); }
html #ud-home :is(.lbc__f span, .tc__f span) { font-size: 14px; line-height: 1.4; color: var(--ds-ink-2); }
html #ud-home .plate__h { margin: var(--card-inset) var(--card-inset) 0; font-weight: 400; }
html #ud-home .plate__p { margin: 8px var(--card-inset) var(--card-inset); color: var(--ds-ink-2); }
html #ud-home #where .plate { height: auto; min-height: 480px; }
html #ud-home #tools .tc { height: auto; }
html #ud-home #tools .tc__m { aspect-ratio: 4 / 5; flex: none; }

html #ud-home #features .feat__row { gap: 16px; }
html #ud-home #features .ftc h3 { margin-top: 16px; }
html #ud-home #features .ftc p { margin-top: 8px; color: var(--ds-ink-2); max-width: 32ch; }

html #ud-home .plan { padding: var(--card-pad); gap: 24px; }
html #ud-home .plan__stick, html #ud-home .plan:not(.plan--pro) .plan__tag { display: none; }
html #ud-home .plan--pro .plan__head .plan__tag {
  visibility: visible; position: absolute; top: var(--card-pad); right: var(--card-pad);
  height: 32px; padding-inline: 12px; border-radius: var(--ds-r-pill);
  background: var(--ds-ink); color: var(--ds-paper); box-shadow: none;
  font-size: 14px; font-weight: 400; letter-spacing: -.02em;
}
html #ud-home #mcp { padding: var(--panel-pad); gap: var(--panel-pad); }
html #ud-home .product-panel { padding: var(--panel-pad); }
html #ud-home .q summary { padding: 24px; font-weight: 400; }
html #ud-home .plan .btn--glass { --action-fill: var(--ds-paper); }

/* ====================================================================
   MCP: two columns of whole previews (1440 x 800, never cropped)
   ==================================================================== */
html #ud-home #mcp { min-height: 560px; overflow: hidden; }
html #ud-home .mcp-previews {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  align-self: stretch; aspect-ratio: auto; height: auto; min-height: 0;
  margin-block: calc(-1 * var(--panel-pad)); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.mcp-col { height: 0; min-height: 100%; }
.mcp-col__track { display: flex; flex-direction: column; animation: mcp-up 44s linear infinite; }
.mcp-col--down .mcp-col__track { animation-name: mcp-down; }
html #ud-home .mcp-previews:hover .mcp-col__track { animation-play-state: paused; }
html #ud-home .mcp-preview { position: relative; inset: auto; flex: none; aspect-ratio: 1440 / 800; margin-bottom: 16px; border-radius: var(--ds-r-s); overflow: hidden; background: #17151b; }
html #ud-home .mcp-preview :is(img, video) { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
@keyframes mcp-up { to { transform: translateY(-50%); } }
@keyframes mcp-down { from { transform: translateY(-50%); } to { transform: none; } }
@media (max-width: 800px) {
  html #ud-home #mcp { min-height: 0; }
  html #ud-home .mcp-previews { height: 320px; margin-block: 0 calc(-1 * var(--panel-pad)); gap: 8px; }
  html #ud-home .mcp-preview { margin-bottom: 8px; }
}

/* ====================================================================
   Feature cards: a small loop inside each
   ==================================================================== */
html #ud-home .vc { transition: background-color var(--ds-base) var(--ds-ease), color var(--ds-base) var(--ds-ease), transform var(--ds-base) var(--ds-ease), opacity var(--ds-base) var(--ds-ease); }
html #ud-home .ftc__v--chips .vc.is-pick { background: var(--ds-ink); color: var(--ds-paper); transform: scale(1.06); }
html #ud-home .vc i { transition: background-color var(--ds-base) var(--ds-ease); }
html #ud-home .vth { position: relative; }
html #ud-home .vth img { position: absolute; inset: 0; }
html #ud-home .vth .vth__in { opacity: 0; transform: scale(1.06); transition: opacity var(--ds-slow) var(--ds-ease), transform 1.2s var(--ds-ease); }
html #ud-home .vth .vth__in.is-on { opacity: 1; transform: none; }
html #ud-home .vth__dots i { transition: width var(--ds-base) var(--ds-ease), background-color var(--ds-base) var(--ds-ease); }
html #ud-home .ftc__v--paste.is-live[data-step="0"] .vc--paste { opacity: 0; transform: translateY(8px) scale(.96); }
html #ud-home .ftc__v--paste[data-step="3"] .vc--paste { color: #177847; }
html #ud-home .ftc__v--paste[data-step="2"] .vc--who, html #ud-home .ftc__v--paste[data-step="3"] .vc--who { transform: translateY(-2px); }
html #ud-home .vsim { transition: rotate var(--ds-slow) var(--ds-ease), translate var(--ds-slow) var(--ds-ease), scale var(--ds-slow) var(--ds-ease); }
html #ud-home .ftc__v--similar.is-swap .vsim:not(.vsim--b) { rotate: 5deg; translate: 104% 8px; scale: .94; z-index: 0; }
html #ud-home .ftc__v--similar.is-swap .vsim--b { rotate: -4deg; translate: -104% -8px; z-index: 1; }
html #ud-home .vmeter i { transition: background-color var(--ds-base) var(--ds-ease), transform var(--ds-base) var(--ds-ease); }
html #ud-home .vmeter i.is-on { transform: scaleY(1.4); }

/* Brief and Studio previews */
html #ud-home .product-pair__preview { border-radius: var(--ds-r-s); }

html #ud-home #awards .awards-copy::before {
  content: ""; position: absolute; inset: -30% -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #000 0%, #000000e6 45%, #0000 100%);
}
html #ud-home #awards .awards-copy { z-index: 9000; }

/* ====================================================================
   Hero: templates in depth. Crisp cards, one at a time in each direction.
   ==================================================================== */
html #ud-home .template-flight {
  -webkit-mask-image: none; mask-image: none; translate: none; overflow: visible;
  perspective: 1000px; perspective-origin: 50% 50%;
}
html #ud-home .template-flight::after { content: none; }
html #ud-home #hero { overflow: clip; }
html #ud-home .template-flight { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.flight-card {
  position: absolute; left: 50%; top: 50%; display: block;
  width: clamp(240px, 24vw, 440px); aspect-ratio: 16 / 10;
  border-radius: var(--ds-r-s, 12px); overflow: hidden; opacity: 0;
  background: #17151b;
  box-shadow: 0 0 0 1px #0000000f, 0 40px 80px -40px #00000059;
  will-change: transform, opacity; backface-visibility: hidden;
}
.flight-card :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ds-ease, ease); animation: none !important; border-radius: 0 !important; aspect-ratio: auto !important; left: 0 !important; top: 0 !important; }
.flight-card video { opacity: 0; transition: opacity .6s ease, transform 1s var(--ds-ease, ease); }
.flight-card video.is-playing, .flight-card.is-playing video { opacity: 1; }
.flight-card span {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; background: #fff; color: #0a0a0a; font-size: 14px; letter-spacing: -.02em;
  opacity: 0; translate: 0 8px; transition: opacity var(--ds-fast, .2s) ease, translate var(--ds-base, .45s) var(--ds-ease, ease);
}
.flight-card:hover :is(img, video) { transform: scale(1.05); }
.flight-card:hover span { opacity: 1; translate: 0 0; }
.flight-card:hover { box-shadow: 0 0 0 1px #00000014, 0 48px 96px -32px #00000080; }
@media (max-width: 740px) { .flight-card { width: 168px; } .flight-card span { display: none; } }

/* no seam between the end of the Awards scene and Tools: both are black where they meet */
html #ud-home main > #brief + #awards.awards-scene { background: linear-gradient(#0000 calc(100% - 100svh), #000 calc(100% - 100svh)); }
html #ud-home main > #tools { margin-block-start: -1px; position: relative; z-index: 1; }

/* ====================================================================
   Colour by meaning: Claude's clay, Codex's black, a plain desk for the terminal, MCP in the brand violet
   ==================================================================== */
html #ud-home .plate--claude { --ds-hair: #0000; background: #c97b5d !important; color: #fff; }
html #ud-home .plate--codex { --ds-hair: #0000; background: #000 !important; color: #fff; }
html #ud-home .plate--run { background: var(--ds-surface) !important; }
html #ud-home :is(.plate--claude, .plate--codex) .plate__h { color: #fff; }
html #ud-home .plate--claude .plate__p { color: #ffffffd9; }
html #ud-home .plate--codex .plate__p { color: #ffffffb3; }
html #ud-home :is(.plate--claude, .plate--codex) .plate__h img { filter: brightness(0) invert(1); opacity: 1; }
html #ud-home :is(.plate--claude, .plate--run) .term {
  background: #0a0a0a !important; color: #fff !important; box-shadow: 0 32px 64px -32px #00000073 !important;
}
html #ud-home :is(.plate--claude, .plate--run) .term :is(p, .ok, span) { color: #fff; }
html #ud-home :is(.plate--claude, .plate--run) .term :is(.term__d, .dim) { color: #a3a3a0; }
html #ud-home .plate--run .term u { color: #8f7bff; }
html #ud-home .plate--run .term .dim:last-child { color: #8f7bff; }
html #ud-home .plate--run .term__bar i { display: none; }
html #ud-home .plate--claude .term .caret { background: #fff; }
html #ud-home .plate--codex .pr { background: #fff !important; color: #0a0a0a; box-shadow: none !important; }

html #ud-home #mcp {
  --ds-hair: #0000;
  background: #0a0a0b !important;
  color: #fff;
}
html #ud-home #mcp .mcp__h { color: #fff; }
html #ud-home #mcp .mcp__p { color: #ffffffb8; }
html #ud-home #mcp .mcp__k { color: #fff; }
html #ud-home #mcp .wbtn { --action-primary: #fff; --action-hover: #ececea; --action-ink: #0a0a0a; }
html #ud-home #mcp .mcp-preview { box-shadow: 0 24px 48px -24px #1b0a5c80; }
/* the terminal and the pull request float on the coloured plate instead of filling it */
html #ud-home #where .plate > :is(.term, .pr) { flex: 0 0 auto; margin: auto 24px; }
@media (max-width: 699px) { html #ud-home #where .plate > :is(.term, .pr) { margin: 32px 16px; } }

/* ====================================================================
   Review pass: one moving thing per screen, one primary action, one case
   ==================================================================== */
/* the floating dock repeats the header's action: off on the homepage */
html #ud-home #dock { display: none !important; }

/* hero: search is the action */
html #ud-home #hero .hero__acts { display: none; }

/* header: violet stays for the page's main actions, the pill's button is white */
html #ud-home #hd .nav-signup { --action-primary: #fff; --action-hover: #e8e8e4; --action-ink: #0a0a0a; }
html #ud-home.zone-dark-on:not(.menu-open) #hd .nav-signup { --action-primary: #0a0a0a; --action-hover: #262626; --action-ink: #fff; }

/* library: a compact head and two rows, the rest lives in the catalogue */
html #ud-home #library .lbx__head { align-items: center; margin-bottom: 24px; }
html #ud-home #library .lbx__head h2 { font-size: var(--ds-card); line-height: 1.2; letter-spacing: -.03em; }
html #ud-home #lbx-grid > li:nth-child(n+9) { display: none; }
@media (max-width: 1099px) { html #ud-home #lbx-grid > li:nth-child(n+7) { display: none; } }
@media (max-width: 599px) { html #ud-home #lbx-grid > li:nth-child(n+5) { display: none; } }

/* pricing: the yearly plan is the one in ink */
html #ud-home .plan--pro {
  --ds-surface: #0a0a0a; --ds-hair: #0000; --ds-ink: #fff; --ds-ink-2: #a3a3a0; --ds-paper: #0a0a0a;
  --ink: #fff; --ink-2: #a3a3a0; --text-primary: #fff; --text-secondary: #a3a3a0; --text-tertiary: #a3a3a0;
  background: #0a0a0a !important; color: #fff;
}
html #ud-home .plan--pro :is(.plan__name, .plan__price, .plan__price b, .plan__list li) { color: #fff; }
html #ud-home .plan--pro :is(.plan__bill, .plan__fine, .plan__fine a, .plan__price span) { color: #a3a3a0; }
html #ud-home .plan--pro .plan__list li::before { background-color: #ffffff2e !important; filter: none; }
html #ud-home .plan--pro .plan__head .plan__tag { background: #fff; color: #0a0a0a; }
html #ud-home .plan--pro .wbtn { --action-primary: #fff; --action-hover: #e8e8e4; --action-ink: #0a0a0a; }

/* the sign-off belongs to the footer: no empty screen between them */
html #ud-home .otp__logo { margin-top: 64px; }
html #ud-home #ft { padding-top: 64px; }

/* Awards: the day's pick */
.sotd {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; padding: 8px 20px 8px 8px;
  border-radius: 999px; background: #ffffff1f; color: #fff; text-align: left; margin-inline: auto; margin-top: 0;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color var(--ds-fast) var(--ds-ease);
}
.sotd img { width: 64px; height: 40px; object-fit: cover; border-radius: 999px; }
.sotd figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.2; letter-spacing: -.02em; }
.sotd b { font-weight: 400; color: #fff; }
.sotd figcaption span { color: #ffffffa6; }

/* Site of the Day sits in the scene's bottom right corner, 16px from both edges */
html #ud-home .awards-scene__pin > .sotd {
  position: absolute; right: 16px; bottom: 16px; z-index: 9001; margin: 0;
  opacity: var(--copy-o, 1);
}
/* seam between Awards and Tools: Tools paints a few pixels of black upwards over the joint */
html #ud-home main > #tools { box-shadow: 0 -6px 0 0 #000; }

/* ====================================================================
   Brief and Studio, to the Figma frame (51:383): smaller panels, 40px titles,
   sharp screenshots in a browser frame with a small scene playing on top
   ==================================================================== */
#ud-home { --ds-control: 40px; }
html #ud-home main :is(.btn, .wbtn, .pill, .action-text, .awards-copy a, #cta-main):not(#stage *) { padding: 0 20px !important; }
html #ud-home main :is(.action-text, .awards-copy a:not(:first-child)) { padding-inline: 0 !important; }
html #ud-home .otp__chips a { height: 40px; padding-inline: 16px; }

html #ud-home main > #brief { height: clamp(640px, 58vw, 88svh); }
html #ud-home .product-panel { padding: 56px; gap: 32px; justify-content: space-between; }
@media (min-width: 1280px) {
  html #ud-home .product-panel--brief .product-pair__copy { margin-top: 40px; }
  html #ud-home .product-panel--studio .product-pair__copy { margin-bottom: 40px; }
}
html #ud-home #brief .product-pair__copy h2 { font-size: 40px; line-height: 44px; letter-spacing: -.035em; }
html #ud-home .product-pair__copy p { margin-top: 12px; max-width: 321px; font-size: 20px; line-height: 24px; }
html #ud-home .product-pair__actions { margin-top: 24px; gap: 12px 24px; }

.shot {
  flex: none; width: 100%; display: flex; flex-direction: column;
  border-radius: var(--ds-r-s, 12px); overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px #0000000f, 0 40px 80px -48px #00000059;
}
.shot__bar { flex: none; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #f6f6f4; border-bottom: 1px solid #0000000f; }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d8d8d4; }
.shot__bar span { margin: 0 auto; padding-right: 36px; font-size: 12px; letter-spacing: -.01em; color: #8b8b87; }
.shot__view { position: relative; min-height: 0; aspect-ratio: 3456 / 2168; overflow: hidden; }
.shot__view :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.has-reel :is(.shot__cursor, .shot__sel) { display: none; }

/* a pointer that works the picker (Brief) or the prompt (Studio) */
.shot__cursor {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #0a0a0acc; box-shadow: 0 0 0 2px #fff, 0 6px 16px #00000040;
  animation: 9s var(--ds-ease-io, ease-in-out) infinite both;
}
.shot__cursor::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #7948d6; opacity: 0; animation: inherit; animation-name: shot-click; animation-timing-function: ease-out; }
.shot--brief .shot__cursor { animation-name: brief-path; }
.shot--studio .shot__cursor { animation-name: studio-path; }
@keyframes brief-path {
  0%, 8% { left: 50%; top: 67%; } 22%, 34% { left: 54%; top: 75%; } 46%, 58% { left: 62%; top: 76%; }
  72%, 90% { left: 53%; top: 95%; } 100% { left: 50%; top: 67%; }
}
@keyframes studio-path {
  0%, 10% { left: 30%; top: 22%; } 26%, 50% { left: 44%; top: 86.5%; } 62%, 84% { left: 66.5%; top: 86.5%; } 100% { left: 30%; top: 22%; }
}
@keyframes shot-click {
  0%, 24%, 36%, 48%, 60%, 74%, 100% { opacity: 0; transform: scale(.4); }
  26%, 50%, 76% { opacity: 1; transform: scale(.4); }
  33%, 57%, 86% { opacity: 0; transform: scale(1.3); }
}
/* Studio: the selected element and the instruction for it */
.shot__sel {
  position: absolute; left: 12.2%; top: 14%; width: 22.5%; height: 4.6%;
  border: 2px solid #7948d6; border-radius: 4px; animation: studio-sel 9s var(--ds-ease-io, ease-in-out) infinite both;
}
.shot__sel b {
  position: absolute; left: -2px; top: calc(100% + 8px); white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  background: #7948d6; color: #fff; font-size: clamp(10px, 1vw, 13px); font-weight: 400; letter-spacing: -.01em;
  animation: studio-note 9s var(--ds-ease, ease) infinite both;
}
@keyframes studio-sel { 0%, 4% { opacity: 0; transform: scale(1.04); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes studio-note { 0%, 14% { opacity: 0; translate: 0 6px; } 22%, 84% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; } }

@media (max-width: 1023px) { html #ud-home .product-panel { padding: 32px; } html #ud-home #brief .product-pair__copy h2 { font-size: 32px; line-height: 36px; } html #ud-home .product-pair__copy p { font-size: 18px; } }
@media (max-width: 740px) {
  html #ud-home main > #brief { height: auto; }
  html #ud-home .product-panel { padding: 24px; min-height: 0; }
  html #ud-home .product-panel--brief .product-pair__copy, html #ud-home .product-panel--studio .product-pair__copy { margin: 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .shot__cursor, .shot__cursor::after, .shot__sel, .shot__sel b { animation: none; } .shot__cursor { left: 53%; top: 95%; } }

/* ====================================================================
   Homepage pass 3: one alignment, hero into library, hover everywhere
   ==================================================================== */
html #ud-home { overflow-x: clip; }

/* library: full-size heading again, twelve cards on wide screens */
html #ud-home #library { position: relative; z-index: 3; }
html #ud-home #library .lbx__head { align-items: flex-end; margin-bottom: var(--ds-head-gap); }
html #ud-home #library .lbx__head h2 { font-size: var(--ds-section); line-height: 1; letter-spacing: -.035em; }
html #ud-home #lbx-grid { position: relative; }
html #ud-home #lbx-grid > li { will-change: transform, opacity; transform-origin: 50% 50%; }
html #ud-home #lbx-grid > li:nth-child(n+9) { display: list-item; }
html #ud-home #lbx-grid > li:nth-child(n+13) { display: none; }
@media (max-width: 1099px) { html #ud-home #lbx-grid > li:nth-child(n+7) { display: list-item; } html #ud-home #lbx-grid > li:nth-child(n+9) { display: none; } }
@media (max-width: 599px) { html #ud-home #lbx-grid > li:nth-child(n+7) { display: none; } }
html #ud-home .template-flight { display: none; }

/* every section head: title on the left, action on the right */
html #ud-home .sec__head { justify-content: space-between; text-align: left; }
html #ud-home .sec__head > div { align-items: flex-start; }

/* ---------- hover: everything answers ---------- */
html #ud-home :is(.lbc, .tc, .plate, .plan, .q, .shot, .mcp-preview, .aw-card) {
  transition: translate var(--ds-base) var(--ds-ease), scale var(--ds-base) var(--ds-ease), box-shadow var(--ds-base) var(--ds-ease), background-color var(--ds-base) var(--ds-ease);
}
@media (hover: hover) {
  html #ud-home :is(.lbc, .tc, .plate):hover { translate: 0 -6px; }
  html #ud-home .plan:hover { translate: 0 -4px; }
  html #ud-home .shot:hover { scale: 1.02; }
  html #ud-home .mcp-preview:hover { scale: 1.04; z-index: 2; }
  html #ud-home .tc:hover .tc__m img { transform: scale(1.04); }
  html #ud-home .tc__m img { transition: transform 1s var(--ds-ease); }
  html #ud-home .q:hover { background: var(--ds-hair); }
  html #ud-home .q summary i { transition: transform var(--ds-base) var(--ds-ease); }
  html #ud-home .q:hover summary i { transform: rotate(90deg); }
  html #ud-home .ftc:hover .ftc__v { scale: 1.02; }
  html #ud-home .ftc__v { transition: scale var(--ds-base) var(--ds-ease); }
  html #ud-home .plate:hover :is(.term, .pr) { translate: 0 -4px; }
  html #ud-home .plate :is(.term, .pr) { transition: translate var(--ds-base) var(--ds-ease); }
  html #ud-home .ticker__set li { transition: opacity var(--ds-fast) var(--ds-ease); }
  html #ud-home .ticker:hover .ticker__set li:not(:hover) { opacity: .35; }
  html #ud-home .otp__chips a:hover { translate: 0 -2px; }
  html #ud-home .otp__chips a { transition: translate var(--ds-fast) var(--ds-ease), background-color var(--ds-fast) var(--ds-ease); }
  html #ud-home .footer-directory a { transition: translate var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease); }
  html #ud-home .footer-directory a:hover { translate: 4px 0; text-decoration: none; }
}

/* ---------- Claude's own orange ---------- */
html #ud-home .plate--claude { background: #d97757 !important; }

/* ---------- MCP: the old star field is back behind the text ---------- */
html #ud-home #mcp { isolation: isolate; }
html #ud-home #mcp .mcp__stars { display: block; z-index: 0; opacity: .9; }
html #ud-home #mcp > :not(.mcp__stars) { position: relative; z-index: 1; }

/* ---------- Awards: shorter scroll, the works are cards with a score ---------- */
html #ud-home main > #brief + #awards.awards-scene { height: 190svh; }
@media (max-width: 740px) { html #ud-home main > #brief + #awards.awards-scene { height: 170svh; } }
.aw-card {
  position: absolute; left: 50%; top: 50%; margin: 0; width: clamp(220px, 24vw, 380px); opacity: 0;
  padding: 6px; border-radius: 16px; background: #1a1a1a; box-shadow: inset 0 0 0 1px #ffffff14;
  will-change: transform, opacity; backface-visibility: hidden;
}
.aw-card img { position: static !important; display: block; width: 100% !important; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; opacity: 1 !important; transform: none !important; }
.aw-card figcaption { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 8px 6px; text-align: left; }
.aw-card b { font-size: 15px; font-weight: 400; letter-spacing: -.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-card span { grid-column: 1; font-size: 12px; color: #9a9a96; }
.aw-card em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 20px; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 740px) { .aw-card { width: 190px; } }

/* ---------- header: the four main links live in the pill ---------- */
html #ud-home #hd.hd2 { width: min(820px, calc(100% - 32px)); }
.menu-quick { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.menu-quick a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  color: inherit; font-size: 16px; letter-spacing: -.02em; text-decoration: none;
  transition: background-color var(--ds-fast) var(--ds-ease);
}
.menu-quick a:hover, .menu-quick a:focus-visible { background: #ffffff24; }
html #ud-home.zone-dark-on:not(.menu-open) .menu-quick a:hover { background: #0000001a; }
.site-menu { width: min(836px, calc(100% - 16px)); }
@media (max-width: 899px) { .menu-quick { display: none; } html #ud-home #hd.hd2 { width: min(560px, calc(100% - 32px)); } .site-menu { width: min(576px, calc(100% - 16px)); } }
@media (min-width: 900px) { .site-menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-content: start; }
  .site-menu > p:first-child, .site-menu__main { grid-column: 1; } .site-menu__main { grid-row: 2 / span 6; }
  .site-menu > hr:first-of-type { display: none; } .site-menu > :is(p, ul, hr):not(:first-child):not(.site-menu__main) { grid-column: 2; }
  .site-menu > p:nth-of-type(2) { grid-row: 1; } .site-menu__foot { grid-column: 1 / -1; } .site-menu hr { margin: 24px 0; } }

/* ---------- footer sign-off answers the pointer ---------- */
html #ud-home .otp__logo text { transition: fill var(--ds-slow) var(--ds-ease), letter-spacing var(--ds-slow) var(--ds-ease); }
html #ud-home .otp__logo > :not(text) { transition: transform var(--ds-slow) var(--ds-ease); transform-box: fill-box; transform-origin: 50% 100%; }
html #ud-home .otp__logo:hover text { fill: var(--ds-ink); }
html #ud-home .otp__logo:hover > :not(text) { transform: translateY(-6%) rotate(-6deg); }

/* ---------- preloader ---------- */
.preload {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 16px;
  background: #fff; color: #0a0a0a; transition: clip-path .7s cubic-bezier(.65, 0, .35, 1);
  clip-path: inset(0); animation: preload-safe .01s 3s forwards;
}
.preload b { font: 400 20px/1 "Neue Montreal", Arial, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.preload.is-done { clip-path: inset(0 0 100% 0); }
.no-preload .preload { display: none; }
@keyframes preload-safe { to { visibility: hidden; } }
html #ud-home .plan:not(.plan--pro) .plan__list li::before { background-color: #0000000d !important; filter: grayscale(1) brightness(.35); }

/* ---------- From template to working site: the window shows the Library as it is now (24 Nov) ----------
   A black pill header, the bar with the sliding black pill, the filter column, white cards. A cursor picks
   Websites, opens the first card and copies its prompt; then Claude and the running site, as before. */
html #ud-home .win:has(.lb2) { background: #f1f1f0; }
html #ud-home .lb2 { --i: #0a0a0b; --i2: #666767; --well: #e8e8e6; padding: 12px 16px 0; font-size: 12px; line-height: 16px; letter-spacing: -.02em; color: var(--i2); background: #f1f1f0; }
html #ud-home .lb2 svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html #ud-home .lb2__hd { display: flex; align-items: center; gap: 16px; width: max-content; max-width: 100%; height: 36px; margin: 0 auto; padding: 0 4px 0 6px; border-radius: 999px; background: var(--i); color: #fff; }
html #ud-home .lb2__logo { display: grid; place-items: center; width: 24px; height: 24px; }
html #ud-home .lb2__logo svg { width: 16px; height: 16px; fill: #fff; stroke: none; }
html #ud-home .lb2__menu { display: inline-flex; align-items: center; gap: 8px; }
html #ud-home .lb2__menu i { width: 12px; height: 5px; border-block: 1.5px solid #fff; }
html #ud-home .lb2__nav { display: flex; gap: 16px; margin: 0 24px 0 8px; color: #ffffffb3; }
html #ud-home .lb2__nav b { font-weight: 400; color: #fff; }
html #ud-home .lb2__up { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--i); }
html #ud-home .lb2__up svg { width: 10px; height: 10px; }
html #ud-home .lb2__bar { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; }
html #ud-home :is(.lb2__tog, .lb2__sort, .lb2__q) { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--i); box-shadow: 0 1px 2px #0a0a0b0a, 0 8px 16px -10px #0a0a0b1f; white-space: nowrap; }
html #ud-home .lb2__q { flex: 0 0 168px; justify-content: space-between; background: var(--well); color: var(--i2); box-shadow: inset 0 1px 3px #0a0a0b0f; }
html #ud-home .lb2__sort { margin-left: auto; }
html #ud-home .lb2__sort svg:last-child { width: 10px; height: 10px; color: var(--i2); }
html #ud-home .lb2__kinds { position: relative; display: flex; align-items: center; gap: 4px; isolation: isolate; }
html #ud-home .lb2__kinds > span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--i); white-space: nowrap; transition: color .35s ease, background-color .35s ease; }
html #ud-home .lb2__kinds > span em { font-style: normal; font-size: 10px; color: #a7a8a8; transition: color .35s ease; }
html #ud-home .lb2__kinds > span.is-on { background: transparent; color: #fff; }
html #ud-home .lb2__kinds > span.is-on em { color: #ffffff99; }
html #ud-home .lb2__pill { position: absolute; z-index: 0; left: 0; top: 0; height: 28px; width: 0; border-radius: 999px; background: var(--i); box-shadow: 0 1px 2px #0a0a0b33, 0 8px 16px -8px #0a0a0b80; transition: transform .6s var(--ud-out), width .6s var(--ud-out); }
html #ud-home .lb2__body { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 12px; align-items: start; }
html #ud-home .lb2__side { display: grid; gap: 8px; }
html #ud-home .lb2__fg { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #0a0a0b0a, 0 12px 24px -16px #0a0a0b1f; }
html #ud-home .lb2__fg b { font-weight: 400; color: var(--i); }
html #ud-home .lb2__seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: var(--well); box-shadow: inset 0 1px 3px #0a0a0b0f; text-align: center; }
html #ud-home .lb2__seg span { height: 22px; line-height: 22px; border-radius: 999px; }
html #ud-home .lb2__seg .is-on { background: var(--i); color: #fff; }
html #ud-home .lb2__chips { display: flex; flex-wrap: wrap; gap: 4px; }
html #ud-home .lb2__chips span { display: inline-flex; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #f1f1f0; color: var(--i); font-size: 11px; }
html #ud-home .lb2__chips em { font-style: normal; color: #a7a8a8; }
html #ud-home .lb2 .lib__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html #ud-home .lb2 .card { gap: 0; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #0a0a0b0a, 0 12px 24px -16px #0a0a0b1f; transition: transform .7s var(--ud-out), opacity .5s ease, box-shadow .5s ease; }
html #ud-home .lb2 .card__img { aspect-ratio: 16 / 10; border-radius: 10px; background: #f1f1f0; box-shadow: none; }
html #ud-home .lb2 .card__n { padding: 10px 8px 0; font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: -.03em; color: var(--i); white-space: nowrap; overflow: hidden; }
html #ud-home .lb2 .card__n em { flex: none; height: 18px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--i); font-size: 10px; line-height: 18px; font-weight: 400; letter-spacing: 0; box-shadow: 0 1px 2px #0a0a0b14, 0 4px 8px -4px #0a0a0b29; }
html #ud-home .lb2 .card__n em.is-pro { background: var(--i); color: #fff; box-shadow: none; }
html #ud-home .lb2 .card__by { display: flex; align-items: center; gap: 6px; padding: 2px 8px 8px; font-size: 11px; color: var(--i2); white-space: nowrap; overflow: hidden; }
html #ud-home .lb2 .card__by svg { width: 10px; height: 10px; fill: var(--i); stroke: none; }
html #ud-home .lb2 .card__by i { font-style: normal; opacity: .6; }
html #ud-home .win.s1 .lb2 .card:first-child { transform: translateY(-6px) scale(1.03); z-index: 2; box-shadow: 0 1px 2px #0a0a0b14, 0 24px 48px -20px #0a0a0b59; }
html #ud-home .win.s1 .lb2 .card:first-child .card__img { box-shadow: none; }
/* the cursor that does it */
html #ud-home .win__cur { position: absolute; z-index: 6; left: 0; top: 0; width: 20px; height: 20px; margin: -3px 0 0 -4px; opacity: 0; pointer-events: none; transition: transform .6s var(--ud-out), opacity .3s ease; }
html #ud-home .win__cur.is-on { opacity: 1; }
html #ud-home .win__cur svg { width: 20px; height: 20px; fill: #0a0a0b; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 4px #0a0a0b40); transition: scale .18s ease; transform-origin: 20% 12%; }
html #ud-home .win__cur.is-press svg { scale: .82; }
/* the opened card: its name, one line, Copy prompt and the two downloads */
html #ud-home .win .toast { left: 204px; top: 272px; width: 264px; gap: 6px; padding: 16px; border-radius: 20px; background: #fff; color: #666767; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 2px #0a0a0b0f, 0 24px 48px -16px #0a0a0b40, 0 48px 96px -32px #0a0a0b40; font-size: 12px; line-height: 16px; letter-spacing: -.02em; }
html #ud-home .win .toast__h { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 24px; letter-spacing: -.03em; color: #0a0a0b; }
html #ud-home .win .toast__h em { height: 18px; padding: 0 8px; border-radius: 999px; background: #0a0a0b; color: #fff; font-style: normal; font-size: 10px; line-height: 18px; letter-spacing: 0; }
html #ud-home .win .toast p { margin: 0 0 8px; color: #666767; line-height: 16px; }
html #ud-home .win :is(.toast__b, .toast__ok) { flex-basis: 100%; justify-content: center; height: 32px; border-radius: 999px; background: #0a0a0b; color: #fff; font-weight: 400; box-shadow: 0 8px 16px -8px #0a0a0b80; }
html #ud-home .win .toast__s { flex: 1; justify-content: center; height: 32px; padding-inline: 8px; border-radius: 999px; background: #f1f1f0; color: #0a0a0b; font-weight: 400; box-shadow: none; white-space: nowrap; }
@media (max-width: 1023px) {
  html #ud-home .lb2__body { grid-template-columns: minmax(0, 1fr); } html #ud-home .lb2__side, html #ud-home .lb2__kinds > span:nth-of-type(n+4), html #ud-home .lb2__q { display: none; }
  html #ud-home .lb2 .lib__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } html #ud-home .lb2 .lib__grid .card:nth-child(n+7) { display: none; }
  html #ud-home .win .toast { left: 16px; top: 220px; }
}
@media (max-width: 699px) {
  html #ud-home .lb2__nav, html #ud-home .lb2__sort, html #ud-home .lb2__tog { display: none; } html #ud-home .lb2__kinds { display: flex; }
  html #ud-home .lb2 .lib__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } html #ud-home .lb2 .lib__grid .card:nth-child(n+5) { display: none; }
  html #ud-home .win .toast { top: 150px; width: min(264px, calc(100% - 32px)); }
}
@media (prefers-reduced-motion: reduce) { html #ud-home .win__cur { display: none; } html #ud-home .lb2__pill { transition: none; } }
html #ud-home .lb2, html #ud-home .win .toast { text-align: left; }
html #ud-home .lb2__seg { text-align: center; }
/* three rows of projects in the window, at every width */
html #ud-home .lb2 { padding-bottom: 16px; }
@media (max-width: 1023px) { html #ud-home .lb2 .lib__grid .card:nth-child(n+7) { display: flex; } html #ud-home .lb2 .lib__grid .card:nth-child(n+10) { display: none; } }
@media (max-width: 699px) { html #ud-home .lb2 .lib__grid .card:nth-child(n+5) { display: flex; } html #ud-home .lb2 .lib__grid .card:nth-child(n+7) { display: none; } html #ud-home .win:has(.lb2) { height: auto; } }
