/* S-Launcher website. Shares the launcher's look: a dark, blurred hallway behind frosted
   panels, warm amber for actions, and green for status. */
:root {
  color-scheme: dark;
  --canvas: #141611;
  --paper: #f1eedb;
  --muted: #acb197;
  --amber: #e6d28b;
  --amber-hover: #f1e2ad;
  --accent: #b7ce97;
  --glass: rgba(37, 40, 31, .62);
  --glass-strong: rgba(30, 33, 25, .82);
  --well: rgba(18, 20, 15, .55);
  --edge: rgba(241, 238, 219, .1);
  --edge-strong: rgba(241, 238, 219, .18);
  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .38);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--paper);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* The room behind everything: the hallway, blurred and darkened, lit from above. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background: url("/img/backdrop.webp") center / cover no-repeat, var(--canvas);
  transform: scale(1.06);
}
body::after {
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(230, 210, 139, .07), transparent 38%),
    radial-gradient(ellipse at 50% 30%, transparent 0, rgba(9, 10, 7, .55) 70%, rgba(6, 7, 5, .85) 100%);
}

a { color: var(--amber); text-underline-offset: .22em; }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

img { display: block; max-width: 100%; }

.shell { width: min(100% - 2rem, 76rem); margin-inline: auto; }

.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(241, 238, 219, .06);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--accent);
  font: 700 .74rem/1.4 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- Top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 22, 17, .72);
  border-bottom: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.topbar .shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--paper); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand strong { display: block; font: 700 1.12rem/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.topnav a, .button { white-space: nowrap; }
.brand small { display: block; color: var(--amber); font: 700 .62rem/1.4 var(--font); letter-spacing: .14em; }
.topnav { display: flex; align-items: center; gap: .25rem; }
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 .85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.topnav a:hover { background: rgba(241, 238, 219, .07); color: var(--paper); }
.topnav a[aria-current="page"] { color: var(--paper); background: rgba(230, 210, 139, .1); }

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(to bottom, #efdea0, var(--amber));
  color: #1c1d15;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(230, 210, 139, .25), 0 10px 26px rgba(230, 210, 139, .14);
  transition: transform .14s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { color: #1c1d15; background: linear-gradient(to bottom, #f6e9b8, var(--amber-hover)); box-shadow: 0 0 0 1px rgba(230, 210, 139, .4), 0 12px 30px rgba(230, 210, 139, .22); }
.button:active { transform: scale(.985); }
.button svg { width: 18px; height: 18px; flex: none; }
.button.quiet {
  background: rgba(241, 238, 219, .07);
  color: var(--paper);
  border-color: var(--edge-strong);
  box-shadow: none;
}
.button.quiet:hover { background: rgba(241, 238, 219, .12); color: var(--paper); }
.button.small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .92rem; border-radius: 10px; }
button.plain {
  min-height: 2.75rem;
  padding: 0 .4rem;
  border: 0;
  background: none;
  color: var(--amber);
  font: 600 .95rem var(--font);
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}

main { padding-block: 1.5rem 3rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(26rem, 62vh, 36rem);
  display: flex;
  align-items: flex-end;
  padding: 0;
  isolation: isolate;
}
/* A still copy of the first picture sits underneath, so the hero is never empty while a slide fades in. */
.hero-slides { position: absolute; inset: 0; z-index: -2; background: url("/img/shot-hero.webp") center / cover no-repeat; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshow 42s infinite;
}
.hero-slides img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 6s; }
.hero-slides img:nth-child(3) { animation-delay: 12s; }
.hero-slides img:nth-child(4) { animation-delay: 18s; }
.hero-slides img:nth-child(5) { animation-delay: 24s; }
.hero-slides img:nth-child(6) { animation-delay: 30s; }
.hero-slides img:nth-child(7) { animation-delay: 36s; }
@keyframes slideshow {
  0% { opacity: 0; transform: scale(1.04); }
  3% { opacity: 1; }
  14.3% { opacity: 1; }
  17.3% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 15, 11, .92) 0, rgba(14, 15, 11, .66) 34%, rgba(14, 15, 11, .14) 70%, transparent),
    linear-gradient(to top, rgba(14, 15, 11, .9) 0, transparent 46%);
}
.hero-copy { padding: clamp(1.5rem, 4.5vw, 3.25rem); max-width: 40rem; }
.hero-title { width: min(100%, 34rem); height: auto; margin: 0 0 1.1rem; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { margin: 0 0 1.5rem; color: #d9d6c4; font-size: clamp(1rem, 1.9vw, 1.16rem); max-width: 36rem; }
.lead strong { color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.facts li {
  padding: .3rem .75rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: rgba(14, 15, 11, .5);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.facts li strong { color: var(--paper); }
.dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(183, 206, 151, .18); vertical-align: .05em; }

/* ---- Sections ---- */
.section { margin-top: 1.25rem; padding: clamp(1.4rem, 3.4vw, 2.4rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.05rem)/1.15 var(--display); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); max-width: 34rem; }

/* Screenshot grid with a lightbox that needs no script. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-small);
  border: 1px solid var(--edge);
  aspect-ratio: 16 / 9;
  background: var(--well);
  color: var(--paper);
  text-decoration: none;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.shot span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem .85rem .6rem;
  background: linear-gradient(to top, rgba(12, 13, 9, .86), transparent);
  font-size: .85rem;
  font-weight: 700;
}
.shot:hover { color: var(--paper); border-color: var(--edge-strong); }
.shot:hover img { transform: scale(1.04); filter: brightness(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 9, 6, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox:target { display: grid; animation: fade-in .2s ease; }
.lightbox figure { margin: 0; max-width: min(100%, 90rem); }
.lightbox img { width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: var(--radius-small); border: 1px solid var(--edge-strong); }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; color: var(--paper); font-weight: 700; }
.lightbox nav { display: flex; gap: .5rem; }
.lightbox .backdrop-link { position: absolute; inset: 0; z-index: -1; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: .8rem; }
.feature {
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-small);
  background: var(--well);
}
.feature svg { width: 26px; height: 26px; color: var(--amber); }
.feature h3 { margin: .8rem 0 .3rem; font: 700 1.06rem/1.3 var(--display); }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Download */
.download { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.download-card { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--edge); border-radius: var(--radius-small); background: var(--well); }
.download-card h3 { margin: 0 0 .2rem; font: 700 1.35rem/1.25 var(--display); }
.download-form { display: grid; justify-items: start; gap: 1rem; margin-top: 1.1rem; }
.consent { display: flex; align-items: flex-start; gap: .65rem; color: var(--muted); font-size: .95rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--amber); }
.consent label { color: var(--paper); font-weight: 600; }
.small-print { margin: .8rem 0 0; color: var(--muted); font-size: .88rem; }
.small-print strong { color: var(--paper); }

.steps { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  gap: .1rem;
  padding: .95rem 1rem .95rem 3.5rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-small);
  background: var(--well);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: .95rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(230, 210, 139, .14);
  border: 1px solid rgba(230, 210, 139, .4);
  color: var(--amber);
  font-weight: 800;
  font-size: .85rem;
}
.steps li strong { color: var(--paper); }
.steps li p { margin: 0; color: var(--muted); font-size: .92rem; }
.steps li[aria-current="step"] { border-color: rgba(230, 210, 139, .45); background: rgba(230, 210, 139, .07); }

/* ---- Sign-up page ---- */
.page-head { padding: clamp(1.4rem, 3.4vw, 2.4rem); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 15, 11, .94) 30%, rgba(14, 15, 11, .55)), url("/img/shot-level1.webp") center / cover;
  opacity: .9;
}
.page-head h1 { margin: 0 0 .5rem; font: 700 clamp(2rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -.025em; }
.page-head p { margin: 0; color: #d9d6c4; max-width: 40rem; }
.registration { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.form-panel, .aside { padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-panel h2, .aside h2 { margin: 0 0 .6rem; font: 700 1.4rem/1.25 var(--display); }
form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; }
label { display: block; margin-bottom: .4rem; font-weight: 700; }
input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .95rem;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: rgba(12, 13, 10, .65);
  color: var(--paper);
  font: 1rem var(--font);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input[type="email"]:focus, input[type="text"]:focus { outline: none; border-color: rgba(230, 210, 139, .7); box-shadow: 0 0 0 3px rgba(230, 210, 139, .16); }
.hint { margin: .45rem 0 0; color: var(--muted); font-size: .88rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.body-copy { color: var(--muted); }
.status { min-height: 1.6em; margin: 1rem 0 0; color: var(--muted); }
.status[data-error="true"] { color: #e79b7f; }
.policy { margin: 1.25rem 0 0; color: var(--muted); font-size: .9rem; }
#verify-title, #complete-title { margin-top: 0; font: 700 1.4rem/1.25 var(--display); }

/* ---- Legal page ---- */
.legal { padding: clamp(1.4rem, 3.6vw, 2.8rem); max-width: 54rem; margin-inline: auto; }
.legal h1 { margin: 0 0 .3rem; font: 700 clamp(2rem, 5vw, 2.8rem)/1.1 var(--display); letter-spacing: -.02em; }
.legal .meta { margin: 0 0 1.2rem; color: var(--muted); font-size: .9rem; }
.legal h2 { margin: 2.2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--edge); font: 700 1.5rem/1.2 var(--display); }
.legal h3 { margin: 1.4rem 0 .35rem; color: var(--amber); font: 700 1.04rem/1.3 var(--display); }
.legal p { color: #d4d1bf; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.toc a {
  padding: .35rem .85rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: rgba(241, 238, 219, .05);
  color: var(--paper);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover { background: rgba(241, 238, 219, .1); }

/* ---- Footer ---- */
footer { padding-block: 1.25rem 2.25rem; color: var(--muted); font-size: .88rem; }
footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--edge); }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--paper); }

/* ---- Smaller screens ---- */
@media (max-width: 56rem) {
  .download, .registration { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .shell { width: calc(100% - 2rem); }
  /* The hero and the download section carry the same links on a phone. */
  .topnav { display: none; }
  .hero { min-height: 30rem; }
  .hero-slides { inset: 0 0 auto 0; height: 15rem; }
  .hero-copy { padding-top: 11rem; }
  .hero::after { background: linear-gradient(to bottom, rgba(14, 15, 11, .1) 0, rgba(14, 15, 11, .3) 6.5rem, rgba(14, 15, 11, .9) 12.5rem, rgba(14, 15, 11, .97) 14.5rem, rgba(14, 15, 11, .98)); }
  .actions .button { flex: 1 1 100%; }
  .lightbox figcaption { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { animation: none; }
  .hero-slides img:not(:first-child) { display: none; }
  .button, .shot img, .topnav a { transition: none; }
  .lightbox:target { animation: none; }
}

@media (forced-colors: active) {
  .button, .glass, .feature, .steps li { border: 1px solid CanvasText; }
}
