/* Reference: the 26 June 2026 visitor-layout PDF. FS Me is retained by request. */
@font-face {
  font-family: "FS Me";
  src: url("/assets/fonts/FSMe.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "FS Me";
  src: url("/assets/fonts/FSMe-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "FS Me";
  src: url("/assets/fonts/FSMe-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
:root {
  --wine: #962e45;
  --cream: #fffbf5;
  --answer: #f4f1eb;
  --ink: #2b1f0d;
  --gutter: clamp(24px, 4.167vw, 80px);
  --type: clamp(18px, 2.083vw, 40px);
  --shadow: 2px 3px 6px #0004;
  font-family: "FS Me", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #35664a;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
h1:focus {
  outline: none;
}
main {
  min-height: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.loading {
  padding: var(--gutter);
}

/* The opening screen is three equal language panels, with the marks below. */
body[data-screen="welcome"] {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.welcome {
  padding: clamp(50px, 7.1vw, 138px) var(--gutter) 0;
}
.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4vw;
}
.language-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 36vw;
  padding: 3.4vw 1.5vw 3.8vw;
  border: 0;
  border-radius: 0;
  background: var(--wine);
  color: var(--cream);
  text-align: left;
  box-shadow: var(--shadow);
}
.language-message {
  min-height: 3.9em;
  font-size: calc(var(--type) * 1.15);
  line-height: 1.28;
  font-weight: 700;
}
.language-details {
  margin: 1.15em 0 1.8em;
  font-size: calc(var(--type) * 1.15);
  line-height: 1.25;
  font-weight: 300;
}
.language-action {
  display: flex;
  align-items: center;
  gap: 1.8vw;
  margin-top: auto;
  font-size: calc(var(--type) * 1.12);
  font-weight: 700;
}
.arrow-icon {
  display: block;
  width: 2.65em;
  height: 2em;
  flex-shrink: 0;
}
.language-card:hover .language-action > span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer {
  margin-top: auto;
  padding: 7vw var(--gutter) 4vw;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2.8vw;
}
.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 300;
  font-size: calc(var(--type) * 0.86);
  text-underline-offset: 0.2em;
}
.text-button:hover {
  text-decoration: underline;
}
#privacy-button {
  font-size: var(--type);
  text-decoration: underline;
}
#device-button {
  margin-left: auto;
  font-size: calc(var(--type) * 0.65);
}
#install {
  font-size: calc(var(--type) * 0.65);
}
.partners {
  display: grid;
  grid-template-columns: 32fr 12fr 10fr 34fr;
  align-items: center;
  gap: 4vw;
}
.partners img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.4vw;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.partners .brand {
  display: block;
}
.brand:focus-visible {
  outline-offset: 8px;
}
body:not([data-screen="welcome"]) .site-footer {
  display: none;
}

/* Question pages use the full canvas, as in the landscape PDF. */
.survey-screen,
.thanks-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.question-header {
  min-height: 18.75vw;
  padding: 2.35vw var(--gutter) 2.7vw;
  background: var(--wine);
  color: var(--cream);
}
.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 1.2vw;
  border-bottom: 1px solid var(--cream);
  font-size: calc(var(--type) * 0.9);
  line-height: 1.25;
  font-weight: 700;
}
.question-meta span:last-child {
  white-space: nowrap;
}
.question-header h1 {
  margin-top: 1.45vw;
  max-width: 94%;
  font-size: calc(var(--type) * 1.2);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.012em;
}
.question-hint {
  margin-top: 0.25em;
  font-size: calc(var(--type) * 1.2);
  font-weight: 300;
}
#answer-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.answer-area {
  padding: 4.7vw var(--gutter) 0;
}
.choices {
  width: 75.5%;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 1.8vw;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 5.05vw;
  padding: 1.05vw 4.15vw;
  background: var(--answer);
  box-shadow: 0 1px 5px #0004;
  border: 1px solid transparent;
  font-size: var(--type);
  line-height: 1.35;
  font-weight: 300;
  cursor: pointer;
}
.choice-label {
  flex: 1;
}
.choice input,
.rating-choice input,
.rating-na input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice:has(input:checked) {
  background: var(--wine);
  color: var(--cream);
  font-weight: 700;
}
.choice:hover {
  border-color: var(--wine);
}
.choice:has(input:focus-visible),
.rating-choice:has(input:focus-visible),
.rating-na:has(input:focus-visible) {
  outline: 3px solid #35664a;
  outline-offset: 5px;
}
.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4.8vw;
}
.question-A3 .two-columns {
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
}
.question-A4 .two-columns,
.question-A5 .two-columns,
.question-C2 .two-columns {
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
}
.two-columns .choice {
  padding-left: 4.15vw;
  padding-right: 1.4vw;
}
.type-rating .choices {
  width: 35.3%;
}
.type-rating .choice {
  padding-right: 1.4vw;
}
.rating-face {
  width: 1.55em;
  height: 1.55em;
  flex-shrink: 0;
}
.question-actions {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-top: auto;
  padding: 2.5vw var(--gutter) 2.7vw;
}
.question-actions .skip {
  color: #71675a;
}
.question-actions .primary {
  margin-left: auto;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.7vw;
  min-height: 5.05vw;
  padding: 0.65vw 1.6vw;
  border: 0;
  border-radius: 0;
  color: var(--cream);
  background: var(--wine);
  box-shadow: var(--shadow);
  font-size: calc(var(--type) * 1.2);
  font-weight: 700;
  text-decoration: none;
}
.primary .arrow-icon {
  width: 1.3em;
  height: 1em;
}
.primary:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.error {
  margin-top: 1em;
  color: var(--wine);
  font-size: max(16px, calc(var(--type) * 0.65));
}
.error:empty {
  display: none;
}
.text-input,
textarea {
  display: block;
  width: 100%;
  padding: 1.5vw;
  border: 3px solid var(--wine);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: var(--type);
  font-weight: 300;
  line-height: 1.4;
}
.text-input {
  min-height: 60px;
}
textarea {
  min-height: 29vw;
  resize: vertical;
}
.character-count {
  margin-top: 0.7em;
  text-align: right;
  font-size: max(14px, calc(var(--type) * 0.6));
  color: #71675a;
}
.field-label {
  display: block;
  margin: 1em 0 0.5em;
  font-size: calc(var(--type) * 0.8);
}
#other-wrap {
  width: 75.5%;
}

/* Discrete, unselected radio positions reproduce the PDF's track and circular marker. */
.type-matrix .answer-area {
  padding-top: 2.7vw;
}
.matrix-scale {
  padding-left: 43.5%;
  padding-right: 15.5%;
  margin-bottom: 0.5vw;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: calc(var(--type) * 0.52);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  color: var(--wine);
}
.scale-labels span {
  flex: 1;
  max-width: 30%;
}
.scale-labels span:first-child {
  transform: translateX(-30%);
}
.scale-labels span:last-child {
  transform: translateX(30%);
}
.rating-row {
  display: block;
  min-width: 0;
  border: 0;
  padding: 0.95vw 0;
  margin: 0;
}
.rating-row legend {
  float: left;
  width: 43.5%;
  padding: 0.35vw 1.5vw 0 0;
  font-size: var(--type);
  font-weight: 300;
  line-height: 1.25;
}
.rating-options {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  min-height: 3vw;
}
.rating-track {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 2.65vw;
  min-height: 34px;
  border: 3px solid var(--wine);
  background: #fffdfb;
}
.rating-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1;
  cursor: pointer;
}
.rating-choice + .rating-choice {
  border-left: 2px solid #e7d2d3;
}
.rating-choice::before {
  content: "";
  position: absolute;
  inset: -10px 0;
}
.rating-marker {
  position: relative;
  width: 3.7vw;
  height: 3.7vw;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
}
.rating-choice:has(input:checked) .rating-marker {
  opacity: 1;
}
.rating-na {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 9.5vw;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #b6a69b;
  color: #6f5e51;
  text-align: center;
  cursor: pointer;
  font-size: max(13px, calc(var(--type) * 0.55));
}
.rating-na:has(input:checked) {
  color: var(--cream);
  background: var(--wine);
  border-color: var(--wine);
}
.rating-na:hover {
  border-color: var(--wine);
}

.thank-you-rule {
  height: 3.5vw;
  border-bottom: 1px solid var(--cream);
}
.thanks-content {
  position: relative;
  flex: 1;
  padding: 7vw 21vw 4vw;
  min-height: 46vw;
}
.thanks-message {
  position: relative;
  z-index: 1;
  max-width: 65vw;
}
.thanks-message > p {
  font-size: calc(var(--type) * 0.85);
  font-weight: 300;
  line-height: 1.4;
  max-width: 42vw;
  margin-bottom: 0.7em;
}
.thanks-message .save-status {
  font-size: calc(var(--type) * 0.7);
}
.thanks-message .primary {
  justify-content: space-between;
  width: 100%;
  min-height: 11vw;
  margin: 2vw 0;
  padding: 2.5vw;
  font-size: calc(var(--type) * 1.65);
  font-weight: 300;
}
.thanks-message .return-message {
  font-size: calc(var(--type) * 0.6);
}
.thanks-stork {
  position: absolute;
  top: -7vw;
  right: 0;
  width: 22vw;
  height: auto;
  pointer-events: none;
}

dialog {
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 32px;
  border: 1px solid #c8bdb2;
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 15px 90px #0003;
  font-size: 18px;
}
dialog::backdrop {
  background: #211b23a8;
}
dialog h2 {
  margin-bottom: 20px;
  font-size: 27px;
}
dialog p {
  margin-bottom: 24px;
  line-height: 1.5;
}
dialog .primary {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 20px;
}
dialog .text-button {
  margin-left: 18px;
  font-size: 18px;
}
dialog form {
  display: inline;
}

@media (min-width: 1800px) {
  .language-card {
    min-height: 650px;
  }
  .welcome {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
  }
  .site-footer {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 1000px) {
  .language-action {
    gap: 12px;
    font-size: var(--type);
  }
  .language-action .arrow-icon {
    width: 2em;
  }
  .language-message {
    font-size: calc(var(--type) * 1.05);
  }
  .choices {
    width: 86%;
  }
  .type-rating .choices {
    width: 48%;
  }
  #other-wrap {
    width: 86%;
  }
  .rating-row legend {
    width: 40%;
  }
  .matrix-scale {
    padding-left: 40%;
    padding-right: 16%;
  }
  .rating-na {
    width: 12vw;
  }
}
@media (max-width: 700px) {
  :root {
    --gutter: 22px;
    --type: 20px;
  }
  .welcome {
    padding-top: 28px;
  }
  .language-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .language-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 24px;
  }
  .language-message {
    grid-column: 1 / -1;
    min-height: 0;
    max-width: 32ch;
    font-size: 23px;
    line-height: 1.22;
  }
  .language-details {
    margin: 0;
    font-size: 18px;
    white-space: nowrap;
  }
  .language-action {
    justify-content: flex-start;
    gap: 16px;
    margin-top: 0;
    font-size: 20px;
  }
  .language-action .arrow-icon {
    width: 28px;
    height: 28px;
  }
  .site-footer {
    padding-top: 38px;
    padding-bottom: 30px;
  }
  .footer-links {
    margin-bottom: 24px;
    gap: 12px;
  }
  #privacy-button {
    font-size: 20px;
  }
  #device-button,
  #install {
    font-size: 15px;
  }
  .partners {
    grid-template-columns: 1.8fr 1fr;
    gap: 24px 30px;
  }
  .partners img {
    max-height: 68px;
  }
  .partners .brand img {
    max-height: 76px;
  }
  .partners > img:nth-last-child(2) {
    max-width: 90px;
  }
  .question-header {
    min-height: 0;
    padding: 24px var(--gutter) 28px;
  }
  .question-meta {
    gap: 18px;
    padding-bottom: 15px;
    font-size: 15px;
  }
  .question-header h1 {
    max-width: none;
    margin-top: 18px;
    font-size: 25px;
  }
  .question-hint {
    margin-top: 10px;
    font-size: 20px;
  }
  .answer-area {
    padding-top: 30px;
  }
  .choices,
  .type-rating .choices,
  #other-wrap {
    width: 100%;
  }
  .choices {
    gap: 16px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .question-A3 .two-columns,
  .question-A4 .two-columns,
  .question-A5 .two-columns,
  .question-C2 .two-columns {
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .choice,
  .two-columns .choice {
    padding: 18px 22px;
    min-height: 65px;
    font-size: 21px;
  }
  .question-actions {
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 30px;
    padding-bottom: 26px;
  }
  .question-actions .text-button {
    font-size: 16px;
  }
  .question-actions .primary {
    gap: 14px;
    padding: 12px 20px;
    min-height: 56px;
    font-size: 24px;
  }
  .question-C2 .question-actions .primary {
    width: 100%;
    order: -1;
  }
  .question-C2 .question-actions .skip {
    margin-left: auto;
  }
  .text-input,
  textarea {
    padding: 16px;
    font-size: 20px;
  }
  textarea {
    min-height: 280px;
  }
  .field-label {
    font-size: 18px;
  }
  .type-matrix .answer-area {
    padding-top: 25px;
  }
  .matrix-scale {
    padding: 0 90px 0 8px;
    margin-bottom: 16px;
  }
  .scale-labels {
    font-size: 12px;
    gap: 6px;
  }
  .scale-labels span {
    max-width: 36%;
  }
  .scale-labels span:first-child,
  .scale-labels span:last-child {
    transform: none;
  }
  .rating-row {
    padding: 0 0 24px;
  }
  .rating-row legend {
    float: none;
    width: 100%;
    padding: 0 0 14px;
    font-size: 19px;
  }
  .rating-options {
    gap: 12px;
  }
  .rating-track {
    min-height: 38px;
    height: 38px;
    border-width: 2px;
  }
  .rating-marker {
    width: 42px;
    height: 42px;
    min-width: 0;
    min-height: 0;
  }
  .rating-na {
    width: 78px;
    min-height: 44px;
    font-size: 12px;
  }
  .thank-you-rule {
    height: 25px;
  }
  .thanks-content {
    padding: 44px var(--gutter) 30px;
    min-height: 480px;
  }
  .thanks-message {
    max-width: none;
  }
  .thanks-message > p {
    max-width: 70%;
    font-size: 20px;
  }
  .thanks-message .save-status {
    font-size: 16px;
  }
  .thanks-message .primary {
    width: 76%;
    min-height: 100px;
    margin: 24px 0;
    padding: 20px;
    gap: 14px;
    font-size: 26px;
  }
  .thanks-message .return-message {
    font-size: 14px;
  }
  .thanks-stork {
    width: 33vw;
    top: 10px;
    right: 0;
  }
}
@media (max-width: 380px) {
  .language-card {
    padding: 20px;
    gap: 20px 8px;
  }
  .language-message {
    font-size: 22px;
  }
  .language-details {
    font-size: 16px;
  }
  .language-action {
    gap: 6px;
    font-size: 18px;
  }
  .language-action .arrow-icon {
    width: 22px;
  }
  .question-actions {
    gap: 14px;
  }
  .question-actions .primary {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
