:root {
  /* Overcast drafting room: warm stone neutrals (OKLCH hue 85), cool slate
     ink (hue 255). Text pairs are checked for WCAG 2 and APCA contrast. */
  --canvas: #ebe9e5;
  --surface: #f8f7f4;
  --dot: #d3d1cb;
  --ink: #1d2228;
  --text: #34383e;
  --muted: #5f646a;
  --faint: #8e9398;
  --line: #d3d1cb;
  --accent: #4984bf;
  --agent: #d97757;
  --agent-soft: #fbeee9;
  --kite: #12392b;
  --kite-soft: #eef3f0;
  --kite-mint: #3fb98a;
  --kite-muted: #5d6b64;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui);
  background-color: var(--canvas);
  overflow-x: hidden;
}
canvas.dither { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--ink); color: var(--surface); font: 600 14px/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn.big { height: 54px; padding: 0 22px 0 18px; border-radius: 12px; font-size: 16.5px; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.copied { background: #1f7a4d; color: #fff; box-shadow: none; }
.btn svg { flex-shrink: 0; }
.note { color: var(--muted); font-size: 13.5px; line-height: 19px; }

/* Artboard chrome, as in the app */
.ab-label { display: flex; align-items: center; gap: 8px; height: 22px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.ab-label.on { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 11px; background: var(--agent); color: #fff; font-size: 12px; font-weight: 500; transition: background 0.3s, opacity 0.3s; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
.pill.done { background: #1f7a4d; }
.pill.done::before { animation: none; }
.pill.hide { opacity: 0; }
@keyframes blink { 50% { opacity: 0.35; } }

.sel { position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 0 1.5px var(--accent); opacity: 0; transition: opacity 0.25s; z-index: 3; }
.sel.agent { box-shadow: 0 0 0 2px var(--agent); }
.sel.on { opacity: 1; }
.sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; }
.sel.agent i { display: none; }
.sel i:nth-child(1) { left: -5px; top: -5px; }
.sel i:nth-child(2) { right: -5px; top: -5px; }
.sel i:nth-child(3) { left: -5px; bottom: -5px; }
.sel i:nth-child(4) { right: -5px; bottom: -5px; }
.size { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11.5px; line-height: 16px; padding: 2px 7px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity 0.2s; font-variant-numeric: tabular-nums; }
.size.agent { background: var(--agent); }
.size.on { opacity: 1; }

/* Cursors */
.cur { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; display: flex; align-items: flex-start; gap: 1px; opacity: 0; transition-property: transform, opacity; transition-timing-function: cubic-bezier(0.45, 0.05, 0.25, 1); transition-duration: 0.8s, 0.3s; will-change: transform; }
.cur svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.25)); }
.cur svg path { fill: var(--agent); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.cur b { position: relative; top: 15px; font: 500 11.5px/16px var(--ui); color: #fff; background: var(--agent); padding: 1px 7px; border-radius: 5px; }
.cur.user svg path { fill: var(--ink); }
.cur.user b { background: var(--accent); }
.cur.press svg { transform: scale(0.86); transform-origin: 2px 2px; transition: transform 0.1s; }

/* The demo design Claude builds (natural size 720 x 460) */
.kite { position: relative; width: 720px; height: 460px; background: #fafaf7; color: #141414; font-family: var(--ui); overflow: hidden; transform-origin: 0 0; transition: background 0.9s ease, color 0.9s ease; --hair: rgba(20, 20, 20, 0.14); }
.kite.bold { background: #2340e0; color: #f4f1ea; --hair: rgba(244, 241, 234, 0.3); }
.kite [data-part] { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.kite [data-part].in { opacity: 1; transform: none; }
.lt-nav { position: absolute; left: 34px; right: 34px; top: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hair); transition: border-color 0.9s, opacity 0.35s, transform 0.5s; }
.lt-logo { font-family: 'Climate Crisis', sans-serif; font-size: 15px; letter-spacing: 0.01em; }
.lt-links { display: flex; gap: 18px; font-size: 10.5px; }
.lt-links i { font-style: normal; opacity: 0.75; }
.lt-left { position: absolute; left: 34px; top: 84px; width: 400px; }
.lt-cat { font: 9.5px/1 var(--mono); opacity: 0.7; }
.lt-h { margin: 16px 0 0; max-width: 400px; min-height: 124px; font-family: 'Climate Crisis', sans-serif; font-weight: 400; font-size: 62px; line-height: 0.98; letter-spacing: -0.01em; font-variation-settings: 'YEAR' 1979; }
.kite.bold .lt-h { animation: melt 7s ease-in-out infinite; }
@keyframes melt { 50% { font-variation-settings: 'YEAR' 2010; } }
.lt-artist { margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.lt-blurb { margin: 5px 0 0; max-width: 250px; font-size: 11px; line-height: 16px; opacity: 0.75; }
.lt-ctas { display: flex; gap: 8px; margin-top: 16px; }
.lt-buy { padding: 8px 14px; border-radius: 99px; background: #141414; color: #fafaf7; font-size: 10.5px; font-weight: 600; transition: background 0.9s, color 0.9s; }
.kite.bold .lt-buy { background: #ffb3c7; color: #1b2a8f; }
.lt-listen { display: flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; box-shadow: inset 0 0 0 1px currentColor; font-size: 10.5px; font-weight: 500; }
.lt-art { position: absolute; left: 456px; top: 84px; width: 200px; height: 200px; }
.lt-record { position: absolute; left: 5px; top: 5px; width: 190px; height: 190px; transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 1; }
.lt-record.out { transform: translateX(84px); }
.lt-disc { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, transparent 0 34%, rgba(255,255,255,0.06) 34.5% 35%, transparent 35.5%), repeating-radial-gradient(circle, #121212 0 1.4px, #1f1f1f 1.4px 2.8px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); display: grid; place-items: center; }
.lt-disc i { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #141414 0 3px, #ffb3c7 3.5px); box-shadow: inset 0 0 0 9px rgba(35,64,224,0.18); }
.lt-record.out .lt-disc { animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lt-sleeve { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #ffb3c7; box-shadow: 0 12px 28px -8px rgba(0,0,0,0.3); }
.lt-sleeve svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #2340e0; stroke-width: 2.2; }
.lt-sleeve span { position: absolute; left: 12px; bottom: 12px; font-family: 'Climate Crisis', sans-serif; font-size: 13px; color: #1b2a8f; background: #ffb3c7; padding: 2px 5px 1px 0; line-height: 1; }
.lt-sleeve b { position: absolute; right: 14px; top: 12px; font: 500 8.5px/1 var(--mono); color: #1b2a8f; background: #ffb3c7; padding: 2px 0 2px 4px; }
.lt-list { position: absolute; left: 456px; top: 306px; width: 230px; font: 9.5px/1 var(--mono); }
.lt-list div { display: grid; grid-template-columns: 26px 1fr auto; padding: 7px 0; border-top: 1px solid var(--hair); transition: border-color 0.9s; }
.lt-list em { font-style: normal; opacity: 0.55; }
.lt-list span { opacity: 0.7; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.flash.go { animation: flash 0.45s ease-out; }
@keyframes flash { 15% { opacity: 0.95; } 100% { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--surface); font-size: 14px; padding: 11px 16px; border-radius: 10px; opacity: 0; transition: opacity 0.2s, transform 0.25s; z-index: 100; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { display: flex; justify-content: space-between; align-items: center; padding: 28px 32px 36px; color: var(--muted); font-size: 13.5px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
