/* QuickSort website: the sunset gradient of the icon on calm, slightly violet greys, as in the app. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2-variations"), url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4fa;
  --surface: #ffffff;
  --muted: #eeebf4;
  --edge: #e2deea;
  --line: rgba(22, 20, 28, 0.1);
  --ink: #16141c;
  --ink-2: #3b3846;
  --dim: #5e5a6b;
  --accent: #c2306f;
  --on-accent: #ffffff;
  --accent-soft: #fbe3ee;
  --accent-text: #a8245c;
  /* Decisions, each with its own colour and always with a word or symbol. */
  --keep: #15803d;
  --delete: #d7263d;
  --hide: #7c3aed;
  --album: #2563eb;
  --later: #5e5a6b;
  --fav: #d6246e;
  --warn: #b45309;
  --sunset: linear-gradient(120deg, #ff9f43, #ff5e62 28%, #e0479e 52%, #8b5cf6 76%, #3b82f6);
  --pro: linear-gradient(135deg, #ffb457, #ff5e8a);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px -20px rgba(70, 30, 90, 0.38), 0 2px 6px rgba(70, 30, 90, 0.08);
  --round: ui-rounded, "Nunito", "SF Pro Rounded", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b10;
    --surface: #17161d;
    --muted: #221f2b;
    --edge: #2e2a38;
    --line: rgba(255, 255, 255, 0.1);
    --ink: #f2f0f7;
    --ink-2: #d4d0de;
    --dim: #a7a2b5;
    --accent: #ff7ab1;
    --on-accent: #2a0716;
    --accent-soft: #3a1527;
    --accent-text: #ff7ab1;
    --keep: #4ade80;
    --delete: #f87171;
    --hide: #b794ff;
    --album: #60a5fa;
    --later: #a7a2b5;
    --fav: #f472b6;
    --warn: #fbbf24;
    --glass: rgba(23, 22, 29, 0.72);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(224, 71, 158, 0.6); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The sunset of the icon, blurred behind the page. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.glow { position: absolute; border-radius: 50%; animation: drift 30s ease-in-out infinite alternate; }
.glow.g1 { width: 720px; height: 720px; left: -280px; top: -300px; background: radial-gradient(closest-side, rgba(255, 159, 67, 0.34), rgba(255, 159, 67, 0.12) 45%, transparent); }
.glow.g2 { width: 700px; height: 700px; right: -260px; top: -180px; background: radial-gradient(closest-side, rgba(224, 71, 158, 0.3), rgba(224, 71, 158, 0.1) 45%, transparent); animation-duration: 34s; }
.glow.g3 { width: 760px; height: 760px; left: 28%; top: 34%; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.05) 45%, transparent); animation-duration: 38s; }
.glow.g4 { width: 640px; height: 640px; right: -220px; bottom: -280px; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.07) 45%, transparent); animation-duration: 31s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.07); }
  100% { transform: translate(-40px, 70px) scale(0.96); }
}
@media (prefers-color-scheme: dark) { .backdrop { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Header */
header.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 800; font-size: 22px; letter-spacing: -0.3px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px rgba(224, 71, 158, 0.32); }
nav.links { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
nav.links a { color: var(--ink-2); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
@media (max-width: 820px) { nav.links { display: none; } }
.nav-end { display: flex; align-items: center; gap: 18px; }
a.lang, a.back {
  font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 8px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
}
a.lang:hover, a.back:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--round); color: var(--ink); }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -0.03em; font-weight: 850; margin: 0 0 22px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 820; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 760; margin: 0 0 6px; }
mark { color: inherit; background: none; position: relative; white-space: nowrap; z-index: 0; }
mark::before {
  content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.34em; z-index: -1;
  border-radius: 0.2em; background: var(--sunset); opacity: 0.45;
}
@media (prefers-color-scheme: dark) { mark::before { opacity: 0.5; } }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); margin: 0 0 28px; max-width: 33em; }
.sub { font-size: 18px; color: var(--dim); margin: 0 0 34px; max-width: 40em; }
p { margin: 0 0 12px; }

/* Eyebrow: the card stack of the onboarding and a short label. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font: 700 13px/1 var(--round); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.eyebrow svg { width: 20px; height: 20px; flex: none; }

/* Buttons: capsules as in the app */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 0;
  font: 750 16px/1 var(--round); text-decoration: none; color: #fff; background: var(--sunset); cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(224, 71, 158, 0.8); transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.secondary { background: var(--glass); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.plain { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.note { font-size: 14px; color: var(--dim); margin-top: 18px; max-width: 34em; }

/* Sections */
main > section { padding: clamp(56px, 8vw, 96px) 0 0; }
main > section.hero { padding-top: clamp(20px, 4vw, 48px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-art { justify-self: center; } }

/* Phone: a frame with the QuickSort screen built in HTML. */
.phone {
  --w: 312px;
  position: relative; width: var(--w); max-width: 100%; padding: 10px; border-radius: 50px;
  background: linear-gradient(150deg, #3a3a3d 0%, #141416 22%, #1e1e21 60%, #0c0c0e 100%);
  box-shadow: inset 0 0 0 1.5px #55555a, inset 0 0 0 3px #0a0a0b, var(--shadow), 0 40px 70px -32px rgba(70, 30, 90, 0.5);
}
.screen {
  position: relative; border-radius: 40px; overflow: hidden; background: var(--bg);
  aspect-ratio: 9 / 19.5; display: flex; flex-direction: column;
}
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255, 159, 67, 0.16), transparent 60%),
              radial-gradient(120% 60% at 100% 0%, rgba(224, 71, 158, 0.14), transparent 60%);
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #050506; z-index: 3; }
.screen > * { position: relative; z-index: 1; }

/* Sorting screen */
.s-top { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; padding: 46px 14px 8px; }
.s-top .title { text-align: center; font: 750 14px/1.2 var(--round); }
.s-top .title small { display: block; font: 600 11.5px/1.3 var(--sans); color: var(--dim); }
.round-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
}
.round-btn svg { width: 15px; height: 15px; }
.round-btn:disabled { opacity: 0.45; cursor: default; }
.progress { height: 4px; margin: 2px 16px 12px; border-radius: 4px; background: var(--muted); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--sunset); border-radius: 4px; transition: width 0.35s ease; }

.stack { position: relative; flex: 1; margin: 0 16px; touch-action: pan-y; }
.card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--muted);
  box-shadow: 0 16px 30px -18px rgba(40, 20, 60, 0.55), 0 1px 3px rgba(40, 20, 60, 0.18);
  transform-origin: 50% 85%; will-change: transform; user-select: none; -webkit-user-select: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 8px;
  padding: 28px 12px 11px; color: #fff; font: 650 11.5px/1.2 var(--sans);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}
.card .meta span:last-child { opacity: 0.85; font-weight: 550; }
.card .fav-badge {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: #d6246e; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s;
}
.card .fav-badge svg { width: 15px; height: 15px; }
.card.is-fav .fav-badge { opacity: 1; transform: scale(1); }
.card[data-depth="1"] { transform: translateY(10px) scale(0.95); filter: brightness(0.97); }
.card[data-depth="2"] { transform: translateY(20px) scale(0.9); filter: brightness(0.94); }
.card[data-depth="3"] { transform: translateY(20px) scale(0.9); opacity: 0; }
.card.settle { transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.3s, opacity 0.3s; }
.card.fly { transition: transform 0.36s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.36s; }

/* Stamps while dragging, like in the app */
.stamp {
  position: absolute; top: 18px; padding: 6px 10px; border-radius: 10px; border: 3px solid currentColor;
  font: 850 15px/1 var(--round); letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.9);
  opacity: 0; pointer-events: none;
}
.stamp.keep { left: 14px; color: #15803d; transform: rotate(-12deg); }
.stamp.delete { right: 14px; color: #d7263d; transform: rotate(12deg); }
.stamp.hide { left: 50%; top: auto; bottom: 46px; color: #7c3aed; transform: translateX(-50%); }
.stamp.later { left: 50%; color: #4a4655; transform: translateX(-50%); }

.actions { display: flex; justify-content: center; gap: 9px; padding: 14px 10px 8px; }
.act {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--c); box-shadow: 0 6px 14px -10px rgba(40, 20, 60, 0.6);
  transition: transform 0.12s ease;
}
.act svg { width: 19px; height: 19px; }
.act:active { transform: scale(0.92); }
.act.big { width: 50px; height: 50px; }
.act.big svg { width: 22px; height: 22px; }
.act.delete { --c: var(--delete); }
.act.hide { --c: var(--hide); }
.act.fav { --c: var(--fav); }
.act.later { --c: var(--later); }
.act.keep { --c: var(--keep); }
.act[aria-pressed="true"] { background: var(--accent-soft); }
.albums { display: flex; gap: 7px; padding: 4px 14px 22px; overflow: hidden; }
.album {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 650 12px/1 var(--sans); white-space: nowrap;
}
.album i { width: 18px; height: 18px; border-radius: 5px; background: var(--c); flex: none; }
.album:active { transform: scale(0.96); }
.demo-hint { margin: 16px auto 0; text-align: center; font-size: 14px; color: var(--dim); max-width: 22em; }
.demo-hint kbd { font: 700 12px/1 var(--sans); padding: 3px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
html:not(.js) .demo-hint, html:not(.js) .actions button, html:not(.js) .albums button { pointer-events: none; }
html:not(.js) .demo-hint { display: none; }

/* End of the demo stack */
.done {
  position: absolute; inset: 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; gap: 6px;
}
.done.show { display: flex; }
.done .done-title { font: 820 22px/1.2 var(--round); color: var(--ink); margin: 4px 0 2px; }
.done p { font-size: 13.5px; color: var(--dim); margin: 0 0 8px; }
.done ul { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 5px; font-size: 13.5px; width: 100%; max-width: 210px; }
.done li { display: flex; justify-content: space-between; gap: 10px; }
.done li b { font-family: var(--round); }
.done .btn { padding: 11px 18px; font-size: 14px; }
.burst { width: 54px; height: 54px; border-radius: 16px; background: var(--sunset); display: grid; place-items: center; color: #fff; }
.burst svg { width: 28px; height: 28px; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: clamp(48px, 7vw, 80px) !important; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; }
.fact .big { font: 850 clamp(28px, 2.9vw, 34px)/1 var(--round); white-space: nowrap; letter-spacing: -0.02em; margin-bottom: 8px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (forced-colors: active) { .fact .big { color: CanvasText; background: none; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  margin-bottom: 14px; color: #fff; font: 850 16px/1 var(--round); background: var(--sunset);
}
.step p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* Four directions */
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .dirs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .dirs { grid-template-columns: 1fr; } }
.dir { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; border-top: 5px solid var(--c); }
.dir .arrow { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 12px; }
.dir .arrow svg { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { .dir .arrow { color: #111014; } }
.dir p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.dir.keep { --c: var(--keep); }
.dir.delete { --c: var(--delete); }
.dir.hide { --c: var(--hide); }
.dir.later { --c: var(--later); }
.gestures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 820px) { .gestures { grid-template-columns: 1fr; } }
.gestures > div { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.gestures p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Assistant: a list like in the app */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 14px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; }
.panel-head .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--keep); color: #fff; display: grid; place-items: center; flex: none; }
@media (prefers-color-scheme: dark) { .panel-head .ok { color: #0c0b10; } }
.panel-head .ok svg { width: 16px; height: 16px; }
.panel-head b { font: 760 16px/1.2 var(--round); display: block; }
.panel-head small { color: var(--dim); font-size: 13px; }
.panel-head .example { margin-left: auto; font: 700 11px/1 var(--round); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; }
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 18px; background: var(--muted); }
.row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; }
.row .ic svg { width: 20px; height: 20px; }
.row b { font: 750 15.5px/1.2 var(--round); display: block; }
.row small { color: var(--dim); font-size: 12.5px; line-height: 1.35; display: block; }
.row .n { text-align: right; font: 760 15px/1.2 var(--round); white-space: nowrap; }
.row .n small { font-weight: 600; font-family: var(--sans); }
.row.dup { --c: #d6246e; }
.row.series { --c: #8b5cf6; }
.row.blur { --c: #e8590c; }
.row.docs { --c: #2563eb; }
.row.shots { --c: #0f766e; }
.row.video { --c: #c92a2a; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 26px; }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
.points h3 { font-size: 17px; }
.points p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Duplicate group, as in the app */
.group { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.group-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.group-head b { color: var(--ink); font-weight: 700; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.keepit { outline: 3px solid var(--keep); outline-offset: -3px; }
.thumb .tag-keep {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 6px; border-radius: 999px;
  background: #15803d; color: #fff; font: 750 11.5px/1 var(--round);
}
.thumb .tag-keep svg { width: 11px; height: 11px; }
.group .del { margin-top: 12px; width: 100%; justify-content: center; background: #d7263d; box-shadow: none; padding: 13px 18px; font-size: 14.5px; cursor: default; }
.group .del:hover { transform: none; }

/* Targeted stacks */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: 15px; }
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--accent)); }
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.month { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.month b { font: 760 16px/1.2 var(--round); display: flex; justify-content: space-between; gap: 8px; }
.month b span { color: var(--dim); font: 650 13px/1.3 var(--sans); }
.bar { height: 6px; border-radius: 6px; background: var(--muted); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--sunset); }

/* Progress on the home screen */
.home { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.home-top { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.ring { position: relative; width: 96px; height: 96px; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 850 22px/1 var(--round); }
.home-top b { font: 800 22px/1.15 var(--round); display: block; }
.home-top small { color: var(--dim); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { background: var(--muted); border-radius: 16px; padding: 12px; }
.stat b { display: block; font: 800 18px/1.1 var(--round); }
.stat small { color: var(--dim); font-size: 12.5px; }

/* Extras */
.extras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
@media (max-width: 760px) { .extras { grid-template-columns: 1fr; } }
.extras li { position: relative; padding-left: 28px; color: var(--ink-2); }
.extras li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 10px; border-radius: 3px; background: var(--sunset); box-shadow: 4px -4px 0 -1px rgba(224, 71, 158, 0.35); }
.tag { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font: 800 11px/1.2 var(--round); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; background: var(--muted); color: var(--ink-2); }
.tag.pro { background: var(--pro); color: #2a0a12; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px 24px; }
.plan.pro { position: relative; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sunset) border-box; box-shadow: var(--shadow); }
.plan-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.plan-head img { width: 52px; height: 52px; border-radius: 13px; }
.plan-head h3 { font-size: 24px; margin: 0; }
.plan-head p { margin: 2px 0 0; color: var(--dim); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 26px; color: var(--ink-2); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--keep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.prices { display: grid; gap: 8px; margin: 0 0 18px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--muted); }
.price-row.best { background: var(--accent-soft); }
.price-row b { font: 800 18px/1.2 var(--round); white-space: nowrap; }
.price-row span { color: var(--ink-2); font-size: 15px; }
.price-row em { font-style: normal; font-weight: 700; color: var(--accent-text); }
.plan-foot { margin: 16px 0 0; color: var(--dim); font-size: 14px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }
.privacy > div { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.privacy p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; font-weight: 400; color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* Support */
.support { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding: 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.support h2 { font-size: clamp(26px, 3.4vw, 34px); }
.support p { margin: 0; color: var(--ink-2); max-width: 36em; }

/* Footer */
footer { padding: clamp(56px, 8vw, 96px) 0 40px; color: var(--dim); font-size: 14.5px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
footer .cols div:last-child { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-2); }

/* Legal pages */
.legal { max-width: 780px; padding-bottom: 20px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-top: 18px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 27px); margin: 38px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .stand { color: var(--dim); margin-bottom: 26px; }
.legal .summary { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); margin-bottom: 8px; }
.legal .summary p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 12px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--round); color: var(--ink); }
.legal td:first-child { width: 46%; }
.legal .langs { display: flex; gap: 10px; font-size: 14px; color: var(--dim); }
@media (max-width: 560px) { .legal td:first-child { width: auto; } .legal th, .legal td { padding: 8px 6px; } }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 6px 0 12px; }
.legal dt { color: var(--dim); }
.legal dd { margin: 0; color: var(--ink-2); }
@media (max-width: 460px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.act:disabled, .album:disabled { opacity: 0.45; cursor: default; }

/* Mac: the app window, drawn in HTML so it stays sharp and follows light and dark. */
.extras.one { grid-template-columns: 1fr; }
@media (min-width: 901px) { #mac .split { grid-template-columns: 0.8fr 1.2fr; } }
.macwin { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-family: var(--sans); }
.macwin-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--muted); }
.macwin-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.macwin-bar i:nth-child(2) { background: #febc2e; }
.macwin-bar i:nth-child(3) { background: #28c840; }
.macwin-bar span { margin-left: 12px; font-weight: 650; font-size: 13px; color: var(--ink); }
.macwin-bar small { color: var(--dim); font-size: 12px; }
.macwin-body { display: grid; grid-template-columns: 26% 1fr; }
.macwin-side { background: var(--muted); padding: 10px 8px 14px; font-size: 12.5px; border-right: 1px solid var(--line); }
.macwin-side small { display: block; margin: 12px 6px 4px; font-size: 10.5px; font-weight: 650; color: var(--dim); }
.macwin-side small:first-child { margin-top: 2px; }
.macwin-side .row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 7px; color: var(--ink-2); }
.macwin-side .row kbd { margin-left: auto; }
.macwin-side .row.on { background: var(--surface); display: block; color: var(--ink); font-weight: 650; }
.macwin-side .row.on em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--dim); }
.macwin .dest::before { content: ""; flex: none; width: 12px; height: 9px; border-radius: 2px; background: var(--album); }
.macwin-side .trash::before, .macwin-side .spark::before { content: ""; flex: none; width: 9px; height: 10px; border-radius: 2px; background: var(--delete); }
.macwin-side .spark::before { border-radius: 50%; background: var(--sunset); }
.macwin kbd { font: 650 10.5px/1 var(--sans); border: 1px solid var(--edge); border-radius: 4px; padding: 2px 5px; color: var(--dim); background: var(--surface); }
.macwin-main { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--bg); min-width: 0; }
.macwin-main img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.macwin-keys { display: flex; flex-wrap: wrap; gap: 4px; font-size: 10.5px; font-weight: 650; }
.macwin-keys span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px; border-radius: 7px; background: var(--muted); color: var(--ink-2); }
.macwin-keys kbd { padding: 1px 4px; }
.macwin-keys .del { color: var(--delete); }
.macwin-keys .keep { color: var(--keep); margin-left: auto; }
@media (max-width: 520px) { .macwin-body { grid-template-columns: 1fr; } .macwin-side { display: none; } }
@media (forced-colors: active) { .macwin .dest::before, .macwin-side .trash::before, .macwin-side .spark::before { background: CanvasText; } }
