/* Pomelo — pomelo.swymble.com
   Palette comes from the app icon: that pink and that olive, on warm paper. Inter, self-hosted,
   so the page makes no third-party requests (it is a privacy product; the page should behave). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("./assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("./assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("./assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("./assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("./assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #fbf9f7;
  --bg-2: #f4f0ec;
  --surface: #ffffff;
  --ink: #1d1b1f;
  --muted: #6b6770;
  --line: rgba(29, 27, 31, 0.1);
  --pink: #e8506f;
  --pink-btn: #d23b5b;
  --pink-text: #c2354f;
  --olive: #93a92f;
  --ok: #1e9e5a;
  --shadow: 0 1px 2px rgba(29, 27, 31, 0.05), 0 18px 50px -18px rgba(29, 27, 31, 0.22);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* the wheel, same tokens as the app */
  --seg: rgba(255, 255, 255, 0.94);
  --plate: rgba(255, 255, 255, 0.55);
  --center: rgba(250, 250, 252, 0.98);
  --txt: #1c1c1e;
  --sub: rgba(0, 0, 0, 0.46);
  --wheel-shadow: rgba(30, 20, 10, 0.28);

  --win: #ffffff;
  --win-bar: #f6f3f0;
  --win-ink: #1c1c1e;
  --toast: rgba(255, 255, 255, 0.97);
  --stage: linear-gradient(135deg, #f6d6dd 0%, #ece9cc 52%, #dbe6f4 100%);

  --wrap: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e10;
    --bg-2: #151417;
    --surface: #1a191c;
    --ink: #f4f2f5;
    --muted: #a09ba6;
    --line: rgba(255, 255, 255, 0.1);
    --pink-btn: #d94766;
    --pink-text: #ff8aa1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 60px -20px rgba(0, 0, 0, 0.7);

    --seg: rgba(46, 46, 50, 0.95);
    --plate: rgba(28, 28, 30, 0.5);
    --center: rgba(34, 34, 38, 0.98);
    --txt: #f5f5f7;
    --sub: rgba(255, 255, 255, 0.5);
    --wheel-shadow: rgba(0, 0, 0, 0.55);

    --win: #1f1e22;
    --win-bar: #19181b;
    --win-ink: #f1eff2;
    --toast: rgba(40, 40, 44, 0.97);
    --stage: linear-gradient(135deg, #3b1d28 0%, #272a1b 52%, #172230 100%);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--pink) 30%, transparent); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── platform gating ─────────────────────────────────────────────────────────── */
.only-mobile, .only-other { display: none !important; }
[data-platform="mobile"] .only-mobile, [data-platform="other"] .only-other { display: flex !important; }
[data-platform="mobile"] .only-win, [data-platform="other"] .only-win { display: none !important; }
a[data-installer][aria-disabled="true"] { pointer-events: none; opacity: 0.5; }

/* ── header ──────────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 30px; margin-left: auto; margin-right: 8px; }
.nav-links a { position: relative; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── buttons ─────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.3s, border-color 0.25s, color 0.25s; }
.btn-small { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-large { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--pink-btn); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 28px -10px color-mix(in srgb, var(--pink) 80%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--pink-btn) 88%, #fff); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 36px -10px color-mix(in srgb, var(--pink) 90%, transparent); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn-ghost:active { transform: scale(0.98); }

/* ── hero ────────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 148px 0 40px; text-align: center; overflow: clip; }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; transition: transform 0.9s var(--ease); }
.glow-a { width: 640px; height: 640px; left: -200px; top: -240px; background: color-mix(in srgb, var(--pink) 20%, transparent); transform: translate(calc(var(--mx, 0) * 70px), calc(var(--my, 0) * 50px)); }
.glow-b { width: 560px; height: 560px; right: -240px; top: -80px; background: color-mix(in srgb, var(--olive) 16%, transparent); transform: translate(calc(var(--mx, 0) * -60px), calc(var(--my, 0) * -40px)); }
@media (prefers-color-scheme: dark) { .glow-a { background: color-mix(in srgb, var(--pink) 22%, transparent); } .glow-b { background: color-mix(in srgb, var(--olive) 15%, transparent); } }

.h1 { margin: 0 auto; font-weight: 800; font-size: clamp(60px, min(11vw, 16.5vh), 150px); line-height: 0.94; letter-spacing: -0.062em; }
.h1 .line { display: block; overflow: hidden; padding: 0.02em 0.06em 0.14em; margin-bottom: -0.1em; }
.h1 .line > span { display: inline-block; }
.h1 em { font-style: normal; color: var(--pink); }
.js .h1 .line > span { transform: translateY(112%); animation: rise 1.15s var(--ease) forwards; }
.js .h1 .line:nth-child(1) > span { animation-delay: 0.12s; }
.js .h1 .line:nth-child(2) > span { animation-delay: 0.24s; }
.js .h1 .line:nth-child(3) > span { animation-delay: 0.36s; }
@keyframes rise { to { transform: none; } }

.lead { margin: 34px auto 0; max-width: 24em; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.45; color: var(--muted); letter-spacing: -0.012em; }

.cta { margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.release { display: flex; gap: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.release i { font-style: normal; opacity: 0.5; }

.notice { display: flex; align-items: flex-start; gap: 18px; width: min(100%, 540px); padding: 22px 24px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.notice > svg { flex: none; margin-top: 3px; color: var(--pink); }
.notice-title { font-weight: 650; font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
.notice-text { margin-top: 4px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.notice > div { min-width: 0; }
.notice .btn { margin-top: 16px; height: auto; min-height: 44px; padding: 10px 20px; font-size: 14.5px; white-space: normal; text-align: center; line-height: 1.25; }

/* ── the stage: a playable Explorer window ───────────────────────────────────── */
.stage-wrap { margin-top: 76px; }
.stage { position: relative; height: clamp(440px, 50vw, 600px); border-radius: 30px; background: var(--stage); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; user-select: none; -webkit-user-select: none; text-align: left; }
.stage.dragging { cursor: grabbing; }
.stage.dragging .file { cursor: grabbing; }

.win { position: absolute; inset: 7% 6% 8%; display: flex; flex-direction: column; background: var(--win); color: var(--win-ink); border-radius: 14px; box-shadow: 0 30px 70px -28px rgba(20, 10, 15, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 0 0 16px; background: var(--win-bar); border-bottom: 1px solid var(--line); }
.win-nav { display: flex; gap: 14px; font-style: normal; color: var(--muted); }
.win-nav i { font-style: normal; font-size: 18px; line-height: 1; }
.win-path { flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; max-width: 460px; padding: 0 14px; border-radius: 8px; background: color-mix(in srgb, var(--win-ink) 6%, transparent); font-size: 13px; font-weight: 500; color: var(--muted); }
.win-path i { font-style: normal; opacity: 0.6; }
.win-path span:last-child { color: var(--win-ink); }
.win-ctl { display: flex; margin-left: auto; height: 100%; }
.win-ctl b { position: relative; width: 46px; height: 100%; }
.win-ctl b::before, .win-ctl b::after { content: ""; position: absolute; left: 50%; top: 50%; color: var(--muted); }
.win-ctl b:nth-child(1)::before { width: 10px; height: 1px; background: currentColor; transform: translate(-50%, 0); }
.win-ctl b:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 1.5px; transform: translate(-50%, -50%); }
.win-ctl b:nth-child(3)::before, .win-ctl b:nth-child(3)::after { width: 12px; height: 1px; background: currentColor; transform: translate(-50%, 0) rotate(45deg); }
.win-ctl b:nth-child(3)::after { transform: translate(-50%, 0) rotate(-45deg); }

.win-body { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 22px 24px; }
.win-foot { height: 30px; display: flex; align-items: center; padding: 0 16px; border-top: 1px solid var(--line); background: var(--win-bar); font-size: 12px; color: var(--muted); }

.file { width: 118px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 8px 11px; border: 0; border-radius: 10px; background: transparent; color: var(--win-ink); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: center; cursor: grab; touch-action: none; transition: background 0.2s, opacity 0.2s; -webkit-tap-highlight-color: transparent; }
.file:hover, .file:focus-visible { background: color-mix(in srgb, var(--win-ink) 7%, transparent); }
.file.lifted { opacity: 0.32; }
.file .glyph { width: 48px; height: 62px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.14)); }
.file .glyph-folder { width: 62px; height: 52px; margin-top: 10px; }
.file-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
.file.converted { cursor: default; touch-action: auto; animation: arrive 0.7s var(--ease) both; background: color-mix(in srgb, var(--pink) 14%, transparent); }
@keyframes arrive { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }

.hint { position: absolute; left: 15.5%; top: 38%; z-index: 3; display: flex; align-items: flex-start; gap: 4px; color: color-mix(in srgb, var(--win-ink) 55%, transparent); font-weight: 600; font-size: 14px; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.hint.on { opacity: 1; }
.hint svg { transform: scale(-1, -1); margin-top: -34px; animation: nudge 2.6s var(--ease) infinite; }
.hint span { margin-top: 18px; padding: 5px 11px; border-radius: 8px; background: var(--win); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.3); }
@keyframes nudge { 50% { transform: scale(-1, -1) translate(5px, 4px); } }

.ghost { position: absolute; left: 0; top: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; opacity: 0; scale: 0.92; transition: opacity 0.16s, scale 0.22s var(--ease); will-change: transform; }
.ghost .glyph { width: 52px; height: 67px; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.3)); }
.ghost .glyph-folder { width: 66px; height: 56px; }
.ghost span { padding: 2px 9px; border-radius: 7px; background: var(--win); color: var(--win-ink); font-size: 12px; font-weight: 600; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.ghost.on { opacity: 1; scale: 1.08; }
.ghost.on.in-wheel { opacity: 0; scale: 0.35; }
.ghost.returning { transition: transform 0.34s var(--ease), opacity 0.3s 0.08s, scale 0.3s; opacity: 0; scale: 0.92; }

.keycap { position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 11px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; scale: 0.88; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.5); transition: opacity 0.16s, scale 0.25s var(--ease); }
.keycap.on { opacity: 1; scale: 1; }
.keycap kbd { display: inline-block; padding: 3px 9px 4px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 22%, transparent); font: 700 12px/1 "Inter", system-ui, sans-serif; box-shadow: 0 -2px 0 color-mix(in srgb, var(--bg) 30%, transparent) inset; transition: transform 0.1s, background 0.1s, color 0.1s, box-shadow 0.1s; }
.keycap.on:not(.press) kbd { animation: tap 1.5s var(--ease) infinite; }
.keycap.press kbd { transform: translateY(2px); background: var(--pink); color: #fff; box-shadow: none; }
@keyframes tap { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(2px); } }

.cursor { position: absolute; left: 0; top: 0; z-index: 9; margin: -3px 0 0 -4px; pointer-events: none; opacity: 0; transition: opacity 0.25s; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.cursor.on { opacity: 1; }
.cursor svg { transition: scale 0.12s; transform-origin: 4px 3px; }
.cursor.down svg { scale: 0.88; }

/* ── the wheel (geometry and motion mirror the app) ──────────────────────────── */
.wheel { position: absolute; z-index: 4; overflow: visible; pointer-events: none; opacity: 0; transform: scale(0.8); transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.12s ease-out; filter: drop-shadow(0 14px 26px var(--wheel-shadow)); font-family: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif; }
.wheel.open { opacity: 1; transform: scale(1); }
.wheel.closing { opacity: 0; transform: scale(0.9); transition-duration: 0.12s; }
.wheel.static { position: relative; z-index: 1; display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 1; margin-inline: auto; pointer-events: auto; transform: scale(0.94); transition-duration: 0.5s; }
.wheel.static.open { transform: none; }
.w-plate { fill: var(--plate); }
.w-seg { opacity: 0; transition: opacity 0.22s ease-out calc(var(--i, 0) * 28ms), transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1.3); }
.wheel.open .w-seg { opacity: 1; }
.w-seg path { fill: var(--seg); stroke: var(--seg); stroke-width: 10; stroke-linejoin: round; transition: fill 0.12s, stroke 0.12s; }
.w-seg.hot path { fill: var(--pink); stroke: var(--pink); }
.w-seg text { text-anchor: middle; pointer-events: none; fill: var(--txt); transition: fill 0.12s; }
.w-label { font-size: 16px; font-weight: 700; letter-spacing: 0.2px; }
.w-seg .w-sub { font-size: 10.5px; font-weight: 500; fill: var(--sub); }
.w-seg.hot text, .w-seg.hot .w-sub { fill: #fff; }
.w-seg.hot .w-sub { fill: rgba(255, 255, 255, 0.84); }
.w-disc { fill: var(--center); }
.w-center text { text-anchor: middle; pointer-events: none; }
.w-name { font-size: 10.5px; font-weight: 600; fill: var(--txt); }
.w-badge { font-size: 9px; font-weight: 800; fill: #fff; letter-spacing: 0.3px; }

/* ── toasts ──────────────────────────────────────────────────────────────────── */
.toasts { position: absolute; right: 16px; bottom: 16px; z-index: 7; width: min(300px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; height: 78px; padding: 0 12px 0 14px; border-radius: 16px; background: var(--toast); color: var(--win-ink); border: 1px solid var(--line); box-shadow: 0 10px 28px -8px rgba(20, 10, 15, 0.35); animation: toast-in 0.26s cubic-bezier(0.2, 0.9, 0.25, 1.1); }
.toast.out { animation: toast-out 0.18s ease-in forwards; }
.toast.done { cursor: pointer; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }
.ring { position: relative; flex: none; width: 44px; height: 44px; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(128, 128, 128, 0.28); stroke-width: 4.5; }
.ring .value { fill: none; stroke: var(--pink); stroke-width: 4.5; stroke-linecap: round; }
.cancel { position: absolute; inset: 8px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer; transition: background 0.12s, color 0.12s; }
.cancel:hover { background: rgba(229, 72, 61, 0.14); color: #e5483d; }
.t-icon { flex: none; width: 30px; height: 30px; margin: 7px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 800; font-size: 15px; }
.t-text { flex: 1; min-width: 0; }
.t-title { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-detail { margin-top: 2px; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.t-close { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 11px; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.toast:hover .t-close { opacity: 1; }
.toast.working .t-close { display: none; }

.replay { position: absolute; left: 16px; bottom: 16px; z-index: 8; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border: 1px solid color-mix(in srgb, #fff 55%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--win) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--win-ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.3s, transform 0.25s var(--ease), background 0.2s; }
.replay:hover { background: var(--win); transform: translateY(-1px); }
.replay.playing { opacity: 0; pointer-events: none; }

/* ── stats ───────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); text-align: left; }
.stats b { display: block; font-size: clamp(44px, 6vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ── sections ────────────────────────────────────────────────────────────────── */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-alt { background: var(--bg-2); }
.h1, .h2 { text-wrap: balance; }
.h2 { margin: 0 0 clamp(40px, 5vw, 64px); max-width: 13em; font-weight: 800; font-size: clamp(38px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.05em; }

.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.95s var(--ease) var(--d, 0s), transform 0.95s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* formats */
.formats { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s; }
.tabs button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs button:active { transform: scale(0.97); }
.kind-panel { min-height: 280px; margin-top: 44px; }
.kind-panel h3 { margin: 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.from-label { margin-top: 28px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pills span { padding: 5px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; letter-spacing: 0.02em; animation: pill-in 0.5s var(--ease) both; }
.pills span:nth-child(2) { animation-delay: 0.03s; } .pills span:nth-child(3) { animation-delay: 0.06s; } .pills span:nth-child(4) { animation-delay: 0.09s; } .pills span:nth-child(5) { animation-delay: 0.12s; } .pills span:nth-child(6) { animation-delay: 0.15s; } .pills span:nth-child(7) { animation-delay: 0.18s; } .pills span:nth-child(8) { animation-delay: 0.21s; } .pills span:nth-child(9) { animation-delay: 0.24s; }
@keyframes pill-in { from { transform: translateY(6px); opacity: 0; } }
.kind-note { margin-top: 24px; max-width: 26em; color: var(--muted); font-size: 18px; line-height: 1.5; }
.formats-wheel { padding: 4px; }

/* privacy */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lane { padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.lane h3 { margin: 30px 0 0; font-size: 26px; letter-spacing: -0.03em; font-weight: 750; }
.lane p { margin-top: 6px; color: var(--muted); font-size: 17px; max-width: 22em; }
.lane-track { display: flex; align-items: center; gap: 14px; height: 76px; }
.node { position: relative; flex: none; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: var(--bg-2); color: var(--muted); }
.track { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 28%, transparent) 0 6px, transparent 6px 12px); }
.lane-bad .node-cloud { color: #e5483d; background: color-mix(in srgb, #e5483d 10%, var(--bg-2)); }
.packet { position: absolute; top: 50%; left: 0; width: 14px; height: 18px; margin-top: -9px; border-radius: 3px 6px 3px 3px; background: var(--pink); animation: travel 4.2s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 42% { left: calc(100% - 14px); } 58% { left: calc(100% - 14px); } 92% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.lane-good .node-pc { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--bg-2)); }
.orbit { position: absolute; inset: -7px; border-radius: 26px; border: 2px solid color-mix(in srgb, var(--ok) 38%, transparent); animation: pulse 3.2s var(--ease) infinite; }
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ok); }
@keyframes pulse { 0%, 100% { transform: scale(0.98); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 0.4; } }
.track-off { opacity: 0.35; }
.node-off { opacity: 0.4; }
.node-off::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2.5px; border-radius: 2px; background: currentColor; transform: rotate(-38deg); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 64px 0 0; padding: 0; list-style: none; }
.facts li { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.facts b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.facts a { color: var(--pink-text); text-underline-offset: 3px; }

/* the app */
.app { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ticks li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pink) 18%, transparent); }
.app-shots { position: relative; display: grid; justify-items: start; padding-bottom: 200px; }
.shot-settings { width: min(100%, 480px); }
.shot-settings img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.toast-stack { position: absolute; right: 0; bottom: 0; width: min(78%, 330px); display: grid; gap: 10px; }
.toast-stack .toast { animation: none; box-shadow: 0 16px 40px -12px rgba(20, 10, 15, 0.45); }
.toast-stack .toast:nth-child(1) { transform: translateX(-26px); }
.toast-stack .toast:nth-child(3) { transform: translateX(-12px); }
.toast-stack .ring .value { stroke-dasharray: 113.1; animation: fill 7s linear infinite; }
.toast-stack .toast:nth-child(2) .ring .value { animation-duration: 9.5s; animation-delay: -3s; }
.toast-stack .toast:nth-child(3) .ring .value { animation-duration: 5.4s; animation-delay: -1s; }
@keyframes fill { from { stroke-dashoffset: 113.1; } to { stroke-dashoffset: 8; } }
.toast-stack .cancel { pointer-events: none; }

/* download */
.get { padding-top: 0; }
.get-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: clamp(56px, 8vw, 104px) 24px; border-radius: 40px; text-align: center; background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--pink) 34%, transparent), transparent 70%), #151317; color: #f6f4f7; }
.get-mark { margin-bottom: 26px; animation: spin 48s linear infinite; filter: drop-shadow(0 14px 30px rgba(232, 80, 111, 0.35)); }
@keyframes spin { to { transform: rotate(360deg); } }
.get-h { margin: 0 0 40px; max-width: none; }
.get-actions { display: grid; justify-items: center; gap: 16px; }
.get-card .btn-primary { background: #fff; color: #1d1b1f; box-shadow: 0 16px 40px -14px rgba(232, 80, 111, 0.7); }
.get-card .btn-primary:hover { background: #fff3f5; }
.get-meta { display: flex; gap: 10px; font-size: 14.5px; color: rgba(246, 244, 247, 0.62); font-variant-numeric: tabular-nums; }
.get-meta i { font-style: normal; opacity: 0.5; }
.notice-on-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #f6f4f7; box-shadow: none; }
.notice-on-card .notice-text { color: rgba(246, 244, 247, 0.68); }
.notice-on-card .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.notice-on-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.faq { max-width: 820px; margin: 72px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details > :not(summary) { max-width: 40em; margin: 0 0 22px; color: var(--muted); font-size: 16.5px; line-height: 1.6; animation: fade-down 0.45s var(--ease) both; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
.sha code { display: block; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink); font: 500 12.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; overflow-wrap: anywhere; user-select: all; }

/* footer */
.foot { padding: 44px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; font-size: 14.5px; color: var(--muted); }
.foot .brand { color: var(--ink); font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-underline-offset: 3px; }
.foot nav a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── small screens ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .formats, .app { grid-template-columns: 1fr; }
  .formats-wheel { max-width: 420px; margin-inline: auto; width: 100%; }
  .kind-panel { min-height: 0; }
  .app-shots { padding-bottom: 200px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in { gap: 12px; }
  .hero { padding-top: 112px; }
  .stage-wrap { margin-top: 52px; }
  .stage { height: 500px; border-radius: 24px; }
  .win { inset: 5% 4% 6%; }
  .win-body { gap: 4px; padding: 14px 12px; justify-content: center; }
  .file { width: 96px; padding: 10px 4px 8px; }
  .hint { left: 28%; top: 36%; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .compare, .facts { grid-template-columns: 1fr; }
  .facts { gap: 28px; }
  .toasts { right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .replay { left: 12px; bottom: 12px; }
  .get-card { border-radius: 30px; padding-inline: 14px; }
  .notice { gap: 14px; padding: 18px; }
  .toast-stack { width: 84%; }
  .win-bar { gap: 10px; padding-left: 12px; }
  .win-nav { display: none; }
  .win-path { max-width: none; min-width: 0; white-space: nowrap; overflow: hidden; padding: 0 12px; }
  .win-ctl { flex: none; }
  .win-ctl b { width: 34px; }
  .glow-a { width: 340px; height: 340px; left: -160px; top: -140px; }
  .glow-b { width: 300px; height: 300px; right: -170px; top: 0; }
  .btn-large { height: 54px; padding: 0 24px; }
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
