@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/roboto-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/roboto-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Colours from the app's default scheme (primary500/800/300, textLightGrey, arc40/arc100), as on the login page. */
:root {
  color-scheme: dark;
  --bg: #080f19;
  --bg-raised: #0c1724;
  --line: rgb(255 255 255 / 0.08);
  --text: #ffffff;
  --text-muted: #d9d9d9;
  --primary: #007cb0;
  --primary-hover: #005f97;
  --accent: #4da3c8;
  --arc: 7 111 237;
  --arc-light: #9cc7fc;
  --glow: rgb(0 124 176 / 0.35);
  --radius: 14px;
  --header-height: 64px;
  --container: 1160px;
  --display-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--accent);
}

::selection {
  background: rgb(0 124 176 / 0.45);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container.narrow {
  max-width: 820px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgb(8 15 25 / 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background-color 0.3s, border-color 0.3s;
}

.js .site-header.at-top {
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(100% - 32px, var(--container));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: flex;
  margin-right: auto;
}

.site-header .brand img {
  width: 80px;
}

.primary-nav {
  display: flex;
  gap: 36px;
}

.primary-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

/* Reserves the medium-weight width, so the centred links don't shift when the active one changes. */
.primary-nav a::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a[aria-current] {
  color: var(--text);
}

.primary-nav a[aria-current] {
  font-weight: 500;
}

.bar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  list-style: none;
  transition: background-color 0.2s;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary:hover {
  background: rgb(255 255 255 / 0.06);
}

.lang-code {
  text-transform: uppercase;
}

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.icon-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.lang-menu[open] .icon-chevron {
  transform: rotate(180deg);
}

.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.6);
  list-style: none;
}

.lang-options a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang-options a:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
}

.lang-options a[aria-current] {
  color: var(--text);
  font-weight: 500;
}

.site-footer .lang-options {
  top: auto;
  bottom: calc(100% + 8px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 10px 28px -10px var(--glow);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 14px 34px -10px var(--glow);
}

.button-ghost {
  border-color: rgb(255 255 255 / 0.22);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--accent);
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.8125rem;
}

/* Hero: the login screen's crescent, welcome line and logo */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Leaves the top of the first heading on screen, the hint that the page goes on. */
  min-height: calc(100svh - 0.7 * var(--display-size));
  padding: calc(var(--header-height) + 32px) 16px 72px;
  overflow: hidden;
  text-align: center;
  --logo-lift: 3cqw;
  --tagline-gap: 28px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 10% -20% -10%;
  z-index: -1;
  background: radial-gradient(50% 45% at 50% 48%, rgb(var(--arc) / 0.3), rgb(var(--arc) / 0.17) 30%, rgb(var(--arc) / 0.07) 55%, rgb(var(--arc) / 0.02) 78%, transparent);
  animation: breathe 9s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.hero-planet {
  position: relative;
  /* Shrinks on short screens, so the hero still leaves the first heading in view. */
  width: min(100%, 720px, max(260px, (100svh - 22rem) * 1.6));
  container-type: inline-size;
}

.hero-crescent {
  width: 100%;
  animation: rise 1.6s var(--ease-out) both;
}

.hero-title {
  position: absolute;
  inset: auto 0 var(--logo-lift);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-weight: inherit;
}

.hero-welcome {
  margin-bottom: calc(var(--logo-lift) + var(--tagline-gap));
  font-size: max(0.75rem, 3.6cqw);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  animation: fade-up 1s var(--ease-out) 0.5s both;
}

.hero-logo {
  width: 50cqw;
  animation: fade-up 1s var(--ease-out) 0.7s both;
}

.hero-tagline {
  margin: var(--tagline-gap) 0 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: fade-up 1s var(--ease-out) 0.9s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  animation: fade-up 1s var(--ease-out) 1.1s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.65;
  }
}

.section {
  padding-block: clamp(80px, 12vw, 160px);
}

.display {
  margin: 0 0 24px;
  background: linear-gradient(180deg, #fff 30%, var(--arc-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: var(--display-size);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.intro {
  padding-top: 0;
  text-align: center;
}

.lead {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.7;
}

/* Features: stations on a route line, like the app's route timeline */

.features {
  position: relative;
  display: grid;
  gap: clamp(96px, 12vw, 168px);
  padding-bottom: 24px;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgb(77 163 200 / 0.55) 6%, rgb(77 163 200 / 0.55) 94%, transparent);
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(56px, 8vw, 128px);
}

.feature::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 6px rgb(0 124 176 / 0.15), 0 0 24px var(--glow);
}

.feature:nth-child(even) .feature-text {
  order: 2;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.feature-index::after {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.feature h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.75;
}

.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 40px 100px -30px rgb(0 124 176 / 0.45);
}

.frame-bare {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 30px 60px rgb(0 124 176 / 0.3));
}

.contact .display {
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgb(0 124 176 / 0.16), transparent 55%), var(--bg-raised);
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.7;
  text-align: center;
}

.contact-block strong {
  color: var(--text);
  font-weight: 500;
}

address.contact-block,
.contact-register {
  display: block;
}

.contact-register {
  font-size: 0.875rem;
}

.contact-mail {
  color: var(--text);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 300;
  text-decoration: underline;
  text-decoration-color: rgb(77 163 200 / 0.5);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s;
}

.contact-mail:hover {
  text-decoration-color: var(--accent);
}

.contact-link {
  text-decoration: none;
}

.contact-link::after {
  content: '→';
  content: '→' / '';
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.2s;
}

.contact-link:hover::after {
  transform: translateX(4px);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding-block: 36px;
}

.site-footer .brand img {
  width: 72px;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover,
.footer-legal a[aria-current] {
  color: var(--text);
}

.copyright {
  width: 100%;
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.legal {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding: calc(var(--header-height) + 56px) 0 96px;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.legal h1 {
  margin: 0 0 32px;
  hyphens: auto;
  color: var(--text);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.legal h2 {
  margin: 48px 0 12px;
  hyphens: auto;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
}

.legal h3 {
  margin: 32px 0 8px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

.legal blockquote {
  margin: 0 0 32px;
  padding: 14px 20px;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: rgb(0 124 176 / 0.08);
}

.legal blockquote p {
  margin: 6px 0;
}

.table-scroll {
  margin: 16px 0;
  overflow-x: auto;
}

.legal table {
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-weight: 500;
}

.legal code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.9em;
}

/* Scroll reveal, only when site.js runs */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.to-top {
  display: none;
}

@media (min-width: 881px) {
  .contact-block:first-child {
    text-align: left;
  }

  .contact-block:last-child {
    text-align: right;
  }
}

@media (max-width: 880px) {
  .features::before {
    left: 6px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 36px;
  }

  .feature::before {
    top: 11px;
    left: 6px;
  }

  .feature:nth-child(even) .feature-text {
    order: 0;
  }

  .intro .container {
    max-width: none;
  }

  /* Starts on the route line that runs down from it */
  .lead {
    margin: 0;
    padding-left: 5px;
    text-align: left;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .primary-nav {
    display: none;
  }

  .bar {
    gap: 12px;
  }

  .lead,
  .feature p,
  .contact-block {
    line-height: 1.55;
  }

  .bar-actions {
    display: contents;
  }

  .site-header .button {
    justify-self: end;
  }

  .site-header .lang-options {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand language'
      'legal legal'
      'copyright copyright';
  }

  .site-footer .brand {
    grid-area: brand;
  }

  .site-footer .lang-menu {
    grid-area: language;
  }

  .footer-legal {
    grid-area: legal;
    justify-content: center;
  }

  .copyright {
    grid-area: copyright;
    text-align: center;
  }

  .to-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(77 163 200 / 0.5);
    border-radius: 50%;
    /* Primary at 25% on the page background, opaque so it stays dark over the white screenshots */
    background: #062a3f;
    box-shadow: 0 10px 28px -10px var(--glow);
    color: var(--text);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .to-top .icon {
    width: 20px;
    height: 20px;
  }

  .js .to-top:not(.is-visible) {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
