/* Contrail gate pages (home, confirm, remove): the app's launch screens on the web.
   Jet black, the contrail sky, the CONTRAIL flip-board wordmark and the grey line
   (design/handoffs/design_handoff_launch). Phone-first; system font (SF Pro on Apple devices). */
:root {
  --ink: #F2F3F5;
  --grey: rgba(242, 243, 245, 0.5);
  --muted: rgba(242, 243, 245, 0.62);
  --tonal: rgba(255, 255, 255, 0.08);
  --tonal-hover: rgba(255, 255, 255, 0.12);
  --pill: rgba(143, 177, 255, 0.12);
  --pill-ink: #8FB1FF;
  --caret: #7C9CFF;
  --ok: #4ADE80;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #000; color: var(--ink); }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
}
a { color: inherit; }

/* The sky: six aircraft crossing on straight lines, each leaving a contrail (§1). */
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lane { position: absolute; width: 1px; height: 1px; transform-origin: 0 0; }
.trail { position: absolute; top: -1px; left: 0; height: 2px; display: flex; align-items: center; opacity: 0; will-change: transform, opacity; }
.trail .streak { flex: 1; height: 1.5px; border-radius: 999px; }
.trail .head { width: 3px; height: 3px; margin-left: 1px; border-radius: 50%; flex: none; }

/* The page: wordmark and grey line, then the form, then the small links. */
.gate {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
}
.stage {
  width: 100%; max-width: 393px;
  --top: clamp(150px, 32vh, 300px);
  padding-top: var(--top);
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
@supports (height: 1svh) { .stage { --top: clamp(150px, 32svh, 300px); } }
.wordmark {
  height: 34px; display: flex; align-items: center; justify-content: center;
  margin: 0; font-size: 28px; font-weight: 800; letter-spacing: 7px; margin-right: -7px;
  color: var(--ink); perspective: 400px; text-decoration: none;
}
.tagline {
  margin: 18px 0 0; min-height: 28px; text-align: center;
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--grey);
  perspective: 400px; white-space: nowrap;
}
.flip { display: inline-flex; white-space: pre; }
.flip .slot { position: relative; display: inline-block; }
.flip .ghost { visibility: hidden; }
.flip .ghost::before { content: attr(data-c); }
.flip .glyph { position: absolute; inset: 0; text-align: center; transform-origin: 50% 55%; }

/* The error pill sits above the wordmark, never between a field and its button (§7). */
.pill-row { position: absolute; left: 0; right: 0; top: calc(var(--top) - 56px); display: flex; justify-content: center; pointer-events: none; }
.pill {
  height: 32px; padding: 0 14px; border-radius: 999px; background: var(--pill);
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font-size: 13px; font-weight: 600; color: var(--pill-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: drop 0.35s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Everything below the grey line fades in after the entrance (§4). */
.enter { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) 1.85s both; }
.enter-soon { animation: rise 0.3s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

form, .panel { width: 100%; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%; height: 56px; padding: 0 18px; border: 0; border-radius: 16px; outline: none;
  background: var(--tonal); color: var(--ink); caret-color: var(--caret);
  font: 400 17px/1 var(--font); -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: rgba(242, 243, 245, 0.4); }
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23F2F3F5' stroke-opacity='.6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px;
}
select.field:invalid, select.field option[value=""] { color: rgba(242, 243, 245, 0.4); }
select.field option { color: #F2F3F5; background: #111316; }
select.field:focus-visible { box-shadow: 0 0 0 2px rgba(124, 156, 255, 0.55); }
.beta { display: flex; flex-direction: column; gap: 10px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  width: 100%; height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.btn--primary { background: #FFFFFF; color: #06070A; margin-top: 14px; }
.btn--tonal { background: var(--tonal); color: var(--ink); }
.btn--tonal:hover { background: var(--tonal-hover); }
.btn:disabled { cursor: default; }
.btn.is-busy { background: var(--tonal); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--caret); outline-offset: 3px; }
.spinner { width: 18px; height: 18px; display: block; animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.note { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.privacy { margin: 26px 0 0; font-size: 12px; line-height: 1.55; color: rgba(242, 243, 245, 0.45); text-align: center; text-wrap: pretty; }
.links {
  margin-top: auto; padding-top: 40px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  font-size: 13px; font-weight: 600;
}
.links a { color: rgba(242, 243, 245, 0.6); text-decoration: none; padding: 6px 2px; }
.links a:hover, .links a:focus-visible { color: var(--ink); }
.foot { margin-top: 10px; font-size: 11px; letter-spacing: 1.5px; color: rgba(242, 243, 245, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .enter, .enter-soon, .pill { animation: none; }
  .spinner { animation: none; }
}

/* The pre-launch text pages (How it works, About): a heading and a few short paragraphs over the
   sky, nothing else. */
.prose { width: 100%; margin-top: 30px; display: flex; flex-direction: column; gap: 22px; text-align: center; }
.prose p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(242, 243, 245, 0.78); text-wrap: pretty; }
.prose .label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink); }
.prose .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 6px; }
.text-link { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(242, 243, 245, 0.35); padding-bottom: 2px; }
.text-link:hover, .text-link:focus-visible { border-bottom-color: var(--ink); }
h1.tagline { font-weight: 800; }

/* "Not affiliated" line (23 Nov 2026). */
.foot--note { max-width: 340px; margin-left: auto; margin-right: auto; padding: 0 16px; letter-spacing: 0; line-height: 1.5; text-align: center; }
