:root {
  --fondo: #ffffff;
  --carta: #ffffff;
  --bordo: rgba(0, 0, 0, 0.08);
  --testo: #111113;
  --testo-2: #6e6e76;
  --testo-3: #a1a1aa;
  --pista: #ececef;
  --pieno: #18181b;
  --accento: #4f46e5;
  --accento-chiaro: #eef0ff;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--testo);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.card {
  width: min(640px, 100%);
  background: var(--carta);
  border: 1px solid var(--bordo);
  border-radius: 24px;
  padding: clamp(14px, 3.6vmin, 26px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 60px -28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vh, 22px);
}

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; color: var(--accento); font-weight: 560; letter-spacing: 0.01em; }
.title { font-size: clamp(17px, 3.4vmin, 24px); font-weight: 640; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.15; }

.total { text-align: right; flex: none; }
.total__num {
  font-size: clamp(26px, 5.6vmin, 38px); font-weight: 680; letter-spacing: -0.03em;
  display: flex; align-items: flex-start; justify-content: flex-end;
  height: 1.12em; line-height: 1.12em;
  font-variation-settings: "wdth" 100;
}
.total__cur { font-size: 0.6em; margin-top: 0.12em; margin-right: 1px; color: var(--testo-2); font-weight: 560; }
.total__per { font-size: 11.5px; color: var(--testo-2); margin-top: 3px; white-space: nowrap; }

/* rolling digits */
.roll { display: inline-flex; overflow: hidden; height: 1.12em; line-height: 1.12em; vertical-align: top; }
.col { display: block; overflow: hidden; height: 1.12em; transition: width 0.28s cubic-bezier(.2, .8, .2, 1); }
.col__strip { display: flex; flex-direction: column; will-change: transform; }
.col__strip span { height: 1.12em; display: block; text-align: center; }

.seats__top { display: flex; align-items: baseline; justify-content: space-between; }
.seats__label { font-size: 13px; color: var(--testo-2); font-weight: 520; }
.seats__count { font-size: 15px; font-weight: 640; display: flex; align-items: flex-start; gap: 4px; height: 1.12em; }
.seats__unit { color: var(--testo-2); font-weight: 520; }

.slider {
  position: relative;
  padding: 10px 0 18px;
  touch-action: none;
  cursor: pointer;
  outline: none;
}
.slider:focus-visible .handle__dot { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3), 0 2px 6px rgba(0, 0, 0, 0.18); }
.rail { position: relative; height: 22px; }
.rail__track {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; margin-top: -3px;
  border-radius: 999px; background: var(--pista); overflow: hidden;
}
.rail__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--pieno); }
.handle { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; will-change: transform; }
.handle__dot {
  display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.16), 0 8px 18px -8px rgba(0, 0, 0, 0.25);
}

.marks { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
.mark { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 10.5px; color: var(--testo-3); font-variant-numeric: tabular-nums; }
.mark::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 4px; background: #d4d4d8;
}

.plans { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plans__glow {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 16px;
  background: var(--accento-chiaro);
  box-shadow: inset 0 0 0 1.5px var(--accento);
  pointer-events: none;
  will-change: transform, width;
}
.plan {
  position: relative; z-index: 1;
  font: inherit; color: inherit; text-align: left;
  background: transparent;
  border: 1px solid var(--bordo);
  border-radius: 16px;
  padding: clamp(10px, 2.2vmin, 14px);
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer;
  transition: opacity 0.3s, border-color 0.3s;
}
.plan:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }
.plan[data-on] { border-color: transparent; }
.plan:not([data-on]) { opacity: 0.55; }
.plan__name { font-size: 13.5px; font-weight: 640; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plan__tag {
  font-style: normal; font-size: 10px; font-weight: 600; color: var(--accento);
  background: #fff; border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 999px; padding: 1px 6px;
}
.plan__price { font-size: 12.5px; color: var(--testo-2); }
.plan__price b { font-size: 18px; color: var(--testo); font-weight: 680; letter-spacing: -0.02em; }
.plan__range { font-size: 11.5px; color: var(--testo-3); font-variant-numeric: tabular-nums; }
.plan__feat { font-size: 12px; color: var(--testo-2); display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.plan__feat svg { width: 14px; height: 14px; flex: none; }
.plan__feat path { fill: none; stroke: var(--accento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot__note { font-size: 12.5px; color: var(--testo-2); min-width: 0; }
.cta {
  flex: none;
  font: inherit; font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--pieno); border: 0; border-radius: 999px;
  padding: 10px 16px; display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}
.cta svg { width: 15px; height: 15px; }
.cta path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cta:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }
.cta__label { display: inline-block; white-space: nowrap; }

.ghost {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  pointer-events: none; z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.ghost path { fill: #111113; stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: round; }

/* phones: the plans get compact, the note goes away so everything fits the box */
@media (max-width: 520px) {
  .card { border-radius: 20px; gap: 10px; }
  .head { align-items: flex-start; }
  .total__per { font-size: 10.5px; }
  .plans { gap: 6px; }
  .plan { padding: 8px; border-radius: 13px; gap: 2px; }
  .plans__glow { border-radius: 13px; }
  .plan__name { font-size: 12px; }
  .plan__tag { display: none; }
  .plan__price { font-size: 11px; }
  .plan__price b { font-size: 15px; }
  .plan__range { font-size: 10.5px; }
  .plan__feat { display: none; }
  .foot__note { display: none; }
  .foot { justify-content: stretch; }
  .cta { width: 100%; justify-content: center; padding: 9px 14px; }
  .slider { padding: 8px 0 16px; }
}
@media (max-height: 460px) and (max-width: 520px) {
  .eyebrow { display: none; }
  .title { font-size: 16px; }
}
