/* =========================================================================
   LOSS ENGINE — visual identity

   The page is the machine's PRINTOUT: a statement of losses coming off a dot
   matrix printer on continuous-feed paper. The subject dictates it — the token
   the machine farms is called PAPER, it is earned by losing, and it ends up
   burned. Hence: fanfold paper with tractor-feed holes, ruled bands, perforated
   tear lines between sections, line-printer row numbers, and a red stamp that
   states the machine's condition in one word.

   Colour: WHITE AND RED. One ribbon, one accent, nothing else. Red is the good
   colour here, because the loss is the engine. Single committed look — no dark
   variant, by choice: a statement is printed on white paper.

   Register: INSTRUMENT, not poster. The paper is the identity; the layout is a
   datasheet. Tight grid, hairline rules, tabular figures everywhere, every
   number sitting on the same decimal column as the one above it.
   ========================================================================= */

:root {
  --paper:  #EFEBEA;   /* the desk the sheet sits on */
  --sheet:  #FFFFFF;   /* the paper itself */
  --bar:    #FBF1F1;   /* ruled band, faintest red wash */
  --ink:    #1A1413;   /* near-black, warmed toward the red so it reads chosen */
  --ink-2:  #6E615F;
  --ink-3:  #9B8E8C;
  --rule:   #DED4D3;
  --hair:   #EDE5E4;   /* internal hairline, lighter than a ruled border */
  --red:    #D8232A;
  --red-2:  #FBE3E3;   /* active row wash */
  --green:  #137547;   /* ONLY for a positive price change: not part of the identity */
  color-scheme: light;

  --display: 'Martian Mono', ui-monospace, 'Courier New', monospace;
  --body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --sprocket: 30px;
  --gutter: 16px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* banda sopra l'header sticky: a inset zero non disegna nulla */
body::before {
  content: ''; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); background: var(--sheet); z-index: 60;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; }

/* --- il foglio ----------------------------------------------------------
   Un unico nastro di carta al centro, con i fori di trascinamento ai lati.
   I fori sono disegnati col gradiente: niente immagini, niente markup. */
.sheet {
  max-width: var(--maxw);
  margin: 0 auto;
  /* le tacche delle linee di strappo sporgono oltre il bordo del foglio:
     clip le taglia senza creare un contenitore scorrevole */
  overflow-x: clip;
  background: var(--sheet);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 880px) {
  .sheet {
    padding-left: var(--sprocket);
    padding-right: var(--sprocket);
    background-image:
      radial-gradient(circle at calc(var(--sprocket) / 2) 0, var(--paper) 3.5px, transparent 3.6px),
      radial-gradient(circle at calc(100% - var(--sprocket) / 2) 0, var(--paper) 3.5px, transparent 3.6px);
    background-size: 100% 22px, 100% 22px;
    background-repeat: repeat-y, repeat-y;
    background-position: 0 11px, 0 11px;
  }
  .sheet::before, .sheet::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule);
  }
  .sheet::before { left: var(--sprocket); }
  .sheet::after  { right: var(--sprocket); }
}

.band {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  min-width: 0;
}
@media (min-width: 880px) { .band { padding-left: 42px; padding-right: 42px; } }

/* --- linea di strappo --------------------------------------------------- */
.tear {
  position: relative; height: 0;
  border-top: 1px dashed var(--rule);
  margin: 0;
}
.tear::before, .tear::after {
  content: ''; position: absolute; top: -5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--rule);
}
.tear::before { left: -5px; }
.tear::after  { right: -5px; }

/* --- primitive tipografiche -------------------------------------------- */
.lbl {
  font-family: var(--display); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3);
}
.num, .v {
  font-variant-numeric: tabular-nums;
}
.num {
  font-family: var(--display);
  letter-spacing: -0.045em; font-weight: 700;
}
.red { color: var(--red); }
.dim { color: var(--ink-2); }

/* =========================================================================
   STRUMENTAZIONE — le due righe fisse in alto.
   Riga 1: il nastro dei prezzi, gli stessi numeri che il compratore vede su
   DexScreener. Riga 2: contratto, indice e azioni. Sopra la piega non c'è
   nient'altro: chi arriva deve poter fare una cosa sola, comprare, e una
   verifica sola, il contratto.
   ========================================================================= */
header.mast {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--sheet);
  border-bottom: 2px solid var(--ink);
}

.tape-row {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--hair);
  min-height: 46px;
}
.mark {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  padding-right: 16px; border-right: 1px solid var(--hair); margin-right: 16px;
}
.mark img { height: 22px; width: auto; display: block; }
.mark b {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: -0.03em;
}

/* il nastro: celle di uguale peso, separate da un filo, che scorrono se
   non ci stanno. Il prezzo non va mai a capo. */
.tape {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.tape::-webkit-scrollbar { display: none; }
.tape .q {
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 5px 18px 5px 0; margin-right: 18px;
  border-right: 1px solid var(--hair);
  white-space: nowrap; flex: 0 0 auto;
}
.tape .q:last-child { border-right: 0; }
.tape .q .lbl { font-size: 8.5px; letter-spacing: 0.14em; }
.tape .q .v {
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: -0.045em;
}
.tape .q .v.up { color: var(--green); }
.tape .q .v.down { color: var(--red); }

.tape-end {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  padding-left: 16px; border-left: 1px solid var(--hair); margin-left: auto;
}

/* la spia: quadrata, non tonda — è un indicatore, non una pillola */
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-2);
  white-space: nowrap;
}
.live i {
  width: 7px; height: 7px; background: var(--ink-3); flex-shrink: 0;
}
.live.on i { background: var(--red); animation: pulse 2.4s steps(1, end) infinite; }
.live.on { color: var(--red); }
.live.halt i { background: var(--ink); }
@keyframes pulse { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }

.soc { display: inline-flex; gap: 6px; }
.soc a {
  font-family: var(--display); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink-2);
  border: 1px solid var(--rule); padding: 4px 7px; line-height: 1;
  display: inline-flex; align-items: center;
}
.soc a:hover { border-color: var(--red); color: var(--red); }
.soc .off { opacity: .4; }

.act-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding-block: 6px; flex-wrap: nowrap;
}

/* il contratto è un campo, non un bottone: si legge e si copia */
.ca {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 10.5px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
  border: 1px solid var(--rule); background: transparent;
  padding: 6px 10px; cursor: pointer; flex-shrink: 0;
}
.ca .lbl { font-size: 8.5px; }
.ca .cp {
  width: 12px; height: 12px; fill: none; stroke: var(--ink-3);
  stroke-width: 1.4; stroke-linejoin: round;
}
.ca:hover { border-color: var(--ink); }
.ca:hover .cp { stroke: var(--red); }
.ca.empty { cursor: default; color: var(--ink-2); }
.ca.empty .cp { display: none; }
.ca:hover.empty { border-color: var(--rule); }

.jump { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.jump::-webkit-scrollbar { display: none; }
.jump a {
  font-family: var(--display); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
  padding-bottom: 2px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.jump a:hover { color: var(--ink); border-bottom-color: var(--red); }
.act-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 14px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s;
}
.btn:hover { background: var(--ink); color: var(--sheet); }
.btn-ink { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ink:hover { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.btn-ghost { border-color: var(--rule); color: var(--ink-2); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn[aria-disabled="true"] {
  border-color: var(--rule); color: var(--ink-3); background: transparent;
  cursor: not-allowed; pointer-events: none;
}

/* --- intestazione dell'estratto ----------------------------------------- */
.doc-head {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  padding-block: 9px; border-bottom: 1px solid var(--rule);
}
.doc-head div { display: flex; gap: 8px; align-items: baseline; }
.doc-head .v { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: -0.02em; }

/* --- apertura ----------------------------------------------------------- */
.open { padding-block: 38px 30px; position: relative; }
.open h1 {
  font-size: clamp(30px, 5.6vw, 52px); line-height: 1.04;
  letter-spacing: -0.06em; margin-top: 14px; max-width: 19ch;
  text-wrap: balance;
}
.open h1 em { font-style: normal; color: var(--red); }
.open .lede {
  margin: 16px 0 0; max-width: 54ch; font-size: 15px; color: var(--ink-2);
}
.open .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* il timbro: lo stato della macchina, in rosso, ruotato */
.stamp {
  position: absolute; right: 64px; top: 40px; max-width: 220px;
  transform: rotate(-7deg);
  border: 2.5px solid var(--red); color: var(--red);
  padding: 7px 14px 6px; pointer-events: none;
  font-family: var(--display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  box-shadow: 0 0 0 1px var(--sheet), 0 0 0 3.5px var(--red);
  opacity: .88;
}
.stamp { mix-blend-mode: multiply; }
.stamp small {
  display: block; font-size: 8px; letter-spacing: 0.18em;
  margin-top: 3px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 880px) {
  .stamp { position: static; display: inline-block; margin-top: 20px; right: auto; top: auto; }
}

/* --- riga di macchina: la prova che gira -------------------------------- */
.machine {
  display: grid; grid-template-columns: repeat(4, auto); gap: 0 26px;
  justify-content: start; align-items: baseline;
  margin-top: 28px; padding: 9px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair);
}
.machine div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.machine .v {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: -0.04em; white-space: nowrap;
}
.machine .v.red { color: var(--red); }
@media (max-width: 880px) {
  .machine { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
}

/* --- riquadro riepilogo (la testa dell'estratto) ------------------------ */
.summary {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--ink); margin-top: 22px;
}
.summary > div { padding: 11px 13px 13px; border-right: 1px solid var(--hair); min-width: 0; }
.summary > div:last-child { border-right: 0; }
.summary .v {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: clamp(15px, 1.75vw, 21px); font-weight: 700;
  letter-spacing: -0.055em; margin-top: 7px;
}
@media (max-width: 1000px) {
  .summary { grid-template-columns: repeat(3, 1fr); }
  .summary > div:nth-child(3n) { border-right: 0; }
  .summary > div:nth-child(-n+3) { border-bottom: 1px solid var(--hair); }
}
@media (max-width: 600px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .summary > div { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
  .summary > div:nth-child(2n) { border-right: 0; }
  .summary > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --- sezioni ------------------------------------------------------------ */
section { padding-block: 38px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-h .no {
  font-family: var(--display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--sheet); background: var(--ink);
  padding: 3px 6px 2px; flex-shrink: 0;
}
.sec-h h2 { font-size: clamp(17px, 2.4vw, 22px); letter-spacing: -0.05em; }
.sec-note { margin: -6px 0 20px; color: var(--ink-2); max-width: 68ch; font-size: 14px; }

/* --- il ciclo: voci di una distinta, con guida a puntini ---------------- */
.cycle { border-top: 1px solid var(--ink); }
.cyc {
  display: grid; grid-template-columns: 28px 1fr auto 74px;
  gap: 0 12px; align-items: baseline;
  padding: 10px 10px; border-bottom: 1px solid var(--hair);
  position: relative;
}
.cyc:nth-child(even) { background: var(--bar); }
.cyc .i { font-family: var(--display); font-size: 10px; font-weight: 600; color: var(--ink-3); }
.cyc .t { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.cyc .t h4 { font-size: 12.5px; letter-spacing: -0.035em; white-space: nowrap; }
/* la guida a puntini lega la voce al suo importo, come su una distinta */
.cyc .t .dots {
  flex: 1 1 auto; min-width: 12px; height: 1px; align-self: center;
  border-bottom: 1px dotted var(--rule);
}
.cyc .t p {
  margin: 0; font-size: 12px; color: var(--ink-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0;
}
.cyc .q {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.04em; text-align: right;
  white-space: nowrap;
}
.cyc .q span { font-size: 9px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.08em; }
.cyc .st {
  font-family: var(--display); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
  text-align: right; white-space: nowrap;
}
.cyc.on { background: var(--red-2); }
.cyc.on .i, .cyc.on .t h4, .cyc.on .q, .cyc.on .st { color: var(--red); }
.cyc.on::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red);
}
.cyc.idle .q, .cyc.idle .t h4 { color: var(--ink-3); }
/* uno stadio che dipende da un servizio fermo si dichiara, non si tace */
.cyc .st.down { color: var(--red); }
@media (max-width: 700px) {
  .cyc { grid-template-columns: 24px 1fr auto; gap: 0 10px; }
  .cyc .t { display: block; }
  .cyc .t .dots { display: none; }
  .cyc .t p { white-space: normal; }
  .cyc .st { grid-column: 2 / -1; text-align: left; margin-top: 3px; }
}

/* --- il modello -----------------------------------------------------------
   Una cifra proiettata non deve mai poter essere scambiata per una lettura
   dalla catena: grigia invece che nera, sottolineata tratteggiata, e con
   l'etichetta MODEL al posto dello stato. */
.cyc.model .q { color: var(--ink-2); font-weight: 600; border-bottom: 1px dashed var(--ink-3); }
.cyc.model .t h4 { color: var(--ink-2); }
.st.model {
  color: var(--ink-2); border: 1px solid var(--ink-3);
  padding: 1px 4px; font-size: 8px; letter-spacing: 0.1em;
}
.tag-model {
  font-family: var(--display); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sheet); background: var(--ink-2); padding: 2px 6px;
}
.model-note { border: 1px dashed var(--ink-3); padding: 13px 15px; margin-top: 18px; }
.mn-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
#mn-title { font-size: 13px; color: var(--ink-2); }
.mn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .mn-cols { grid-template-columns: 1fr; gap: 16px; } }
.mn-list { margin-top: 8px; }
.mn-list div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 3px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px;
}
.mn-list div:last-child { border-bottom: 0; }
.mn-list .k { color: var(--ink-2); }
.mn-list .v {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: -0.03em; white-space: nowrap;
}

/* --- il libro mastro ---------------------------------------------------- */
.ledger { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.lrow {
  display: grid; grid-template-columns: 30px 1fr auto;
  gap: 12px; padding: 8px 10px; align-items: baseline;
  border-bottom: 1px solid var(--hair); font-size: 13px;
}
.lrow:last-child { border-bottom: 0; }
.lrow:nth-child(even) { background: var(--bar); }
.lrow .n { font-family: var(--display); font-size: 9.5px; color: var(--ink-3); font-weight: 600; }
.lrow .k { color: var(--ink-2); min-width: 0; }
.lrow .v { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.04em; text-align: right; }
.lrow.big { padding-block: 15px; }
.lrow.big .v { font-size: clamp(19px, 3vw, 29px); color: var(--red); }

.cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 880px) { .cols { grid-template-columns: 1fr; gap: 24px; } }

/* il registro della supply: una barra scalata, con la tacca e la lettura.
   Non è un grafico temporale e non finge di esserlo. */
.plot { margin-top: 10px; }
.plot svg { display: block; width: 100%; height: auto; max-width: 100%; }

/* --- scalini della tax -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); border: 1px solid var(--ink); }
.steps .st { padding: 13px 15px 15px; border-right: 1px solid var(--hair); min-width: 0; }
.steps .st:last-child { border-right: 0; }
.steps .st.now { background: var(--red-2); }
.steps .st .v { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; letter-spacing: -0.06em; margin-top: 6px; }
.steps .st.now .v { color: var(--red); }
.steps .st .rt { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 6px; font-weight: 600; }

.notice { border: 1px solid var(--red); padding: 12px 14px; margin-top: 14px; }

/* --- il nastro: il registro che avanza ---------------------------------
   Non è una finestra di terminale verde su nero: quella romperebbe l'identità.
   È la stessa cosa nel senso originale del termine — una telescrivente che
   stampa riga dopo riga su carta bianca, con i numeri di riga della stampante
   di linea e un cursore che lampeggia in fondo al foglio. */
.term { border: 1px solid var(--ink); }
.term-head {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px; border-bottom: 1px solid var(--rule); background: var(--bar);
}
.term-head .st {
  font-family: var(--display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.term-head .st.ok { color: var(--red); }
/* fermo: non va sussurrato, è la cosa che il visitatore deve vedere */
.term-head .st.down {
  color: var(--sheet); background: var(--ink); padding: 2px 6px;
}
.term-src { margin-left: auto; }
.term-btn {
  font-family: var(--display); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-3);
  padding: 3px 7px; cursor: pointer;
}
.term-btn.on { border-color: var(--red); color: var(--red); }

.term-body {
  height: 340px; overflow-y: auto; overflow-x: hidden;
  background: var(--sheet);
}
.term-line {
  display: grid; grid-template-columns: 34px 58px 44px 1fr;
  gap: 10px; padding: 3px 10px;
  font-family: var(--display); font-size: 10px; line-height: 1.5;
  align-items: baseline; border-bottom: 1px solid var(--hair);
}
.term-line:nth-child(even) { background: var(--bar); }
.term-line .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.term-line .t { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.term-line .s { font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); }
.term-line .s.chain { color: var(--red); }
.term-line .x {
  font-family: var(--body); font-size: 12px; color: var(--ink);
  word-break: break-word; overflow-wrap: anywhere;
}
.term-line.warn .x { color: var(--red); }
.term-line.err .x { color: var(--red); font-weight: 600; }
/* la riga appena stampata entra come se la testina l'avesse appena battuta */
.term-line.fresh { animation: strike .5s steps(12, end); }
@keyframes strike { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.term-foot {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; border-top: 1px solid var(--rule);
}
.cur {
  display: inline-block; width: 7px; height: 12px; background: var(--red);
  animation: blink 1.1s steps(1, end) infinite; flex-shrink: 0;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

@media (max-width: 700px) {
  .term-line { grid-template-columns: 50px 40px 1fr; gap: 8px; }
  .term-line .n { display: none; }
  .term-body { height: 300px; }
}

/* --- clausole in piccolo ------------------------------------------------ */
.fine { border-top: 1px solid var(--ink); padding-top: 16px; }
.fine ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.fine li { font-size: 12px; line-height: 1.55; color: var(--ink-2); margin-bottom: 9px; break-inside: avoid; }
.fine li b { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) { .fine ol { columns: 1; } }

/* --- piede -------------------------------------------------------------- */
footer { border-top: 2px solid var(--ink); padding-block: 22px 36px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: baseline; }
.foot .lbl a { border-bottom: 1px solid var(--rule); }
.foot .lbl a:hover { color: var(--red); border-bottom-color: var(--red); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--sheet);
  font-family: var(--display); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 9px 15px; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 880px) {
  .jump { display: none; }
  .open { padding-block: 28px 24px; }
  section { padding-block: 30px; }
  .steps { grid-template-columns: 1fr; }
  .steps .st { border-right: 0; border-bottom: 1px solid var(--hair); }
  .steps .st:last-child { border-bottom: 0; }
  .mark { padding-right: 12px; margin-right: 12px; }
  .tape-end { padding-left: 12px; gap: 10px; }
}
