@font-face {
  font-family: Inter;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --page: #f3f8f8;
  --ink: #172f34;
  --muted: #435d62;
  --accent: #145c58;
  --accent-strong: #0c4343;
  --accent-surface: #e6f3f0;
  --line: #d7e4e3;
  --field-line: #789393;
  --error: #a02635;
  font-family: Inter, system-ui, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell { max-width: 46rem; margin-inline: auto; padding-inline: 1.5rem; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .4rem;
}
.preland-label {
  min-width: 0;
  color: var(--accent-strong);
  font-size: .95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.languages { display: flex; flex: 0 0 auto; gap: .25rem; }
.languages button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .3rem .6rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
}
.languages button[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-surface);
  color: var(--accent-strong);
}
.languages button:focus-visible { outline-offset: 1px; }

.layout { padding-block: 2.4rem 2rem; }
.intro h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.intro p { max-width: 60ch; margin-top: .55rem; color: var(--muted); }

.survey {
  margin-top: 1.35rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--paper);
  box-shadow: 0 .25rem 1.3rem rgb(20 92 88 / 5%);
}
.step-label { color: var(--accent-strong); font-size: .875rem; font-weight: 700; }
.progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: .3rem;
  margin-top: .55rem;
}
.progress > span { height: .25rem; border-radius: 999px; background: var(--line); }
.progress > .is-current { background: var(--accent); }
.progress > .is-complete { background: #4a817d; }
.question-body, .completion { padding-top: 1.35rem; }
.question-body h2, .completion h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.question-body h2:focus, .completion h2:focus { outline: none; }
.question-hint, .completion p { margin-top: .5rem; color: var(--muted); }
fieldset { min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; }

.choice-grid { display: grid; gap: .4rem; }
.rating-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice { display: block; position: relative; min-width: 0; cursor: pointer; }
.choice input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  height: 100%;
  padding: .5rem .25rem;
  border: 1px solid var(--field-line);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.rating-grid .choice-text { min-height: 3.05rem; font-size: 1.125rem; }
.choice input:checked + .choice-text {
  border-color: var(--accent);
  background: var(--accent-surface);
  color: var(--accent-strong);
}
.choice input:focus-visible + .choice-text { outline: 2px solid var(--accent); outline-offset: 1px; }

.service-grid { gap: 0; overflow: hidden; border: 1px solid var(--field-line); border-radius: .5rem; }
.service-grid .choice + .choice { border-top: 1px solid var(--line); }
.service-grid .choice-text {
  justify-content: flex-start;
  gap: .75rem;
  min-height: 3rem;
  padding: .65rem .85rem;
  border: 0;
  border-radius: 0;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.service-grid .choice-text::before {
  content: '';
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  background: var(--paper);
}
.service-grid input:checked + .choice-text::before { border: .3rem solid var(--accent); }
.service-grid input:focus-visible + .choice-text { outline-offset: -3px; }
.scale-endpoints, .comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; }
.scale-endpoints { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.scale-endpoints span:last-child { text-align: end; }

.comment-label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .875rem; }
textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: .7rem .75rem;
  border: 1px solid var(--field-line);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  resize: vertical;
}
textarea::placeholder { color: var(--muted); }
.comment-meta { margin-top: .6rem; color: var(--muted); font-size: .875rem; }
.comment-counter { white-space: nowrap; }
.form-error { margin-top: .75rem; color: var(--error); font-size: .9rem; font-weight: 700; }

.form-actions, .preland-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.button {
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-weight: 700;
  line-height: 1.3;
}
.button-primary { margin-left: auto; background: var(--accent); color: var(--paper); }
.button-secondary { border-color: var(--field-line); background: var(--paper); color: var(--accent-strong); }
.button:disabled { opacity: .7; }
.completion .button { margin-top: 1.15rem; }
.noscript { padding-top: 1rem; color: var(--muted); }
.preland-card > p + p { margin-top: .65rem; }
.preland-actions p { color: var(--muted); font-size: .875rem; }
.preland-actions a { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
@media (hover: hover) {
  .languages button:hover, .button-secondary:hover, .choice:hover input:not(:checked) + .choice-text {
    background: var(--accent-surface);
  }
  .button-primary:hover:not(:disabled) { background: var(--accent-strong); }
}

@media (max-width: 34rem) {
  .shell { padding-inline: .9rem; }
  .topbar-inner { min-height: 3.55rem; }
  .layout { padding-top: 1.35rem; }
  .survey { margin-top: 1rem; padding: 1rem; }
  .question-body, .completion { padding-top: 1.15rem; }
  .rating-grid { gap: .3rem; }
  .form-actions { margin-top: 1.05rem; }
  .button { padding-inline: .75rem; }
  .preland-actions { align-items: stretch; flex-direction: column; }
  .preland-actions a { margin-left: 0; }
}
