@font-face {
  font-family: "Fraunces Soft";
  src: url("/fonts/Fraunces-Soft.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Light: morning fog. Dark: the séance room. */
:root {
  --bg: #EEEDF7;
  --bg-deep: #E2E0F2;
  --surface: #FFFFFF;
  --ink: #1F1A3D;
  --muted: #59537E;
  --line: #CFCBE6;
  --glow: #0E7A68;        /* ectoplasm, darkened for contrast on fog */
  --glow-soft: #7FE9C8;
  --lilac: #5B47C9;
  --lilac-soft: #B9A6FF;
  --button-ink: #FFFFFF;
  --aura-a: rgba(127, 233, 200, .45);
  --aura-b: rgba(138, 116, 242, .30);
  --floor: rgba(31, 26, 61, .14);
  --echo: .22;

  --display: "Fraunces Soft", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-l: 28px;
  --radius-s: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15122B;
    --bg-deep: #0F0D22;
    --surface: #1F1A3C;
    --ink: #ECE8FF;
    --muted: #A9A2CF;
    --line: #322B5C;
    --glow: #8EF0D0;
    --glow-soft: #8EF0D0;
    --lilac: #B9A6FF;
    --lilac-soft: #6E5BD6;
    --button-ink: #13102A;
    --aura-a: rgba(127, 233, 200, .22);
    --aura-b: rgba(138, 116, 242, .30);
    --floor: rgba(0, 0, 0, .45);
    --echo: .16;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at 80% -10%, var(--aura-b), transparent 70%),
    radial-gradient(50rem 30rem at -10% 30%, var(--aura-a), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--glow); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: .5rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 22ch;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
}

p { margin: 0; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .95rem;
}
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .4rem .9rem;
  border-radius: 999px;
}

/* Sections share one rhythm */
main > section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
main > .hero { padding-top: clamp(2rem, 6vw, 5rem); }

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 13ch;
  text-shadow: 0 0 .6em color-mix(in srgb, var(--glow-soft) 22%, transparent);
}

.lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.fineprint {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--glow);
  color: var(--button-ink);
  box-shadow: 0 0 0 0 transparent, 0 10px 30px -12px var(--glow);
}
.button.primary:hover { background: color-mix(in srgb, var(--glow) 88%, var(--ink)); }
.button.quiet {
  color: var(--ink);
  border-color: var(--line);
}
.button.quiet:hover { border-color: var(--muted); }

/* The apparition itself: the one loud thing on the page */
.apparition {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 30rem;
  width: 100%;
  justify-self: center;
}
.aura {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, var(--aura-a), transparent 60%),
    radial-gradient(circle at 60% 65%, var(--aura-b), transparent 62%);
  filter: blur(18px);
}
.specter {
  position: relative;
  width: 78%;
  height: auto;
  overflow: visible;
}
.specter .floor { fill: var(--floor); transform-box: fill-box; transform-origin: center; }
.specter .echo { opacity: var(--echo); }
.specter .echo-2 { opacity: calc(var(--echo) * .5); }

@media (prefers-reduced-motion: no-preference) {
  .specter .ghost  { animation: drift 7s ease-in-out infinite; }
  .specter .echo-1 { animation: drift 7s ease-in-out infinite; animation-delay: -6.3s; }
  .specter .echo-2 { animation: drift 7s ease-in-out infinite; animation-delay: -5.6s; }
  .specter .floor  { animation: shadow 7s ease-in-out infinite; }
  .specter .ghost, .specter .echo { transform-box: view-box; }
}
@media (prefers-reduced-motion: reduce) {
  .specter .echo { display: none; }
  html { scroll-behavior: auto; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(3px, -7px) rotate(1.5deg); }
  60%      { transform: translate(-2px, -3px) rotate(-1deg); }
}
@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  30%      { transform: scaleX(.82); opacity: .7; }
  60%      { transform: scaleX(.92); opacity: .85; }
}

/* How it works: a real sequence, so it gets numbers and a trail */
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  right: 1.5rem;
  border-top: 2px dotted var(--line);
}
.steps li {
  counter-increment: step;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.25rem;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background: var(--bg);
  border: 2px solid var(--glow);
  color: var(--glow);
  font: 600 1.25rem/1 var(--display);
  position: relative;
}
.steps p { margin-top: .6rem; color: var(--muted); max-width: var(--measure); }
.steps .aside { font-size: .92rem; font-style: italic; }

/* Features: a plain two-column list, no cards */
.feature-list {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 2.5rem;
}
.feature-list > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.feature-list dt {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
}
.feature-list dd {
  margin: .6rem 0 0;
  color: var(--muted);
  max-width: var(--measure);
}
.glyph {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FAQ */
.qa {
  margin-top: 2.5rem;
  max-width: 46rem;
  border-top: 1px solid var(--line);
}
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-25%) rotate(45deg);
  transition: transform .2s ease;
}
.qa details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.qa details p {
  padding: 0 0 1.25rem;
  color: var(--muted);
  max-width: var(--measure);
}
@media (prefers-reduced-motion: reduce) {
  .qa summary::after { transition: none; }
}

/* Download: the lit room at the end of the hall */
.release {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-l);
  background:
    radial-gradient(40rem 20rem at 100% 0%, var(--aura-b), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.release-status { color: var(--muted); }

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
}
.release-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.release-date { color: var(--muted); }
.release-notes {
  margin-top: .75rem;
  max-width: var(--measure);
  color: var(--muted);
  white-space: pre-line;
}

.installers {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .75rem;
}
.installer {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  height: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.installer:hover { border-color: var(--glow); }
.installer-name { font-weight: 600; }
.installer-meta { font-size: .9rem; color: var(--muted); }
.installer.is-yours {
  background: var(--glow);
  border-color: var(--glow);
  color: var(--button-ink);
}
.installer.is-yours .installer-meta { color: inherit; opacity: .8; }
.installer.is-yours:hover { background: color-mix(in srgb, var(--glow) 88%, var(--ink)); }

.release-extra {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem 3rem;
  font-size: .95rem;
  color: var(--muted);
}
.release-extra h4 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: var(--ink);
}
.source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin-top: .5rem;
}
.source-url {
  margin-top: .4rem;
  font: .8125rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.copy {
  font: inherit;
  font-size: .875rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.copy:hover { border-color: var(--muted); }

.soon h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.soon p { margin-top: .75rem; max-width: var(--measure); color: var(--muted); }
.soon .button { margin-top: 1.5rem; }
.soon .button.quiet { color: var(--ink); }

/* Footer */
.foot {
  max-width: 72rem;
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  font-size: .9rem;
  color: var(--muted);
}
.foot-brand { display: inline-flex; align-items: center; gap: .6rem; }
.foot-legal { flex-basis: 100%; }

/* Narrow screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .apparition { max-width: 18rem; grid-row: 1; margin-bottom: -1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .steps::before {
    top: 1.4rem;
    bottom: 1.4rem;
    left: 1.4rem;
    right: auto;
    border-top: 0;
    border-left: 2px dotted var(--line);
  }
  .steps li { padding-left: 4.25rem; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .feature-list { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
}

@media (max-width: 560px) {
  .top nav a:not(.nav-cta) { display: none; }
  .hero-actions .button { flex: 1 1 100%; }
}

.platforms {
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.section-note {
  margin-top: .75rem;
  color: var(--muted);
}
.release-lead { margin-top: 1.5rem; color: var(--ink); }
.release-lead + .installers { margin-top: 1rem; }
