/* ===========================================================================
   Questa pagina indossa l'app: stesso nero, stesse superfici di bianco
   trasparente, stessi caratteri (TASA Orbiter per i titoli, Space Grotesk per
   il testo, Space Mono per le etichette maiuscole), stesso marchio del coach.
   I caratteri sono locali perche' la CSP non ammette fogli di stile esterni,
   e un carattere che non arriva non e' un dettaglio: e' l'identita' che
   sparisce. I valori vengono da `features/common/theme/swet.ts`.
   ======================================================================== */
@font-face {
  font-family: "TASA";
  src: url("/fonts/TASAOrbiter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "TASA";
  src: url("/fonts/TASAOrbiter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Grotesk";
  src: url("/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Grotesk";
  src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Mono";
  src: url("/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #0c0c0c;
  --shell-top: #63676b;
  --w80: rgba(255, 255, 255, 0.8);
  --w70: rgba(255, 255, 255, 0.7);
  --w50: rgba(255, 255, 255, 0.5);
  --w36: rgba(255, 255, 255, 0.36);
  --outline: rgba(255, 255, 255, 0.14);
  --outline-strong: rgba(255, 255, 255, 0.24);
  --fill: rgba(255, 255, 255, 0.08);
  --fill-soft: rgba(255, 255, 255, 0.05);
  --green: #31e981;
  --amber: #ffc53d;
  --cloud: #dee3e6;
  --pad: clamp(1.25rem, 5vw, 2rem);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--black);
}
body {
  margin: 0;
  background: var(--black);
  color: #fff;
  overflow-x: hidden;
  font:
    400 17px/1.55 "Grotesk",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family:
    "TASA",
    -apple-system,
    sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.label {
  font:
    400 11px/1 "Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--w50);
}
/* La pastiglia dell'app: bianca piena, con l'alone (shadow.glow). */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 1.9rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  font:
    700 15px "Grotesk",
    sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.26);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s;
}
.pill:hover {
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.4);
}
.pill:active {
  transform: scale(0.97);
}
.pill-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--outline-strong);
  box-shadow: none;
}
.pill-ghost:hover {
  border-color: #fff;
  box-shadow: none;
}

/* --- apertura: il gradiente dell'app, poi il nero --------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 12vh, 7rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--shell-top) 0%, var(--black) 30%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.appicon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  display: block;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.mark {
  font-size: clamp(4rem, 19vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  display: flex;
  margin-top: 1.5rem;
}
.mark span {
  display: inline-block;
}
.promise {
  margin-top: clamp(1.3rem, 4vw, 1.9rem);
  max-width: 18ch;
  font-family: "TASA", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 5.4vw, 2.7rem);
  line-height: 1.16;
}
.sub {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--w70);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}
.cta-row {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 1;
  font:
    400 10px/1 "Mono",
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w36);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--w50), transparent);
}

/* --- sezioni ---------------------------------------------------------- */
section {
  padding-block: clamp(4.5rem, 11vw, 8rem);
  position: relative;
}
.rule {
  border-top: 1px solid var(--outline);
}
.section-head {
  max-width: 34ch;
}
.section-head h2 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.08;
  margin-top: 0.9rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--w70);
  font-size: 1.05rem;
  max-width: 48ch;
}

/* --- il registro: calcolato, non inventato ---------------------------- */
.ledger {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
}
.ledger-row {
  border: 1px solid var(--outline);
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--fill-soft);
}
.ledger-row .v {
  font-family: "TASA", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-top: 0.7rem;
  letter-spacing: -0.02em;
}
.ledger-row .v small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--w50);
  margin-left: 0.3rem;
  letter-spacing: 0;
}
.ledger-row .why {
  margin-top: 0.65rem;
  font-size: 0.93rem;
  color: var(--w70);
  line-height: 1.5;
}

/* =======================================================================
   I TELEFONI — una replica dell'app, non uno screenshot: cosi' non
   invecchia il giorno dopo e non mostra schermate che non esistono.
   ==================================================================== */
.phones {
  display: grid;
  gap: clamp(2.2rem, 5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr));
  margin-top: 3.5rem;
}
.phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phone-block h3 {
  font-size: 1.12rem;
  margin-top: 1.7rem;
}
.phone-block p {
  margin-top: 0.5rem;
  color: var(--w70);
  font-size: 0.96rem;
  max-width: 32ch;
  line-height: 1.5;
}
.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19.3;
  position: relative;
  overflow: hidden;
  border: 9px solid #1a1a1a;
  border-radius: 44px;
  box-shadow:
    0 34px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, var(--shell-top) 0%, var(--black) 30%);
  display: flex;
  flex-direction: column;
}
.notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 19px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 4;
}
.screen {
  flex: 1;
  padding: 38px 14px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mono {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cm {
  display: block;
  color: #fff;
}

/* la pastiglia dei giorni */
.daynav {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.29);
  border-radius: 999px;
  padding: 6px 13px;
}
.daynav span,
.daynav b {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.daynav span {
  font-size: 8px;
  color: var(--w50);
}
.daynav b {
  font-size: 10px;
  color: #fff;
}
.daynav i {
  font-size: 5px;
  color: var(--w36);
  font-style: normal;
}

/* il numero grande, col gradiente dell'app */
.kcal {
  text-align: center;
  padding-top: 12px;
}
.kcal .cap {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 9px;
  color: var(--cloud);
}
.kcal .n {
  font:
    700 56px/1.02 "Grotesk",
    sans-serif;
  letter-spacing: -1.1px;
  margin-top: 6px;
  background: linear-gradient(180deg, #cfd7dc, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* la barra dell'app: pieno + maniglia bianca + alone */
.pbar {
  display: flex;
  gap: 3px;
  align-items: center;
  width: 140px;
  margin: 11px auto 0;
  height: 13px;
}
.pbar u {
  border-radius: 999px;
  height: 100%;
  text-decoration: none;
  transition: flex-grow 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pbar .on {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.29), #fff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}
.pbar .off {
  background: rgba(255, 255, 255, 0.2);
}
.pbar b {
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: #fff;
  flex: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* i tre macro: il colore dice la carica */
.macros {
  display: flex;
  gap: 9px;
  padding: 0 4px;
  margin-top: 20px;
}
.macro {
  flex: 1;
}
.macro .cap {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 7.5px;
  color: var(--w70);
}
.macro .num {
  font:
    700 14px/1 "Grotesk",
    sans-serif;
  margin-top: 4px;
}
.macro .num s {
  font-family: "Mono", monospace;
  font-size: 7.5px;
  color: var(--w36);
  text-decoration: none;
  margin-left: 3px;
}
.macro .t {
  height: 11px;
  display: flex;
  gap: 2px;
  align-items: center;
  margin-top: 5px;
}
.macro .t u {
  height: 100%;
  border-radius: 999px;
  text-decoration: none;
  transition: flex-grow 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.macro .t b {
  width: 2.5px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  flex: none;
}
.macro .t i {
  flex-grow: 1;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}

.gcard {
  background: var(--fill);
  border-radius: 18px;
  padding: 11px;
  margin-top: 13px;
}
.gcard.soft {
  background: var(--fill-soft);
  border-radius: 22px;
  padding: 13px;
}
.coachline {
  display: flex;
  gap: 8px;
  padding: 0 4px;
  margin-top: 15px;
  text-align: left;
}
.coachline .cm {
  width: 15px;
  flex: none;
  margin-top: 2px;
}
.coachline .cap {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 7.5px;
  color: #fff;
}
.coachline p {
  font-size: 10px;
  line-height: 1.55;
  color: #fff;
  margin-top: 5px;
}
.erow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.erow .cap {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 8px;
  color: var(--w50);
}
.erow .sub {
  font-family: "Mono", monospace;
  font-size: 7px;
  color: var(--w36);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ebig {
  font:
    700 26px/1 "Grotesk",
    sans-serif;
  margin-top: 3px;
}
.enote {
  font-size: 8.5px;
  color: var(--w70);
  margin-top: 3px;
}
.espark {
  width: 100%;
  height: 32px;
  margin-top: 6px;
  display: block;
}

/* nutrizione */
.mealhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
  margin-top: 8px;
}
.mealhead .l {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--w50);
}
.mealhead .r {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 8px;
  color: var(--w36);
}
.mealbody {
  display: flex;
  gap: 10px;
  padding: 0 4px;
  margin-top: 10px;
  align-items: flex-start;
}
.foods {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin: 0;
  padding: 0;
}
.foods li {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.foods b {
  font-family: "Mono", monospace;
  font-weight: 700;
  font-size: 9.5px;
  color: #fff;
  min-width: 36px;
}
.foods span {
  font-size: 10px;
  color: var(--w80);
}
.ring {
  width: 82px;
  height: 82px;
  flex: none;
  position: relative;
}
.ring svg {
  transform: rotate(-90deg);
  width: 82px;
  height: 82px;
  display: block;
}
.ring circle {
  fill: none;
  stroke-width: 11;
}
.ring .c {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring .c b {
  font-family: "Mono", monospace;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.ring .c i {
  font-family: "Mono", monospace;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 8px;
  color: var(--w36);
  margin-top: 1px;
}
.legend {
  display: flex;
  gap: 11px;
  justify-content: center;
  margin-top: 11px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Mono", monospace;
  font-size: 8.5px;
  color: var(--w70);
}
.legend u {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  text-decoration: none;
}
.eat {
  display: block;
  width: calc(100% - 8px);
  margin: 13px auto 0;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  font:
    700 10px "Grotesk",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}
.tickrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  text-align: left;
}
.tickrow + .tickrow {
  border-top: 1px solid var(--outline);
}
.tick {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--black);
}
.tick.on {
  background: var(--w80);
  border-color: transparent;
}
.tickrow .nm {
  flex: 1;
  font-size: 10px;
  font-weight: 500;
  color: var(--w80);
}
.tickrow .mt {
  font-size: 8.5px;
  color: var(--w50);
}

/* chat */
.chathead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}
.circ {
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
}
.coachmsg {
  margin-top: 12px;
  text-align: left;
}
.coachmsg .hd {
  display: flex;
  align-items: center;
  gap: 6px;
}
.coachmsg .hd .cm {
  width: 12px;
  flex: none;
}
.coachmsg .hd span {
  font-family: "Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 7px;
  color: var(--w50);
}
.coachmsg p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--w80);
}
.userbub {
  margin: 11px 0 0 auto;
  max-width: 82%;
  background: var(--fill);
  border: 1px solid var(--outline-strong);
  border-radius: 15px;
  border-bottom-right-radius: 4px;
  padding: 8px 11px;
  font-size: 10px;
  line-height: 1.5;
  color: #fff;
  text-align: left;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.chip {
  border: 1px solid var(--outline-strong);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 8.5px;
  font-weight: 500;
  color: #fff;
}
.composer {
  margin-top: auto;
  margin-bottom: 12px;
  background: var(--fill);
  border: 1px solid var(--outline-strong);
  border-radius: 20px;
  padding: 9px 10px 7px;
}
.composer .ph {
  font-size: 9.5px;
  color: var(--w50);
  text-align: left;
}
.composer .btns {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
}
.composer .b {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--fill);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--w70);
}
.composer .b.send {
  background: #fff;
  color: var(--black);
  margin-left: auto;
}

/* la barra che galleggia */
.swetbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 13px;
  margin-top: 10px;
}
.swetbar .rnd {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #000;
  font-size: 13px;
  flex: none;
}
.swetbar .ask {
  flex: 1;
  height: 31px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(58, 58, 58, 0.6), rgba(12, 12, 12, 0.85));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  font-size: 9.5px;
  color: var(--w70);
}
.swetbar .ask .cm {
  width: 11px;
  flex: none;
}

/* --- griglia dei punti forti ------------------------------------------ */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  margin-top: 3.5rem;
}
.feat {
  background: var(--fill-soft);
  border: 1px solid var(--outline);
  border-radius: 24px;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feat h3 {
  font-size: 1.1rem;
}
.feat p {
  color: var(--w70);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* --- passi ------------------------------------------------------------ */
.steps {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  counter-reset: s;
}
.step {
  position: relative;
  padding-top: 2.7rem;
  border-top: 1px solid var(--outline);
}
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 0;
  font:
    400 11px/1 "Mono",
    monospace;
  letter-spacing: 0.08em;
  color: var(--green);
}
.step h3 {
  font-size: 1.06rem;
}
.step p {
  margin-top: 0.5rem;
  color: var(--w70);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* --- prezzo ----------------------------------------------------------- */
.price {
  border: 1px solid var(--outline);
  background: var(--fill-soft);
  border-radius: 38px;
  padding: clamp(2.2rem, 6vw, 3.4rem);
  text-align: center;
}
.price .amount {
  font-family: "TASA", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}
.price .amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--w50);
  letter-spacing: 0;
}
.price p {
  margin-top: 1rem;
  color: var(--w70);
  max-width: 42ch;
  margin-inline: auto;
}

footer {
  border-top: 1px solid var(--outline);
  padding-block: 2.4rem;
  font-size: 0.9rem;
  color: var(--w50);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.spacer {
  flex: 1;
}

/* --- movimento -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .mark span {
    animation: drop 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
  }
  @keyframes drop {
    from {
      opacity: 0;
      transform: translateY(0.4em) rotate(-4deg);
    }
  }
  .appicon {
    animation: drop 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
  }
  .scroll-cue i {
    animation: cue 2.2s ease-in-out infinite;
  }
  @keyframes cue {
    0%,
    100% {
      opacity: 0.25;
      transform: scaleY(0.7);
      transform-origin: top;
    }
    50% {
      opacity: 1;
      transform: scaleY(1);
    }
  }
  .ring .arc {
    transition: stroke-dashoffset 1.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- il selettore di lingua: in alto a destra, nelle etichette dell'app --- */
.langs {
  position: absolute;
  top: calc(0.7rem + env(safe-area-inset-top, 0px));
  right: var(--pad);
  z-index: 2;
  display: flex;
  gap: 0.2rem;
  font:
    400 11px/1 "Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.langs a,
.langs strong {
  padding: 0.7rem 0.4rem;
}
.langs a {
  color: var(--w50);
  text-decoration: none;
}
.langs a:hover {
  color: #fff;
}
.langs strong {
  color: #fff;
  font-weight: 400;
}
