/* Dreamsteps — site styles.
 *
 * The page goes from night (the dream, the hero) to morning (the steps, the
 * content) and back to night once more for the waitlist panel. System fonts
 * only: no third-party requests. Logical properties throughout so Arabic
 * mirrors with dir="rtl" on <html>.
 */

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  /* night sky */
  --night-0: #1b1533;
  --night-1: #2f2557;
  --night-2: #4a3a78;
  --dusk: #8a6a9e;
  --dawn: #f4c3b5;
  --on-night: #fbf6ff;
  --on-night-2: #cdc2e8;

  /* day */
  --paper: #faf7fe;
  --paper-2: #f1ebfa;
  --ink: #2a2242;
  --ink-2: #625a7c;
  --line: #e2d9f0;
  --link: #6340c9;
  --horizon: var(--dawn);

  /* pastel planets, one per area of life */
  --rose: #ffb3c9;
  --lilac: #c7b5ff;
  --sky: #a9d3ff;
  --mint: #a5e7d0;
  --butter: #ffe2a0;
  --peach: #ffc4ab;
  --rose-ink: #3a1d33;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1160px;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  /* Rounded on Apple devices (most of the audience); the system sans elsewhere. */
  --font-display: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15112a;
    --paper-2: #1e1838;
    --ink: #f1ecfb;
    --ink-2: #b1a8cc;
    --line: #342b54;
    --link: #c7b5ff;
    --horizon: #241c45;
  }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.6 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

/* CJK and Arabic read better a touch looser; Korean keeps words whole. */
:lang(ja),
:lang(zh),
:lang(ko) {
  line-height: 1.75;
}

:lang(ko) {
  word-break: keep-all;
}

:lang(ar) {
  line-height: 1.8;
}

h1:lang(ar),
h2:lang(ar),
h3:lang(ar),
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  letter-spacing: 0;
}

/* Language: both inline languages live in the markup; the inactive one is
   hidden. With no script the page stays English (the source default).
   Language buttons and .lang-keep blocks are always shown. */
html[data-lang="ru"] [lang="en"]:not([data-set-lang], .lang-keep),
html:not([data-lang="ru"]) [lang="ru"]:not([data-set-lang], .lang-keep) {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--on-night);
  color: var(--night-0);
  font-weight: 650;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted {
  color: var(--ink-2);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 650 1rem / 1.2 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-rose {
  background: var(--rose);
  color: var(--rose-ink);
  box-shadow: 0 8px 24px -10px rgba(255, 140, 180, 0.8);
}

.btn-rose:hover {
  background: #ffc4d5;
  text-decoration: none;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 21, 51, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  color: var(--on-night);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font: 700 1.1875rem / 1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 8px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--on-night-2);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-night);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.lang-select,
.lang-btn {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-night);
  font: 550 0.9375rem / 1 var(--font-body);
}

.lang-select {
  padding: 0 14px;
  cursor: pointer;
  color-scheme: dark;
}

.lang-select option {
  background: var(--night-1);
  color: var(--on-night);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }
}

/* ---------- hero: the night sky ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -65px; /* the sticky header floats over the sky */
  padding: calc(65px + clamp(40px, 7vw, 96px)) 0 clamp(96px, 12vw, 160px);
  background: linear-gradient(
    180deg,
    var(--night-0) 0%,
    var(--night-1) 52%,
    var(--night-2) 72%,
    var(--dusk) 86%,
    var(--horizon) 100%
  );
  color: var(--on-night);
}

/* A few fixed stars, drawn with gradients so nothing loads. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 35% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 22% 42%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 37% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 48% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 63% 8%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 78% 26%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 91% 14%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 14% 70%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1:lang(ja),
.hero h1:lang(zh),
.hero h1:lang(ko),
.hero h1:lang(ar) {
  line-height: 1.2;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--on-night-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

/* A store the app isn't in yet: shown, never a link. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 18px 6px 14px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: var(--on-night-2);
  font: 650 1rem / 1.15 var(--font-display);
}

.badge svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.badge-text small {
  display: block;
  font: 500 0.75rem / 1.3 var(--font-body);
  opacity: 0.85;
}

/* the map */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 600px);
}

.orbit {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  /* the glow behind the core; also what shows without script or canvas */
  background: radial-gradient(circle at 50% 50%, rgba(255, 236, 248, 0.32) 0, rgba(199, 181, 255, 0.16) 18%, transparent 52%);
}

.orbit-canvas {
  width: 100%;
  height: 100%;
}

.today-card {
  position: absolute;
  inset-inline-start: 0;
  bottom: 2%;
  width: min(330px, 78%);
  padding: 16px 16px 10px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(16, 8, 40, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: #2a2242;
}

.today-title {
  font: 700 1.0625rem / 1.2 var(--font-display);
}

.today-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.today-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 8px auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #eee7f8;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.today-step:first-child {
  border-top: 0;
}

.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #d6cdea;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.4s ease 0.1s;
}

.today-step.is-done .check {
  background: #5cc9a5;
  box-shadow: none;
}

.today-step.is-done .check svg {
  stroke-dashoffset: 0;
}

.today-step.is-done .today-text {
  color: #8a829f;
}

.sphere-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.today-min {
  color: #8a829f;
  font-size: 0.8125rem;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .check,
  .check svg {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    width: min(100%, 460px);
    margin-top: 8px;
  }

  .today-card {
    position: relative;
    inset-inline-start: auto;
    bottom: auto;
    width: min(100%, 360px);
    margin: -18% auto 0;
  }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.how {
  /* morning: the dawn of the hero fades into the page */
  background: linear-gradient(180deg, var(--horizon) 0, var(--paper) 220px);
  padding-top: clamp(32px, 5vw, 64px);
}

.how h2 {
  max-width: 18em;
}

/* the trail: three steps joined by a dotted path */
.trail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.trail::before {
  content: "";
  position: absolute;
  top: 19px;
  inset-inline: 20px 16%;
  border-top: 2px dotted color-mix(in srgb, var(--link) 45%, transparent);
}

.trail-step {
  position: relative;
  counter-increment: step;
  padding-top: 60px;
}

.trail-step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--night-1);
  color: var(--on-night);
  font: 700 1.0625rem / 1 var(--font-display);
  box-shadow: 0 0 0 6px var(--paper);
}

.trail-step h3 {
  margin-top: 22px;
}

.trail-step p {
  margin-top: 8px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .trail {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .trail::before {
    top: 20px;
    bottom: 20px;
    inset-inline: 19px auto;
    border-top: 0;
    border-inline-start: 2px dotted color-mix(in srgb, var(--link) 45%, transparent);
  }

  .trail-step {
    padding-top: 0;
    padding-inline-start: 60px;
  }
}

/* small mocks of the app, drawn in HTML so they translate */
.mock {
  position: relative;
  min-height: 188px;
  padding: 18px;
  border-radius: var(--radius-m);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mock-voice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.voice-wave i {
  flex: 1;
  max-width: 6px;
  height: 30%;
  border-radius: 3px;
  background: var(--rose);
}

.voice-wave i:nth-child(3n + 1) {
  height: 70%;
}

.voice-wave i:nth-child(4n + 2) {
  height: 100%;
  background: var(--lilac);
}

.voice-wave i:nth-child(5n + 3) {
  height: 50%;
}

.voice-quote {
  font: 600 1.0625rem / 1.4 var(--font-display);
}

.sphere-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 35%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.sphere-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.draft-title {
  margin-top: 10px;
  font: 650 1.0625rem / 1.3 var(--font-display);
}

.draft-steps {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.draft-steps li {
  position: relative;
  padding: 5px 0;
  padding-inline-start: 22px;
}

.draft-steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}

.mock-map {
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--night-2) 0, var(--night-1) 45%, var(--night-0) 100%);
  box-shadow: none;
}

.mini-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 2.6;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%) rotate(-10deg);
}

.mini-orbit-2 {
  width: 46%;
}

.mini-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #f3e9ff 45%, #c7b5ff);
  box-shadow: 0 0 28px 8px rgba(225, 210, 255, 0.45);
  transform: translate(-50%, -50%);
}

.mini-planet {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--c) 55%);
  box-shadow: 0 0 16px 2px var(--c);
}

.mini-planet.p1 { --c: var(--sky); left: 18%; top: 54%; width: 20px; height: 20px; }
.mini-planet.p2 { --c: var(--mint); left: 70%; top: 34%; }
.mini-planet.p3 { --c: var(--lilac); left: 36%; top: 36%; width: 12px; height: 12px; }
.mini-planet.p4 { --c: var(--rose); left: 76%; top: 62%; width: 18px; height: 18px; }

/* ---------- features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.features-head p {
  margin-top: 16px;
  max-width: 24rem;
  font-size: 1.125rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 48px);
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  padding-inline-start: 56px;
}

.glyph {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff 0, var(--c) 52%, color-mix(in srgb, var(--c) 70%, var(--ink)) 100%);
  box-shadow: 0 6px 20px -6px var(--c);
}

.feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
}

.feature p {
  margin-top: 6px;
  color: var(--ink-2);
}

.soon {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--butter) 55%, transparent);
  color: var(--ink);
  font: 600 0.8125rem / 1.5 var(--font-body);
  letter-spacing: 0;
}

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

@media (max-width: 600px) {
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  padding-top: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.faq-contact {
  margin-top: 14px;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa summary {
  position: relative;
  padding: 20px 0;
  padding-inline-end: 44px;
  font: 650 1.125rem / 1.35 var(--font-display);
  cursor: pointer;
  list-style: none;
}

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

/* a plus that turns into a minus */
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--link);
  transition: transform 0.2s ease;
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.answer {
  padding-bottom: 22px;
  color: var(--ink-2);
  max-width: 40rem;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- waitlist ---------- */

.join {
  padding-top: 0;
}

.join-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 179, 201, 0.55) 0, rgba(255, 179, 201, 0) 9%),
    radial-gradient(circle at 78% 82%, rgba(169, 211, 255, 0.5) 0, rgba(169, 211, 255, 0) 7%),
    radial-gradient(circle at 96% 64%, rgba(165, 231, 208, 0.45) 0, rgba(165, 231, 208, 0) 5%),
    linear-gradient(160deg, var(--night-0) 0%, var(--night-1) 60%, var(--night-2) 100%);
  color: var(--on-night);
}

.join-copy p {
  margin-top: 14px;
  color: var(--on-night-2);
  font-size: 1.125rem;
}

@media (max-width: 860px) {
  .join-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the form (used in the hero and the panel, both on night) */
.wl {
  margin-top: 32px;
  max-width: 34rem;
}

.join .wl {
  margin-top: 0;
}

.wl-label {
  display: block;
  margin-bottom: 10px;
  color: var(--on-night);
  font-weight: 600;
}

.wl-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.wl-row:focus-within {
  box-shadow: inset 0 0 0 2px var(--rose);
}

.wl-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-night);
  font: 400 1rem / 1.2 var(--font-body);
  direction: ltr; /* an email address reads left to right in every language */
  text-align: start;
}

[dir="rtl"] .wl-input {
  text-align: right;
}

.wl-input::placeholder {
  color: rgba(225, 216, 245, 0.55);
}

.wl-input:focus {
  outline: none;
}

.wl-row .btn {
  min-height: 48px;
}

.wl-hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-status:empty {
  display: none;
}

.wl-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.wl-msg a {
  color: inherit;
}

.wl-msg.is-ok {
  background: rgba(165, 231, 208, 0.16);
  color: #c9f5e5;
  box-shadow: inset 0 0 0 1px rgba(165, 231, 208, 0.4);
}

.wl-msg.is-err {
  background: rgba(255, 179, 201, 0.14);
  color: #ffd3e0;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 201, 0.45);
}

.wl-note {
  margin-top: 12px;
  color: var(--on-night-2);
  font-size: var(--fs-small);
}

.wl-note a {
  color: var(--on-night);
}

.wl.is-sent .wl-row {
  opacity: 0.6;
}

@media (max-width: 480px) {
  .wl-row {
    flex-direction: column;
    padding: 0;
    border-radius: var(--radius-m);
    background: transparent;
    box-shadow: none;
  }

  .wl-row:focus-within {
    box-shadow: none;
  }

  .wl-input {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  .wl-input:focus {
    box-shadow: inset 0 0 0 2px var(--rose);
  }

  .wl-row .btn {
    width: 100%;
  }
}

/* ---------- footer ---------- */

.site-footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 1.0625rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink-2);
}

.footer-legal {
  margin-inline-start: auto;
}

/* ---------- document pages (legal) ---------- */

.page-plain .site-header {
  position: static;
}

.doc {
  padding: 48px 0 88px;
}

.doc .wrap {
  max-width: calc(46rem + 2 * var(--gutter));
}

.doc h1 {
  font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.doc .meta {
  margin: 14px 0 20px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.125rem;
}

.doc p {
  margin-bottom: 0.9em;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-inline-start: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--link);
}

.summary-box {
  margin: 24px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.summary-box ul {
  margin: 10px 0 0;
}

.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--butter) 55%, transparent);
  color: var(--ink);
}

.table-scroll {
  margin: 8px 0 20px;
  overflow-x: auto;
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--line);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.doc th,
.doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.doc th {
  background: var(--paper-2);
  font-weight: 650;
}

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

@media (max-width: 640px) {
  /* stack the tables into labelled rows instead of side-scrolling */
  .doc table.stack thead {
    display: none;
  }

  .doc table.stack tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .doc table.stack tr:last-child {
    border-bottom: 0;
  }

  .doc table.stack td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .doc table.stack td:first-child {
    font-weight: 650;
  }
}

.lang-jump {
  font-size: var(--fs-small);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-inline-start: auto;
}

.lang-btn {
  min-width: 48px;
  padding: 0 12px;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--on-night);
  border-color: var(--on-night);
  color: var(--night-0);
}

/* ---------- small centered page (404) ---------- */

.center-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 32px var(--gutter);
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 60%, var(--night-2) 100%);
  color: var(--on-night);
}

.center-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.center-card .app-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 16px 40px -16px rgba(255, 179, 201, 0.6);
}

.center-card h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  letter-spacing: -0.025em;
}

.center-card > p {
  margin-top: 14px;
  color: var(--on-night-2);
}

.center-lang {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.center-lang .lang-switch {
  margin: 0;
}

.center-actions {
  margin-top: 28px;
}

.center-foot {
  margin-top: 24px;
  font-size: var(--fs-small);
}

.center-foot a {
  color: var(--on-night-2);
}
