:root {
  color-scheme: dark;
  --bg: #06101f;
  --card: rgba(11, 23, 42, 0.9);
  --line: rgba(177, 196, 228, 0.22);
  --text: #f5f7fb;
  --muted: #b9c4d6;
  --accent: #f3c978;
  --accent-strong: #ffdc8a;
  --ok: #68d391;
  --mid: #f6c453;
  --weak: #fb7185;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #02040a;
  color: var(--text);
}

.check-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  background: #02040a;
}

.check-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #020713;
}

.check-hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(1.08) contrast(1.03) brightness(0.98);
}

.check-hero-video-mobile { display: none; }
.check-hero-video-desktop { display: block; }

.check-hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.22) 0%, rgba(2, 4, 10, 0.08) 24%, rgba(2, 4, 10, 0.24) 68%, rgba(2, 4, 10, 0.84) 100%),
    linear-gradient(90deg, rgba(2, 4, 10, 0.18) 0%, rgba(2, 4, 10, 0.06) 46%, rgba(2, 4, 10, 0.16) 100%);
}

.check-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 0, rgba(0, 0, 0, 0.4) 72%);
  opacity: 0.42;
}

.check-card {
  position: relative;
  z-index: 3;
  width: min(100%, 56rem);
  border: 1px solid rgba(205, 224, 255, 0.2);
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(10, 22, 41, 0.92), rgba(5, 12, 26, 0.86)),
    radial-gradient(circle at 18% 0%, rgba(255, 220, 150, 0.12), transparent 20rem);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.44), 0 0 5rem rgba(56, 139, 255, 0.12);
  padding: clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-mark img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
  line-height: 1;
  color: #fff;
}

.brand-copy strong {
  font-size: clamp(0.9rem, 1.35vw, 1.08rem);
  line-height: 0.95;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.brand-copy small {
  max-width: 190px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.42rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.brand-video-link {
  width: clamp(132px, 22vw, 205px);
  height: clamp(36px, 6vw, 52px);
  flex: 0 0 auto;
  display: block;
}

.brand-logo-video-shell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  backdrop-filter: none;
}

.brand-logo-video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: normal;
  opacity: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: none;
}

.brand-logo-fallback {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  transition: none;
}

.brand-video-link.is-video-ready .brand-logo-video { opacity: 0; }
.brand-video-link.is-video-ready .brand-logo-fallback { opacity: 1; }

.intro { margin-top: clamp(2rem, 6vw, 4rem); max-width: 45rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.subline {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.6;
}

.check-form { margin-top: 2rem; }

.check-form label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-weight: 750;
}

.input-row {
  display: grid;
  gap: 0.8rem;
}

input,
button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  font: inherit;
}

input {
  min-height: 3.35rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.97);
  color: #07111f;
  outline: 2px solid transparent;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
}

input:focus { outline-color: var(--accent); }

button {
  min-height: 3.35rem;
  padding: 0 1.3rem;
  background: linear-gradient(135deg, #fff3d6 0%, var(--accent-strong) 46%, #f1b85d 100%);
  color: #160f03;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 1rem 2.4rem rgba(243, 201, 120, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

button:disabled { cursor: wait; opacity: 0.72; }

.hint,
.form-message {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-message.error { color: #fecdd3; }

.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.result {
  margin-top: 2rem;
  border: 1px solid rgba(205, 224, 255, 0.18);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.result h2 { margin: 0 0 0.75rem; font-size: clamp(1.35rem, 4vw, 2rem); }
.result p { color: var(--muted); line-height: 1.6; }

.label-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.label-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.label-item strong { color: var(--text); }
.label { font-weight: 850; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.07em; }
.label.good { color: var(--ok); }
.label.mid { color: var(--mid); }
.label.weak { color: var(--weak); }

.result-columns { display: grid; gap: 1rem; }
.result h3 { margin: 1rem 0 0.5rem; }
ol { margin: 0; padding-left: 1.25rem; color: var(--muted); line-height: 1.55; }
li + li { margin-top: 0.4rem; }

.cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 1.3rem;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  background: #ffffff;
  color: #07111f;
  font-weight: 850;
  text-decoration: none;
}

.disclaimer { font-size: 0.9rem; }

@media (min-width: 720px) {
  .input-row { grid-template-columns: 1fr auto; }
  button { width: auto; white-space: nowrap; }
  .label-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .check-hero-video-desktop { display: none; }
  .check-hero-video-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-video,
  .check-hero-video {
    display: none;
  }

  .brand-logo-fallback {
    opacity: 1;
  }

  .check-hero-video-wrap {
    background-image: url("/assets/desktop-header-poster.png");
    background-position: center;
    background-size: cover;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .check-hero-video-wrap {
    background-image: url("/assets/mobile-header-poster.png");
  }
}

@media (max-width: 540px) {
  .check-page {
    place-items: stretch;
  }

  .check-page::after {
    opacity: 0.28;
  }

  .check-card {
    align-self: center;
    backdrop-filter: blur(14px);
  }
}
