/* PetalWorks, deep space. A WebGL star field (space.js) runs behind every page; the page floats on it.
   Pink is SakuDesk's light, teal is Hanii's, violet is PetalWorks' own. Glow lives in the canvas, never in CSS. */

:root {
  --space: #04030b;
  --space-2: #0d0b1f;
  --panel: rgba(13, 11, 31, 0.72);
  --star: #eef0ff;
  --star-2: #b3b1d0;
  --line: rgba(238, 240, 255, 0.16);
  --line-2: rgba(238, 240, 255, 0.32);
  --pink: #ff4f9a;
  --teal: #2ee6c9;
  --violet: #9a7dff;
  --warn: #ffd84d;
  --danger: #ff6b6b;
  --spot: var(--violet);
  --gut: clamp(1.1rem, 4vw, 4rem);
  --head-h: 4rem;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
.is-pink { --spot: var(--pink); }
.is-teal { --spot: var(--teal); }
.is-violet { --spot: var(--violet); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); scrollbar-color: var(--line-2) var(--space); }
body {
  margin: 0;
  background: var(--space);
  color: var(--star);
  font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
.has-space body { background: var(--space); }
canvas.space { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.head, main, .foot, .toc { position: relative; z-index: 1; }

::selection { background: var(--spot); color: var(--space); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--space); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid var(--space); }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--line-2); }
a:hover { color: var(--spot); text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.86em; background: rgba(238, 240, 255, 0.08); padding: 0.08em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--star); color: var(--space); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.skip:hover { color: var(--space); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2, .band-title, .tip-head, .box-head { font-stretch: 125%; font-style: normal; font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); margin-bottom: 0.45em; }
h2 b, h1 b { font-weight: 800; }
h3 { font-stretch: 112%; font-weight: 700; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.2; }
.label, .tag, .meta-cap, .cap-tag { font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; line-height: 1.3; }
.lead { font-stretch: 105%; font-weight: 400; font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.4; max-width: 36ch; }
.lede { font-size: 1.08rem; max-width: 58ch; color: var(--star-2); }
.meta { font-size: 0.95rem; color: var(--star-2); }
.reading { max-width: 68ch; }
.reading p, .reading li { text-wrap: pretty; }
.reading ol, .reading ul { padding-left: 1.3em; margin: 0 0 1em; }
.reading li { margin-bottom: 0.4em; }
.reading li::marker { color: var(--spot); }

/* ---------- Head ---------- */
.head {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem);
  height: var(--head-h); padding: 0 var(--gut);
  background: linear-gradient(rgba(4, 3, 11, 0.88), rgba(4, 3, 11, 0.6));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--star); font-stretch: 125%; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; white-space: nowrap; }
.mark svg { width: 1.9rem; height: 1.9rem; }
.mark:hover { color: var(--star); }
.tabs { margin-left: auto; }
.tabs ul { list-style: none; display: flex; align-items: center; gap: 0.2rem; margin: 0; padding: 0; }
.tabs a { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--star-2); text-decoration: none; font-stretch: 110%; font-weight: 600; font-size: 0.95rem; transition: color 0.16s, background 0.16s; }
.tabs a::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--tab, var(--line-2)); }
.tabs a:hover { color: var(--star); background: rgba(238, 240, 255, 0.06); }
.tabs a[aria-current="page"] { color: var(--star); background: rgba(238, 240, 255, 0.1); }
.tabs [data-tab="sakudesk"], .tabs [data-tab="premium"] { --tab: var(--pink); }
.tabs [data-tab="hanii"] { --tab: var(--teal); }
.tabs [data-tab="download"] { --tab: var(--star); }
.footage { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.4rem; padding: 0.3rem 0.8rem; background: transparent; color: var(--star-2); border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-stretch: 110%; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.footage svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2.4; }
.footage:hover { color: var(--star); border-color: var(--star); }
.footage[aria-pressed="false"] { color: var(--space); background: var(--star); border-color: var(--star); }
.contents-open { display: none; }
@media (max-width: 1080px) {
  .tabs, .head > .footage { display: none; }
  .contents-open { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; min-height: 2.75rem; padding: 0.4rem 1rem; background: rgba(238, 240, 255, 0.08); color: var(--star); border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-stretch: 110%; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
  .contents-open svg { width: 1.15rem; height: 1.15rem; }
}
.toc { position: fixed; inset: 0; z-index: 80; background: rgba(4, 3, 11, 0.97); padding: 1rem var(--gut) 2rem; overflow-y: auto; display: flex; flex-direction: column; }
.toc[hidden] { display: none; }
.toc-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.toc-top h2 { font-size: 1.8rem; margin: 0; }
.toc-close { min-width: 2.9rem; min-height: 2.9rem; display: grid; place-items: center; background: rgba(238, 240, 255, 0.08); color: var(--star); border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; }
.toc-close svg { width: 1.2rem; height: 1.2rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-stretch: 125%; font-weight: 300; font-size: 1.7rem; letter-spacing: -0.01em; }
.toc li a .toc-p { display: none; }
.toc li a .toc-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--tab, var(--line-2)); flex: none; }
.toc li a[aria-current="page"] { font-weight: 600; }
.toc .footage { margin-top: 1.5rem; align-self: flex-start; display: inline-flex; }

/* ---------- Sections ---------- */
main { display: block; }
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 clamp(1.5rem, 4vw, 4.5rem); padding: clamp(3.5rem, 8vw, 7.5rem) var(--gut); }
.pg { position: relative; z-index: 1; min-width: 0; }
.pg.wide { grid-column: 1 / -1; }
.center-y { align-self: center; }
.fill-spot, .fill-yellow, .fill-paper-2, .dots, .is-night { background: none; }
@media (max-width: 999px) { .spread { grid-template-columns: 1fr; gap: 2.4rem; } }

.band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin: 0 0 1.1rem; }
.band-title { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem); color: var(--spot); margin: 0; }
.band .tag { display: none; }
.band .band-side { margin-left: auto; color: var(--star-2); font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--head-h)); display: grid; place-items: center; padding: 3rem var(--gut) 5rem; text-align: center; }
.hero-text { position: relative; z-index: 2; max-width: 52rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 1rem + 10vw, 9.5rem); font-weight: 200; letter-spacing: -0.035em; line-height: 0.95; margin: 0 0 0.3em; }
.hero h1 b { font-weight: 800; }
.hero .lead { margin: 0 auto 1.8rem; max-width: 30ch; }
.hero .do-row { justify-content: center; }
.hero .meta { margin-top: 1rem; }
.hero-planet { position: absolute; z-index: 1; display: block; text-decoration: none; color: var(--star); }
.hero-planet .planet { display: block; width: clamp(6rem, 14vmin, 11rem); aspect-ratio: 1; border-radius: 50%; margin: 0 auto; }
.hero-planet-label { display: block; margin-top: 0.9rem; text-align: center; }
.hero-planet-label b { display: block; font-stretch: 125%; font-weight: 600; font-size: 1.25rem; color: var(--spot); }
.hero-planet-label small { color: var(--star-2); font-size: 0.85rem; }
.hero-planet.is-pink { left: 4%; top: 6%; }
.hero-planet.is-teal { right: 5%; bottom: 8%; }
.hero-planet:hover .hero-planet-label b { text-decoration: underline; text-underline-offset: 0.2em; }
.no-space .planet { background: radial-gradient(circle at 35% 30%, var(--spot), transparent 72%); }
.scroll-cue { margin-top: 2.6rem; display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--star-2); text-decoration: none; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-stretch: 112%; font-weight: 600; }
.scroll-cue svg { width: 1.3rem; height: 1.3rem; }
.can-float .scroll-cue svg { animation: cue 2.2s var(--out) infinite; }
@keyframes cue { 0% { transform: translateY(-4px); opacity: 0.4; } 50% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(-4px); opacity: 0.4; } }
@media (max-width: 760px) {
  .hero { place-items: center; align-content: center; gap: 1.6rem; }
  .hero-planets { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
  .hero-planet { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; display: flex; align-items: center; gap: 0.8rem; text-align: left; }
  .hero-planet .planet { width: 4.6rem; margin: 0; }
  .hero-planet-label { margin: 0; text-align: left; }
}

/* An app's stop: a big planet off to one side of its section */
.stop-planet { position: absolute; z-index: 0; width: clamp(18rem, 62vmin, 46rem); aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.stop-planet.at-right { right: -16%; top: 6%; }
.stop-planet.at-left { left: -18%; top: 6%; }
.stop-planet.behind { left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(15rem, 48vmin, 36rem); }
@media (max-width: 999px) { .stop-planet.at-right, .stop-planet.at-left, .stop-planet.behind { top: -22vw; width: 44vw; transform: none; } .stop-planet.at-right { right: -8vw; left: auto; } .stop-planet.at-left, .stop-planet.behind { left: -8vw; } .stop { padding-top: clamp(6rem, 30vw, 9rem); } }

/* ---------- Floating screens with live callouts ---------- */
.shot { position: relative; margin: 0 0 1.4rem; }
.shot-frame { position: relative; aspect-ratio: var(--ar, 16 / 9); border-radius: 14px; background: #000; border: 1px solid color-mix(in srgb, var(--spot) 55%, transparent); }
.shot-frame > video, .shot-frame > img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.can-float .shot-frame { animation: bob 7s ease-in-out infinite alternate; }
.can-float .pg:nth-of-type(2n) .shot-frame { animation-delay: -3.5s; }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
.shot-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.shot-lines line { stroke: var(--spot); stroke-width: 1.6; stroke-linecap: round; }
.shot-lines .halo { stroke: rgba(4, 3, 11, 0.7); stroke-width: 4.5; }
.shot-lines circle { fill: var(--spot); stroke: rgba(4, 3, 11, 0.8); stroke-width: 2; }
.shot-lines .zoom-line { stroke-dasharray: 2 5; }
.pin { position: absolute; z-index: 3; left: calc(var(--sx) * 1%); top: calc(var(--sy) * 1%); width: 2.1rem; height: 2.1rem; margin: -1.05rem 0 0 -1.05rem; display: grid; place-items: center; padding: 0; background: rgba(4, 3, 11, 0.82); color: var(--star); border: 2px solid var(--spot); border-radius: 50%; font: inherit; font-stretch: 110%; font-weight: 700; font-size: 0.95rem; line-height: 1; cursor: pointer; transition: background 0.16s, color 0.16s, transform 0.2s var(--out); }
.pin:hover, .pin.is-active { background: var(--spot); color: var(--space); transform: scale(1.12); }
.zoom { position: absolute; z-index: 4; width: clamp(5.5rem, 23%, 13rem); aspect-ratio: 1; pointer-events: none; }
.zoom .lens { width: 100%; height: 100%; border: 2px solid var(--spot); border-radius: 50%; background: #000; overflow: hidden; }
.zoom canvas { width: 100%; height: 100%; }
.zoom[data-corner="tr"] { right: -2.5%; top: -8%; }
.zoom[data-corner="tl"] { left: -2.5%; top: -8%; }
.zoom[data-corner="br"] { right: -2.5%; bottom: 3%; }
.zoom[data-corner="bl"] { left: -2.5%; bottom: 3%; }
.zoom[data-corner="r"] { right: -2.5%; top: 29%; }
.zoom[data-corner="l"] { left: -2.5%; top: 29%; }
.zoom-n { position: absolute; left: 4%; top: 4%; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; background: var(--spot); color: var(--space); border-radius: 50%; font-weight: 800; font-size: 0.85rem; }
@media (max-width: 620px) { .pin { width: 1.75rem; height: 1.75rem; margin: -0.875rem 0 0 -0.875rem; font-size: 0.82rem; } .zoom-n { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; } }
.shot figcaption, .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; margin-top: 0.75rem; font-size: 0.9rem; color: var(--star-2); }
.cap-tag { color: var(--spot); }
.shot figcaption.shot-tag { position: absolute; z-index: 5; left: 1rem; top: -0.85rem; margin: 0; display: block; padding: 0.28rem 0.7rem; background: var(--space); border: 1px solid color-mix(in srgb, var(--spot) 55%, transparent); border-radius: 999px; color: var(--star); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; }
.shot-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.shot.is-reel .shot-lines, .shot.is-reel .pin, .shot.is-reel .zoom { display: none; }
.can-stamp .shot .pin:not(.is-in) { opacity: 0; transform: scale(0.3); }
.can-stamp .shot .pin.is-in { animation: pop 0.5s var(--out) both; }
.can-stamp .shot-lines g:not(.is-in) { opacity: 0; }
.can-stamp .shot-lines g.is-in line:not(.zoom-line) { stroke-dasharray: var(--len) var(--len); animation: draw 0.55s var(--out) both; }
.can-stamp .zoom:not(.is-in) { opacity: 0; transform: scale(0.6); }
.can-stamp .zoom.is-in { transition: opacity 0.4s, transform 0.6s var(--out); }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

/* Sections drift in as you fly to them */
.can-reveal [data-warp][data-reveal] > .pg, .can-reveal .hero[data-reveal] > .hero-text { opacity: 0.35; transform: translateY(40px) scale(0.98); filter: blur(4px); transition: opacity 1s var(--out), transform 1.2s var(--out), filter 1s var(--out); }
.can-reveal [data-warp][data-reveal].is-in > .pg, .can-reveal .hero[data-reveal].is-in > .hero-text { opacity: 1; transform: none; filter: none; }
.can-reveal [data-reveal].is-in > .pg:nth-of-type(2) { transition-delay: 0.15s; }

/* Legend */
.legend { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.legend.is-one { grid-template-columns: 1fr; }
.legend li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 0.85rem; align-items: start; }
.legend .n { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 2px solid var(--spot); border-radius: 50%; font-weight: 700; font-size: 0.92rem; transition: background 0.16s, color 0.16s; }
.legend b { display: block; font-stretch: 112%; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.legend p { margin: 0.15em 0 0; font-size: 0.97rem; line-height: 1.5; color: var(--star-2); }
.legend li.is-active .n, .legend li:hover .n { background: var(--spot); color: var(--space); }
@media (max-width: 620px) { .legend { grid-template-columns: 1fr; } }

/* ---------- Panels ---------- */
.tip, .box { position: relative; max-width: 32rem; padding: 0.9rem 0 0; border-top: 1px solid var(--line-2); }
.tip { border-top-color: color-mix(in srgb, var(--spot) 70%, transparent); }
.tip-head, .box-head { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; margin: 0 0 0.5rem; color: var(--spot); font-weight: 400; }
.tip-head svg, .box-head svg { width: 1.3rem; height: 1.3rem; flex: none; }
.tip p { margin: 0 0 0.9rem; }
.tip .meta { margin: 0.8rem 0 0; font-size: 0.9rem; }
.box.is-warn { border-top-color: rgba(255, 216, 77, 0.7); }
.box.is-warn .box-head { color: var(--warn); }
.box.is-warn a { color: var(--warn); }
.box.is-unlock { border-top-color: color-mix(in srgb, var(--pink) 70%, transparent); }
.box.is-unlock .box-head { color: var(--pink); }
.box.is-note .box-head { color: var(--star); }
.box p:last-child, .tip p:last-child { margin-bottom: 0; }
.big-box { max-width: none; }
.big-box h2, .warn-title { color: var(--warn); }

/* ---------- Actions ---------- */
.action { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.2rem; padding: 0.75rem 1.5rem; background: var(--spot); color: var(--space); border: 1px solid var(--spot); border-radius: 999px; font: inherit; font-stretch: 110%; font-weight: 700; font-size: 1.02rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--out); }
.action svg { width: 1.2rem; height: 1.2rem; flex: none; }
.action:hover { background: var(--star); border-color: var(--star); color: var(--space); transform: translateY(-1px); }
.action:active { transform: translateY(1px); }
.action.quiet { background: transparent; color: var(--star); border-color: var(--line-2); }
.action.quiet:hover { border-color: var(--star); background: rgba(238, 240, 255, 0.08); color: var(--star); }
.action.is-spot { background: var(--spot); color: var(--space); }
.action[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.action.is-warn { color: var(--danger); border-color: var(--danger); background: transparent; }
.action.is-warn:hover { background: var(--danger); color: var(--space); }
.action.is-warn:not(.quiet) { background: var(--danger); color: var(--space); }
.do-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.1rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.3rem 0.95rem; background: transparent; color: var(--star-2); border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-stretch: 110%; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.chip:hover { color: var(--star); border-color: var(--star); }
.chip[aria-pressed="true"] { background: var(--spot); color: var(--space); border-color: var(--spot); }

/* ---------- Openers ---------- */
.opener { min-height: calc(92svh - var(--head-h)); }
.opener-title { font-stretch: 125%; font-weight: 200; font-size: clamp(3.2rem, 1rem + 7vw, 7.5rem); line-height: 0.95; letter-spacing: -0.035em; margin: 0 0 0.3em; color: var(--spot); }
.opener .lead { margin-bottom: 1.6rem; }
.stamp, .masthead { display: none; }

/* ---------- Lists, steps, specs ---------- */
.step-title { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.4rem; }
.step-title h2 { margin: 0; }
.specs { margin: 0 0 1.4rem; padding: 0; }
.specs div { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; }
.specs dt { display: flex; align-items: baseline; flex: 1 1 auto; min-width: 7.5rem; color: var(--star-2); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }
.specs dt::after { content: ""; flex: 1; margin-left: 0.6rem; border-bottom: 1px dashed var(--line-2); transform: translateY(-0.25em); min-width: 1rem; }
.specs dd { margin: 0; flex: 0 1 62%; font-size: 1rem; }
@media (max-width: 560px) { .specs div { flex-direction: column; gap: 0.1rem; } .specs dt::after { display: none; } .specs dd { flex-basis: auto; } }
.steps { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.3rem; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; align-items: start; }
.step-n { width: 3rem; height: 3rem; display: grid; place-items: center; border: 2px solid var(--spot); border-radius: 50%; font-stretch: 125%; font-weight: 300; font-size: 1.3rem; color: var(--spot); }
.steps h3 { margin: 0.45rem 0 0.25rem; }
.steps p { margin: 0; color: var(--star-2); }
.list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.list li { padding: 1rem 0 1.1rem; border-top: 1px solid var(--line); }
.list h3 { margin-bottom: 0.3rem; }
.list p { margin: 0; color: var(--star-2); font-size: 1rem; }
.list.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list.is-single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .list.is-three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .list, .list.is-three { grid-template-columns: 1fr; } }
.unlock-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.unlock-list.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unlock-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.7rem; align-items: start; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.unlock-list svg { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--pink); }
@media (max-width: 900px) { .unlock-list.is-three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .unlock-list, .unlock-list.is-three { grid-template-columns: 1fr; } }
.compare-wrap { overflow-x: auto; margin-bottom: 1.4rem; }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.9rem 0.9rem 0.9rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-stretch: 125%; font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--spot); }
.compare tbody th { width: 22%; color: var(--star-2); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border-top: 1px solid var(--line-2); padding: 0.6rem 0 0.3rem; }
  .compare th, .compare td { border: 0; padding: 0.3rem 0; }
  .compare td::before { content: attr(data-app) ": "; font-weight: 700; }
}

/* Questions */
.answers { margin-bottom: 1.4rem; }
.answers details { border-top: 1px solid var(--line); }
.answers details:last-child { border-bottom: 1px solid var(--line); }
.answers summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.5rem; gap: 1rem; align-items: center; padding: 1rem 0; font-stretch: 112%; font-weight: 600; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.3; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary svg { width: 1.3rem; height: 1.3rem; color: var(--spot); transition: transform 0.3s var(--out); }
.answers details[open] summary svg { transform: rotate(45deg); }
.answers summary:hover { color: var(--spot); }
.answers .answer { padding: 0 0 1.2rem; max-width: 72ch; color: var(--star-2); }
.answers .answer p:last-child { margin-bottom: 0; }
.answers details[hidden] { display: none; }
@supports (interpolate-size: allow-keywords) {
  .answers details { interpolate-size: allow-keywords; }
  .answers details::details-content { height: 0; overflow: clip; transition: height 0.4s var(--out), content-visibility 0.4s allow-discrete; }
  .answers details[open]::details-content { height: auto; }
}
.answers-topic { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin: 2.4rem 0 0.8rem; }
[data-topic]:first-of-type .answers-topic { margin-top: 0.4rem; }
.finder { margin-top: 1.4rem; max-width: 36rem; }
.finder label { display: block; margin-bottom: 0.5rem; color: var(--star-2); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }
.finder-box { display: flex; align-items: center; gap: 0.6rem; height: 3.5rem; padding: 0 1.1rem; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; }
.finder-box svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--star-2); }
.finder-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--star); font: inherit; font-size: 1.05rem; caret-color: var(--spot); }
.finder-box input::placeholder { color: var(--star-2); }
.finder-box input:focus { outline: none; }
.finder-box:focus-within { border-color: var(--spot); }
.finder-count { min-height: 1.5em; margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--star-2); }

/* ---------- Controls ---------- */
.keys { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.6rem 0 1.2rem; }
.key { display: grid; align-content: space-between; min-width: 4.4rem; height: 4.4rem; padding: 0.45rem 0.6rem; background: rgba(13, 11, 31, 0.7); color: var(--star); border: 1px solid var(--line-2); border-radius: 12px; font: inherit; text-align: left; cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s; }
.key b { font-stretch: 112%; font-weight: 700; font-size: 1.1rem; line-height: 1; }
.key small { font-weight: 500; font-size: 0.72rem; line-height: 1.15; color: var(--star-2); }
.key.is-wide { min-width: 6.4rem; }
.key.is-dim { opacity: 0.35; cursor: default; }
.key:hover { border-color: var(--spot); }
.key.is-down, .key:active { background: var(--spot); color: var(--space); border-color: var(--spot); }
.key.is-down small, .key:active small { color: var(--space); }
.keys-gap { width: 1.2rem; }
.key-read { min-height: 3.2em; color: var(--star-2); }
.pad { position: relative; margin: 0.5rem 0 1rem; }
.pad svg.pad-body { width: 100%; height: auto; overflow: visible; }
.pad-body .shell { fill: rgba(13, 11, 31, 0.85); stroke: var(--line-2); stroke-width: 3; }
.pad-body .ctl { fill: rgba(4, 3, 11, 0.9); stroke: color-mix(in srgb, var(--teal) 70%, transparent); stroke-width: 2.5; transition: fill 0.1s; }
.pad-body .ctl.is-down { fill: var(--teal); }
.pad-body text { fill: var(--star); font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pad-screen { position: absolute; left: 25.2%; top: 13.72%; width: 49.6%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 6px; }
.pad-screen video, .pad-screen img { width: 100%; height: 100%; object-fit: cover; }
.pad-state { min-height: 1.6em; color: var(--teal); }
.pad-legend { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.4rem; }
.pad-legend li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: baseline; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.pad-legend kbd { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem; border: 1px solid color-mix(in srgb, var(--teal) 70%, transparent); color: var(--star); border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 0.85rem; }
.pad-legend li.is-down kbd { background: var(--teal); color: var(--space); }
.pad-legend span { font-size: 0.97rem; color: var(--star-2); }
@media (max-width: 620px) { .pad-legend { grid-template-columns: 1fr; } }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.swatches button { width: 2.6rem; height: 2.6rem; padding: 0; cursor: pointer; background: var(--swatch); border: 2px solid rgba(4, 3, 11, 0.8); border-radius: 50%; }
.swatches button[aria-pressed="true"] { outline: 2px solid var(--star); outline-offset: 3px; }
.tuner label { display: block; margin: 0.6rem 0 0.3rem; color: var(--star-2); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }
.tuner input[type="range"] { width: min(100%, 26rem); height: 2.6rem; accent-color: var(--teal); }

/* ---------- Premium ---------- */
.wipe { margin: 0 0 1.4rem; }
.wipe-stage { position: relative; overflow: hidden; touch-action: pan-y; aspect-ratio: 16 / 10; border: 1px solid color-mix(in srgb, var(--pink) 55%, transparent); border-radius: 14px; background: #000; cursor: ew-resize; user-select: none; }
.wipe-stage img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wipe-premium { position: absolute; inset: 0; clip-path: inset(0 0 0 calc(var(--split, 50) * 1%)); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: calc(var(--split, 50) * 1%); width: 2px; margin-left: -1px; background: var(--star); outline: none; }
.wipe-grip { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 3.2rem; height: 3.2rem; display: grid; place-items: center; background: var(--pink); color: var(--space); border-radius: 50%; }
.wipe-grip svg { width: 1.4rem; height: 1.4rem; }
.wipe-line:focus-visible .wipe-grip { outline: 2px solid var(--star); outline-offset: 3px; }
.wipe-stage::before, .wipe-stage::after { position: absolute; top: 0.9rem; z-index: 2; padding: 0.3rem 0.7rem; border-radius: 999px; font-stretch: 112%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; transition: opacity 0.2s; }
.wipe-stage::before { content: "Free"; left: 0.9rem; background: rgba(4, 3, 11, 0.8); color: var(--star); border: 1px solid var(--line-2); }
.wipe-stage::after { content: "Premium"; right: 0.9rem; background: var(--pink); color: var(--space); }
.wipe.free-narrow .wipe-stage::before, .wipe.premium-narrow .wipe-stage::after { opacity: 0; }
.wipe figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; font-size: 0.9rem; color: var(--star-2); }
.wipe-words { text-align: center; }
.wipe-end svg { width: 1rem; height: 1rem; }
.pool-button { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.3rem 0.95rem; background: transparent; color: var(--star); border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-stretch: 110%; font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.pool-button:hover { border-color: var(--star); }
.pool-button[aria-pressed="true"] { background: var(--pink); color: var(--space); border-color: var(--pink); }
@media (max-width: 620px) { .wipe .is-long, .wipe .keys-hint { display: none; } }
.themes { margin: 0 0 1.4rem; }
.themes-stage { position: relative; aspect-ratio: 16 / 10; border: 1px solid color-mix(in srgb, var(--pink) 55%, transparent); border-radius: 14px; background: #000; overflow: hidden; }
.themes-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--out); }
.themes-stage img.is-shown { opacity: 1; }
.themes figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; font-size: 0.9rem; color: var(--star-2); }
.themes-picker { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.buy .meta { margin: 0; max-width: 36ch; }
.buy .meta strong { font-size: 1.15em; color: var(--star); }
.premium-open { padding-top: clamp(2rem, 4vw, 3.5rem); }
.premium-open .wipe-stage { aspect-ratio: auto; height: min(56vh, 52vw); min-height: 15rem; }
.premium-open .wipe-stage img { object-position: 50% 0; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t b" "l b"; align-items: center; gap: 0.5rem 2.4rem; margin-top: 1.2rem; }
.offer h1 { grid-area: t; font-size: clamp(2.3rem, 1rem + 3.4vw, 4.6rem); font-weight: 200; letter-spacing: -0.03em; color: var(--pink); align-self: end; }
.offer .lead { grid-area: l; margin: 0; align-self: start; }
.offer .buy-box { grid-area: b; }
.buy-box { min-width: 17rem; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; grid-template-areas: "t" "l" "b"; } }
.big-h3 { font-stretch: 125%; font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 0.6rem; }

/* ---------- Reading pages ---------- */
.sheet { position: relative; padding: clamp(2.4rem, 5vw, 4.5rem) var(--gut) clamp(3.5rem, 6vw, 5rem); }
.sheet > * { position: relative; z-index: 1; }
.sheet-head { margin-bottom: clamp(1.8rem, 3vw, 2.8rem); padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.page-title { font-stretch: 125%; font-weight: 200; font-size: clamp(3rem, 1.6rem + 4vw, 6rem); line-height: 0.95; letter-spacing: -0.035em; margin: 0 0 0.3em; }
.updated { color: var(--star-2); font-size: 0.95rem; }
.with-contents { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.contents { position: sticky; top: calc(var(--head-h) + 1.2rem); border-top: 1px solid var(--line-2); padding: 1rem 0 0; }
.contents h2 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.contents ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.contents li { counter-increment: c; }
.contents a { display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.32rem 0; text-decoration: none; font-size: 0.95rem; line-height: 1.3; color: var(--star-2); }
.contents a::before { content: counter(c); color: var(--line-2); font-weight: 700; }
.contents a:hover, .contents a[aria-current] { color: var(--star); }
.contents a[aria-current]::before { color: var(--violet); }
.reading-sections, .answers-band { position: relative; }
.answers-band { max-width: 64rem; }
.reading-sections > section { padding: 0 0 2.2rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.reading-sections > section + section { border-top: 1px solid var(--line); padding-top: 1.8rem; }
.reading-sections h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.reading h3 { margin: 1.3em 0 0.4em; }
@media (max-width: 1100px) { .with-contents { grid-template-columns: 1fr; } .contents { position: static; } .contents ol { columns: 2; column-gap: 1.5rem; } .contents li { break-inside: avoid; } }
@media (max-width: 560px) { .contents ol { columns: 1; } }
.data-table-wrap { overflow-x: auto; margin: 0.6rem 0 1.2rem; border: 1px solid var(--line-2); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--star-2); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- Account ---------- */
.account { max-width: 46rem; }
.account-title { font-stretch: 125%; font-weight: 200; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 0.6em; }
.account-sub { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin: 2.2rem 0 0.6rem; }
.account-actions { margin: 0.4rem 0 1rem; }
.account-error { border: 1px solid var(--danger); color: var(--danger); background: var(--panel); padding: 0.8rem 1rem; border-radius: 14px; }
.providers { display: grid; gap: 0.6rem; margin: 0 0 1.4rem; max-width: 26rem; }
.provider { display: flex; align-items: center; gap: 0.8rem; min-height: 3.5rem; padding: 0.6rem 1.2rem; background: var(--panel); color: var(--star); border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-weight: 600; font-size: 1.02rem; text-align: left; cursor: pointer; }
.provider:hover { border-color: var(--star); }
.provider svg, .provider img { width: 1.4rem; height: 1.4rem; }
.links { list-style: none; padding: 0; margin: 0 0 1rem; }
.links li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.4rem; margin: 0 0 1.2rem; }
.facts dt { color: var(--star-2); font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; padding-top: 0.2rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.5rem; } }
.note { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); padding: 0.85rem 1.05rem; }

/* ---------- Closing and footer ---------- */
.closing-title { font-stretch: 125%; font-weight: 200; font-size: clamp(2.6rem, 1rem + 5vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 0.5em; max-width: 15ch; }
.closing-title b { font-weight: 800; color: var(--spot); }
.pg:not(.wide) > .closing-title { font-size: clamp(2.3rem, 0.8rem + 3.4vw, 4.6rem); }
.foot { background: rgba(4, 3, 11, 0.9); border-top: 1px solid var(--line); padding: clamp(2.6rem, 5vw, 4rem) var(--gut) clamp(4.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(16rem, 1.4fr) repeat(3, minmax(9rem, 1fr)); gap: 2rem 2.4rem; }
.foot-name { font-stretch: 125%; font-weight: 200; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 0.8rem; }
.foot p { color: var(--star-2); font-size: 0.95rem; max-width: 40ch; }
.foot h2 { font-size: 0.74rem; font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--star-2); margin: 0 0 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot a { color: var(--star); text-decoration: none; }
.foot a:hover { color: var(--violet); }
.foot-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.3rem; font-size: 0.85rem !important; max-width: 90ch !important; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.4rem 1rem; background: var(--space-2); color: var(--star); border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 0.9rem; text-decoration: none; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--out); }
.to-top svg { width: 1.05rem; height: 1.05rem; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--star); border-color: var(--star); }
.readbar { position: fixed; left: 0; top: var(--head-h); z-index: 59; height: 2px; width: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); pointer-events: none; }
.mt { margin-top: 1.4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
