:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #163251;
  background: #f5f8fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, textarea { font: inherit; }
button { cursor: pointer; }

.page { max-width: 1000px; padding: 0 28px 50px; margin: auto; }
.page:has(#welcome-step:not([hidden])) {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.page:has(#welcome-step:not([hidden])) .brand { padding-top: 0; }
.page:has(#welcome-step:not([hidden])) .welcome-step { padding-bottom: 0; }
.brand { display: flex; justify-content: flex-start; padding-top: 42px; }
.logo { width: 260px; max-width: 70%; height: auto; display: block; }
.hero { padding: 48px 0 18px; }
h1 { max-width: 780px; margin: 0; color: #102b55; font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -.03em; line-height: 1.2; }

.welcome-step { max-width: 850px; padding: 14px 0 30px; }
.welcome-step p { max-width: 720px; margin: 0 0 28px; color: #62768c; font-size: 15px; line-height: 1.6; }
.welcome-step .button-primary { margin-left: 0; }
.welcome-step .invite-status { margin: 12px 0 0; color: #a13537; }
.video-step p { margin: 0 0 27px; max-width: 720px; color: #62768c; font-size: 15px; line-height: 1.6; }
.video-step video { display: block; width: 100%; max-height: 560px; margin: 0 0 24px; background: #102b55; border-radius: 12px; }
.video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 560px; margin: 0 0 24px; border-radius: 12px; overflow: hidden; background: #edf5fc; }
.video-stage video { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: contain; }
.video-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; width: 100%; height: 100%; border: 0; background: radial-gradient(circle at 70% 25%, #d5eaff, transparent 47%), linear-gradient(135deg, #f7fbff, #deebf7); cursor: pointer; }
.video-cover img { display: block; width: min(48%, 420px); min-width: 190px; height: auto; }
.video-play { display: grid; place-items: center; width: 70px; height: 70px; padding-left: 4px; border-radius: 50%; background: #176bc0; box-shadow: 0 10px 24px rgba(17, 73, 135, .25); color: #fff; font-size: 28px; }
.video-cover:hover .video-play { background: #105ba5; transform: scale(1.04); }
.video-cover:focus-visible { outline: 3px solid #176bc0; outline-offset: -6px; }
.video-placeholder { display: grid; place-items: center; min-height: 230px; margin-bottom: 24px; padding: 32px; border: 1px dashed #b8d1e8; border-radius: 12px; background: #f4f9fd; color: #54718e; text-align: center; line-height: 1.5; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; }
#question-form { padding: 14px 0 30px; }
.review-title { margin: 0 0 18px; color: #102b55; font-size: 22px; line-height: 1.3; }
.draft-status { margin: 0 0 14px; color: #62768c; font-size: 13px; }
.draft-status:empty { display: none; }
.draft-status.error { color: #a13537; }
.question { padding: 25px 0 26px; border-top: 1px solid #e8eef4; }
.question-label { display: block; margin-bottom: 13px; color: #213c59; font-size: 16px; font-weight: 600; line-height: 1.5; }
.question .ql-toolbar.ql-snow { padding: 7px 10px; background: #f5f9fd; border: 1px solid #cddbe8; border-radius: 10px 10px 0 0; }
.question .ql-container.ql-snow { height: auto; border: 1px solid #cddbe8; border-top: 0; border-radius: 0 0 10px 10px; background: #fbfdff; }
.question .ql-editor { min-height: 112px; padding: 14px 16px; color: #173859; font-family: inherit; font-size: 16px; line-height: 1.55; overflow-y: visible; }
.question .ql-editor.ql-blank::before { color: #99aabd; font-style: normal; }
.question:focus-within .ql-container.ql-snow { border-color: #3283d2; box-shadow: 0 0 0 3px rgba(50, 131, 210, .14); }
.question .ql-editor[aria-invalid="true"] { outline: 2px solid #a13537; outline-offset: -2px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 29px; border-top: 1px solid #e8eef4; }
.button { min-height: 48px; padding: 12px 21px; border-radius: 9px; border: 1px solid transparent; font-weight: 700; }
.button-primary { margin-left: auto; background: #176bc0; color: white; }
.button-primary:hover { background: #105ba5; }
.button-primary:disabled { opacity: .55; cursor: wait; }
.button-secondary { background: #fff; border-color: #d5e0eb; color: #45617d; }
.button-secondary:hover { background: #f5f8fc; }
.button:focus-visible { outline: 3px solid #8cbfee; outline-offset: 3px; }
.form-status { min-height: 24px; margin: 14px 0 0; color: #a13537; font-size: 14px; }

@media (max-width: 640px) {
  .brand { padding-top: 30px; }
  .logo { width: 210px; }
  .page { padding: 0 16px 36px; }
  .page:has(#welcome-step:not([hidden])) { padding: 24px 16px; }
  .hero { padding: 43px 0 16px; }
  .video-placeholder { min-height: 180px; }
  #question-form { padding: 14px 0 20px; }
  .question { padding: 22px 0; }
  .question-label { font-size: 15px; }
  .form-actions .button { padding: 11px 14px; }
}
