.finish form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 12px;
}
.finish label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: white;
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.finish label.check input {
  margin-top: 5px;
  flex-shrink: 0;
}
.finish label.check small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.finish .field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: bold;
}
.finish .field input,
.finish .field select {
  font: inherit;
  font-weight: normal;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
.finish fieldset {
  border: 0;
  margin: 0;
  padding: 0 4px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.finish legend {
  font-size: 12px;
  font-weight: bold;
  padding: 0;
  margin-bottom: 4px;
}
.finish fieldset .field {
  flex-basis: 100%;
}
.finish form .primary {
  justify-self: center;
  margin-top: 6px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 15px 20px;
  }
  .tag {
    font-size: 10px;
  }
  main {
    padding: 30px 20px 45px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .art {
    padding: 18px 5px;
  }
  .bubble strong {
    font-size: 18px;
  }
  .strip {
    gap: 15px;
    margin-top: 30px;
    grid-template-columns: 1fr;
  }
  .strip p {
    margin-left: 30px;
  }
  .question {
    padding: 24px 20px;
  }
  .question h2 {
    font-size: 23px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .results-head h2 {
    font-size: 27px;
  }
  .primary {
    padding: 16px 22px;
  }
  footer {
    flex-direction: column;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Start screen: compact, centered invitation and a real answer preview. */
body:has(#intro:not([hidden])) header {
  padding-top: 12px;
  padding-bottom: 12px;
}
body:has(#intro:not([hidden])) main {
  max-width: 1120px;
  padding: 18px 30px 15px;
}
body:has(#intro:not([hidden])) footer {
  padding-top: 13px;
  padding-bottom: 13px;
}
.intro-heading {
  text-align: center;
}
.intro-heading h1 {
  font-size: clamp(32px, 3.3vw, 43px);
  line-height: 1.35;
  letter-spacing: -1.2px;
  margin: 9px 0 10px;
}
.intro-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.intro-action {
  text-align: center;
  margin: 17px 0 20px;
}
.intro-action .primary {
  min-width: 310px;
  padding: 13px 30px;
  font-size: 18px;
}
.intro-action .tiny {
  margin: 10px 0 0;
  font-size: 11px;
}
.answer-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 8px 28px #172a5005;
  max-width: 1000px;
  margin: auto;
  align-items: center;
}
.preview-copy .pill {
  margin: 0;
  font-weight: bold;
}
.preview-copy h2 {
  font-size: 19px;
  line-height: 1.6;
  margin: 8px 0;
}
.preview-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.preview-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 9px;
}
.preview-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.preview-options .sample-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  min-height: 53px;
}
.preview-options .sample-choice.is-selected {
  background: #edf3ff;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.preview-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #bcc9df;
  border-radius: 50%;
}
.preview-options .sample-choice.is-selected .preview-dot {
  background: var(--blue);
  border-color: var(--blue);
}
.preview-options .sample-choice.is-selected .preview-dot:after {
  content: '✓';
  color: white;
  font-size: 11px;
}
.intro-delivery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  margin: 15px 0 0;
}
.intro-delivery b {
  color: var(--blue);
}
.intro-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
@media (min-width: 701px) and (max-height: 740px) {
  body:has(#intro:not([hidden])) .logo {
    font-size: 23px;
  }
  body:has(#intro:not([hidden])) .logo span {
    font-size: 9px;
  }
  .intro-heading h1 {
    font-size: 36px;
  }
  .intro-action {
    margin: 12px 0 16px;
  }
  .answer-preview {
    padding: 15px 22px;
  }
  .intro-delivery {
    margin-top: 10px;
  }
}
@media (max-width: 700px) {
  body:has(#intro:not([hidden])) main {
    padding: 22px 18px;
  }
  .intro-heading h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .intro-heading .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .intro-lead {
    font-size: 13px;
  }
  .intro-action .primary {
    min-width: 0;
    width: 100%;
    max-width: 360px;
  }
  .intro-action .tiny {
    font-size: 10px;
  }
  .answer-preview {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 15px;
  }
  .preview-copy h2 {
    font-size: 19px;
  }
  .preview-copy p br {
    display: none;
  }
  .preview-options {
    grid-template-columns: 1fr;
  }
  .preview-options .sample-choice {
    min-height: 46px;
    font-size: 13px;
  }
  .intro-delivery {
    flex-wrap: wrap;
    gap: 5px 8px;
    font-size: 11px;
  }
  .intro-footnote {
    margin-top: 7px;
  }
}
@media (min-width: 701px) {
  body:has(#intro:not([hidden])) header {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  body:has(#intro:not([hidden])) main {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .intro-action {
    margin-top: 10px;
    margin-bottom: 12px;
  }
  .answer-preview {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .intro-delivery {
    margin-top: 8px;
  }
  .intro-heading h1 {
    margin-top: 5px;
    margin-bottom: 6px;
  }
}
/* A deliberately smaller, read-only sample, separate from the real form. */
.answer-preview {
  max-width: 820px;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 20px;
  padding: 15px 20px;
  background: #fafbfe;
  box-shadow: none;
}
.preview-copy h2 {
  font-size: 16px;
  margin: 7px 0;
}
.preview-copy .pill {
  font-size: 10px;
}
.preview-copy p {
  font-size: 11px;
}
.preview-copy small {
  font-size: 9px;
}
.preview-options {
  gap: 7px;
}
.preview-options .sample-choice {
  font-size: 10px;
  min-height: 44px;
  padding: 8px 10px;
  gap: 7px;
  cursor: default;
}
.preview-dot {
  width: 15px;
  height: 15px;
}
.preview-options .sample-choice.is-selected .preview-dot:after {
  font-size: 9px;
}
@media (max-width: 700px) {
  .answer-preview {
    grid-template-columns: 1fr;
    max-width: 420px;
    padding: 16px;
    gap: 12px;
  }
  .preview-options {
    grid-template-columns: 1fr 1fr;
  }
  .preview-options .sample-choice {
    font-size: 10px;
    min-height: 48px;
    padding: 7px;
  }
  .preview-copy h2 br {
    display: none;
  }
  .preview-copy p br {
    display: none;
  }
}
body:has(#intro:not([hidden])) .intro-action {
  margin: 24px 0 32px;
}
body:has(#intro:not([hidden])) main {
  padding-top: 28px;
  padding-bottom: 32px;
}
.preview-copy .pill {
  background: none;
  padding: 0;
  color: var(--muted);
}
