:root {
  --product-fondo: #f6f4ef;
  --product-testo: #151515;
  --pricing-fondo: #111113;
  --pricing-testo: #f2f1ec;
  --about-fondo: #e6e1ff;
  --about-testo: #1c1640;
  --accento: #5b4bdb;
}

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

html, body { height: 100%; }

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

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.6vh, 28px) clamp(16px, 4vw, 56px);
  overflow: hidden;
  will-change: clip-path, transform;
}
.page[hidden] { display: none; }

.page--product { background: var(--product-fondo); color: var(--product-testo); }
.page--pricing { background: var(--pricing-fondo); color: var(--pricing-testo); }
.page--about { background: var(--about-fondo); color: var(--about-testo); }

/* the nav of every page */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  font-size: clamp(12px, min(1.25vw, 2.2vh), 15px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 1.1em;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav__links { display: flex; gap: clamp(4px, 1vw, 10px); margin-left: auto; }
.nav__links a,
.back {
  color: inherit;
  text-decoration: none;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  opacity: 0.62;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav__links a.is-here { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.back {
  display: inline-grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  padding: 0;
  opacity: 0.9;
  border: 1px solid rgba(127, 127, 127, 0.3);
}
.back svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .nav__links a:hover { opacity: 1; }
  .back:hover { background: rgba(127, 127, 127, 0.12); }
}
a:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }

/* the content of every page, centred in what is left */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.8vh, 18px);
  min-height: 0;
}
.eyebrow {
  font-size: clamp(11px, min(1.1vw, 2vh), 14px);
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--accento);
}
.page--pricing .eyebrow { color: #a99cff; }
.title {
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(28px, min(6.4vw, 9.5vh), 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.sub {
  max-width: 34em;
  font-size: clamp(12px, min(1.3vw, 2.3vh), 17px);
  line-height: 1.45;
  opacity: 0.66;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(34px, 5.6vh, 46px);
  padding: 0 clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  font-size: clamp(12px, min(1.2vw, 2.2vh), 15px);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.25s, transform 0.25s;
}
.btn svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn--solid { background: currentColor; }
.page--product .btn--solid { background: var(--product-testo); color: var(--product-fondo); }
.page--pricing .btn--solid { background: var(--pricing-testo); color: var(--pricing-fondo); }
.page--about .btn--solid { background: var(--about-testo); color: var(--about-fondo); }
.btn--line { color: inherit; border: 1px solid rgba(127, 127, 127, 0.36); }
.btn--small { height: clamp(30px, 4.6vh, 38px); }
@media (hover: hover) {
  .btn:hover { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); }
}

/* the small app window under the product headline */
.shot {
  width: min(440px, 80vw);
  margin-top: clamp(2px, 1vh, 10px);
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 24px 50px -30px rgba(20, 20, 20, 0.35);
  text-align: left;
  font-size: 11px;
}
.shot__bar { display: flex; gap: 5px; margin-bottom: 8px; }
.shot__bar i { width: 18px; height: 4px; border-radius: 2px; background: #e4e1da; }
.shot__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 4px; border-top: 1px solid #f0ede7; }
.shot__row b { height: 7px; border-radius: 4px; background: #dcd8cf; }
.shot__row em { font-style: normal; color: #8b877e; }

/* pricing plans */
.plans { display: flex; gap: clamp(8px, 1.4vw, 16px); }
.plan {
  width: clamp(130px, 21vw, 260px);
  padding: clamp(12px, 2vh, 20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 1vh, 8px);
  text-align: left;
}
.plan--pro { border-color: rgba(169, 156, 255, 0.5); background: rgba(169, 156, 255, 0.08); }
.plan__name { font-size: clamp(11px, 1.8vh, 13px); opacity: 0.7; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: clamp(22px, min(3vw, 5vh), 38px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: clamp(10px, 1.6vh, 12px); opacity: 0.6; }
.plan__line { font-size: clamp(10px, 1.8vh, 13px); opacity: 0.72; margin-bottom: 4px; }

/* the team */
.team { display: flex; }
.team span {
  display: grid;
  place-items: center;
  width: clamp(30px, 5.4vh, 44px);
  height: clamp(30px, 5.4vh, 44px);
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--about-fondo);
  background: #fff;
  font-size: clamp(10px, 1.6vh, 12px);
  font-weight: 650;
}
.team span:nth-child(2n) { background: #d4ccff; }
.team span:nth-child(3n) { background: #f4d9c8; }

/* the thin edge that runs on the circle while it opens */
.ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--accento);
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}

/* the drawn pointer of the autopilot */
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #111;
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  opacity: 0;
  z-index: 30;
}

@media (max-width: 560px) {
  .nav__links a { padding: 0.4em 0.5em; }
  .shot { display: none; }
  .plan { width: clamp(118px, 40vw, 160px); }
}
@media (max-height: 560px) {
  .shot { display: none; }
}
