:root {
  --fondo: #f6f4ef;
  --inchiostro: #141414;
  --grigio: #7a766f;
  --grigio-chiaro: #bdb8af;
  --linea: rgba(20, 20, 20, 0.1);
  --tinta: #f2482a;
  --tinta-tenue: rgba(242, 72, 42, 0.12);
  --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;
}

.offer {
  --cifra: clamp(44px, min(17vw, 19vh), 148px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 640px);
  text-align: center;
}

.eyebrow {
  display: flex;
  gap: 0.5em;
  align-items: baseline;
  font-size: clamp(11px, min(3vw, 3.3vh), 14px);
  font-weight: 620;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.01em;
}
.eyebrow__soft { color: var(--grigio); font-weight: 450; }

.sub {
  margin-top: clamp(3px, 0.8vh, 6px);
  font-size: clamp(11px, min(3vw, 3.3vh), 14px);
  color: var(--grigio);
  font-weight: 420;
}

.price-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: clamp(10px, 3vh, 26px);
}

/* the old and the new price share the same cell: one leaves, the other arrives */
.price {
  position: relative;
  display: grid;
  font-size: var(--cifra);
  line-height: 1;
  letter-spacing: -0.015em;
}
.price__old, .price__new {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}
.price__new { color: var(--inchiostro); }

/* each character in its own box: GSAP moves the box, never the text inside */
.ch {
  display: inline-block;
  font-weight: 560;
  font-variation-settings: "wdth" 84, "wght" var(--wg, 560);
  will-change: transform;
}
.ch--sym {
  font-size: 0.52em;
  margin-top: 0.12em;
  margin-right: 0.04em;
  align-self: flex-start;
  font-variation-settings: "wdth" 100, "wght" var(--wg, 560);
}
.ch--sep { margin: 0 0.01em 0 -0.01em; }

.strike {
  position: absolute;
  left: -2%;
  top: 46%;
  width: 104%;
  height: 0.12em;
  overflow: visible;
  pointer-events: none;
}
.strike path {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 3.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.tag {
  position: relative;
  margin-left: clamp(6px, 1.6vw, 14px);
  margin-top: 0.3em;
  font-size: clamp(12px, min(3.4vw, 3.8vh), 18px);
}
.tag__in {
  display: inline-block;
  padding: 0.32em 0.62em 0.36em;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--bianco);
  font-weight: 650;
  font-variation-settings: "wdth" var(--wd, 100), "wght" 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform-origin: 0% 50%;
  box-shadow: 0 6px 16px -8px rgba(242, 72, 42, 0.7);
}

.meta {
  display: flex;
  gap: clamp(10px, 3vw, 18px);
  align-items: center;
  justify-content: center;
  margin-top: clamp(8px, 2.2vh, 18px);
  font-size: clamp(12px, min(3.2vw, 3.6vh), 15px);
  min-height: 1.6em;
}

/* the old price once it has stepped aside: small, grey, crossed out */
.was {
  position: relative;
  color: var(--grigio);
  font-weight: 480;
  font-variation-settings: "wdth" 96;
}
.was::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(var(--barra, 0));
  transform-origin: 0 50%;
}

.ends {
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
  color: var(--tinta);
  font-weight: 560;
  font-variation-settings: "wdth" 104;
}
.clock { width: 1.05em; height: 1.05em; }
.clock circle, .clock path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.rule {
  position: relative;
  width: min(62%, 260px);
  height: 2px;
  margin-top: clamp(10px, 2.6vh, 20px);
  background: var(--linea);
  border-radius: 2px;
  overflow: hidden;
}
.rule__fill {
  position: absolute;
  inset: 0;
  background: var(--tinta);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.note {
  margin-top: clamp(8px, 1.8vh, 14px);
  font-size: clamp(11px, min(2.9vw, 3.2vh), 13px);
  color: var(--grigio);
  font-weight: 430;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
