:root {
  --fondo: #ffffff;
  --inchiostro: #161514;
  --grigio: #8a8580;
  --grigio-chiaro: #e6e2dc;
  --accento: #e2452f;
  --pillola: #161514;
  --pillola-testo: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.panel {
  position: relative;
  width: min(540px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(6px, 1.6vh, 12px);
}

.brand {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grigio);
}

.title {
  font-size: clamp(24px, min(6.4vw, 7vh), 48px);
  font-weight: 560;
  font-variation-settings: 'wdth' 96;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sub {
  font-size: clamp(13px, 1.9vh, 15px);
  color: var(--grigio);
  margin-bottom: clamp(8px, 2.4vh, 22px);
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 18px);
  max-width: 100%;
}

.mark {
  flex: none;
  width: clamp(48px, min(15vw, 14vh), 92px);
  height: clamp(48px, min(15vw, 14vh), 92px);
  display: block;
}

.mark__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mark__ghost {
  fill: none;
  stroke: var(--grigio-chiaro);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark__ink {
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field {
  position: relative;
  flex: none;
  width: min(330px, 58vw);
  min-width: 0;
  display: block;
  text-align: left;
}

.field__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(16px, min(4.6vw, 4.6vh), 25px);
  font-variation-settings: 'wdth' 100;
  color: var(--inchiostro);
  padding: 8px 0 9px;
}

.field__input::placeholder { color: #c4beb6; }

.field__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grigio-chiaro);
  overflow: hidden;
}

.field__fill {
  position: absolute;
  inset: 0;
  background: var(--inchiostro);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.go {
  position: relative;
  margin-top: clamp(10px, 2.6vh, 22px);
  border: 0;
  background: transparent;
  color: var(--pillola-testo);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  isolation: isolate;
}

.go__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--pillola);
  z-index: -1;
}

.go__text {
  display: inline-block;
  font-variation-settings: 'wdth' var(--w, 100);
}

.go:focus-visible { outline: 1px solid var(--inchiostro); outline-offset: 4px; }

.note {
  min-height: 1.3em;
  font-size: 13px;
  color: var(--accento);
}

.done {
  position: absolute;
  left: calc(clamp(48px, min(15vw, 14vh), 92px) + clamp(10px, 2.4vw, 18px));
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-50%);
}

.done__title {
  font-size: clamp(18px, min(5.2vw, 5vh), 29px);
  font-weight: 560;
  font-variation-settings: 'wdth' 96;
  letter-spacing: -0.01em;
}

.done__title .ch { display: inline-block; white-space: pre; }

.done__sub {
  font-size: 13px;
  color: var(--grigio);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (hover: hover) {
  .go:hover .go__bg { filter: brightness(1.25); }
}
