@font-face {
  font-family: "ITC Avant Garde";
  src: url("/participant/fonts/itc-avant-garde-book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost/jost-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora/lora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kristi";
  src: url("/assets/fonts/kristi/kristi-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora/lora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --clarity: #1a333d;
  --glow: #e3b13b;
  --calm: #f5e8d7;
  --abundance: #735b05;
  --tranquil: #edfaf2;
  --passion: #de006f;
  --card-border: #e0d4c0;
  --white: #fff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--calm); color: var(--clarity); }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "ITC Avant Garde", "Jost", sans-serif;
  font-size: 17px;
  line-height: 1.9;
}
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

.split-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 46%) 1fr;
}
.photo-panel {
  position: relative;
  min-height: 100dvh;
  background: var(--clarity);
  overflow: hidden;
}
.photo-panel picture,
.photo-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 51, 61, .26);
}
.photo-brand {
  position: absolute;
  z-index: 1;
  top: 34px;
  left: 40px;
  color: white;
  font-size: 14px;
  letter-spacing: .03em;
}
.photo-brand img {
  display: block;
  width: 118px;
  height: auto;
  object-fit: contain;
}
.photo-footer {
  position: absolute;
  z-index: 1;
  left: 40px;
  bottom: 34px;
  color: white;
  font-family: "Lora", serif;
  font-size: clamp(18px, 2vw, 26px);
}
.photo-footer::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 15px;
  background: var(--glow);
}
.content-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 7vw, 96px);
}
.content-inner { width: min(680px, 100%); }
.eyebrow {
  color: var(--abundance);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, legend {
  font-family: "Lora", serif;
  font-weight: 400;
  line-height: 1.28;
}
h1 { font-size: clamp(38px, 5vw, 62px); margin: 14px 0 22px; }
h2, legend { font-size: clamp(28px, 3.5vw, 42px); margin: 14px 0 26px; }
p { margin: 0 0 20px; }
.estimate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 28px;
  color: var(--abundance);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.estimate::before { content: ""; width: 18px; height: 2px; background: var(--glow); }
.code-fieldset { border: 0; padding: 0; margin: 0; }
.code-fieldset legend {
  font-family: "ITC Avant Garde", "Jost", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.code-row { display: flex; gap: 12px; margin-bottom: 22px; }
.code-digit {
  width: 58px;
  height: 58px;
  border: 2px solid #aa9e8b;
  border-radius: 9px;
  background: white;
  color: var(--clarity);
  font-size: 26px;
  text-align: center;
}
.primary, .secondary {
  min-height: 48px;
  border-radius: 9px;
  padding: 13px 27px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary { border: 2px solid var(--passion); background: var(--passion); color: white; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { border: 2px solid var(--clarity); background: transparent; color: var(--clarity); }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--clarity);
  font-weight: 600;
  text-underline-offset: 4px;
}
.privacy-note { margin-top: 28px; font-size: 14px; line-height: 1.7; color: #40535b; }
.alert {
  border-left: 4px solid var(--passion);
  background: #fff;
  padding: 13px 16px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.assessment-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  background: var(--calm);
}
.assessment-photo {
  position: relative;
  min-height: 100dvh;
  background: var(--clarity);
  overflow: hidden;
}
.assessment-photo picture,
.assessment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.assessment-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 51, 61, .22);
}
.assessment-main {
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 70px);
  display: flex;
  align-items: center;
}
.assessment-inner { width: min(760px, 100%); margin: auto; }
.full-height { min-height: 100dvh; }
.step[hidden] { display: none !important; }
.progress-track {
  height: 3px;
  background: #d9cdbb;
  margin: 14px 0 28px;
}
.progress-fill {
  display: block;
  height: 100%;
  background: var(--abundance);
  transition: width 160ms ease;
}
fieldset.question { border: 0; padding: 0; margin: 0; min-width: 0; }
.option-stack { display: grid; gap: 12px; }
.option {
  position: relative;
  display: block;
  cursor: pointer;
}
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.option span {
  min-height: 58px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: white;
  color: var(--clarity);
  box-shadow: 0 3px 12px rgba(26, 51, 61, .04);
}
.option input:checked + span { background: var(--clarity); color: white; border-color: var(--clarity); }
.option input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 3px; }
.open-answer {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  background: white;
  color: var(--clarity);
}
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.role-note { font-size: 15px; color: #40535b; margin-top: 20px; }
.confirmation-name {
  font-family: "Lora", serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 22px 0;
}

.completion-shell { background: var(--clarity); color: white; }
.completion-shell .content-panel { background: var(--clarity); }
.completion-shell .content-inner { max-width: 700px; }
.completion-shell h1 { color: white; }
.completion-shell .rule { width: 38px; height: 3px; background: var(--glow); margin-bottom: 24px; }
.completion-shell .mode-copy {
  border-top: 1px solid rgba(255, 255, 255, .2);
  margin-top: 30px;
  padding-top: 28px;
}
.completion-shell .tagline {
  color: var(--glow);
  font-family: "Kristi", cursive;
  font-size: 34px;
  line-height: 1.2;
  margin-top: 38px;
}
.completion-shell .primary { margin-top: 12px; }

@media (max-width: 820px), (max-height: 600px) and (orientation: landscape) {
  .split-shell, .assessment-shell { grid-template-columns: 1fr; }
  .split-shell .photo-panel { min-height: 132px; height: 20dvh; }
  .split-shell .content-panel { padding: 30px 24px 44px; align-items: flex-start; }
  .photo-brand { top: 18px; left: 22px; }
  .photo-footer { display: none; }
  .assessment-photo { display: none; }
  .assessment-main { min-height: 100dvh; padding: 26px 20px; align-items: flex-start; }
  .assessment-inner { margin: 0 auto; }
  h2, legend { font-size: clamp(25px, 7vw, 32px); margin: 10px 0 18px; }
  .progress-track { margin: 10px 0 18px; }
  .option-stack { gap: 9px; }
  .option span { min-height: 48px; padding: 9px 16px; }
  .controls { margin-top: 20px; }
  .primary, .secondary { min-height: 46px; padding: 10px 20px; }
  .completion-shell .photo-panel { min-height: 180px; height: 27dvh; }
}

@media (max-width: 420px) {
  body { font-size: 15px; line-height: 1.7; }
  .assessment-main { padding: 20px 16px; }
  .eyebrow { font-size: 10px; }
  .code-row { gap: 8px; }
  .code-digit { width: 52px; height: 54px; }
}

@media (max-width: 820px) and (max-height: 700px) {
  body { font-size: 14px; line-height: 1.55; }
  .assessment-main { padding: 16px; }
  h2, legend {
    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.2;
    margin: 7px 0 12px;
  }
  .progress-track { margin: 7px 0 12px; }
  .option-stack { gap: 6px; }
  .option span { min-height: 44px; padding: 7px 14px; }
  .controls { margin-top: 14px; }
  .open-answer { min-height: 132px; }
  .role-note { margin-top: 12px; line-height: 1.45; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .split-shell .photo-panel { display: none; }
  .split-shell .content-panel { min-height: 100dvh; padding: 16px; }
  .assessment-main { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}