/* The growth curve with the number riding its tip. Colours in :root (the Playground palette). */
:root {
  --fondo: #ffffff;
  --carta: #ffffff;
  --inchiostro: #0b0b0f;
  --spento: #c4c4cc;
  --secondario: #71717a;
  --griglia: rgba(10, 10, 20, 0.07);
  --bordo: rgba(10, 10, 20, 0.08);
  --accento: #4f46e5;
  --accento-chiaro: rgba(79, 70, 229, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.corsa { position: relative; height: 320vh; }
.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.8vh, 16px);
  padding: clamp(10px, 3.5vh, 40px) clamp(14px, 5vw, 80px);
  overflow: hidden;
  text-align: center;
}

.occhiello {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--bordo);
  border-radius: 999px;
  background: #fafafa;
  color: var(--secondario);
  font-size: clamp(10px, min(1.2vw, 2vh), 13px);
  font-weight: 540;
}
.occhiello svg { width: 13px; height: 13px; fill: none; stroke: var(--accento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.titolo {
  font-size: clamp(19px, min(4.6vw, 6.4vh), 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 460;
  color: var(--spento);
  max-width: 16em;
}
.sotto {
  max-width: 34em;
  font-size: clamp(11px, min(1.5vw, 2.3vh), 16px);
  line-height: 1.4;
  color: var(--secondario);
}

.carta {
  width: min(880px, 100%);
  margin-top: clamp(2px, 1.2vh, 12px);
  padding: clamp(10px, 2vh, 20px) clamp(10px, 2vw, 24px) clamp(6px, 1.4vh, 14px);
  border: 1px solid var(--bordo);
  border-radius: clamp(12px, 1.6vw, 20px);
  background: var(--carta);
  box-shadow: 0 1px 2px rgba(10, 10, 20, 0.04), 0 18px 48px -24px rgba(10, 10, 20, 0.18);
  text-align: left;
}
.carta__testa {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(10px, min(1.3vw, 2vh), 14px);
}
.carta__nome { font-weight: 600; }
.carta__periodo { color: var(--secondario); }

.grafico {
  position: relative;
  height: clamp(130px, min(34vh, 30vw), 340px);
  margin-top: clamp(4px, 1.2vh, 12px);
}
.grafico__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.riga-griglia { stroke: var(--griglia); stroke-width: 1; }
.riga-base { stroke: rgba(10, 10, 20, 0.16); stroke-width: 1; }
.sfuma__alto { stop-color: var(--accento); stop-opacity: 0.2; }
.sfuma__basso { stop-color: var(--accento); stop-opacity: 0; }
.area { fill: url(#sfuma); }
.curva { fill: none; stroke: var(--accento); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.filo { stroke: var(--accento); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55; }
.tacca { stroke: var(--inchiostro); stroke-width: 1.5; stroke-linecap: round; }

.mesi {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 0;
  font-size: clamp(8px, min(1.1vw, 1.7vh), 12px);
  color: var(--secondario);
}
.mese { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }

.momenti { position: absolute; inset: 0; pointer-events: none; }
.momento {
  position: absolute;
  transform: translate(-50%, -100%);
  padding-bottom: 14px;
  white-space: nowrap;
  font-size: clamp(9px, min(1.15vw, 1.8vh), 13px);
  line-height: 1.25;
  text-align: center;
}
.momento--sotto { transform: translate(-50%, 0); padding-bottom: 0; padding-top: 14px; }
.momento b { display: block; font-weight: 620; }
.momento span { color: var(--secondario); }

.punta {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.punta__corpo {
  position: absolute;
  left: 0;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: #fff;
  font-size: clamp(10px, min(1.3vw, 2vh), 14px);
  font-weight: 520;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px -6px rgba(10, 10, 20, 0.45);
}
.punta__corpo b { font-weight: 700; }

.piede {
  padding: 28px 16px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--secondario);
}
