/* The sequence diagram of the AI request that draws itself on scroll. Colours in :root (the Playground palette). */
:root {
  --fondo: #0b0c0f;
  --carta: #111216;
  --carta-alta: #16181d;
  --inchiostro: #eceae4;
  --secondario: #8a8780;
  --spento: #46454a;
  --bordo: rgba(255, 255, 255, 0.075);
  --riga: rgba(255, 255, 255, 0.05);
  --linea: rgba(255, 255, 255, 0.16);
  --accento: #8c9bff;
  --accento-tenue: rgba(140, 155, 255, 0.12);
}

* { 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: 360vh; }
.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(8px, 2.4vh, 22px);
  padding: clamp(10px, 3vh, 36px) clamp(10px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 58%, rgba(140, 155, 255, 0.07), transparent 70%),
    var(--fondo);
}

.titolo {
  font-size: clamp(17px, min(3.4vw, 4.6vh), 30px);
  font-weight: 620;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  color: var(--spento);
  transition: color 0.6s ease;
  text-align: center;
  line-height: 1.1;
}
.titolo.acceso { color: var(--inchiostro); }

.pannello {
  position: relative;
  width: min(680px, 100%);
  background: linear-gradient(180deg, var(--carta-alta), var(--carta) 38%);
  border: 1px solid var(--bordo);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 30px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* the thin line of light on the top edge */
.pannello::before {
  content: '';
  position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 155, 255, 0.55), transparent);
  opacity: var(--luce-bordo, 0.35);
  pointer-events: none;
}

.testa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 clamp(10px, 2.4vw, 18px);
  height: var(--alta-testa, 44px);
  border-bottom: 1px solid var(--riga);
  font-size: var(--corpo-testo, 13px);
  white-space: nowrap;
}
.marchio { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; }
.marchio svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--inchiostro); stroke-width: 1.2; }
.marchio__nucleo { fill: var(--accento); stroke: none; }
.marchio__nome { overflow: hidden; text-overflow: ellipsis; }
.marchio__sotto { color: var(--secondario); font-weight: 450; }
.testa__destra { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.req, .tempo, .esito {
  font-family: 'Geist Mono Variable', 'Geist Mono', ui-monospace, monospace;
  font-size: 0.86em;
}
.req { color: var(--secondario); }
.tempo { color: var(--secondario); min-width: 5.6em; text-align: right; }
.tempo b { color: var(--inchiostro); font-weight: 560; font-variant-numeric: tabular-nums; }
.esito {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 7px;
  border-radius: 6px;
  color: var(--accento);
  background: var(--accento-tenue);
  border: 1px solid rgba(140, 155, 255, 0.3);
  opacity: 0;
  will-change: transform, opacity;
}

.corpo { position: relative; flex: none; height: var(--alta-corpo, 380px); }
.schema { position: absolute; left: 0; top: 0; overflow: visible; }
.schema text { font-family: 'Geist Mono Variable', 'Geist Mono', ui-monospace, monospace; }
.schema .vita { stroke: var(--linea); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.schema .capo rect { fill: var(--carta-alta); stroke: var(--bordo); stroke-width: 1; }
.schema .capo .cornice { fill: none; stroke: var(--accento); stroke-width: 1; }
.schema .capo text { font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif; font-weight: 560; fill: var(--inchiostro); }
.schema .capo .icona { fill: none; stroke: var(--secondario); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.schema .attivo { fill: #1b1d2a; stroke: rgba(140, 155, 255, 0.45); stroke-width: 1; }
.schema .freccia { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.schema .freccia--va { stroke: var(--inchiostro); }
.schema .freccia--torna { stroke: var(--secondario); stroke-dasharray: 3 4; }
.schema .punta { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.schema .etichetta { fill: var(--inchiostro); }
.schema .etichetta--torna { fill: var(--secondario); }
.schema .ms { fill: var(--secondario); font-variant-numeric: tabular-nums; }
.schema .fascia { fill: rgba(255, 255, 255, 0.028); opacity: 0; transition: opacity 0.25s ease; }
.schema .passo.su .fascia { opacity: 1; }
.schema .passo.su .etichetta--torna { fill: var(--inchiostro); }

.piede {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: var(--alta-piede, 40px);
  padding: 0 clamp(10px, 2.4vw, 18px);
  border-top: 1px solid var(--riga);
  font-size: var(--corpo-testo, 13px);
  color: var(--secondario);
  white-space: nowrap;
}
.piede__stato { display: inline-flex; align-items: center; gap: 6px; color: var(--inchiostro); opacity: 0; }
.piede__stato svg { width: 15px; height: 15px; fill: none; stroke: var(--accento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.piede__spunta { stroke-dasharray: 12; stroke-dashoffset: 12; }
.piede__dati { font-family: 'Geist Mono Variable', 'Geist Mono', ui-monospace, monospace; font-size: 0.86em; opacity: 0; }

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

@media (max-width: 460px) {
  .req { display: none; }
  .marchio__sotto { display: none; }
}
@media (max-width: 360px) {
  .piede__dati { display: none; }
}
