/* Hallmark · shape: product film in glass, the wheel as the one object · genre: modern-minimal · theme: custom · redesign: full · job: try · idea: "the page is the Mexerica wheel itself, rebuilt to the app's geometry, lighting under the mouse the way the app does, over light in the wheel's own three colours" · vibe: "keynote night, glass over moving coloured light"
 * paper: a ground of oklch(15.5% 0.004 264) under moving light · accent: oklch(74% 0.175 55), the app's Convert orange; Tools blue and Actions green on the wheels and in the light · display: Geist 700 · body: Geist 400 · hero: text left, the live wheel right, opening the way the app opens it · nav: glass bar, wordmark and one action · footer: one line and the links · imagery: the product built, wheels drawn from WheelWindow.cs, file icons in the Explorer's manner · signature: a wheel you can point at, each slice lighting in its side's colour
 * axes: dark/grotesk-sans/warm · posture: full palette (field: the ground and its light; signal: orange; side colours on their own wheels) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: P, a download page argues little; the wheel does the arguing, the visitor works it with the mouse */
/* Hallmark · saturated face: Geist as the whole page · the owner asked for a page in Apple's manner and Geist is the free face closest to its system type; the wheel keeps the app's own Segoe UI */
/* Hallmark · waive 81 · span.blob are four radial lights in a fixed layer behind the page, never a picture slot · the owner asked for a dynamic background; the lights take the wheel's three side colours and follow the scroll */
/* Hallmark · dismissed F4 · the second hero action is a glass button with no fill colour, the outlined variant in this system */
/* Hallmark · dismissed F8 · the scrolled lights are the background, not a choreography; the wheels growing is the one scroll pattern */
/* Hallmark · dismissed F24 · glass needs its lit edge and its shadow together, or it reads as a flat grey box over the light */
@import url("./tokens.css");
@import url("./base.css");

body { background: var(--color-ground); color: var(--color-on-ground); isolation: isolate;
  --color-ink: var(--color-on-ground); --color-ink-2: var(--color-on-ground-2); --color-muted: var(--color-on-ground-2);
  --color-rule: var(--color-ground-rule); --color-focus: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 45%, transparent); }

h1, h2, h3 { font-weight: 700; letter-spacing: var(--tracking-display); }
h2 { font-size: clamp(2.5rem, 4.4vw + 0.5rem, 4.75rem); line-height: 1.02; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-on-ground-2); }

/* ---------- the moving light behind everything ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; opacity: 0.12; transition: opacity 1400ms var(--ease-in-out); }
.blob--convert { left: -18vmax; top: -24vmax; background: radial-gradient(circle, color-mix(in oklab, var(--color-convert) 70%, transparent), transparent 62%); }
.blob--tools { right: -26vmax; top: 6vmax; background: radial-gradient(circle, color-mix(in oklab, var(--color-tools) 70%, transparent), transparent 62%); }
.blob--actions { left: 10vmax; bottom: -40vmax; background: radial-gradient(circle, color-mix(in oklab, var(--color-actions) 60%, transparent), transparent 62%); }
.blob--deep { right: 10vmax; bottom: -30vmax; width: 60vmax; opacity: 0.22; background: radial-gradient(circle, color-mix(in oklab, var(--color-convert) 35%, var(--color-tools)), transparent 64%); }
body[data-tone="convert"] .blob--convert { opacity: 0.42; }
body[data-tone="tools"] .blob--tools { opacity: 0.4; }
body[data-tone="actions"] .blob--actions { opacity: 0.38; }
@supports (animation-timeline: scroll()) {
  .blob--convert { animation: drift-a linear both; animation-timeline: scroll(root); }
  .blob--tools { animation: drift-b linear both; animation-timeline: scroll(root); }
  .blob--actions { animation: drift-c linear both; animation-timeline: scroll(root); }
  .blob--deep { animation: drift-d linear both; animation-timeline: scroll(root); }
  @keyframes drift-a { from { transform: none; } 50% { transform: translate(30vmax, 40vmax) scale(1.15); } to { transform: translate(8vmax, 70vmax) scale(0.9); } }
  @keyframes drift-b { from { transform: none; } 50% { transform: translate(-36vmax, 24vmax) scale(0.9); } to { transform: translate(-10vmax, 50vmax) scale(1.2); } }
  @keyframes drift-c { from { transform: none; } 50% { transform: translate(24vmax, -30vmax) scale(1.1); } to { transform: translate(-14vmax, -56vmax); } }
  @keyframes drift-d { from { transform: none; } to { transform: translate(-40vmax, -60vmax) rotate(40deg); } }
}

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(160deg, var(--glass-fill), var(--glass-fill-2));
  -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}

/* ---------- controls ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg);
  border: 1px solid var(--glass-edge); border-radius: var(--radius-pill); color: var(--color-accent-ink);
  background: linear-gradient(180deg, var(--color-accent-hover), var(--color-accent));
  box-shadow: inset 0 1px 0 var(--btn-hi), inset 0 -1px 0 var(--btn-shade);
  font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), filter var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-on-ground); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--glass {
  color: var(--color-on-ground); background: linear-gradient(160deg, var(--glass-fill), var(--glass-fill-2));
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.btn--glass:hover { filter: none; background: linear-gradient(160deg, var(--glass-hi), var(--glass-fill)); }
.btn--sm { min-height: 36px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--lg { min-height: 52px; padding: 0 var(--space-xl); font-size: var(--text-lg); }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 24px; padding: 0 var(--space-xs);
  border-radius: 7px; border: 1px solid var(--glass-edge); background: var(--glass-fill); color: inherit;
  box-shadow: inset 0 1px 0 var(--glass-hi); font: 600 var(--text-xs)/1 var(--font-body);
}
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-on-ground); color: var(--color-ground); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- a file, as the Explorer shows it ---------- */
.file-icon { display: inline-grid; justify-items: center; gap: var(--space-2xs); width: 88px; }
.file-icon svg { width: 60px; height: auto; filter: var(--shadow-icon); }
.file-name { max-width: 100%; padding: 1px var(--space-xs); border-radius: 4px; font: 600 var(--text-xs)/1.4 var(--font-wheel); color: var(--color-on-ground); text-shadow: var(--text-shadow-icon); white-space: nowrap; }
.cursor { position: absolute; width: 22px; height: auto; left: 56%; top: 42%; filter: var(--shadow-icon); }
.intro-drag .file-name, .drag-icon .file-name, .drop-icon .file-name { background: var(--select-blue); text-shadow: none; }

/* ---------- the wheel, as the app draws it ---------- */
.wheel { display: block; width: 100%; height: auto; overflow: visible; }
.wheel--convert { --mode: var(--color-convert); }
.wheel--tools { --mode: var(--color-tools); }
.wheel--actions { --mode: var(--color-actions); }
.wheel .seg path { fill: var(--color-seg); stroke: var(--color-seg-line); stroke-width: 1; transition: fill var(--dur-micro) var(--ease-out); }
.wheel .seg.is-sel path { fill: var(--mode); }
.wheel.live .seg { cursor: pointer; }
.wheel.live .seg:hover path { fill: var(--mode); }
.wheel text { text-anchor: middle; font-family: var(--font-wheel); pointer-events: none; }
.wheel .lab { fill: var(--color-seg-ink); font-weight: 600; }
.wheel .sub { fill: var(--color-seg-dim); }
.wheel .hub { fill: var(--color-seg); stroke: var(--color-seg-line); }
.wheel .title { fill: var(--mode); font-weight: 600; }
.wheel .file { fill: var(--color-seg-dim); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-ground) 55%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); border-bottom: var(--rule-hair) solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.nav.is-scrolled { border-bottom-color: var(--glass-edge); }
.nav-bar { display: flex; align-items: center; gap: var(--space-xl); min-height: 56px; }
.nav-mark { display: inline-flex; align-items: center; gap: var(--space-xs); margin-right: auto; font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; }
.nav-mark img { flex-shrink: 0; }
.nav-sections { display: flex; gap: var(--space-lg); }
.nav-sections a { font-size: var(--text-sm); color: var(--color-on-ground-2); text-decoration: none; padding-block: var(--space-xs); transition: color var(--dur-short) var(--ease-out); }
.nav-sections a:hover { color: var(--color-on-ground); }
.nav a:focus-visible { outline: 2px solid var(--color-on-ground); outline-offset: 4px; }
.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }
.language-switch { display: flex; }
.language-switch button { min-width: 40px; min-height: 40px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-on-ground-2); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.language-switch button:hover { color: var(--color-on-ground); }
.language-switch button[aria-pressed="true"] { color: var(--color-on-ground); text-decoration: underline; text-underline-offset: 0.35em; }
.language-switch button:focus-visible { outline: 2px solid var(--color-on-ground); outline-offset: 2px; }

/* ---------- hero: the wheel opens ---------- */
.hero { display: grid; align-items: center; min-height: calc(100svh - 56px); padding-block: var(--space-2xl); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-2xl); }
.hero-text { display: grid; justify-items: start; gap: var(--space-lg); }
.hero-head { font-size: clamp(3rem, 4.1vw + 0.25rem, 4.75rem); line-height: 0.95; letter-spacing: -0.045em; max-width: none; }
.hero-lead { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.hero-detail { font-size: var(--text-sm); color: var(--color-on-ground-2); }
.platform-notice:not(.show) { display: none; }
.platform-notice.show { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--glass-edge); background: var(--glass-fill); font-size: var(--text-sm); }

.switcher { display: grid; justify-items: center; gap: var(--space-md); width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; min-inline-size: 0; }
.switcher-stage { position: relative; display: grid; width: min(100%, 620px, calc(100svh - 280px)); }
.switcher-panel { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: scale(0.86); transition: opacity 110ms linear, transform 160ms var(--ease-out), visibility 0s 160ms; }
.switcher:has(#wheel-converter:checked) [data-panel="converter"],
.switcher:has(#wheel-ferramentas:checked) [data-panel="ferramentas"],
.switcher:has(#wheel-acoes:checked) [data-panel="acoes"] { opacity: 1; visibility: visible; transform: none; transition: opacity 110ms linear, transform 160ms var(--ease-out), visibility 0s; }
.intro-drag, .intro-key { display: none; }
.intro-done { position: absolute; z-index: var(--z-raised); right: -2%; bottom: 4%; transition: opacity var(--dur-short) var(--ease-out); }
.intro-done .badge { fill: var(--color-convert); }
.intro-done .badge-text { font: 700 7.5px var(--font-wheel); fill: var(--color-accent-ink); text-anchor: middle; }
.switcher:not(:has(#wheel-converter:checked)) .intro-done { opacity: 0; }
.switcher-tabs { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-pill); }
.switcher-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switcher-tabs label { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-on-ground-2); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.switcher-tabs label:hover { color: var(--color-on-ground); }
.switcher-tabs input:checked + label { background: var(--glass-hi); color: var(--color-on-ground); box-shadow: inset 0 1px 0 var(--glass-hi); }
.switcher-tabs input:focus-visible + label { outline: 2px solid var(--color-on-ground); outline-offset: 2px; }
.switcher-captions p { display: none; font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
.switcher:has(#wheel-converter:checked) [data-caption="converter"],
.switcher:has(#wheel-ferramentas:checked) [data-caption="ferramentas"],
.switcher:has(#wheel-acoes:checked) [data-caption="acoes"] { display: block; }
.demo-disclosure { font-size: var(--text-sm); color: var(--color-on-ground-2); }

/* the opening, once: the icon is dragged in, Space is pressed, the wheel opens, WEBP lights */
.intro .hero-text > * { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms); }
.intro .hero-lead { --d: 1; } .intro .hero-actions { --d: 2; } .intro .hero-detail { --d: 3; }
.intro .intro-drag { display: inline-block; position: absolute; z-index: var(--z-raised); left: 0; top: 10%; animation: drag-in 1300ms var(--ease-in-out) 400ms both; }
.intro .intro-key { display: inline-flex; position: absolute; z-index: var(--z-raised); left: 50%; top: 50%; translate: -50% -50%; min-height: 44px; padding: 0 var(--space-lg); font-size: var(--text-md); animation: key-press 700ms var(--ease-out) 1450ms both; }
.intro [data-panel="converter"] .wheel { transform-origin: 50% 50%; animation: wheel-open 260ms var(--ease-out) 1750ms both; }
.intro [data-panel="converter"] .seg[data-i="1"] path { animation: seg-light 260ms var(--ease-out) 2200ms both; }
.intro .intro-done { animation: pop 500ms var(--ease-out) 2500ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drag-in { 0% { opacity: 0; transform: translate(-30px, 10px); } 18% { opacity: 1; } 78% { opacity: 1; transform: translate(min(22vw, 230px), min(16vw, 170px)); } 100% { opacity: 0; transform: translate(min(24vw, 250px), min(18vw, 190px)) scale(0.8); } }
@keyframes key-press { 0% { opacity: 0; transform: scale(0.9); } 30% { opacity: 1; transform: none; } 50% { transform: scale(0.92); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes wheel-open { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes seg-light { from { fill: var(--color-seg); } to { fill: var(--mode); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.steps, .adapt, .kinds { padding-block: var(--space-4xl) 0; }
.section-head { display: grid; justify-items: center; gap: var(--space-md); text-align: center; margin-bottom: var(--space-2xl); }
.section-head .lead { max-width: 44ch; }
.js .section-head, .js .close-inner > * { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .section-head.is-in, .js .close-inner.is-in > * { opacity: 1; transform: none; }

/* ---------- how it works: four scenes that play when they come into view ---------- */
.scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.scene { counter-increment: step; display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg) var(--space-xl) var(--space-xl); border-radius: var(--radius-card); }
.scene-art { position: relative; height: 320px; margin-inline: calc(-1 * var(--space-md)); overflow: hidden; display: grid; place-items: center; }
.scene h3 { font-size: var(--text-2xl); display: flex; align-items: baseline; gap: var(--space-sm); }
.scene h3::before { content: counter(step); font-size: var(--text-md); color: var(--color-accent); }
.scene p { color: var(--color-on-ground-2); max-width: 40ch; }
.mini { position: absolute; left: 50%; top: 46%; width: 270px; translate: -50% -50%; }

/* 1 drag: the icon travels with the cursor, then Space */
.drag-icon { position: absolute; left: 50%; top: 40%; translate: -50% -50%; }
.scene-key { position: absolute; left: 50%; bottom: 14%; translate: -50% 0; min-height: 44px; padding: 0 var(--space-lg); font-size: var(--text-md); background: var(--color-on-ground); color: var(--color-ground); }
/* 2 sides: Ctrl, Alt, Shift, each showing its side */
.mini--tools, .mini--actions { opacity: 0; }
.scene-keys { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; display: flex; gap: var(--space-xs); }
.scene-keys kbd { min-height: 32px; opacity: 0.35; }
.scene-keys .k-shift { opacity: 1; background: var(--color-on-ground); color: var(--color-ground); }
.scene--sides .mini { top: 44%; width: 240px; }
/* 3 drop: the icon goes onto WEBP, WEBP lights */
.scene--drop .seg[data-i="1"] path { fill: var(--color-convert); }
.drop-icon { position: absolute; left: 50%; top: 46%; translate: -50% -50%; opacity: 0; }
/* 4 done: the original stays, the copy appears beside it */
.done-pair { display: flex; gap: var(--space-2xl); }
.done-pair > span { display: grid; justify-items: center; gap: var(--space-xs); }
.done-pair .file-icon { width: 120px; }
.done-pair .file-icon svg { width: 96px; }
.done-pair .file-name { font-size: var(--text-sm); }
.done-pair small { font-size: var(--text-sm); color: var(--color-on-ground-2); }

/* the scenes play once, from their first frame, when they come into view; without script they rest on the last frame */
.js .scene .anim { animation-play-state: paused; }
.js .scene.is-in .anim { animation-play-state: running; }
.js .scene--drag .drag-icon { animation: s-drag 3000ms var(--ease-in-out) 300ms both paused; }
.js .scene--drag .scene-key { animation: s-key 3000ms var(--ease-out) 300ms both paused; }
.js .scene--sides .mini--tools { animation: s-side-1 4600ms var(--ease-out) 300ms both paused; }
.js .scene--sides .mini--actions { animation: s-side-2 4600ms var(--ease-out) 300ms both paused; }
.js .scene--sides .mini--convert { animation: s-side-3 4600ms var(--ease-out) 300ms both paused; }
.js .scene--sides .k-ctrl { animation: k-1 4600ms linear 300ms both paused; }
.js .scene--sides .k-alt { animation: k-2 4600ms linear 300ms both paused; }
.js .scene--sides .k-shift { animation: k-3 4600ms linear 300ms both paused; }
.js .scene--drop .drop-icon { animation: s-drop 3200ms var(--ease-in-out) 300ms both paused; }
.js .scene--drop .seg[data-i="1"] path { animation: s-lit 3200ms linear 300ms both paused; }
.js .scene--done .done-b { animation: s-pop 1200ms var(--ease-out) 300ms both paused; }
.js .scene.is-in .drag-icon, .js .scene.is-in .scene-key, .js .scene.is-in .mini, .js .scene.is-in kbd, .js .scene.is-in .drop-icon, .js .scene.is-in .seg path, .js .scene.is-in .done-b { animation-play-state: running; }
@keyframes s-drag { 0% { transform: translate(-150px, 40px); } 70%, 100% { transform: none; } }
@keyframes s-key { 0%, 62% { opacity: 0.3; transform: none; background: var(--glass-fill); color: var(--color-on-ground); } 74% { opacity: 1; transform: scale(0.92); background: var(--color-on-ground); color: var(--color-ground); } 86%, 100% { opacity: 1; transform: none; background: var(--color-on-ground); color: var(--color-ground); } }
@keyframes s-side-1 { 0% { opacity: 0; transform: scale(0.86); } 6%, 28% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; } }
@keyframes s-side-2 { 0%, 33% { opacity: 0; transform: scale(0.86); } 39%, 61% { opacity: 1; transform: none; } 67%, 100% { opacity: 0; } }
@keyframes s-side-3 { 0%, 66% { opacity: 0; transform: scale(0.86); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes k-1 { 0%, 5% { opacity: 0.35; background: var(--glass-fill); color: var(--color-on-ground); } 6%, 30% { opacity: 1; background: var(--color-on-ground); color: var(--color-ground); } 33%, 100% { opacity: 0.35; background: var(--glass-fill); color: var(--color-on-ground); } }
@keyframes k-2 { 0%, 38% { opacity: 0.35; background: var(--glass-fill); color: var(--color-on-ground); } 39%, 63% { opacity: 1; background: var(--color-on-ground); color: var(--color-ground); } 66%, 100% { opacity: 0.35; background: var(--glass-fill); color: var(--color-on-ground); } }
@keyframes k-3 { 0%, 71% { opacity: 0.35; background: var(--glass-fill); color: var(--color-on-ground); } 72%, 100% { opacity: 1; background: var(--color-on-ground); color: var(--color-ground); } }
@keyframes s-drop { 0% { opacity: 1; transform: translate(-150px, 90px); } 60% { opacity: 1; transform: translate(42px, -52px); } 76%, 100% { opacity: 0; transform: translate(42px, -52px) scale(0.3); } }
@keyframes s-lit { 0%, 66% { fill: var(--color-seg); } 76%, 100% { fill: var(--color-convert); } }
@keyframes s-pop { from { opacity: 0; transform: translateX(-60px) scale(0.6); } to { opacity: 1; transform: none; } }

/* ---------- the wheel adapts ---------- */
.adapt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.adapt-item { display: grid; gap: var(--space-xl); margin: 0; padding: var(--space-2xl) var(--space-xl) var(--space-xl); border-radius: var(--radius-card); }
.adapt-item .grow { width: min(100%, 460px); justify-self: center; }
.adapt-item figcaption { display: grid; gap: var(--space-xs); text-align: center; justify-items: center; }
.adapt-item h3 { font-size: var(--text-2xl); }
.adapt-item p { color: var(--color-on-ground-2); max-width: 34ch; }
.js .grow { transform: scale(0.82) rotate(-24deg); transition: transform 1000ms var(--ease-out); }
.js .is-in .grow, .js .grow.is-in { transform: none; }
@supports (animation-timeline: view()) {
  .js .grow { transition: none; animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes grow { from { transform: scale(0.82) rotate(-24deg); } to { transform: none; } }
}

/* ---------- what it converts ---------- */
.kinds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.kinds-grid li { display: grid; align-content: start; gap: var(--space-xs); min-height: 230px; padding: var(--space-xl); border-radius: var(--radius-card); }
.kinds-grid h3 { font-size: var(--text-xl); margin-top: var(--space-md); }
.kinds-grid p { color: var(--color-on-ground-2); }
.turn { display: flex; align-items: baseline; gap: var(--space-sm); }
.turn-from { font-size: var(--text-lg); font-weight: 600; color: var(--color-on-ground-2); text-decoration: line-through; text-decoration-color: var(--color-convert); text-decoration-thickness: 2px; }
.turn-to { font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.js .kinds-grid li .turn-to { opacity: 0; transform: translateY(60%); }
.js .kinds-grid li .turn-from { transform: translateX(24px); }
.js .kinds-grid li.is-in .turn-from { transform: none; transition: transform 600ms var(--ease-out) calc(var(--i, 0) * 90ms); }
.js .kinds-grid li.is-in .turn-to { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) calc(var(--i, 0) * 90ms + 300ms), transform 700ms var(--ease-out) calc(var(--i, 0) * 90ms + 300ms); }

/* ---------- the close ---------- */
.close { padding-block: var(--space-4xl) var(--space-3xl); }
.close-inner { display: grid; justify-items: center; gap: var(--space-lg); text-align: center; }
.close h2 { font-size: clamp(2.75rem, 5.5vw + 0.5rem, 5.5rem); }
.close .lead { max-width: 36ch; }
.close-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-md); margin-top: var(--space-xs); }

/* ---------- footer ---------- */
.footer { padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--glass-edge); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-xl); font-size: var(--text-sm); color: var(--color-on-ground-2); }
.footer strong { color: var(--color-on-ground); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-on-ground-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.footer-links a:hover { color: var(--color-on-ground); }
.footer-links a:focus-visible { outline: 2px solid var(--color-on-ground); outline-offset: 2px; }

/* ---------- dialog ---------- */
.download-dialog { max-width: min(92vw, 460px); padding: var(--space-xl); border-radius: var(--radius-card); color: var(--color-on-ground); }
.download-dialog::backdrop { background: color-mix(in oklab, var(--color-ground) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.download-dialog h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.download-dialog p { color: var(--color-on-ground-2); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); }

/* ---------- reduced motion: the owner wants the page to move for everyone (13/11/2026); only the lights behind stop drifting ---------- */
@media (prefers-reduced-motion: reduce) { .blob { animation: none !important; } }

/* ---------- smaller screens ---------- */
@media (max-width: 60rem) {
  .nav-sections { display: none; }
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-xl); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-text { justify-items: center; text-align: center; }
  .hero-actions,   .switcher-stage { width: min(100%, 520px); }
  .steps, .adapt, .kinds { padding-top: var(--space-3xl); }
  .scenes, .adapt-pair { grid-template-columns: minmax(0, 1fr); }
  .kinds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close { padding-top: var(--space-3xl); }
}
@media (max-width: 40rem) {
  .section-head { margin-bottom: var(--space-xl); }
  .scene { padding: var(--space-md) var(--space-lg) var(--space-lg); }
  .scene-art { height: 280px; }
  .mini { width: 230px; }
  .scene--sides .mini { width: 210px; }
  .done-pair { gap: var(--space-lg); }
  .adapt-item { padding: var(--space-xl) var(--space-md) var(--space-lg); }
  .kinds-grid { grid-template-columns: minmax(0, 1fr); }
  .kinds-grid li { min-height: 0; padding: var(--space-lg); }
  .switcher-tabs label { padding: 0 var(--space-sm); }
  .switcher-tabs kbd { display: none; }
  .intro-done { right: 0; bottom: 0; }
  .close-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* the hint follows the device: mouse or finger */
.on-touch { display: none; }
@media (hover: none) { .on-mouse { display: none; } .on-touch { display: inline; } }
/* bigger icons inside the scenes */
.scene .file-icon { width: 104px; }
.scene .file-icon svg { width: 76px; }
.scene .file-name { font-size: var(--text-sm); }
.scene .cursor { width: 26px; }

/* wheels on a phone: the app's sizes would land at 6px, so the labels grow and the small print goes */
.wheel text { text-rendering: geometricPrecision; }
@media (max-width: 40rem) {
  .wheel .sub { display: none; }
  .wheel .lab { font-size: 24px !important; }
  .wheel[data-wheel="converter"] .lab, .wheel[data-wheel="foto"] .lab { font-size: 21px !important; }
  .wheel[data-wheel="video"] .lab { font-size: 15px !important; }
  .wheel .lab { transform: translateY(8px); }
  .wheel .title { font-size: 18px !important; }
  .wheel .file { font-size: 15px !important; }
  .js .grow { animation: none !important; transform: none !important; transition: none !important; }
}
