:root {
  --orange: #f86800;
  --ink: #1c140f;
  --paper: #f6f1ea;
  --card: #fffdfb;
  --line: #e4d8cc;
  --link: #9a3412;
  --ok-bg: #e7f6ee;
  --ok: #0f5132;
  --bad-bg: #fde8e4;
  --bad: #9b2c1a;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(248, 104, 0, 0.16), transparent 32rem),
    var(--paper);
  line-height: 1.45;
  font-size: 1.125rem;
}

a { color: var(--link); }

a:hover { color: var(--ink); }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  z-index: 5;
}

.skip:focus { top: 0.75rem; }

.frame {
  width: min(1600px, 90vw);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0 0.7rem;
  gap: 0.7rem;
}

.screen .frame {
  height: 100dvh;
  min-height: 100dvh;
}

.top {
  display: flex;
  align-items: center;
  flex: none;
}

.brand {
  display: block;
  width: 60px;
  height: 60px;
  flex: none;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.split {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1rem, 2vw, 2.25rem);
  align-items: stretch;
}

.pitch, .signup, .controls, .check-main, .solo, .doc-split section {
  min-width: 0;
}

.pitch {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.85rem;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.035em; margin: 0; overflow-wrap: break-word; }

p, li, figcaption { overflow-wrap: break-word; }

h1 { font-size: clamp(3.5rem, 4.4vw, 4.5rem); max-width: 16ch; }

.pitch h1 { max-width: none; }

h2 { font-size: clamp(1.6rem, 2vw, 2rem); margin: 0 0 0.55rem; }

.sub {
  margin: 0;
  max-width: 38em;
  font-size: clamp(1.4rem, 1.55vw, 1.6rem);
  line-height: 1.35;
}

.eyebrow {
  margin: 0;
  color: var(--link);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.film {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #1c140f;
}

.film video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  background: #1c140f;
}

.film figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 1rem;
  background: rgba(28, 20, 15, 0.82);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.35;
}

.signup {
  align-self: center;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(0.9rem, 1.8vh, 1.4rem);
  box-shadow: 0 16px 40px rgba(28, 20, 15, 0.05);
}

form { display: grid; gap: 0.7rem; }

label, legend { font-weight: 700; }

label { display: grid; gap: 0.3rem; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

legend { font-size: 1.15rem; margin-bottom: 0.35rem; }

input[type="email"], input[type="text"], .links input {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid #c9bdb2;
  border-radius: 0.85rem;
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  width: 100%;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.55rem 0.4rem;
  border: 1.5px solid #c9bdb2;
  border-radius: 0.9rem;
  background: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.role span { font-size: 1.25rem; }

.role:has(input:checked) {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
  background: #fff6ef;
}

input[type="radio"], input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--orange);
  flex: none;
  margin: 0;
}

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
  width: auto;
}

.signup .button { width: 100%; }

.button:hover { filter: brightness(1.05); }

.button:disabled { opacity: 0.6; cursor: wait; }

.button:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.to-check { margin: 0.85rem 0 0; font-size: 1.25rem; font-weight: 700; }

.disclaimer {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

.turnstile-slot { min-height: 4.25rem; }

.checkline {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
}

.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-bad { background: var(--bad-bg); color: var(--bad); }
.status-pending { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.check-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-grid {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(1rem, 2vw, 2rem);
}

.controls {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.controls h1 { font-size: clamp(2.5rem, 3.2vw, 3.5rem); max-width: none; }

.controls p { margin: 0; }

.points { margin: 0; padding-left: 1.25rem; }

.points li { margin: 0.2rem 0; }

.checker-result {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.15rem 1.25rem;
}

.checker-result h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); margin-bottom: 0.45rem; }

.checker-result p { margin: 0 0 0.7rem; }

.checker-result ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

code { font-size: 0.95em; }

.form-dock { gap: 0.55rem; }

.dock-row {
  display: flex;
  align-items: end;
  gap: 0.7rem;
}

.dock-row .grow { flex: 1.1; min-width: 0; }

.form-dock .roles { flex: 1.3; }

.form-dock .button { flex: none; white-space: nowrap; }

.dock-meta { align-items: center; }

.dock-meta .turnstile-slot { flex: none; }

.dock-meta .disclaimer { flex: 1; }

.site-footer {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.site-footer .wordmark {
  margin-left: auto;
  color: #f86800;
  font-weight: 750;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.solo {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  max-width: 70rem;
}

.solo h1 { max-width: 18ch; }

.solo p { margin: 0; font-size: 1.3rem; max-width: 62em; }

.doc-split { align-items: start; }

.doc-split section { min-height: 0; }

.doc-split .sub { margin: 0.7rem 0 1rem; }

.doc-split h2 { margin-top: 1.1rem; }

.doc-split h2:first-of-type { margin-top: 0.2rem; }

.doc-split p, .doc-split li { font-size: 1.15rem; }

.links { display: grid; gap: 0.7rem; margin-top: 0.4rem; }

@media (min-width: 1100px) {
  body { font-size: 1.25rem; }
  .brand { width: 84px; height: 84px; }
  .site-footer .wordmark { font-size: 2.25rem; }
  .frame {
    padding: clamp(0.55rem, 1.4vh, 1rem) 0 clamp(0.4rem, 1vh, 0.75rem);
    gap: clamp(0.45rem, 1.2vh, 0.8rem);
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .frame { padding: 0.4rem 0 0.3rem; gap: 0.35rem; }
  .pitch { gap: 0.45rem; }
  form { gap: 0.4rem; }
  .signup { padding: 0.7rem 0.85rem; }
  .check-main { gap: 0.45rem; }
  .controls { gap: 0.35rem; }
  .film figcaption { padding: 0.4rem 0.75rem; }
}

@media (max-width: 1099px) {
  body { font-size: 1.125rem; height: auto; }
  .screen .frame,
  .frame {
    width: min(1600px, calc(100% - 1.25rem));
    height: auto;
    min-height: 100dvh;
    padding: 1rem 0 1.4rem;
  }
  .split, .check-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .sub { font-size: 1.3rem; }
  .film { flex: none; aspect-ratio: 16 / 9; min-height: 12rem; }
  .signup { align-self: stretch; }
  .controls h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .checker-result { min-height: 16rem; }
  .dock-row { flex-direction: column; align-items: stretch; }
  .form-dock .button { width: 100%; white-space: normal; }
  .roles { grid-template-columns: 1fr; }
  .solo { justify-content: flex-start; padding: 0.5rem 0 1rem; }
}

@media (max-width: 1099px) and (min-width: 700px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
