:root {
  --bg: #ecedf3;
  --card: #ffffff;
  --ink: #15191f;
  --soft: #787f8c;
  --accent: #0e9f8e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 50% at 20% 0%, #ffffff, transparent 70%),
    radial-gradient(50% 45% at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    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: 12px 14px;
}

.plan {
  position: relative;
  width: min(340px, 100%);
  padding: 15px 15px 13px;
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(21, 25, 31, 0.06),
    0 2px 4px rgba(21, 25, 31, 0.05),
    0 20px 40px -18px rgba(21, 25, 31, 0.25),
    0 50px 80px -44px color-mix(in srgb, var(--accent) 60%, transparent);
}
.plan__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.plan__head > div > span:first-child { display: block; font-size: 10.5px; line-height: 14px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.plan__head h1 { font-size: 16px; line-height: 21px; font-weight: 700; font-stretch: 106%; letter-spacing: -0.014em; }
.plan__price { flex: none; text-align: right; display: grid; }
.plan__price strong { font-size: 22px; line-height: 24px; font-weight: 730; font-stretch: 108%; letter-spacing: -0.025em; }
.plan__price small { font-size: 10.5px; line-height: 13px; color: var(--soft); }

.freq { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: min(13px, 3vh); padding: 3px; border-radius: 13px; background: rgba(21, 25, 31, 0.07); }
.freq__thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 10px; background: #ffffff; box-shadow: 0 1px 2px rgba(21, 25, 31, 0.2), 0 4px 8px -4px rgba(21, 25, 31, 0.3); }
.fq { position: relative; height: min(34px, 8vh); border: 0; border-radius: 10px; background: none; color: var(--soft); font: inherit; font-size: 12.5px; font-weight: 650; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.fq:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fq[aria-checked="true"] { color: var(--ink); }

/* ---- the twelve weeks ---- */
.weeks { margin-top: min(16px, 3.4vh); }
.weeks__lane { position: relative; height: min(40px, 9.4vh); }
.box { position: absolute; top: 50%; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.box svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 5px color-mix(in srgb, var(--accent) 45%, transparent)); }
.box rect { fill: var(--accent); }
.box path { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.6; stroke-linecap: round; }
.weeks__ticks { display: grid; grid-template-columns: repeat(12, 1fr); height: 12px; border-radius: 99px; background: rgba(21, 25, 31, 0.06); overflow: hidden; }
.weeks__ticks span { position: relative; }
.weeks__ticks span + span::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: rgba(21, 25, 31, 0.14); }
.weeks__ticks span.is-on { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.weeks__months { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 5px; font-size: 10.5px; font-weight: 560; color: var(--soft); }
.weeks__months span + span { padding-left: 4px; }

.plan__foot { display: flex; justify-content: space-between; gap: 10px; margin-top: min(12px, 2.6vh); font-size: 12px; font-weight: 620; }
.roll { display: block; height: 17px; line-height: 17px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; }
.plan__next { color: color-mix(in srgb, var(--accent) 86%, #000000); }

.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;
}

/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .plan { zoom: 1.25; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .plan { zoom: 1.7; }
}
