:root {
  --fondo: #faf9f6;
  --inchiostro: #0c0c0e;
  --grigio: #6f6e74;
  --grigio-chiaro: #a3a2a8;
  --linea: rgba(12, 12, 14, 0.09);
  --tinta: #3d4cf5;
  --bianco: #ffffff;
}

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

html, body { height: 100%; overflow: hidden; }

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

.stage {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 16px;
}

.hero {
  position: relative;
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 3.4vh, 26px);
}

/* the switch: who are you */
.seg {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.045);
  box-shadow: inset 0 0 0 1px var(--linea);
}

.seg__pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  width: 40px;
  border-radius: 999px;
  background: var(--bianco);
  box-shadow: 0 1px 2px rgba(12, 12, 14, 0.08), 0 4px 12px -4px rgba(12, 12, 14, 0.16), inset 0 0 0 0.5px rgba(12, 12, 14, 0.08);
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: clamp(11px, 3.1vw, 14px);
  font-weight: 520;
  font-variation-settings: "wdth" 100;
  color: var(--grigio);
  padding: 7px clamp(7px, 2.2vw, 14px);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.chip__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip.is-on { color: var(--inchiostro); }
.chip.is-on .chip__icon { stroke: var(--tinta); }
.chip:focus-visible { outline: 2px solid var(--tinta); outline-offset: 1px; }

@media (hover: hover) {
  .chip:not(.is-on):hover { color: var(--inchiostro); }
}

@media (max-width: 440px) {
  .chip__icon { display: none; }
}

/* the headline */
.title {
  font-size: clamp(30px, min(9.4vw, 10.5vh), 80px);
  font-weight: 640;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1.title { display: flex; flex-direction: column; align-items: center; }

.title__mask {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.1em 0.1em;
  margin-bottom: -0.1em;
}

.title__line { display: block; white-space: nowrap; }

.slot {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  height: 1.08em;
  text-align: left;
  color: var(--tinta);
}

.parola {
  position: absolute;
  left: 0;
  bottom: 0;
  white-space: nowrap;
}

.lettera { display: inline-block; will-change: transform; }

.misura {
  position: absolute;
  left: -9999px;
  top: 0;
  white-space: nowrap;
  visibility: hidden;
}

.volo {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3;
}

.sub {
  max-width: 34em;
  font-size: clamp(13px, min(3.7vw, 3.4vh), 17px);
  line-height: 1.5;
  color: var(--grigio);
  font-weight: 430;
  min-height: 3em;
}

.sub .w { display: inline-block; white-space: pre; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(38px, 9vh, 44px);
  padding: 0 18px;
  border-radius: 999px;
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--inchiostro);
  color: var(--bianco);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 6px 16px -8px rgba(12, 12, 14, 0.55);
}

.btn--ghost {
  color: var(--inchiostro);
  background: var(--bianco);
  box-shadow: inset 0 0 0 1px var(--linea), 0 1px 2px rgba(12, 12, 14, 0.04);
}

.btn__roll {
  position: relative;
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
}

.btn__roll .btn__label { display: block; line-height: 1.3em; }
.btn__roll .btn__label + .btn__label { position: absolute; left: 0; top: 0; }

.btn__arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

.proof {
  font-size: clamp(11px, 3.1vw, 13px);
  color: var(--grigio-chiaro);
  font-weight: 460;
  letter-spacing: 0.005em;
}

.proof__num {
  display: inline-block;
  color: var(--inchiostro);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.proof__who { display: inline-block; color: var(--grigio); }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  fill: var(--bianco);
  stroke: var(--inchiostro);
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(12, 12, 14, 0.22));
}
