/* ═══════════════════════════════════════════════════════════════════════
 * Fleet landing — early-access "stay in the loop" signup band.
 *
 * Self-contained + CSP-friendly: loaded as an external stylesheet (the landing
 * Caddy handler enforces `style-src 'self' 'unsafe-inline'`), and it does NOT
 * depend on any page-specific classes — every design token is referenced with
 * a hard fallback so the band renders identically on index, /architecture/,
 * and /tui/ regardless of which :root vars each page happens to define.
 * ═══════════════════════════════════════════════════════════════════════ */

.early-access {
  padding: 5rem 3rem;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(94, 175, 163, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, var(--hull, #141A2B) 0%, var(--deep-space, #0A0E1A) 100%);
  border-top: 1px solid var(--steel, #1F2940);
  border-bottom: 1px solid var(--steel, #1F2940);
}

.early-access-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.early-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fleet-teal, #5EAFA3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.early-tag::before,
.early-tag::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--fleet-teal, #5EAFA3);
}

.early-access-title {
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bone, #E8ECF1);
  margin: 0 0 1rem;
}

.early-access-title .accent-teal { color: var(--fleet-teal, #5EAFA3); }

.early-access-intro {
  font-size: 1.05rem;
  color: var(--mist, #94A3B8);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.early-form { max-width: 540px; margin: 0 auto; }

/* Visually-hidden label — keeps the field accessible without showing twice. */
.early-form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.early-form-row { display: flex; gap: 0.6rem; }

.early-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--bone, #E8ECF1);
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--steel-soft, #2A3654);
  padding: 0.95rem 1.1rem;
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.early-input::placeholder { color: var(--mist, #94A3B8); opacity: 0.7; }

.early-input:focus {
  outline: none;
  border-color: var(--fleet-teal, #5EAFA3);
  box-shadow: 0 0 0 3px rgba(94, 175, 163, 0.18);
}

.early-submit {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--fleet-teal, #5EAFA3);
  color: var(--deep-space, #0A0E1A);
  transition: background 0.2s, opacity 0.2s;
}

.early-submit:hover { background: var(--bone, #E8ECF1); }
.early-submit:disabled { opacity: 0.55; cursor: default; }

.early-status {
  min-height: 1.2rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
}

.early-status.is-success { color: var(--signal-green, #4ADE80); }
.early-status.is-error { color: var(--cn-orange, #fd8034); }

.early-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--mist, #94A3B8);
  opacity: 0.8;
  text-align: left;
}

@media (max-width: 600px) {
  .early-access { padding: 3.25rem 1.5rem; }
  .early-form-row { flex-direction: column; }
  .early-submit { width: 100%; }
  .early-status, .early-note { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
 * "Watch" section — self-hosted demo film (poster + click-to-play).
 * Scoped under `.watch` so it never collides with the /tui/ page's own
 * inline `.video-wrap` rules (early-access.css is loaded on every page).
 * Tokens carry hard fallbacks, matching the band above.
 * ═══════════════════════════════════════════════════════════════════════ */

/* Centre the whole section so it reads as a framed video "in the middle",
 * matching the centred early-access band directly below it. */
.watch { text-align: center; }
.watch .section-tag { justify-content: center; }
.watch .section-title,
.watch .section-intro { margin-left: auto; margin-right: auto; }

.watch .video-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;                /* centre the box */
  border: 1px solid var(--steel, #1F2940);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  line-height: 0;                /* kill the inline gap under the video */
}

.watch .video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;              /* whole video always fits the viewport */
  object-fit: contain;           /* never crop the frame at any size */
  background: #000;
}

.watch .video-fallback {
  padding: 1.5rem;
  margin: 0;
  color: var(--mist, #94A3B8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.watch .video-fallback a { color: var(--fleet-teal, #5EAFA3); }
