:root {
  /* Colors — all oklch. Grays are an "L C H" triplet so only alpha varies:
     oklch(var(--gray) / 0.4). */
  --background: oklch(0.186 0.029 271.15);
  --foreground: oklch(1 0 0); /* rgba(255,255,255,1) */
  --primary: oklch(0.637 0.236 30.36);
  --primary-foreground: oklch(1 0 0);

  --input-bg: oklch(0.206 0.043 261.5); /* rgba(12,23,43) */
  --gray: 0.549 0.013 269.4; /* rgba(110,113,121) as L C H */

  --text-70: oklch(1 0 0 / 0.7); /* body text */
  --text-40: oklch(1 0 0 / 0.4); /* input placeholder */
  --text-90: oklch(1 0 0 / 0.9); /* footer */

  --pill-radius: 62.4375rem; /* 999px, always exceeds half the element height */
  --column: 42rem; /* reading width — set once on <main> */

  /* Orange check used as the feature-list marker */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF4D12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background-color: var(--background);
  color: var(--foreground);
  font-family:
    "Red Hat Display",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page shell ------------------------------------------------------------ */
.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* clip rings that extend past the viewport */
  padding: 1.5rem; /* px-6 */
}

/* Fixed, viewport-relative concentric circles as an ambient backdrop. Sized
   in vw so they scale with the viewport, clamped so they never collapse into
   the text on small screens. */
.rings {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid oklch(var(--gray) / 0.15);
}
.ring--1 {
  width: clamp(34.04rem, 54.46vw, 68.07rem);
  border-color: oklch(var(--gray) / 0.2);
}
.ring--2 {
  width: clamp(49.92rem, 106.64vw, 117.98rem);
  border-color: oklch(var(--gray) / 0.1);
}

/* Keep page content above the fixed backdrop (the lang switch keeps its own
   higher z-index). */
.page > .brand-row,
.page > main,
.page > footer {
  position: relative;
  z-index: 1;
}

/* Language switch ------------------------------------------------------- */
.lang {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1rem;
  font-weight: 600;
  z-index: 2;
}
.lang a {
  color: var(--text-70);
  text-decoration: none;
  transition: color 0.15s ease;
}
.lang a:hover,
.lang a[aria-current="page"] {
  color: var(--foreground);
}
.lang span {
  width: 1px;
  height: 0.875rem;
  background: oklch(var(--gray) / 0.5);
}

/* Logo ------------------------------------------------------------------ */
.brand-row {
  display: flex;
  justify-content: center;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  display: block;
  height: 1.625rem; /* 26px */
  width: auto;
}

/* Content --------------------------------------------------------------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0;
}

section {
  width: 100%;
}
section + section {
  margin-top: 3.5rem;
}

/* Text: four styles only — subtitle, title, subhead, and plain paragraphs.
   Bold lines use <strong>. */
.subtitle {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-indent: 0.2em;
}

.title {
  max-width: 42rem; /* 672px */
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}
.title__muted {
  display: block;
  color: oklch(var(--gray) / 0.8);
}

.subhead {
  max-width: 36rem; /* 576px */
  margin-inline: auto;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}
.subhead:last-child {
  margin-bottom: 0;
}

p {
  max-width: 31.375rem; /* 502px */
  margin-inline: auto;
  margin-top: 1rem;
  color: var(--text-70);
  font-size: 0.875rem; /* 14px on mobile */
  line-height: 1.6;
}
p:first-of-type {
  margin-top: 0;
}

strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Key features list -------------------------------------------------------
   Items stay left-aligned (centering wrapped multi-line text makes the
   checkmark position unpredictable) but the list itself is narrowed and
   centered as a block, so it doesn't hang off to one side against the
   centered copy around it. */
.features {
  list-style: none;
  margin: 1.75rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: left;
}
.features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem; /* 14px on mobile — same as body text */
  line-height: 1.5;
  color: var(--foreground);
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1em;
  height: 1em;
  background: var(--check) center / contain no-repeat;
}

/* Waitlist form --------------------------------------------------------- */
.waitlist {
  width: 100%;
  max-width: 36rem; /* 576px */
  margin: 2rem auto 0;
}

/* Honeypot — off-screen, not display:none (some bots skip hidden inputs but
   still fill absolutely-positioned ones); real users never see or focus it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  display: flex;
  align-items: center; /* input and button both sit centered, neither stretches */
  height: 3.5rem; /* 56px mobile */
  /* Breathing room below the input so the Turnstile widget (Managed mode may
     render a small box for some visitors) never sits glued to the pill. */
  margin-bottom: 1rem;
  gap: 0.5rem;
  padding: 0 0.5rem 0 1.5rem;
  border-radius: var(--pill-radius);
  overflow: hidden; /* clips the input's autofill background to the pill shape */
  background: var(--input-bg);
  /* Inset shadow instead of a border — a border would eat into the fixed
     height above (box-sizing: border-box), throwing off the input's size. */
  box-shadow: inset 0 0 0 1px oklch(var(--gray) / 0.4);
  transition: box-shadow 0.15s ease;
}
.field:focus-within {
  box-shadow:
    inset 0 0 0 1px oklch(var(--gray) / 0.7),
    0 0 0 0.25rem oklch(var(--gray) / 0.12);
}
.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  /* Chrome ignores background-color on autofilled inputs; this inset-shadow
     trick paints over its default light autofill fill. */
  -webkit-text-fill-color: var(--foreground);
  -webkit-box-shadow: 0 0 0 100px var(--input-bg) inset;
  box-shadow: 0 0 0 100px var(--input-bg) inset;
  caret-color: var(--foreground);
  transition: background-color 9999s ease-in-out 0s;
}
.field input::placeholder {
  color: var(--text-40);
}
.field button {
  flex: none;
  align-self: center; /* smaller than the bar on purpose — stays centered in it */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem; /* 40px */
  border: 0;
  border-radius: var(--pill-radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  padding: 0 0.5rem;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.05s ease;
  white-space: nowrap;
}
.field button:hover {
  opacity: 0.92;
}
.field button:active {
  transform: translateY(1px);
}
.field button:disabled {
  opacity: 0.6;
  cursor: default;
}

.message {
  min-height: 1.25rem;
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-70);
}
.message.is-error {
  color: var(--primary);
}

/* Footer ---------------------------------------------------------------- */
footer {
  text-align: center;
  color: var(--text-90);
  font-size: 0.875rem; /* same size as body text */
  line-height: 1.5;
}

/* Desktop --------------------------------------------------------------- */
@media (min-width: 40rem) {
  .page {
    padding: 2rem 1.5rem; /* px-6 */
  }
  .lang {
    top: 1.5rem;
    right: 1.5rem;
  }
  .rings .ring {
    border-width: 6px;
  }
  .brand__logo {
    height: 2.625rem; /* 42px */
  }
  .title {
    font-size: 4rem; /* 64px */
    line-height: 1.05;
  }
  .subhead {
    font-size: 1.5rem;
  }
  p,
  footer,
  .features li {
    font-size: 1rem;
  }
  .field {
    height: 4.5rem; /* 72px desktop */
  }
  .field button {
    height: 3.5rem; /* 56px desktop */
    font-size: 1rem; /* 16px */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Keep the field inline on very narrow screens — horizontal padding only,
   vertical stays 0 so input keeps exactly matching the field's height. */
@media (max-width: 25rem) {
  .field {
    padding-left: 1.125rem;
    padding-right: 0.375rem;
  }
  .field button {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }
}
