:root {
  --bg: #ffffff;
  --ink: #121216;
  --pill: #121216;
  --pill-ink: #f6f5f2;
  --mark: #f6f5f2;
  --frame: #f4f4f6;
  --block: #e3e3e9;
  --block-2: #d6d6de;
  --accent: #5b5cf0;
  --tint-1: #d9dbff;
  --tint-2: #ffe0cc;
  --tint-3: #d4efe3;
  --muted: #8a8a96;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  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;
}

.kit {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.6vh, 18px);
}

/* the size of the device being previewed: a data label, not a numbering */
.size {
  height: 18px;
  font-size: 12px;
  font-variation-settings: 'wdth' 100;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-feature-settings: 'tnum' 1;
}
.size span { display: inline-block; }

/* ---------------------------------------------------------------- the page preview */
.frame {
  --u: calc(var(--fh, 300px) / 100);
  position: relative;
  height: var(--fh, 300px);
  width: min(480px, 90vw);
  max-width: 92vw;
  background: var(--frame);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(18, 18, 22, 0.07),
    0 1px 1px rgba(18, 18, 22, 0.04),
    0 6px 14px -6px rgba(18, 18, 22, 0.12),
    0 24px 48px -20px rgba(18, 18, 22, 0.22);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.frame.is-phone { border-radius: 22px; }

.frame__bar {
  height: calc(var(--u) * 7.5);
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #ebebef;
  border-bottom: 1px solid rgba(18, 18, 22, 0.06);
}
.frame__dot { width: 7px; height: 7px; border-radius: 50%; background: #d3d3da; flex: none; }
.frame__url { height: 7px; flex: 1; max-width: 46%; margin: 0 auto; border-radius: 4px; background: #dcdce2; }
.frame.is-phone .frame__dot { display: none; }
.frame.is-phone .frame__url { max-width: 30%; height: 8px; background: #1b1b20; border-radius: 6px; }

.frame__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.page {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 6);
  padding: calc(var(--u) * 6) calc(var(--u) * 7);
}
.frame.is-phone .page { gap: calc(var(--u) * 5); padding: calc(var(--u) * 5) calc(var(--u) * 5); }

.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { width: calc(var(--u) * 13); height: calc(var(--u) * 4); border-radius: calc(var(--u) * 1.2); background: var(--ink); opacity: 0.85; }
.nav__links { display: flex; gap: calc(var(--u) * 3.5); }
.nav__link { width: calc(var(--u) * 8); height: calc(var(--u) * 2.2); border-radius: 99px; background: var(--block-2); }
.nav__burger { display: none; flex-direction: column; justify-content: space-between; width: calc(var(--u) * 5.5); height: calc(var(--u) * 4); }
.nav__burger i { display: block; height: calc(var(--u) * 0.7); min-height: 1.5px; border-radius: 2px; background: var(--ink); opacity: 0.8; }
.frame.is-phone .nav__links { display: none; }
.frame.is-phone .nav__burger { display: flex; }

.hero { display: flex; flex-direction: column; gap: calc(var(--u) * 2.4); }
.hero__line { height: calc(var(--u) * 5.2); border-radius: calc(var(--u) * 1.3); background: var(--ink); opacity: 0.88; }
.hero__line--a { width: 68%; }
.hero__line--b { width: 46%; }
.hero__sub { width: 38%; height: calc(var(--u) * 2.4); border-radius: 99px; background: var(--block-2); margin-top: calc(var(--u) * 1); }
.hero__cta { width: calc(var(--u) * 17); height: calc(var(--u) * 6); border-radius: 99px; background: var(--accent); margin-top: calc(var(--u) * 1.4); box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) -1px rgba(91, 92, 240, 0.45); }
.frame.is-tablet .hero__line--a { width: 84%; }
.frame.is-tablet .hero__line--b { width: 58%; }
.frame.is-tablet .hero__sub { width: 56%; }
.frame.is-phone .hero__line--a { width: 96%; }
.frame.is-phone .hero__line--b { width: 72%; }
.frame.is-phone .hero__sub { width: 84%; }
.frame.is-phone .hero__cta { width: 100%; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 3); }
.frame.is-tablet .cards { grid-template-columns: repeat(2, 1fr); }
.frame.is-phone .cards { grid-template-columns: 1fr; }
.card {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 2);
  border-radius: calc(var(--u) * 2.4);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(18, 18, 22, 0.05), 0 calc(var(--u) * 1) calc(var(--u) * 3) -2px rgba(18, 18, 22, 0.1);
}
.card__img { display: block; height: calc(var(--u) * 13); border-radius: calc(var(--u) * 1.5); }
.c1 { background: linear-gradient(140deg, var(--tint-1), #b9bcff); }
.c2 { background: linear-gradient(140deg, var(--tint-2), #ffc29e); }
.c3 { background: linear-gradient(140deg, var(--tint-3), #a9dcc5); }
.card__t { display: block; height: calc(var(--u) * 2); width: 82%; border-radius: 99px; background: var(--block); }
.card__t--s { width: 54%; }

/* ---------------------------------------------------------------- the button */
.pv {
  position: relative;
  height: 60px;
  width: 152px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-ink);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(18, 18, 22, 0.25),
    0 10px 24px -10px rgba(18, 18, 22, 0.55);
  font-size: 16px;
  font-weight: 560;
  font-variation-settings: 'wdth' 100;
}
.pv__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.09) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.pv__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  white-space: nowrap;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: inherit;
}
.pv__layer:focus-visible, .pv__chip:focus-visible, .pv__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.pv__ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pv__choices { gap: 6px; padding: 0 8px; justify-content: flex-start; cursor: default; }
.pv__mark {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--mark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  opacity: 0;
}
.pv__chip, .pv__close {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--pill-ink);
  cursor: pointer;
  transition: color 0.25s ease;
}
.pv__chip svg, .pv__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv__chip.is-on { color: var(--pill); }
.pv__close { width: 36px; height: 36px; color: rgba(246, 245, 242, 0.6); }
.pv__close svg { width: 16px; height: 16px; }
.pv__sep { width: 1px; height: 22px; background: rgba(246, 245, 242, 0.16); margin: 0 2px; flex: none; }

.pv__set { overflow: hidden; }
.pv__set-in, .pv__set-out { display: inline-flex; align-items: center; gap: 9px; }
.pv__set-out { position: absolute; left: 0; right: 0; justify-content: center; opacity: 0; }
.pv__set-word { opacity: 0.62; font-weight: 480; }

@media (hover: hover) {
  .pv__close:hover { color: var(--pill-ink); }
}

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

@media (max-width: 520px) {
  .pv { font-size: 15px; }
  .pv__chip { width: 40px; height: 40px; }
  .pv__mark { width: 40px; height: 40px; top: 10px; }
}
