:root {
  --bg: #ffffff;
  --ink: #0e1a2b;
  --soft: #6b7686;
  --card: #ffffff;
  --sky-hi: #0a2452;
  --sky-lo: #2f8fe6;
  --accent: #ff5a36;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 14px 16px;
}

.pass {
  position: relative;
  width: min(292px, 100%);
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(14, 26, 43, 0.07),
    0 2px 4px rgba(14, 26, 43, 0.05),
    0 18px 36px -16px rgba(14, 40, 90, 0.3),
    0 44px 70px -40px rgba(14, 40, 90, 0.4);
}

/* ---- the top: the sky, the ridge, the piste ---- */
.pass__top {
  position: relative;
  height: min(140px, 34vh);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: linear-gradient(168deg, var(--sky-hi) 8%, color-mix(in srgb, var(--sky-hi) 45%, var(--sky-lo)) 52%, var(--sky-lo));
  color: #ffffff;
  isolation: isolate;
}
.pass__top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.pass__slot { position: absolute; left: 50%; top: 10px; width: 38px; height: 8px; margin-left: -19px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(14, 26, 43, 0.35); z-index: 3; }
.pass__ridge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ridge--far { fill: rgba(255, 255, 255, 0.2); }
.piste { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.pass__sheen { position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34) 50%, transparent); transform: translateX(-130%) skewX(-14deg); pointer-events: none; z-index: 2; }
.pass__brand { position: absolute; left: 18px; top: 26px; display: grid; gap: 2px; }
.pass__brand strong { font-size: 17px; line-height: 20px; font-weight: 680; font-stretch: 108%; letter-spacing: -0.01em; }
.pass__brand span { font-size: 11.5px; line-height: 15px; font-weight: 500; opacity: 0.78; }
.pass__days { position: absolute; right: 18px; top: 22px; display: flex; align-items: baseline; gap: 5px; }
.pass__days .roll { display: block; height: 40px; overflow: hidden; font-size: 40px; line-height: 40px; font-weight: 720; font-stretch: 112%; letter-spacing: -0.03em; }
.pass__days .roll span { display: block; }
.pass__days small { font-size: 12px; font-weight: 600; opacity: 0.85; }

/* ---- the perforation ---- */
.pass__cut { position: relative; height: 0; border-top: 1.5px dashed rgba(14, 26, 43, 0.16); margin: 0 14px; }
.pass__cut::before, .pass__cut::after { content: ""; position: absolute; top: -8px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(14, 26, 43, 0.07); }
.pass__cut::before { left: -22px; clip-path: inset(0 0 0 50%); }
.pass__cut::after { right: -22px; clip-path: inset(0 50% 0 0); }

/* ---- the body ---- */
.pass__body { padding: 16px 16px 16px; display: grid; gap: 13px; }
.segs { display: flex; gap: 6px; }
.seg {
  position: relative;
  flex: 1;
  height: min(34px, 8.4vh);
  border: 0;
  border-radius: 9px;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(14, 26, 43, 0.06);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s ease;
}
.seg:focus-visible { outline: 2px solid var(--sky-lo); outline-offset: 2px; }
.seg.is-peek { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sky-lo) 55%, transparent); }
.seg__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--sky-lo), color-mix(in srgb, var(--sky-hi) 60%, var(--sky-lo))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); transform-origin: 50% 100%; transform: scaleY(0); }
.seg.is-last .seg__fill { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #ffffff), var(--accent)); }

.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 30px; }
.per { display: flex; align-items: baseline; gap: 6px; }
.per__n { font-size: 27px; line-height: 30px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; }
.per small { font-size: 12px; font-weight: 520; color: var(--soft); }
.save { flex: none; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, #ffffff); color: color-mix(in srgb, var(--accent) 78%, #1a0a05); font-size: 11.5px; line-height: 15px; font-weight: 660; white-space: nowrap; }

.cta {
  position: relative;
  height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 7px 0 18px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #1b2a40, #0c1626);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px -8px rgba(12, 22, 38, 0.6);
  color: #ffffff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 640;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cta:focus-visible { outline: 2px solid var(--sky-lo); outline-offset: 3px; }
.cta__word { height: 20px; line-height: 20px; overflow: hidden; }
.cta__word span { display: block; white-space: nowrap; }
.cta__tot { min-width: 62px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); line-height: 32px; font-size: 13.5px; font-weight: 680; text-align: center; white-space: nowrap; transition: background-color 0.4s ease, color 0.4s ease; }
.cta.is-added .cta__tot { background: #ffffff; color: #0c1626; }

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

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .seg:hover { transform: translateY(-2px); }
}
@media (max-height: 430px) {
  .pass__body { padding: 12px 14px 13px; gap: 10px; }
  .cta { height: 42px; }
  .pass__brand { top: 22px; }
  .pass__days { top: 18px; }
}
/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .pass { zoom: 1.2; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .pass { zoom: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .seg { transition: none; }
  .seg.is-peek { transform: none; }
}
