/* Noctave website (task 4.3): home, legal pages, 404. Tokens from docs/DESIGN.md,
   self-hosted fonts (docs/ASSETS.md). No inline styles anywhere: the pages' CSP forbids them. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("/fonts/GreatVibes-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("/fonts/AlegreyaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("/fonts/AlegreyaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A12;
  --bg-elevated: #12121E;
  --bg-overlay: #1A1A2A;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #F2F0FA;
  --text-secondary: #A6A3BD;
  --right-hand: #5CE1FF;
  --right-hand-light: #B8F1FF;
  --left-hand: #B28DFF;
  --left-hand-light: #DCCBFF;
  --accent: #FFC46B;
  --perfect: #B8FF6B;
  --good: #6BF2B0;
  --ok: #8FB8FF;
  --miss: #FF6B8A;
  --font-logo: "Great Vibes", "Fraunces", cursive;
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(92, 225, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(178, 141, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(255, 196, 107, 0.05), transparent 70%),
    var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* A quiet sky: tiny stars drawn by gradients, no image. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 27% 72%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 33%, rgba(184, 241, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 66% 58%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 79% 26%, rgba(220, 203, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 81%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 6% 90%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(1px 1px at 94% 6%, rgba(255, 255, 255, 0.45), transparent 60%);
}

a {
  color: var(--right-hand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--right-hand-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  color: var(--text-primary);
  font-weight: 500;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #1A1206;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px 24px;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 18, 0.72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.topbar.scrolled {
  border-bottom-color: rgba(255, 196, 107, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: var(--text-primary);
  text-decoration: none;
  text-shadow: 0 0 24px rgba(92, 225, 255, 0.2);
}

.brand:hover {
  color: var(--text-primary);
}

.brand img {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* « Plus » in the menu: gold, with the glint of the app's Plus badge. */
.nav a.plus-link {
  padding-left: 30px;
  color: var(--accent);
  background: var(--glint, none) 12px 50% / 12px 12px no-repeat;
}

.nav a.plus-link:hover,
.nav a.plus-link[aria-current="page"] {
  color: #FFE2B0;
  background-color: rgba(255, 196, 107, 0.1);
}

.languages {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.languages a {
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.languages a:hover {
  color: var(--text-primary);
}

/* Touch targets of 44 px at least, without changing the pills' look. */
.nav a,
.languages a {
  position: relative;
}

.nav a::after,
.languages a::after {
  content: "";
  position: absolute;
  inset: -7px -2px;
}

.languages a[aria-current="true"] {
  background: var(--bg-overlay);
  color: var(--accent);
}

/* "This page also exists in English", shown by site.js to visitors of the other language. */
.lang-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-overlay);
  color: var(--text-secondary);
  font-size: 14px;
}

.lang-banner a {
  font-weight: 500;
}

.lang-banner button {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
}

/* ------------------------------------------------------------------ Store badges */

/* Until the store links exist (task 7.2), each badge is a "soon" plaque of lacquer. */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border: 1px solid rgba(255, 196, 107, 0.4);
  border-radius: 16px;
  background: var(--lacquer, var(--bg-elevated));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.2;
}

a.store-badge:hover {
  color: var(--text-primary);
  border-color: rgba(255, 196, 107, 0.75);
  box-shadow: 0 0 24px rgba(255, 196, 107, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge small {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-badge span {
  font-size: 17px;
  font-weight: 500;
}

.store-badge.soon {
  border-style: dashed;
}

.store-badge.soon small {
  color: var(--accent);
}

/* ------------------------------------------------------------------ Portal (home) */

/* The app's title screen, the « Portail »: a night sky, the logo, three arches. */
.portal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px var(--gutter) 72px;
}

.portal-head {
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 196, 107, 0.3);
  border-radius: 999px;
  background: rgba(18, 17, 32, 0.8);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.portal h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(68px, 11vw, 132px);
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(92, 225, 255, 0.35);
}

/* The symbol (web/logo.svg) in front of the wordmark: the full logo. */
.hero-symbol {
  width: 0.82em;
  height: 0.82em;
  flex: none;
}

.hands-line {
  width: 160px;
  height: 2px;
  margin: 20px 0 24px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--left-hand), var(--right-hand));
  box-shadow: 0 0 12px rgba(92, 225, 255, 0.35);
}

.portal .hands-line {
  margin: 16px auto 20px;
}

.tagline {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(10, 10, 18, 0.9);
}

.tagline em {
  font-style: normal;
  background: linear-gradient(to right, var(--left-hand-light), var(--right-hand-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

/* Three arches side by side, on the same line; the middle one the tallest. */
.arches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 46px;
}

.arch {
  display: flex;
  flex-direction: column;
  padding: calc(var(--rise) + 22px) 28px 28px;
}

.arch.side {
  --rise: 48px;
  min-height: 560px;
}

.arch.center {
  --rise: 64px;
  padding-bottom: 0;
  text-align: center;
}

.arch > * {
  position: relative;
  z-index: 2;
}

.arch .keystone {
  position: absolute;
  z-index: 3;
}

.arch-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arch-label.cyan,
.label.cyan {
  color: var(--right-hand);
}

.label.mint {
  color: var(--good);
}

.arch h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.2;
}

.arch h2 small {
  display: block;
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
}

.arch p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.arch.center p {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* The chapter's big numeral, as a watermark. */
.arch .arch-numeral {
  position: absolute;
  z-index: 0;
  top: calc(var(--rise) + 4px);
  right: 22px;
  margin: 0;
  color: rgba(255, 196, 107, 0.12);
  font-family: var(--font-title);
  font-size: 150px;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 196, 107, 0.32);
  border-radius: 999px;
  background: rgba(255, 196, 107, 0.07);
  color: #FFE2B0;
  font-size: 13px;
  font-weight: 500;
}

.chips svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

/* The glimpse of the journey map: medallions on a lit path, the next level pulsing. */
.glimpse {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 20px;
  overflow: visible;
}

.glimpse .trail-glow {
  fill: none;
  stroke: rgba(255, 196, 107, 0.28);
  stroke-width: 16;
  stroke-linecap: round;
}

.glimpse .trail {
  fill: none;
  stroke: #FFC46B;
  stroke-width: 4;
  stroke-linecap: round;
}

.glimpse .trail-ahead {
  fill: none;
  stroke: rgba(255, 196, 107, 0.55);
  stroke-width: 3;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
}

.glimpse text {
  fill: #1B1530;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 300;
  text-anchor: middle;
}

.glimpse .ring {
  fill: none;
  stroke: #FFC46B;
  stroke-width: 2.5;
}

.glimpse .pulse {
  fill: rgba(255, 196, 107, 0.25);
  stroke: rgba(255, 196, 107, 0.8);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: next-pulse 1.6s ease-out infinite;
}

@keyframes next-pulse {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.9); }
}

.glimpse .locked circle {
  fill: #14131F;
  stroke: rgba(255, 255, 255, 0.16);
}

.glimpse .locked rect,
.glimpse .locked path {
  fill: none;
  stroke: #A6A3BD;
  stroke-width: 2;
}

.arch .key {
  align-self: center;
  margin-top: auto;
}

/* The app's own title screen, in the middle arch. */
.arch-screen {
  margin: 0 0 22px;
}

.arch-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0A0A12;
  box-shadow:
    0 0 0 1px rgba(255, 196, 107, 0.45),
    0 0 0 5px rgba(10, 10, 18, 0.6),
    0 0 0 6px rgba(255, 196, 107, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.55);
}

/* The hero key, astride the bottom of the arch (36 px out). */
.arch-hero {
  display: flex;
  justify-content: center;
  margin: 12px 0 -46px;
}

.arch-hero .key {
  margin-top: 0;
}

/* Note reading, a violet plaque with its emblem. */
.reading-plaque {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(92, 225, 255, 0.10), transparent),
    linear-gradient(135deg, rgba(150, 110, 240, 0.34), rgba(70, 50, 130, 0.22));
  box-shadow:
    inset 0 0 0 1px rgba(178, 141, 255, 0.5),
    0 0 28px rgba(178, 141, 255, 0.2);
}

.reading-plaque .emblem {
  width: clamp(64px, 5.5vw, 96px);
  height: auto;
  flex: none;
  overflow: visible;
}

.emblem-notes {
  filter: drop-shadow(0 0 4px rgba(184, 241, 255, 0.6));
}

.arch .reading-plaque p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.reading-plaque strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 300;
}

.portal-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

/* ------------------------------------------------------------------ Captures */

/* The app in pictures: each capture in an Écrin frame, its text beside it, sides alternating. */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin: 0 0 80px;
}

.showcase:last-child {
  margin-bottom: 0;
}

.showcase:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

.showcase:nth-of-type(even) .shot {
  order: 2;
}

/* A capture opens full size when touched. */
.shot-link {
  display: block;
  border-radius: 10px;
}

.shot-link:hover img {
  box-shadow:
    0 0 0 1px rgba(255, 196, 107, 0.7),
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.showcase-text .label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.showcase-text h3 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.showcase-text p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.showcase-text .label.cyan {
  color: var(--right-hand);
}

.showcase-text .label.mint {
  color: var(--good);
}

/* ------------------------------------------------------------------ Sections */

.section {
  position: relative;
  padding: 88px var(--gutter);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .hands-line {
  margin: 16px auto 20px;
  width: 120px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
}

.section-head .ornament {
  margin: 16px auto 20px;
}

/* Cards: the app's lacquer with a fine gold line (the work screens' rule, DESIGN.md 7.0c). */
.card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 196, 107, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 160px),
    var(--lacquer, var(--bg-elevated));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.card > :last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 107, 0.32);
  box-shadow: 0 0 36px rgba(var(--tone, 255, 196, 107), 0.12), 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* A highlighted card across the whole grid (the Nocturnes collection). */
.feature.wide {
  grid-column: 1 / -1;
}

.feature.wide > p:not(.tag) {
  max-width: 72ch;
}

.feature .medal {
  margin-bottom: 18px;
}

.feature .tag {
  display: inline-block;
  margin: 0 0 14px;
  color: rgb(var(--tone, 255, 196, 107));
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature li {
  padding: 3px 12px;
  border: 1px solid rgba(255, 196, 107, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.5);
  color: var(--text-primary);
  font-size: 13px;
}

/* From light to score: three steps linked by a light path. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 16%;
  right: 16%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--right-hand), var(--left-hand), var(--accent));
  box-shadow: 0 0 14px rgba(178, 141, 255, 0.45);
}

.steps li {
  position: relative;
  text-align: center;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, var(--step-light, #C9F5FF), var(--step, var(--right-hand)) 75%) padding-box,
    linear-gradient(to bottom, #FFE7B5, #FFC46B 50%, #C98A3C) border-box;
  color: #14131F;
  font-family: var(--font-title);
  font-size: 28px;
  box-shadow:
    inset 0 0 0 2px #14131F,
    0 0 28px color-mix(in srgb, var(--step, var(--right-hand)) 55%, transparent);
}

.steps li:nth-child(2) { --step: var(--left-hand); --step-light: #E3D6FF; }
.steps li:nth-child(3) { --step: var(--accent); --step-light: #FFEBC9; }

.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 24px;
}

.steps p {
  max-width: 320px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Short promises. */
.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promises li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(255, 196, 107, 0.14);
  border-radius: 20px;
  background: var(--lacquer, rgba(18, 18, 30, 0.7));
  color: var(--text-secondary);
  font-size: 15px;
}

.promises svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  color: var(--good);
}

.promises strong {
  display: block;
  margin-bottom: 2px;
}

/* Coming next. */
.soon-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.soon-list .card {
  border-style: dashed;
  border-color: rgba(255, 196, 107, 0.3);
  box-shadow: none;
}

.pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 196, 107, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The optional account. */
.account {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
}

.account h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 36px);
}

.account p {
  margin: 0;
  color: var(--text-secondary);
}

.account-links {
  display: grid;
  gap: 16px;
}

.account-links .key {
  width: 100%;
}

/* Noctave Plus, an important moment: an ornate panel with its medallion. */
.plus-teaser {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 40px 40px;
  text-align: center;
}

.plus-teaser h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
}

.plus-teaser p {
  max-width: 640px;
  margin: 0 auto 12px;
  color: var(--text-secondary);
}

.plus-teaser .pill {
  margin-bottom: 8px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ Legal pages */

.page {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
}

.page h1 {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
}

.page .lead {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 18px;
}

.updated {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 14px;
}

.summary {
  margin: 0 0 32px;
  box-shadow:
    0 0 0 1px rgba(255, 196, 107, 0.12),
    0 0 48px rgba(255, 196, 107, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.summary h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 24px;
}

.summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.summary li {
  margin: 6px 0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text-primary);
  border-color: var(--stroke-strong);
}

.legal section {
  margin: 0 0 40px;
}

.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
}

.legal h2 .num {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.legal h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 500;
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.legal li {
  margin: 4px 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  margin: 0 0 12px;
  padding: 20px 24px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--bg-elevated);
}

.facts dt {
  color: var(--text-secondary);
  font-size: 14px;
}

.facts dd {
  margin: 0;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.table-wrap {
  margin: 0 0 12px;
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-primary);
  font-weight: 500;
}

td {
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  padding: 14px 18px;
  border-left: 2px solid var(--left-hand);
  border-radius: 0 12px 12px 0;
  background: rgba(178, 141, 255, 0.06);
}

/* ------------------------------------------------------------------ 404 */

.lost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}

.lost .big {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(88px, 18vw, 160px);
  line-height: 1;
  background: linear-gradient(to bottom, var(--left-hand-light), var(--right-hand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(92, 225, 255, 0.3));
}

.lost h1,
.lost h2 {
  margin: 8px 0 8px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 28px;
}

.lost h2 {
  margin-top: 24px;
}

.lost p {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.lost .hero-actions {
  justify-content: center;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ Footer */

.footer {
  margin-top: auto;
  padding: 48px var(--gutter) 32px;
  border-top: 1px solid rgba(255, 196, 107, 0.14);
  background: rgba(10, 10, 18, 0.6);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .brand {
  margin: 0 0 8px;
  font-size: 32px;
}

.footer p {
  margin: 0 0 8px;
}

.footer h2 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 0 0 8px;
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--text-primary);
}

.footer .footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  font-size: 12px;
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 1100px) {
  /* The middle arch on top, the two others side by side below it. */
  .arches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 88px;
    max-width: 760px;
  }

  .arch.center {
    grid-column: 1 / -1;
    order: -1;
  }

  .arch.side {
    min-height: 0;
  }
}

@media (max-width: 1000px) {
  .showcase,
  .showcase:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase:nth-of-type(even) .shot {
    order: 0;
  }

  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .features,
  .soon-list,
  .account {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .steps::before {
    top: 32px;
    bottom: 32px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-1px);
    background: linear-gradient(to bottom, var(--right-hand), var(--left-hand), var(--accent));
    opacity: 0.35;
  }

  .steps li p {
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--bg);
  }
}

@media (max-width: 700px) {
  .arches {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 72px;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    font-size: 28px;
  }

  .nav .optional {
    display: none;
  }

  .topbar {
    column-gap: 12px;
  }

  .nav a {
    padding: 8px 9px;
  }

  .portal {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .portal-head {
    margin-bottom: 48px;
  }

  .arch {
    padding-left: 20px;
    padding-right: 20px;
  }

  .arch.side {
    --rise: 40px;
  }

  .arch.center {
    --rise: 48px;
  }

  .arch .arch-numeral {
    font-size: 116px;
  }

  .key.hero {
    padding-left: 28px;
    padding-right: 28px;
    font-size: 18px;
  }

  .hero-lead,
  .section-head p,
  .page .lead {
    font-size: 16px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .card {
    padding: 22px;
  }

  .account,
  .plus-teaser {
    padding-left: 22px;
    padding-right: 22px;
  }

  .shot {
    padding: 10px;
  }

  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 16px 18px;
  }

  .facts dd {
    margin-bottom: 10px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .brand img {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eyebrow::before,
  .glimpse .pulse {
    animation: none;
  }

  .glimpse .pulse {
    opacity: 0;
  }

  .feature,
  .nav a {
    transition: none;
  }

  .feature:hover {
    transform: none;
  }
}
