/* Hallmark · shape: the pile, a sales page that grows from one 3D card of plugin pieces · genre: modern-minimal · theme: custom · job: buy · idea: "Webkit is five pieces Claude snaps into a site, so the page is a pile of those pieces you can touch" · vibe: "glossy pieces, cool paper, croczek colours, honest"
 * paper: oklch(95.2% 0.008 280) · accent: oklch(69% 0.12 355) · display: Sigmar · body: Hanken Grotesk · hero: headline and offer over a full-width dark rounded card holding a live pile of glossy pieces that dodge the cursor · nav: wordmark left, three pills right · footer: two columns, brand and links over the legal line · imagery: the product built (3D pieces, a before/after demo), no photographs · signature: the pile of five piece types in the dark card, each shape one plugin
 * axes: light/display-heavy/chromatic-pink · posture: stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a 3D pile could sell anything; each shape and colour is mapped to one named plugin, the legend says which, and the part list repeats the same shapes */
/* Hallmark · answered F15 · buy grid keeps two touching cards (24px), footer 40px, content sections 96px: the price and the form read as one offer */
/* Floor note: 2a, 19 and 30a fire only inside .demo-slop, the deliberate "Bez Webkitu" parody the page argues against (purple gradient, emoji, Revolutionize); kept on purpose, nothing else on the page uses them */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 76px; --container: 1360px; }

body { background: var(--color-paper); }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-toast); background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.pill:active { transform: scale(0.97); }
.pill-ink { background: var(--color-ink); color: var(--color-paper); }
.pill-ink:hover { background: var(--color-night-2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-pink) 45%, transparent); }
.pill-ghost { background: var(--color-white); color: var(--color-ink); border-color: var(--color-rule); }
.pill-ghost:hover { border-color: var(--color-ink); }
.pill-big { min-height: 56px; padding: 0 var(--space-xl); font-size: var(--text-md); }
.pill[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.brand { display: inline-flex; align-items: baseline; gap: var(--space-xs); text-decoration: none; border-radius: var(--radius-inner); }
.brand-word { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--color-ink); }
.brand-by { font-size: var(--text-sm); color: var(--color-muted); }
.nav-links { display: flex; gap: var(--space-xs); }

/* ---------- hero ---------- */
.hero { padding-top: var(--space-xl); }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: end; padding-bottom: var(--space-xl); }
.hero-title { font-size: clamp(2.6rem, 5.4vw + 0.4rem, 5.6rem); line-height: 0.98; letter-spacing: var(--tracking-display); color: var(--color-ink); font-weight: 400; }
.hero-side { display: grid; gap: var(--space-lg); padding-bottom: var(--space-xs); }
.hero-lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 30ch; }
.hero-actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.hero-more { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.hero-more:hover { color: var(--color-ink); }

.stage { position: relative; height: clamp(420px, 62vh, 720px); border-radius: var(--radius-card); background: radial-gradient(120% 90% at 50% 40%, var(--color-night-2), var(--color-night) 70%); overflow: hidden; isolation: isolate; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: pan-y; }
.stage-fallback { position: absolute; inset: 0; margin: 0; padding: var(--space-2xl); list-style: none; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: var(--space-md) var(--space-xl); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); color: var(--color-on-night); }
.stage.is-live .stage-fallback { opacity: 0; visibility: hidden; }
.stage-legend { position: absolute; z-index: 2; left: var(--space-lg); bottom: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); font-size: var(--text-sm); color: var(--color-on-night-2); pointer-events: none; }
.stage-legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-pink { background: var(--color-pink); } .sw-teal { background: var(--color-teal); } .sw-mango { background: var(--color-mango); } .sw-white { background: var(--color-white); } .sw-orange { background: var(--color-orange); }
.stage-hint { position: absolute; z-index: 2; right: var(--space-lg); bottom: var(--space-lg); font-size: var(--text-sm); color: var(--color-on-night-2); pointer-events: none; }

/* ---------- shared section heads ---------- */
section { scroll-margin-top: var(--nav-h); }
.section-title { font-size: var(--text-section); line-height: 1.02; color: var(--color-ink); font-weight: 400; max-width: 16ch; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 42ch; margin-top: var(--space-lg); }

/* ---------- slop vs made ---------- */
.slop { padding-top: var(--section-gap); }
.slop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-3xl); align-items: center; }
.toggle { display: inline-flex; margin-top: var(--space-xl); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); }
.toggle-btn { min-height: 44px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.toggle-btn:hover { color: var(--color-ink); }
.toggle-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.toggle-btn[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }

.demo { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-card); overflow: hidden; --split: 0%; isolation: isolate; }
.demo-slop, .demo-made { position: absolute; inset: 0; padding: clamp(var(--space-lg), 4vw, var(--space-2xl)); }
.demo-slop { z-index: 2; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.demo.animate .demo-slop { transition: clip-path 700ms var(--ease-out); }
.demo-split { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 100%; translate: var(--split) 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.demo.animate .demo-split { transition: translate 700ms var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.demo-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--color-white); box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-ink) 25%, transparent); }
.demo-split i { position: absolute; top: var(--space-md); font-style: normal; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-ink); }
.demo-split i:first-child { right: calc(100% + var(--space-sm)); }
.demo-split i:last-child { left: var(--space-sm); }
.fx .demo.wiping .demo-split { opacity: 1; }
.demo-slop { background: linear-gradient(135deg, var(--color-slop-a), var(--color-slop-b)); color: var(--color-white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-md); font-family: var(--font-body); }
.slop-badge { font-size: var(--text-xs); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-white) 20%, transparent); }
.slop-title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.15; max-width: 18ch; }
.slop-sub { font-size: var(--text-sm); opacity: 0.85; max-width: 34ch; }
.slop-btn { padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-slop-a); font-weight: 700; box-shadow: 0 0 32px var(--color-slop-glow); /* the glow is one of the tells on show */ }
.slop-cards { display: flex; gap: var(--space-xs); margin-top: var(--space-xs); }
.slop-cards span { font-size: var(--text-xs); padding: var(--space-xs) var(--space-sm); border-radius: 12px; background: color-mix(in oklab, var(--color-white) 14%, transparent); border: 1px solid color-mix(in oklab, var(--color-white) 30%, transparent); }

.demo-made { background: radial-gradient(90% 80% at 75% 55%, var(--color-night-2), var(--color-night) 70%); color: var(--color-on-night); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: var(--space-md) var(--space-lg); overflow: hidden; }
.made-top { grid-column: 1 / -1; display: flex; align-items: baseline; gap: var(--space-lg); font-size: var(--text-xs); color: var(--color-on-night-2); }
.made-top b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--color-mango); margin-right: auto; }
.made-open { color: var(--color-mango); }
.made-title { grid-column: 1; grid-row: 2; align-self: center; font-family: var(--font-display); font-size: clamp(1.5rem, 2.7vw, 2.6rem); line-height: 1.02; color: var(--color-on-night); position: relative; z-index: 1; }
.made-menu { grid-column: 1; grid-row: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); max-width: 220px; position: relative; z-index: 1; }
.made-menu li { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-2xs) 0; border-bottom: 1px solid color-mix(in oklab, var(--color-on-night) 16%, transparent); font-size: var(--text-sm); transition: color var(--dur-short) var(--ease-out); }
.made-menu b { color: var(--color-mango); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx .made-menu li:hover { color: var(--color-mango); }
.made-bean { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; font-size: var(--text-xs); font-weight: 600; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-mango); color: var(--color-ink); position: relative; z-index: 1; }

/* the latte, seen from above: saucer, cup, crema, a milk heart; turns with the mouse */
.latte { grid-column: 2; grid-row: 2 / 4; align-self: center; justify-self: center; position: relative; width: min(100%, 300px); aspect-ratio: 1; --rot: -18deg; --lx: 0px; --ly: 0px; translate: var(--lx) var(--ly); }
.latte-cup { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--color-cup), color-mix(in oklab, var(--color-cup) 82%, var(--color-ink)) 72%); box-shadow: 18px 26px 40px color-mix(in oklab, var(--color-ink) 55%, transparent), inset -10px -14px 24px color-mix(in oklab, var(--color-ink) 18%, transparent); rotate: var(--rot); }
.latte-cup::after { content: ""; position: absolute; right: -16%; top: 42%; width: 22%; height: 16%; border-radius: 40% 60% 60% 40% / 50%; border: 10px solid var(--color-cup); border-left: 0; box-shadow: 6px 8px 14px color-mix(in oklab, var(--color-ink) 35%, transparent); }
.latte-crema { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--color-crema) 0 52%, var(--color-coffee) 78%); box-shadow: inset 0 6px 16px color-mix(in oklab, var(--color-ink) 45%, transparent); overflow: hidden; }
.latte-heart { position: absolute; left: 50%; top: 52%; width: 44%; aspect-ratio: 1; translate: -50% -50%; }
.latte-heart::before, .latte-heart::after { content: ""; position: absolute; width: 58%; height: 86%; top: 0; border-radius: 50% 50% 0 0; background: var(--color-milk); box-shadow: 0 0 10px color-mix(in oklab, var(--color-milk) 60%, transparent); }
.latte-heart::before { left: 50%; transform-origin: 0 100%; rotate: -45deg; }
.latte-heart::after { left: -8%; transform-origin: 100% 100%; rotate: 45deg; }
.latte-steam { position: absolute; inset: -6% 18% 50%; z-index: 2; pointer-events: none; display: flex; justify-content: center; gap: 14%; --lean: 0deg; }
.latte-steam i { width: 12%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--color-white) 34%, transparent), transparent); filter: blur(6px); transform-origin: 50% 100%; rotate: var(--lean); animation: steam 3.2s var(--ease-in-out) infinite; opacity: 0; }
.latte-steam i:nth-child(2) { animation-delay: 1.1s; height: 120%; }
.latte-steam i:nth-child(3) { animation-delay: 2.1s; }
@keyframes steam { 0% { opacity: 0; translate: 0 30%; scale: 0.6 0.6; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 -40%; scale: 1.2 1.2; } }
@media (max-width: 40rem) {
  .demo-made { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; }
  .made-top span:not(.made-open) { display: none; }
  .made-title { grid-row: 2; }
  .latte { grid-column: 1; grid-row: 3; width: min(70%, 220px); }
  .made-menu { grid-row: 4; max-width: none; }
  .made-bean { grid-column: 1; grid-row: 5; justify-self: start; }
}

/* ---------- what it can do: a bento of five live tiles ---------- */
.can { padding-top: var(--section-gap); }
.can-title { margin-bottom: var(--space-xl); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.tile { position: relative; border-radius: var(--radius-card); padding: var(--space-lg); min-height: 340px; display: grid; grid-template-rows: 1fr auto; gap: var(--space-lg); overflow: hidden; isolation: isolate; }
.tile-look { grid-column: span 4; background: var(--color-paper-2); }
.tile-sections { grid-column: span 2; background: var(--color-mango); }
.tile-live { grid-column: span 2; background: var(--color-night); color: var(--color-on-night); }
.tile-app { grid-column: span 2; background: color-mix(in oklab, var(--color-teal) 30%, var(--color-paper)); }
.tile-clean { grid-column: span 2; background: var(--color-white); border: 1px solid var(--color-rule); }
.tile-text { position: relative; z-index: 2; }
.tile-name { font-size: var(--text-xl); font-weight: 400; line-height: 1.05; margin-bottom: var(--space-xs); }
.tile-text p { font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); max-width: 38ch; }
.tile-live .tile-text p { color: var(--color-on-night-2); }

/* 1 · own look: one mini page, three looks, the mouse picks */
.look { --bg: var(--color-cream); --fg: var(--color-forest); --ac: var(--color-tomato); --ff: var(--font-display); align-self: center; justify-self: center; width: min(100%, 560px); aspect-ratio: 16 / 8; border-radius: var(--radius-inner); background: var(--bg); color: var(--fg); padding: var(--space-lg); display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 24px 50px -24px color-mix(in oklab, var(--color-ink) 45%, transparent); transition: background-color 500ms var(--ease-out), color 500ms var(--ease-out); }
.look[data-theme="1"] { --bg: var(--color-night); --fg: var(--color-mango); --ac: var(--color-pink); }
.look[data-theme="2"] { --bg: var(--color-pink); --fg: var(--color-ink); --ac: var(--color-white); --ff: var(--font-body); }
.look-bar { display: flex; align-items: center; gap: var(--space-xs); }
.look-bar b { font-family: var(--ff); font-weight: 400; font-size: 1.1rem; margin-right: auto; }
.look[data-theme="2"] .look-bar b, .look[data-theme="2"] .look-head { font-weight: 700; letter-spacing: -0.03em; }
.look-bar i { width: 28px; height: 6px; border-radius: 3px; background: currentColor; opacity: 0.35; }
.look-head { align-self: center; font-family: var(--ff); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1; }
.look-row { display: flex; align-items: end; justify-content: space-between; gap: var(--space-md); }
.look-btn { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--ac); color: var(--bg); font-size: var(--text-xs); font-weight: 700; transition: background-color 500ms var(--ease-out), color 500ms var(--ease-out); }
.look-img { width: 34%; aspect-ratio: 2; border-radius: 10px; background: var(--ac); opacity: 0.85; transition: background-color 500ms var(--ease-out), border-radius 500ms var(--ease-out); }
.look[data-theme="1"] .look-img { border-radius: 50px; }
.look[data-theme="2"] .look-img { border-radius: 2px; }
.look-dots { position: absolute; top: var(--space-lg); right: var(--space-lg); display: flex; gap: var(--space-xs); z-index: 2; }
.look-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--color-ink); }
.look-dots i:nth-child(1) { background: var(--color-cream); } .look-dots i:nth-child(2) { background: var(--color-night); } .look-dots i:nth-child(3) { background: var(--color-pink); }

/* 2 · ready sections: a stack of blocks that fans out under the mouse */
.stack { position: relative; align-self: center; justify-self: center; width: 78%; height: 190px; }
.stack > span { position: absolute; left: 0; right: 0; border-radius: 12px; background: var(--color-white); box-shadow: 0 10px 22px -12px color-mix(in oklab, var(--color-ink) 50%, transparent); display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-sm); transition: translate 600ms var(--ease-out), rotate 600ms var(--ease-out); }
.stack i { display: block; border-radius: 4px; background: color-mix(in oklab, var(--color-ink) 18%, transparent); }
.stack-nav { top: 0; height: 30px; } .stack-nav i { width: 22px; height: 6px; } .stack-nav i:first-child { width: 40px; background: var(--color-ink); margin-right: auto; }
.stack-price { top: 44px; height: 62px; gap: var(--space-xs) !important; } .stack-price i { flex: 1; height: 42px; } .stack-price i.hot { background: var(--color-ink); height: 50px; }
.stack-form { top: 120px; height: 34px; } .stack-form i { flex: 1; height: 14px; } .stack-form i:last-child { flex: 0 0 52px; background: var(--color-pink); height: 18px; }
.stack-foot { top: 166px; height: 22px; background: var(--color-ink) !important; }
.stack > span:nth-child(1) { translate: -14px 8px; rotate: -6deg; } .stack > span:nth-child(2) { translate: 18px 2px; rotate: 4deg; } .stack > span:nth-child(3) { translate: -10px -4px; rotate: -3deg; } .stack > span:nth-child(4) { translate: 12px -6px; rotate: 5deg; }
.tile-sections:hover .stack > span { translate: 0 0; rotate: 0deg; }

/* 3 · live elements: a line cube that turns with the mouse */
.cube-wrap { align-self: center; justify-self: center; perspective: 700px; width: 140px; height: 140px; }
.cube { --rx: -24deg; --ry: 38deg; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.cube i { position: absolute; inset: 0; border: 2px solid var(--color-on-night); border-radius: 6px; }
.cube .f1 { transform: translateZ(70px); border-color: var(--color-mango); } .cube .f2 { transform: rotateY(180deg) translateZ(70px); }
.cube .f3 { transform: rotateY(90deg) translateZ(70px); border-color: var(--color-pink); } .cube .f4 { transform: rotateY(-90deg) translateZ(70px); }
.cube .f5 { transform: rotateX(90deg) translateZ(70px); border-color: var(--color-teal); } .cube .f6 { transform: rotateX(-90deg) translateZ(70px); }
@media (prefers-reduced-motion: no-preference) { html:not(.fx) .cube { animation: cubespin 14s linear infinite; } }
@keyframes cubespin { to { transform: rotateX(-24deg) rotateY(398deg); } }

/* 4 · apps: a little dashboard whose bars rise toward the mouse */
.dash { align-self: center; background: var(--color-white); border-radius: var(--radius-inner); padding: var(--space-md); box-shadow: 0 18px 36px -20px color-mix(in oklab, var(--color-ink) 45%, transparent); }
.dash-top { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); margin-bottom: var(--space-sm); }
.dash-top span { width: 10px; height: 10px; border-radius: 3px; background: var(--color-teal); }
.dash-bars { display: flex; align-items: end; gap: var(--space-xs); height: 110px; }
.dash-bars i { --b: 0; flex: 1; height: 100%; border-radius: 6px 6px 3px 3px; background: color-mix(in oklab, var(--color-teal) 55%, var(--color-white)); transform-origin: bottom; transform: scaleY(calc(var(--h) + var(--b) * 0.25)); transition: transform 500ms var(--ease-out), background-color 300ms var(--ease-out); }
.dash-bars i.on { background: var(--color-teal); }

/* 5 · clean-up: AI chips that the mouse sweeps away */
.mess { position: relative; min-height: 180px; }
.chip { position: absolute; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; color: var(--color-white); background: var(--color-slop-a); box-shadow: 0 0 22px color-mix(in oklab, var(--color-slop-glow) 70%, transparent); transition: translate 700ms var(--ease-out), opacity 500ms var(--ease-out), rotate 700ms var(--ease-out); white-space: nowrap; }
.chip.gone { opacity: 0; translate: var(--fx, 120px) var(--fy, -80px); rotate: var(--fr, 30deg); }
.c1 { top: 4%; left: 6%; rotate: -6deg; } .c2 { top: 22%; left: 46%; background: var(--color-slop-b); rotate: 4deg; } .c3 { top: 44%; left: 10%; rotate: 3deg; }
.c4 { top: 58%; left: 52%; background: var(--color-slop-b); rotate: -4deg; } .c5 { top: 78%; left: 20%; rotate: -2deg; } .c6 { top: 4%; left: 58%; rotate: 8deg; }
.clean-ok { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; color: var(--color-teal); opacity: 0; scale: 0.8; transition: opacity 500ms var(--ease-out), scale 500ms var(--ease-out); }
.mess.done .clean-ok { opacity: 1; scale: 1; }

@media (max-width: 60rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-look { grid-column: span 2; }
  .tile-sections, .tile-live, .tile-app, .tile-clean { grid-column: span 1; }
}
@media (max-width: 40rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-look, .tile-sections, .tile-live, .tile-app, .tile-clean { grid-column: span 1; }
  .tile { min-height: 300px; }
  .look { aspect-ratio: 4 / 3; }
}

/* ---------- buy ---------- */
.buy { padding-top: var(--section-gap); }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-lg); align-items: stretch; }
.price { border-radius: var(--radius-card); background: var(--color-night); color: var(--color-on-night); padding: clamp(28px, 4vw, 56px); display: grid; align-content: space-between; gap: var(--space-xl); min-height: 360px; }
.price-amt { font-variant-numeric: tabular-nums; font-size: clamp(4rem, 9vw, 8rem); line-height: 0.9; color: var(--color-mango); font-weight: 400; }
.price-line { font-size: var(--text-lead); max-width: 26ch; }
.price-needs { font-size: var(--text-sm); color: var(--color-on-night-2); }
.checkout { border-radius: var(--radius-card); background: var(--color-white); border: 1px solid var(--color-rule); padding: clamp(var(--space-lg), 3.5vw, var(--space-2xl)); }
.co-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.co-title { font-size: var(--text-2xl); font-weight: 400; color: var(--color-ink); }
.co-steps { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.co-steps i { width: 24px; height: 1px; background: var(--color-rule); display: block; }
.co-step { display: inline-flex; align-items: center; gap: var(--space-xs); }
.co-step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-xs); }
.co-step.on { color: var(--color-ink); }
.co-step.on b { background: var(--color-ink); color: var(--color-paper); }
.co-who { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper); margin-bottom: var(--space-md); font-size: var(--text-sm); }
.co-back { border: 0; background: transparent; color: var(--color-ink); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; border-radius: 8px; }
.co-back:hover { color: var(--color-ink-2); }
.co-back:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.co-next { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.co-err { color: var(--color-error); font-size: var(--text-sm); }
.co-fallback { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
#flixy-checkout { min-height: 140px; }
#flixy-checkout:empty::before { content: "Načítám platbu…"; display: grid; place-items: center; height: 140px; color: var(--color-muted); font-weight: 600; }
#flixy-checkout[data-flixy-checkout] { --flixy-checkout-accent: var(--color-ink); --flixy-checkout-text: var(--color-ink); --flixy-checkout-text-muted: var(--color-ink-2); --flixy-checkout-page-background: transparent; --flixy-checkout-surface: var(--color-white); --flixy-checkout-font-family: var(--font-body); --flixy-checkout-border: var(--color-rule); --flixy-checkout-input-border: color-mix(in oklab, var(--color-ink) 20%, transparent); --flixy-checkout-radius-lg: 18px; --flixy-checkout-radius-md: 12px; }
#flixy-checkout .embedded-checkout > div { border: 0; padding: 0; box-shadow: none; background: transparent; border-radius: 0; }
#flixy-checkout form > :not(:last-child) { margin-bottom: var(--space-sm); }
.checkout.step-1 #flixy-checkout form > :is([data-flixy-element="summary"], [data-flixy-element="payment"], [data-flixy-element="submit"]),
.checkout.step-1 #flixy-checkout form > div:has([data-flixy-element="immediate-access-consent-checkbox"], [data-flixy-element="gdpr-notice"]),
.checkout.step-2 #flixy-checkout form > :is([data-flixy-element="customer-section"], [data-flixy-element="billing-section"]) { display: none !important; }

/* ---------- faq ---------- */
.faq { padding-top: var(--section-gap); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--space-3xl); }
.faq-list { border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-lg) var(--space-2xl) var(--space-lg) 0; position: relative; font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: var(--space-xs); top: 50%; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 60ch; }

/* ---------- footer ---------- */
.foot { margin-top: var(--section-gap); padding: var(--space-2xl) 0 var(--space-xl); border-top: 1px solid var(--color-rule); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-xl); }
.foot-brand { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); }
.foot-links { margin-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }
.foot-links a { color: var(--color-ink-2); border-radius: 6px; min-height: 24px; }
.foot-links a:hover { color: var(--color-ink); }
.foot-legal { font-size: var(--text-xs); color: var(--color-muted); max-width: 60ch; justify-self: end; }

/* ---------- thank-you ---------- */
.thanks { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--gutter); background: color-mix(in oklab, var(--color-night) 70%, transparent); }
.thanks-card { max-width: 480px; background: var(--color-white); border-radius: var(--radius-card); padding: var(--space-xl); display: grid; gap: var(--space-md); justify-items: start; }
.thanks-title { font-size: var(--text-2xl); font-weight: 400; color: var(--color-ink); }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .hero-text, .slop-grid, .buy-grid, .faq-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .slop-grid, .faq-grid { gap: var(--space-xl); }
  .foot-legal { justify-self: start; }
}
@media (max-width: 40rem) {
  .nav-links .pill-ghost { display: none; }
  .brand-by { display: none; }
  .stage { height: 440px; }
  .stage-hint { display: none; }
  .stage-legend { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); }
  .demo { aspect-ratio: 3 / 5; }
}

/* ---------- mouse layer (only with a real mouse and motion allowed: html.fx) ---------- */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; will-change: transform; }

[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.fx [data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), color-mix(in oklab, var(--color-white) 22%, transparent), transparent 55%); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.fx [data-tilt].lit::after { opacity: 1; }
.price { position: relative; }

.slop { position: relative; isolation: isolate; }
.slop > .container { position: relative; z-index: 1; }
.ribbon { position: absolute; z-index: 0; left: 0; right: 0; top: -12%; width: 100%; height: 125%; pointer-events: none; overflow: visible; }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon-base { stroke: var(--color-pink); stroke-width: 74; opacity: 0.9; }
.ribbon-hi { stroke: var(--color-white); stroke-width: 10; opacity: 0.45; translate: 0 -18px; }
@media (max-width: 60rem) { .ribbon { display: none; } }
@media (prefers-reduced-motion: reduce) { .ribbon-hi { display: none; } }
.only-mouse { display: none; }
.fx .only-mouse { display: inline; }
.fx .only-touch { display: none; }
