/* Zaspa website. Plain CSS, no frameworks, no web fonts: system fonts only, so the page
   makes no requests to anyone but its own host. */

:root {
  --night: #0a1222;
  --night-2: #0e1930;
  --snow: #f3f6fb;
  --muted: #a3b5d0;
  --line: rgba(255, 255, 255, 0.09);
  --glow: #ffd27d;
  --radius: 18px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

a { color: inherit; }

h1, h2 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.8rem; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 44rem; }

section { padding: clamp(4rem, 9vw, 7rem) 1.25rem; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: rgba(10, 18, 34, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font: 600 1.35rem/1 var(--serif);
}

.logo-mark { width: 1.4rem; height: 1.4rem; color: var(--glow); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem 0.95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe3a8, #ffc65c);
  color: #241703;
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 32px -10px rgba(255, 190, 80, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -10px rgba(255, 190, 80, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn:focus-visible, .logo:focus-visible, summary:focus-visible, .foot a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-icon { width: 1.25rem; height: 1.25rem; stroke-width: 2.2; }

.badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(36, 23, 3, 0.13);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  box-shadow: none;
}

/* Hero */

.hero {
  text-align: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(40, 78, 140, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 75%, rgba(255, 200, 120, 0.08), transparent 70%),
    var(--night);
}

.eyebrow {
  color: var(--glow);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0.7rem auto 1.1rem;
}

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  color: #c7d4e8;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.cta-note { color: var(--muted); font-size: 0.9rem; margin: 1rem 0 0; }

.status[hidden] { display: none; }

.status {
  display: inline-block;
  margin: 1rem auto 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.95rem;
}

/* The Mac on the page. Sizes inside use cqw, so the whole desktop scales as one picture. */

.device {
  container-type: inline-size;
  max-width: 1080px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.bezel {
  padding: 1.1cqw;
  border-radius: 2.4cqw;
  background: #05070c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 120px -40px rgba(90, 140, 220, 0.35);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.3cqw;
  overflow: hidden;
  background: #0b1426 url(img/wallpaper-2400.jpg) center 62% / cover no-repeat;
  user-select: none;
  -webkit-user-select: none;
}

#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 3.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5cqw;
  background: rgba(8, 12, 24, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12cqw;
  line-height: 1;
  white-space: nowrap;
}

.mb-left, .mb-right { display: flex; align-items: center; gap: 1.5cqw; }
.mb-left b { font-weight: 700; }
.mb-flake { width: 1.35cqw; height: 1.35cqw; stroke-width: 2; }

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12%;
  height: 3.4%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 0.9cqw 0.9cqw;
}

.base {
  position: relative;
  width: 108%;
  margin-left: -4%;
  height: 1.7cqw;
  border-radius: 0 0 2.2cqw 2.2cqw;
  background: linear-gradient(180deg, #c9ced8 0%, #9aa1ae 55%, #5d636e 100%);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8);
}

.base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(180deg, #8d94a1, #b7bdc8);
}

.tip { color: var(--muted); font-size: 0.92rem; margin-top: 1.6rem; }

@container (max-width: 560px) {
  .mb-left span { display: none; }
  .menubar { font-size: 1.8cqw; }
  .mb-flake { width: 2cqw; height: 2cqw; }
}

@media (hover: none) { .tip { display: none; } }

@media (max-width: 700px) {
  .screen { background-image: url(img/wallpaper-1200.jpg); }
  .base { width: 104%; margin-left: -2%; }
}

/* Features */

.section-lead { color: var(--muted); max-width: 40rem; font-size: 1.1rem; margin: 0 0 2.6rem; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.card {
  padding: 1.5rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.card h3 { margin-top: 1.1rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 210, 125, 0.12);
  color: var(--glow);
}

.icon svg { width: 1.55rem; height: 1.55rem; }

/* Out of the way */

.quiet { background: var(--night-2); border-block: 1px solid rgba(255, 255, 255, 0.05); }
.quiet h2 { margin-bottom: 2.4rem; }

.quiet-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) { .quiet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .quiet-grid { grid-template-columns: repeat(4, 1fr); } }

.quiet-item svg { width: 1.9rem; height: 1.9rem; color: #bcd3f2; margin-bottom: 0.8rem; }
.quiet-item p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* Privacy */

.privacy { text-align: center; }
.privacy p { color: #c7d4e8; font-size: 1.15rem; margin: 0; }

.privacy-mark {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(188, 211, 242, 0.25);
  background: rgba(188, 211, 242, 0.06);
  color: #bcd3f2;
}

.privacy-mark svg { width: 2rem; height: 2rem; }

/* Install */

.install { background: var(--night-2); border-block: 1px solid rgba(255, 255, 255, 0.05); }
.install h2 { margin-bottom: 2.2rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps > li {
  counter-increment: step;
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.steps > li::before {
  content: counter(step);
  display: block;
  font: 600 2.4rem/1 var(--serif);
  color: var(--glow);
  margin-bottom: 0.8rem;
}

.steps p { color: var(--muted); margin: 0; }
.steps b { color: var(--snow); font-weight: 600; }

.callout {
  margin-top: 1.6rem;
  padding: 1.4rem 1.5rem 0.6rem;
  border: 1px solid rgba(255, 210, 125, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 210, 125, 0.07);
}

.callout-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 210, 125, 0.18);
  color: var(--glow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.callout li { margin-bottom: 0.35rem; }

.aside { color: var(--muted); font-size: 0.98rem; margin: 1.6rem 0 0; max-width: 46rem; }
.aside b { color: var(--snow); }

/* FAQ */

.faq h2 { margin-bottom: 1.6rem; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.2rem;
  font-weight: 600;
  font-size: 1.05rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  flex: none;
  font: 400 1.5rem/1 var(--sans);
  color: var(--glow);
  transition: transform 0.2s ease;
}

details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0.2rem 1.2rem; }

/* Final call and footer */

.final { text-align: center; padding-top: 2rem; }
.final h2 { margin-bottom: 1.6rem; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot a { text-decoration: none; }
.foot a:hover { color: var(--snow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
