/* Sous — shared styles for the landing + download pages. */
:root {
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --muted: rgba(255, 255, 255, 0.72);
  --night: radial-gradient(120% 100% at 50% 0%, #1a1a1f 0%, #0a0a0c 60%, #000 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: #fff;
  background: #000;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---- Landing hero ---- */
.stage {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #050505;
}

.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.stage__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    rgba(0, 0, 0, 0.22);
}

.content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

/* Minimal "Coming soon on the App Store" badge (non-interactive) */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
.appstore__logo {
  width: 21px;
  height: 25px;
  display: block;
}
.appstore__label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.appstore__small {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.appstore__big {
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---- Footer (shared) ---- */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.85rem;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer a,
.footer button,
.footer select {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer a:hover,
.footer button:hover,
.footer select:hover {
  color: #fff;
}
.footer a:focus-visible,
.footer button:focus-visible,
.footer select:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}
.footer .sep {
  opacity: 0.4;
}
.linklike {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.lang select {
  font: inherit;
  font-size: 0.82rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0 0.1rem;
}
.lang select option {
  color: #000; /* readable in the native dropdown */
}

/* ---- Manifesto modal ---- */
.manifesto {
  width: min(560px, calc(100vw - 2.5rem));
  max-height: calc(100svh - 3rem);
  overflow: auto;
  margin: auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(18, 18, 20, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.manifesto::backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.manifesto[open] {
  animation: pop 0.25s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.manifesto__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -0.5rem -0.5rem 0 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.manifesto__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.manifesto__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.manifesto__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
}
.manifesto__body p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
}
.manifesto__sign {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}
.manifesto__role {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---- 404 page ---- */
.notfound {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--night);
}
.notfound h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 7rem);
  line-height: 1;
  margin: 0;
}
.notfound p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.notfound a {
  margin-top: 0.75rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.notfound a:hover {
  border-bottom-color: #fff;
}

/* ---- Manifesto narration control ---- */
.manifesto__audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.manifesto__audio:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.manifesto__audio:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.manifesto__audio svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}
.manifesto__audio .icon-pause {
  display: none;
}
.manifesto__audio.is-playing .icon-play {
  display: none;
}
.manifesto__audio.is-playing .icon-pause {
  display: block;
}

/* ---- Mobile: a touch more dim for legibility ---- */
@media (max-width: 600px) {
  .stage__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.65) 100%
      ),
      rgba(0, 0, 0, 0.28);
  }
}

/* Reduced motion: hide the video, skip animations */
@media (prefers-reduced-motion: reduce) {
  .stage__video {
    display: none;
  }
  .manifesto[open] {
    animation: none;
  }
}
