/* Klecks: a dark studio, and the page is the canvas. The logo's blob gradient (tangerine, pink,
   violet) is the paint; everything you move leaves some of it behind. */
@font-face { font-family: 'Inter K'; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Caveat K'; font-weight: 700; font-display: swap; src: url(assets/fonts/caveat-700.woff2) format('woff2'); }

:root {
  --bg: #0b0912;
  --card: #15121e;
  --txt: #f5f3fa;
  --mut: #a39fb3;
  --faint: #6c677c;
  --line: rgba(255, 255, 255, .08);
  --tang: #ff8a4c;
  --pink: #ff3d7f;
  --violet: #8b5cf6;
  --paint: linear-gradient(100deg, #ff8a4c 0%, #ff3d7f 48%, #8b5cf6 100%);

  --body: 'Geist', -apple-system, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.2, 1.35, .4, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 400 17px/1.6 var(--body); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.label { color: var(--faint); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 18px; }
em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: var(--paint); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Room below the baseline, or the clipped gradient cuts off the tails of g and p. */
  padding: 0 .06em .16em 0;
}
kbd {
  display: inline-grid; place-items: center; min-width: 1.8em; height: 1.6em; padding: 0 .45em;
  font: 500 .78em/1 var(--mono); color: var(--txt); background: linear-gradient(180deg, #2a2535, #19161f);
  border-radius: .38em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 #000; vertical-align: .1em; white-space: nowrap;
}

.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gut); background: rgba(11, 9, 18, .78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
  transform: translateY(-110%); transition: transform .45s var(--out);
}
.top.show { transform: none; }
.brand, .hero-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 650 17px var(--body); letter-spacing: -.02em; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--mut); text-decoration: none; }
.top-nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.top-nav .top-cta { color: #fff; background: var(--paint); }

/* ---------- hero: wet paint under the pointer ---------- */
.hero { position: relative; padding: 0 var(--gut); overflow: hidden; isolation: isolate; }
.blobs { position: absolute; inset: 0; z-index: -2; pointer-events: none; filter: blur(90px) saturate(1.3); opacity: .55; }
.blobs i { position: absolute; border-radius: 47% 53% 61% 39% / 45% 39% 61% 55%; animation: drift 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { left: 6%; top: 8%; width: 40vw; height: 34vw; background: var(--tang); opacity: .55; }
.blobs i:nth-child(2) { right: 4%; top: 2%; width: 38vw; height: 36vw; background: var(--violet); animation-duration: 27s; animation-delay: -8s; }
.blobs i:nth-child(3) { left: 30%; top: 40%; width: 44vw; height: 30vw; background: var(--pink); opacity: .6; animation-duration: 31s; animation-delay: -15s; }
@keyframes drift { 50% { transform: translate(4vw, 3vw) rotate(40deg) scale(1.1); border-radius: 58% 42% 38% 62% / 52% 61% 39% 48%; } 100% { transform: translate(-3vw, 5vw) rotate(-20deg) scale(.95); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 60% at 50% 30%, rgba(11, 9, 18, .2), rgba(11, 9, 18, .75) 70%, var(--bg)), linear-gradient(180deg, transparent 60%, var(--bg)); }
.paint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; filter: saturate(1.25) drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }

.hero-brand { position: absolute; left: var(--gut); top: 18px; z-index: 3; }
.hero-copy { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: clamp(110px, 16vh, 170px) 0 0; text-align: center; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.kicker { color: rgba(245, 243, 250, .62); margin: 0 0 22px; }
.hero-copy > *, .stage { animation: hero-in 1.1s var(--out) both; animation-delay: calc(.2s + var(--i, 0) * .08s); }
.hero-copy > :nth-child(2) { --i: 1; }
.hero-copy > :nth-child(3) { --i: 2; }
.hero-copy > :nth-child(4) { --i: 3; }
.stage { --i: 5; }
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } }
.hero h1 { margin: 0; font: 700 clamp(52px, 9vw, 136px)/.95 var(--body); letter-spacing: -.055em; text-shadow: 0 10px 60px rgba(0, 0, 0, .35); }
.hero h1 em { font-size: 1.1em; letter-spacing: -.03em; }
.lede { margin: 28px auto 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(245, 243, 250, .76); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); transition: transform .35s var(--spring), background .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { color: #fff; background: var(--paint); box-shadow: 0 14px 40px -12px rgba(255, 61, 127, .6); }
.btn-ghost { color: var(--txt); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }

/* The real app at 1280 × 800, scaled to the column. */
.stage { position: relative; z-index: 1; max-width: 1200px; margin: clamp(48px, 7vh, 80px) auto 0; padding-bottom: 40px; perspective: 1800px; }
.window {
  position: relative; aspect-ratio: 1280 / 800; border-radius: 14px; overflow: hidden; background: #0d0d11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 120px -30px rgba(0, 0, 0, .85), 0 0 160px -40px rgba(255, 61, 127, .45);
  transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform;
}
.window iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); color-scheme: dark; background: #0d0d11; }
.coach { display: flex; align-items: flex-start; gap: 10px; max-width: 780px; margin: 22px auto 0; padding: 12px 16px; border-radius: 12px; background: rgba(11, 9, 18, .5); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--mut); }
.coach b { color: var(--txt); font-weight: 600; }
.pulse { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.drop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(11, 9, 18, .6); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drop.on { opacity: 1; }
.drop-card { display: grid; justify-items: center; gap: 6px; padding: 40px 54px; border-radius: 24px; background: rgba(21, 18, 30, .85); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px #000; text-align: center; max-width: 420px; }
.drop-card b { font-size: 26px; letter-spacing: -.02em; }
.drop-card span { color: var(--mut); font-size: 15px; }
.drop-ring { width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; background: var(--paint); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
section:not(.hero) { padding: clamp(100px, 14vw, 170px) var(--gut) 0; }
/* Its own stacking context, so the brush strokes below sit behind the words but in front of the page. */
.big { position: relative; z-index: 0; margin: 0; font: 700 clamp(36px, 5vw, 72px)/1.04 var(--body); letter-spacing: -.04em; }
.big em { font-size: 1.08em; position: relative; display: inline-block; margin-bottom: -.16em; }
/* Every accent gets a brush stroke underneath, painted once when it scrolls into view. */
.big em::after {
  content: ''; position: absolute; left: -2%; right: -4%; bottom: .08em; height: .2em; z-index: -1; opacity: .8;
  background: var(--paint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C60 7 130 5 200 8s120 2 192-3c4 0 6 4 2 6-50 7-130 11-200 9S70 14 8 21c-5 1-8-5-4-6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C60 7 130 5 200 8s120 2 192-3c4 0 6 4 2 6-50 7-130 11-200 9S70 14 8 21c-5 1-8-5-4-6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) .25s;
}
.big em.drawn::after { clip-path: inset(0 0 0 0); }
.say { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--mut); max-width: 640px; margin: 22px 0 0; }

/* the guide: one screenshot, annotated step by step while the section is pinned */
.guide { max-width: 1320px; margin: 0 auto; }
.guide .big { font-size: clamp(34px, 3.7vw, 56px); }
.guide-pin { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: center; min-height: 100vh; padding: 70px 0 30px; }
.guide-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.guide-steps li { display: flex; gap: 14px; padding: 10px 14px; border-radius: 14px; cursor: pointer; color: var(--faint); transition: background .4s, color .4s; }
.guide-steps li > kbd { flex: none; font-size: 13px; min-width: 2.2em; transition: background .4s, color .4s; }
.guide-steps b { display: block; font-weight: 600; font-size: 16px; color: var(--mut); transition: color .4s; }
.guide-steps span { display: block; font-size: 14.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--out), opacity .4s; }
.guide-steps li.done b { color: var(--txt); }
.guide-steps li.on { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); color: var(--mut); }
.guide-steps li.on b { color: var(--txt); }
.guide-steps li.on span { max-height: 6em; opacity: 1; }
.guide-steps li.on > kbd { background: var(--paint); color: #fff; }
.guide-fig { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #0d0d11; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -30px #000, 0 0 140px -50px rgba(255, 61, 127, .5); }
.guide-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); font: 500 13px 'Inter K', var(--body); color: #c9c6d4; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.guide-tab { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.guide-copybtn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 9px; color: #fff; font-weight: 600; background: linear-gradient(100deg, #ff8a4c, #ff3d7f 60%, #c04df0); transition: transform .15s, box-shadow .3s; }
.guide-copybtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.guide-fig[data-step="6"] .guide-copybtn { animation: press .6s ease .1s both; }
@keyframes press { 30% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(255, 61, 127, .7); } 100% { transform: none; box-shadow: 0 0 0 16px rgba(255, 61, 127, 0); } }
.guide-pic { position: relative; transition: transform .8s var(--out), filter .6s; }
.guide-pic img { display: block; width: 100%; }
.guide-fig[data-step="6"] .guide-pic { transform: scale(.94); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.px { position: absolute; image-rendering: pixelated; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .3s, clip-path .7s cubic-bezier(.65, 0, .35, 1); }
.px-mail { left: 28.667%; top: 37.895%; width: 16.833%; height: 3.421%; }
.px-key { left: 24.75%; top: 59.08%; width: 20.167%; height: 4.21%; transition-delay: .15s; }
.marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-step circle { fill: #ff3b30; stroke: #fff; stroke-width: 3.2; }
.m-step text { fill: #fff; font: 750 22px 'Inter K', sans-serif; text-anchor: middle; dominant-baseline: middle; }
.m-step { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .55s var(--spring) var(--d), opacity .2s var(--d); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }
.m-arrow-line { fill: none; stroke: #ff3b30; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.65, 0, .35, 1); }
.m-arrow-head { fill: #ff3b30; stroke: #ff3b30; stroke-width: 4; stroke-linejoin: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.3); transition: opacity .2s .7s, transform .4s var(--spring) .7s; }
.m-hl { fill: #ffe14d; mix-blend-mode: multiply; opacity: .75; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.m-spot { fill: rgba(10, 8, 20, .62); opacity: 0; transition: opacity .7s; }
.guide-fig.s1 .m-step, .guide-fig.s2 .m-step { transform: none; opacity: 1; }
.guide-fig.s2 .m-arrow-line { stroke-dashoffset: 0; }
.guide-fig.s2 .m-arrow-head { opacity: 1; transform: none; }
.guide-fig.s3 .m-hl { transform: none; }
.guide-fig.s4 .px { opacity: 1; clip-path: inset(0 0 0 0); }
.guide-fig.s5 .m-spot { opacity: 1; }
.guide-toast { position: absolute; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 16px; border-radius: 12px; background: rgba(21, 18, 30, .92); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 40px -10px #000; color: var(--txt); font-size: 13px; white-space: nowrap; opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s, transform .5s var(--spring); }
.guide-toast i { width: 9px; height: 9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .2); }
.guide-fig[data-step="6"] .guide-toast { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }

/* frame: a live copy of the beautify panel */
.frame { max-width: 1300px; margin: 0 auto; }
.frame-head { max-width: 900px; margin-bottom: 50px; }
.frame-lab { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; }
.frame-stage { display: grid; place-items: center; aspect-ratio: 16 / 10.4; border-radius: 22px; background: repeating-conic-gradient(#1b1824 0 25%, #15121d 0 50%) 0 0 / 22px 22px; box-shadow: 0 0 0 1px var(--line); padding: 4%; }
.frame-pre { --pad: 64; --rad: 14; --sh: .5; width: 100%; padding: calc(var(--pad) / 1328 * 100%); border-radius: calc(var(--rad) * 1.2px); background: var(--fbg, var(--paint)); transition: padding .35s var(--out), background .5s, border-radius .35s; }
.frame-pre img { display: block; width: 100%; border-radius: calc(var(--rad) * .6px); box-shadow: 0 calc(var(--sh) * 34px) calc(var(--sh) * 70px) calc(var(--sh) * -10px) rgba(0, 0, 0, calc(var(--sh) * 1.1)); transition: border-radius .35s, box-shadow .35s; }
.frame-ctl { padding: 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ctl-label { color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin: 0 0 10px; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 22px; }
.presets button { aspect-ratio: 1; border: 0; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .3s var(--spring), box-shadow .2s; }
.presets button:hover { transform: scale(1.08); }
.presets button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #fff; }
.presets button.none { background: repeating-conic-gradient(#3a3546 0 25%, #24202d 0 50%) 0 0 / 10px 10px; }
.slider { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--mut); }
.slider output { text-align: right; color: var(--txt); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 61, 127, .35); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 61, 127, .35); cursor: grab; }
.frame-note { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; }

/* painting: a second live window */
.paintsec { max-width: 1250px; margin: 0 auto; }
.paint-head { max-width: 900px; margin-bottom: 50px; }
.tool-facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-facts li { padding: 18px 20px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--mut); font-size: 14.5px; }
.tool-facts b { display: block; margin-bottom: 4px; color: var(--txt); font-weight: 600; }

/* shapes */
.shapes { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.shape-ctl { margin-top: 30px; display: grid; gap: 14px; }
.ctl-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; }
.ctl-row .ctl-label { margin: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.seg button { padding: 8px 13px; border: 0; border-radius: 9px; background: none; color: var(--mut); cursor: pointer; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.seg button:hover { color: var(--txt); }
.seg button[aria-checked="true"] { background: var(--txt); color: #000; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colors button { width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: transform .3s var(--spring), box-shadow .2s; }
.colors button:hover { transform: scale(1.12); }
.colors button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
.switch { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; justify-self: start; }
.switch-knob { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #2c2836; transition: background .35s; }
.switch-knob::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .45s var(--spring); }
.switch[aria-checked="true"] .switch-knob { background: var(--paint); }
.switch[aria-checked="true"] .switch-knob::after { transform: translateX(20px); }
.shape-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 24px; border-radius: 24px; background: #f6f5f9; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px #000; }
.shape-grid figure { margin: 0; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; cursor: grab; transition: background .25s; }
.shape-grid figure:hover { background: rgba(20, 10, 40, .05); }
.shape-grid svg { width: 76%; overflow: visible; transition: transform .5s var(--spring); }
.shape-grid figure:hover svg { transform: rotate(-6deg) scale(1.08); }
.shape-grid path { transition: fill .35s, stroke .35s, fill-opacity .35s, stroke-dasharray .35s; }
.shape-grid.shadow svg { filter: drop-shadow(0 6px 6px rgba(20, 10, 40, .28)); }
.shape-grid figure.pop svg { animation: pop .55s var(--spring) calc(var(--n) * 35ms) both; }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: none; } }

/* text */
.type { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.type .ctl-row { margin-top: 18px; }
.type .say { margin-bottom: 26px; }
.type-pic { container-type: inline-size; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px #000; }
.type-pic img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.type-sample { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-2deg); max-width: 88%; outline: none; white-space: nowrap; color: #ff3b30; font: 650 6cqw/1.2 'Inter K', sans-serif; padding: .04em .08em; border-radius: .38em; cursor: text; transition: background .3s, color .3s, padding .3s, -webkit-text-stroke .3s; }
.type-pic[data-font="hand"] .type-sample { font-family: 'Caveat K', cursive; font-weight: 700; font-size: 8cqw; }
.type-pic[data-font="serif"] .type-sample { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
.type-pic[data-font="mono"] .type-sample { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-weight: 600; font-size: 5.2cqw; }
.type-pic[data-style="pill"] .type-sample { background: #ff3b30; color: #fff; padding: .2em .42em; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); }
.type-pic[data-style="outline"] .type-sample { paint-order: stroke fill; -webkit-text-stroke: .2em #fff; }
.type-pic[data-style="none"] .type-sample { text-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* keys and the command palette */
.keys { max-width: 1280px; margin: 0 auto; }
.keys-head { max-width: 980px; margin-bottom: 50px; }
.keys-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.keymap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.keymap > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--mut); font-size: 14px; line-height: 1.25; transition: box-shadow .5s, transform .5s var(--out), color .5s; }
.keymap > div kbd { flex: none; font-size: 14px; min-width: 2em; height: 2em; }
.keymap > div.g1 kbd { color: #ffb38a; }
.keymap > div.g2 kbd { color: #ff8fb5; }
.keymap > div.g3 kbd { color: #c4a8ff; }
.keymap > div.hit { color: var(--txt); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 61, 127, .7), 0 18px 40px -16px rgba(255, 61, 127, .6); transition-duration: .08s; }
.palette { border-radius: 16px; background: rgba(26, 22, 36, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px #000; overflow: hidden; font-family: 'Inter K', var(--body); }
.pal-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.pal-input svg { width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.caret { width: 2px; height: 20px; margin-left: -8px; background: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pal-list { list-style: none; margin: 0; padding: 6px; min-height: 52px; }
.pal-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: #d8d4e2; animation: palin .3s var(--out) both; }
.pal-list li b { font-weight: 400; }
.pal-list li small { color: var(--faint); font-size: 12px; }
.pal-list li span { margin-left: auto; display: flex; gap: 4px; }
.pal-list li kbd { font-size: 11px; }
.pal-list li:first-child { background: rgba(255, 61, 127, .16); color: #fff; }
.pal-list mark { background: none; color: #ff8fb5; }
@keyframes palin { from { opacity: 0; transform: translateY(4px); } }
.pal-foot { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); }
.mod-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mod-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px; border-radius: 12px; color: var(--mut); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }

/* clipboard and the rest */
.calm { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--mut); position: relative; font-size: 15.5px; }
.facts li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 10px; height: 6px; border: 2px solid var(--pink); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.facts b { color: var(--txt); font-weight: 600; }

/* download */
.get { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 110px !important; }
.splash { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }
.app-icon { width: 140px; height: 140px; margin-bottom: 30px; filter: drop-shadow(0 24px 50px rgba(255, 61, 127, .4)); animation: bob 4s ease-in-out infinite; cursor: pointer; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.get .say { margin-left: auto; margin-right: auto; }
.get-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.btn-dl { color: #000; background: var(--txt); padding: 13px 22px 13px 18px; text-align: left; }
.btn-dl svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-dl.mine { background: var(--paint); color: #fff; box-shadow: 0 14px 40px -12px rgba(255, 61, 127, .6); order: -1; }
.btn b { display: block; font-size: 15px; }
.btn small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .7; }
.btn-coffee { background: #ffdd00; color: #1a1300; padding: 13px 22px 13px 18px; text-align: left; }
.cup { position: relative; width: 24px; height: 26px; flex: none; }
.cup::before { content: ''; position: absolute; left: 2px; bottom: 0; width: 16px; height: 15px; border-radius: 2px 2px 6px 6px; background: #1a1300; }
.cup::after { content: ''; position: absolute; right: 0; bottom: 4px; width: 5px; height: 7px; border: 2.5px solid #1a1300; border-left: 0; border-radius: 0 5px 5px 0; }
.cup i { position: absolute; bottom: 17px; width: 2.5px; height: 7px; border-radius: 2px; background: #1a1300; opacity: 0; animation: steam 2s ease-in-out infinite; }
.cup i:nth-child(1) { left: 5px; }
.cup i:nth-child(2) { left: 9px; animation-delay: .4s; }
.cup i:nth-child(3) { left: 13px; animation-delay: .8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(3px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-5px); } }
.get-note { max-width: 640px; margin: 30px auto 0; color: var(--faint); font-size: 14px; }
.get-foot { color: var(--faint); margin-top: 20px; }
.get-foot a { color: var(--mut); }
.credit { max-width: 560px; margin: 26px auto 0; color: var(--faint); font-size: 13px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 30px var(--gut) 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--txt); }
.foot-links { display: flex; gap: 18px; }

.reveal { opacity: 0; transform: translateY(24px); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .guide-pin { grid-template-columns: 1fr; min-height: 0; padding-top: 0; }
  /* Picture between headline and steps, so each step is seen next to what it does. */
  .guide-copy { display: contents; }
  .guide-pin { gap: 0; }
  .guide-fig { order: 1; margin: 32px 0 18px; }
  .guide-steps { order: 2; margin-top: 0; }
  .frame-lab, .shapes, .type, .calm, .keys-grid { grid-template-columns: 1fr; }
  .tool-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keymap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-nav a:not(.top-cta) { display: none; }
}
@media (max-width: 700px) {
  .tool-facts, .mod-facts { grid-template-columns: 1fr; }
  .keymap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shape-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; gap: 6px; }
  .ctl-row { grid-template-columns: 1fr; gap: 8px; }
  .coach { font-size: 13px; }
  .guide-bar { font-size: 11px; gap: 8px; }
  .guide-tab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
