/* fastasfsave — terminal aesthetic (matches the Mac app's "Design A") */
:root {
  --bg: #050906;
  --panel: #0a110b;
  --green: #3dff73;
  --text: #a8ecbb;
  --dim: #2f9a4d;
  --faint: rgba(61, 255, 115, .07);
  --line: rgba(61, 255, 115, .22);
  --ink: #04140a;
  --amber: #ffc233;
  --red: #ff4058;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --glow: 0 0 14px rgba(61, 255, 115, .55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 255, 115, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
a { color: var(--green); }
b { color: var(--green); font-weight: 700; }
.dim { color: var(--dim); }
.glow { color: var(--green); text-shadow: var(--glow); }

/* jester + pixel wordmark are drawn with masks so they can glow in any colour */
.jester {
  display: inline-block; width: 28px; height: 28px; background: var(--green);
  -webkit-mask: url(assets/jester.svg) center / contain no-repeat; mask: url(assets/jester.svg) center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(61, 255, 115, .7));
}
.jester.inline { width: 1.2em; height: 1.2em; vertical-align: -.25em; }
.jester.big { width: 92px; height: 92px; flex: none; }
.wordmark {
  display: inline-block; height: 20px; width: calc(20px * 1518 / 272); background: var(--green);
  -webkit-mask: url(assets/logo-mask.png) center / contain no-repeat; mask: url(assets/logo-mask.png) center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(61, 255, 115, .55));
}

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(5, 9, 6, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); font-size: 14px; }
nav a { text-decoration: none; color: var(--dim); }
nav a:hover { color: var(--green); }

/* ── buttons ── */
.btn {
  display: inline-block; padding: 14px 22px; background: var(--green); color: var(--ink) !important;
  font-weight: 800; text-decoration: none; letter-spacing: .02em; box-shadow: 0 0 24px rgba(61, 255, 115, .45);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(61, 255, 115, .7); }
.btn.small { padding: 7px 12px; font-size: 13px; box-shadow: 0 0 14px rgba(61, 255, 115, .35); }
.link { color: var(--dim); text-decoration: none; }
.link:hover { color: var(--green); }
.inline-btn { margin-left: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

main, .footer { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ── hero ── */
.hero { padding: clamp(56px, 10vw, 110px) 0 40px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: end; }
.card { position: absolute; width: 62%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.c1 { left: 0; top: 8%; transform: rotate(-9deg); filter: brightness(.6); }
.c2 { right: 0; top: 0; transform: rotate(7deg); filter: brightness(.6); }
.c3 { left: 19%; top: 26%; border: 2px solid var(--green); box-shadow: 0 0 40px rgba(61, 255, 115, .45), 0 20px 50px rgba(0, 0, 0, .6); }
.hero-ring {
  position: absolute; left: 50%; top: 56%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 4%, rgba(61, 255, 115, .8) 10%, rgba(61, 255, 115, .2) 34%, transparent 62%);
  animation: heroPulse 2.6s ease-out infinite;
}
.hero-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--green); animation: heroRipple 2.6s ease-out infinite; }
@keyframes heroPulse { 0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(.5); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 60% { opacity: .5; } }
@keyframes heroRipple { 0%, 15% { transform: scale(.4); opacity: 0; } 20% { opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.hero-pointer { position: absolute; left: 51%; top: 57%; width: 26px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); }
.hero-pointer path { fill: #fff; stroke: #000; stroke-width: 1.5; }
.hero-tag { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); background: var(--green); color: var(--ink); font-weight: 800; font-size: 13px; padding: 6px 10px; white-space: nowrap; box-shadow: var(--glow); }
.prompt { color: var(--dim); margin: 0 0 18px; font-size: 15px; }
.prompt b { color: var(--green); }
.cursor-block { display: inline-block; width: .6em; height: 1.05em; vertical-align: -.15em; background: var(--green); margin-left: 3px; animation: blink 1.1s steps(1) infinite; box-shadow: var(--glow); }
@keyframes blink { 50% { opacity: 0; } }
h1 .line { display: block; white-space: nowrap; }
h1 { margin: 0; font-size: clamp(28px, 4.3vw, 50px); line-height: 1.05; color: var(--green); letter-spacing: -.02em; }
.lead { font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 24px 0 30px; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.meta { color: var(--dim); font-size: 13px; margin-top: 22px; }

/* ── sections ── */
.block { padding: 64px 0 24px; border-top: 1px dashed var(--line); margin-top: 40px; }
h2 { margin: 0 0 26px; color: var(--green); font-size: clamp(22px, 3vw, 28px); text-shadow: var(--glow); }
h2 .dollar { color: var(--dim); text-shadow: none; }
h2 .dim { font-size: .6em; text-shadow: none; }

/* ── explainer tabs ── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  font: inherit; font-size: 14px; cursor: pointer; padding: 8px 12px; color: var(--green);
  background: transparent; border: 1px solid var(--line);
}
.tab[aria-selected="true"] { background: var(--green); color: var(--ink); font-weight: 800; box-shadow: var(--glow); }
.tab:hover:not([aria-selected="true"]) { background: var(--faint); }

/* ── the animated stage (everything inside scales with its width) ── */
.stage {
  container-type: inline-size; isolation: isolate; position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid rgba(61, 255, 115, .45); background: #070c08;
  box-shadow: 0 0 60px rgba(61, 255, 115, .08), inset 0 0 80px rgba(0, 0, 0, .6);
  font-size: 1.6cqw;
}
.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 5cqw; display: flex; align-items: center; gap: 2cqw;
  padding: 0 2cqw; background: rgba(61, 255, 115, .05); border-bottom: 1px solid var(--line); color: var(--text);
  font-size: 1.55cqw;
}
.apple { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--dim); }
.mb-app { font-weight: 700; color: var(--green); }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 2cqw; }
.mb-jester { position: relative; display: grid; place-items: center; }
.mb-jester .jester { width: 2.8cqw; height: 2.8cqw; transition: transform .25s; }
.mb-jester.bump .jester { transform: scale(1.35) rotate(-8deg); }
.mb-check {
  position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: var(--ink);
  background: var(--green); border-radius: 50%; opacity: 0; transform: scale(.4); transition: .25s; box-shadow: var(--glow);
}
.mb-jester.bump .mb-check { opacity: 1; transform: scale(1); }
.mb-count { color: var(--dim); } .mb-count b { transition: color .3s; }
.mb-count.bump b { color: #fff; text-shadow: var(--glow); }
.mb-time { color: var(--dim); }

.scene { position: absolute; inset: 5cqw 0 0 0; opacity: 0; visibility: hidden; transition: opacity .35s; }
.scene.on { opacity: 1; visibility: visible; }

.win { position: absolute; left: 4%; top: 7%; width: 60%; height: 86%; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.win-bar { display: flex; align-items: center; gap: .8cqw; padding: 1cqw 1.2cqw; border-bottom: 1px solid var(--line); }
.win-bar i { width: 1cqw; height: 1cqw; border-radius: 50%; border: 1px solid var(--dim); }
.url { margin-left: 1.2cqw; flex: 1; padding: .4cqw 1cqw; border: 1px solid var(--line); color: var(--text); font-size: 1.3cqw; white-space: nowrap; overflow: hidden; }
.grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: .9cqw; padding: .9cqw; min-height: 0; }
.grid img, .files img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; transition: outline-color .2s, filter .3s; outline: .25cqw solid transparent; outline-offset: .2cqw; }
.target.hit { outline-color: var(--green); }

.files { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw 2.4cqw; padding: 2cqw 3cqw; align-content: center; }
.files figure { margin: 0; text-align: center; }
.files img { aspect-ratio: 1; height: auto; }
.files figcaption { margin-top: .8cqw; font-size: 1.2cqw; color: var(--text); }

/* destination folder */
.folder {
  position: absolute; z-index: 2; right: 4%; top: calc(5cqw + 7%); width: 26%; border: 1px solid var(--line);
  background: var(--panel); transition: opacity .35s;
}
.folder.hide { opacity: 0; }
.folder .win-bar { gap: .8cqw; font-size: 1.25cqw; }
.folder-icon { width: 1.8cqw; height: 1.4cqw; background: var(--green); border-radius: .2cqw; box-shadow: var(--glow); }
.folder-name { color: var(--green); font-weight: 800; }
.folder-count { margin-left: auto; color: var(--dim); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7cqw; padding: .9cqw; }
.fgrid img, .fgrid .slot { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.fgrid .slot { border: 1px dashed var(--line); background-size: cover; background-position: center; transition: box-shadow .3s, border-color .3s; }
.fgrid .slot.filled { border: .2cqw solid var(--green); box-shadow: var(--glow); }

/* mood-board scene */
.dropdown {
  position: absolute; right: 3%; top: 2%; width: 27%; padding: 1.4cqw; background: #050906;
  border: 1px solid var(--green); box-shadow: var(--glow); font-size: 1.3cqw; transform-origin: top right;
  transform: scale(.9); opacity: 0; transition: .3s;
}
.dropdown.open { transform: none; opacity: 1; }
.dd-title { font-size: 2.2cqw; font-weight: 800; color: var(--green); text-shadow: var(--glow); }
.dd-sep { border-top: 1px dashed var(--line); margin: 1cqw 0; }
.dd-line { color: var(--text); padding: .2cqw .4cqw; }
.dd-line.dim { color: var(--dim); }
.dd-pick.lit { background: var(--green); color: var(--ink); font-weight: 800; }
.board {
  position: absolute; left: 5%; top: 7%; width: 62%; height: 86%; padding: 1.4cqw; background: #0d0f14;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1cqw;
}
.masonry { flex: 1; columns: 4; column-gap: .8cqw; min-height: 0; overflow: hidden; }
.masonry img { width: 100%; display: block; margin-bottom: .8cqw; object-fit: cover; opacity: 0; transform: translateY(2cqw) scale(.9); transition: .45s cubic-bezier(.2, .9, .3, 1.2); }
.masonry img:nth-child(odd) { aspect-ratio: 3 / 4; }
.masonry img:nth-child(even) { aspect-ratio: 1; }
.masonry img:nth-child(3n) { aspect-ratio: 4 / 5; }
.masonry img.in { opacity: 1; transform: none; }
.palette { display: flex; gap: .8cqw; height: 3cqw; opacity: 0; transition: opacity .4s; }
.palette.in { opacity: 1; }
.palette i { flex: 1; border-radius: .4cqw; }
.notif {
  position: absolute; right: 3%; bottom: 6%; display: flex; gap: 1.2cqw; align-items: center; width: 27%;
  padding: 1.2cqw; background: #101a12; border: 1px solid var(--line); font-size: 1.25cqw; color: var(--text);
  transform: translateX(120%); transition: transform .5s cubic-bezier(.2, .9, .3, 1.1);
}
.notif.in { transform: none; }
.notif .jester { width: 3.4cqw; height: 3.4cqw; flex: none; }

/* shared actors */
.pointer { position: absolute; left: 90%; top: 90%; width: 2.2cqw; z-index: 5; transition: left 1s cubic-bezier(.45, 0, .25, 1), top 1s cubic-bezier(.45, 0, .25, 1), transform .12s; filter: drop-shadow(0 .3cqw .4cqw rgba(0, 0, 0, .6)); }
.pointer path { fill: #fff; stroke: #000; stroke-width: 1.5; }
.pointer.press { transform: scale(.82); }
.keys {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: .6cqw; transform: translate(2.4cqw, 2.6cqw) scale(.6);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  transform: translate(-50%, -6cqw) scale(.6);
}
.keys.on { opacity: 1; transform: translate(-50%, -6cqw) scale(1); }
kbd {
  display: grid; place-items: center; min-width: 3.4cqw; height: 3.4cqw; padding: 0 .8cqw; font: 800 2cqw var(--mono);
  color: var(--ink); background: var(--green); box-shadow: 0 .35cqw 0 #1d7a3a, var(--glow); border-radius: .4cqw;
}
.keys.down kbd { transform: translateY(.25cqw); box-shadow: 0 .1cqw 0 #1d7a3a, var(--glow); }
.keys .plus { color: var(--green); font-weight: 800; }
.click-word { color: #fff; background: rgba(0, 0, 0, .65); padding: .3cqw .8cqw; font-weight: 700; border: 1px solid var(--line); }
.ring {
  position: absolute; z-index: 4; width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 5%, var(--c, #3dff73) 11%, color-mix(in srgb, var(--c, #3dff73) 25%, transparent) 36%, transparent 62%);
  opacity: 0; transform: scale(.2);
}
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: .35cqw solid var(--c, #3dff73); opacity: .8; }
.ring.go { animation: ring 1s ease-out forwards; }
.ring.go::before { animation: ripple 1s ease-out forwards; }
.ring.go::after { animation: ripple 1s .12s ease-out forwards; }
@keyframes ring { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes ripple { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.toast {
  position: absolute; z-index: 6; padding: .6cqw 1.2cqw; background: var(--green); color: var(--ink); font-weight: 800; font-size: 1.4cqw;
  box-shadow: var(--glow); opacity: 0; transform: translate(-50%, 1cqw); transition: .3s; white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fly { position: absolute; z-index: 7; width: 7cqw; height: 7cqw; object-fit: cover; opacity: 0; pointer-events: none; border: .2cqw solid var(--green); box-shadow: var(--glow); }

/* step captions under the stage */
.steps[hidden] { display: none; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; transition: .3s; opacity: .55; }
.steps li::before { content: "0" counter(s) " "; color: var(--dim); font-weight: 800; }
.steps li.on { opacity: 1; background: var(--faint); border-color: var(--green); box-shadow: 0 0 18px rgba(61, 255, 115, .15); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; font-size: 14px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.dot.green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.works-on { color: var(--dim); font-size: 14px; margin-top: 20px; }

/* setup + heads up */
.install, .warn { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.install li, .warn li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); background: rgba(61, 255, 115, .025); }
.num { font-weight: 800; color: var(--green); text-shadow: var(--glow); font-size: 18px; flex: none; }
.warn li { border-color: rgba(255, 194, 51, .28); background: rgba(255, 194, 51, .03); }
.bang { color: var(--amber); font-weight: 800; flex: none; text-shadow: 0 0 10px rgba(255, 194, 51, .5); }
.warn b { color: #ffe08a; }

.privacy-strip { display: flex; gap: 28px; align-items: center; }
.privacy-strip h2 { margin-bottom: 10px; }
.privacy-strip p { margin: 0; }

details { border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 10px; }
details[open] { background: var(--faint); }
summary { cursor: pointer; color: var(--green); font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "> "; color: var(--dim); }
details[open] summary::before { content: "v "; }
details p { margin: 10px 0 0; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 40px; padding-bottom: 50px; color: var(--dim); font-size: 13px; border-top: 1px dashed var(--line); margin-top: 60px; }
.footer a { color: var(--dim); }

/* small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 300px; margin-top: 10px; }
}
@media (max-width: 720px) {
  nav a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li { opacity: 1; }
  .privacy-strip { flex-direction: column; align-items: flex-start; }
  .wordmark { height: 16px; width: calc(16px * 1518 / 272); }
  .inline-btn { display: inline-block; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Matrix cursor trail */
.trail { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
