:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --ink: #111827;
  --muted: #5c6675;
  --muted-2: #8a93a3;
  --line: #dde3ec;
  --line-strong: #c9d3df;
  --navy: #17365d;
  --navy-soft: #eaf1f8;
  --gold: #b98d3f;
  --green: #17623a;
  --purple: #4b2672;
  --danger: #a6423a;
  --shadow: 0 24px 70px rgba(17, 24, 39, .08);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(23, 54, 93, .07), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(185, 141, 63, .08), transparent 24rem),
    var(--bg);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 54, 93, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 54, 93, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

button, input, a { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(100% - 28px, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255,255,255,.8);
  font-family: var(--serif);
  font-size: 16px;
}

.progress-label {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.screen { animation: screen-in .32s ease both; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}

.panel-inner { padding: clamp(24px, 5vw, 44px); }

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

h1 {
  max-width: 650px;
  margin: 0 auto 16px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.04;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.lead {
  max-width: 570px;
  margin-right: auto;
  margin-left: auto;
  color: #3e4652;
  font-size: 17px;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, .option:focus-visible, input:focus-visible { outline: 3px solid rgba(23, 54, 93, .2); outline-offset: 3px; }
.button-primary { color: #fff; background: linear-gradient(135deg, #17365d, #10243f); box-shadow: 0 16px 32px rgba(23, 54, 93, .18); }
.button-secondary { color: var(--navy); background: var(--navy-soft); }
.button[disabled] { opacity: .42; transform: none; cursor: not-allowed; }

.form { display: grid; gap: 15px; max-width: 560px; margin: 22px auto 0; }
.field { display: grid; gap: 7px; text-align: left; }
.field label { color: var(--ink); font-size: 13px; font-weight: 900; }
.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 650;
}

.field input::placeholder { color: #a3acb9; }
.error { min-height: 20px; color: var(--danger); font-size: 13px; font-weight: 800; text-align: center; }
.fine-print { margin: 14px auto 0; color: var(--muted-2); font-size: 12px; text-align: center; }

.progress-track {
  height: 5px;
  overflow: hidden;
  margin: 0 0 22px;
  border-radius: 99px;
  background: #eef2f7;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width .24s ease;
}

.question-number {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.question-title { margin-bottom: 24px; }
.options { display: grid; gap: 11px; }

.option {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px 17px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.4;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.option:hover { border-color: rgba(23, 54, 93, .42); background: #f8fbff; transform: translateY(-1px); }
.option.selected { border-color: var(--navy); background: var(--navy-soft); box-shadow: 0 0 0 4px rgba(23, 54, 93, .08); }

.loading {
  min-height: 340px;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
}

.loading-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 4px solid #eef2f7;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-head { margin-bottom: 22px; }
.result-badge {
  display: inline-flex;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--navy);
  background: var(--navy-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.result-simple { text-align: center; }

.video-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 24px 0 18px;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .12);
}

.video-frame vturb-smartplayer {
  display: block;
  width: 100%;
  max-width: 400px;
}

.vturb-player-placeholder {
  position: relative;
  z-index: 0;
  width: 100%;
  padding: 177.77777777777777% 0 0;
  background-color: #000;
}

.workshop-date-card {
  display: grid;
  gap: 4px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 16px 18px;
  text-align: center;
}

.workshop-date-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.workshop-date-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 5vw, 34px);
  line-height: 1.12;
}

.workshop-date-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.delayed-cta {
  display: none;
}

.delayed-cta.visible {
  display: inline-flex;
}

.cta-note { margin: 11px 0 0; color: var(--muted-2); font-size: 12px; font-weight: 700; text-align: center; }
.footer-brand { padding: 20px 0 4px; color: var(--muted-2); font-size: 11px; font-weight: 800; text-align: center; }

@media (max-width: 560px) {
  .app-shell { width: min(100% - 18px, 760px); padding-top: 10px; }
  .panel-inner { padding: 24px 18px; }
  .topbar { margin-bottom: 12px; }
  h1 { font-size: 31px; }
  h2 { font-size: 27px; }
  .lead { font-size: 15px; }
  .option { min-height: 58px; font-size: 13px; }
  .video-frame { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
