:root {
  --vigly-light: #a79ef1;
  --vigly-dark: #7c6ff0;
  --bg: #0a0a0b;
  --nav: #0d0d0e;
  --line: #1f1f22;
  --accent: #1fd472;
  --accent-light: #34e584;
  --accent-dark: #0fa956;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  /* Nav/footer color as the base so Safari tints the strips above the nav and
     below the footer to match them; the page color is painted on top. */
  background: var(--nav) linear-gradient(var(--bg), var(--bg));
  color: #f2f2f2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}

/* The BL mark is a black PNG used as a mask, painted white. */
.logo {
  display: block;
  height: 34px;
  aspect-ratio: 366 / 210;
  background: #fff;
  mask: url(/bl-logo.png) center / contain no-repeat;
  -webkit-mask: url(/bl-logo.png) center / contain no-repeat;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 16px;
}

.buy {
  padding: 16px 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 0 28px rgba(31, 212, 114, 0.35);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.buy:disabled {
  opacity: 0.6;
  cursor: default;
}

.buy:hover {
  filter: brightness(1.08);
}

.card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.card h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.card .sub {
  margin: 0 0 24px;
  color: #b9b9be;
  line-height: 1.5;
}

.price {
  margin: 0 0 20px;
}

.price p {
  margin: 0;
}

.price-now {
  font-size: 20px;
  font-weight: 800;
}

.price-then {
  margin-top: 4px !important;
  color: #b9b9be;
  font-size: 15px;
}

.perks {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
  display: inline-block;
}

.perks li {
  position: relative;
  padding-left: 30px;
  line-height: 2;
}

.perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 800;
}

.note {
  margin: 12px 0 0;
  color: #7c7c82;
  font-size: 14px;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--nav);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.card input:focus {
  outline: none;
  border-color: var(--accent);
}

.card .buy {
  width: 100%;
}

.msg {
  min-height: 1.5em;
  margin: 16px 0 0;
  line-height: 1.5;
}

.msg.error {
  color: #ff8a6a;
}

.fine {
  margin: 20px 0 0;
  color: #7c7c82;
  font-size: 14px;
  line-height: 1.5;
}

.fine a,
.msg a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.hero {
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
  padding-top: clamp(48px, 10vh, 96px);
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(34px, 9vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.title span {
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Both buttons stay on one line, even on a phone. */
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.actions .buy {
  flex: 1;
  padding: 16px 12px;
  color: var(--bg);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

/* Home: Access Vigly fits its text instead of spanning the row (Vigly's own
   page shares .actions and keeps its full-width button). */
.vigly-cta .actions .buy {
  flex: none;
  padding: 14px 36px;
}

/* Home: "Win with Vigly" pitch (Win in the BL green) sitting right above the Access Vigly button,
   over a faint grid that fades out at its edges (no box), so the section stands apart from the title. */
.vigly-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: -12px;
  padding: 4px 0 28px;
}

.vigly-cta::before {
  content: "";
  position: absolute;
  inset: -56px max(-16px, calc(50% - 320px));
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 44px 44px;
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent);
  mask: radial-gradient(closest-side, #000 55%, transparent);
  pointer-events: none;
}

/* Home: the white Vigly "V" over the pitch. The green glow is baked into the
   PNG (CSS drop-shadow drew a box in Safari); the negative margins cancel its
   transparent padding so the V itself is 38px tall. */
.vigly-mark {
  width: auto;
  height: 104.5px;
  margin: -33.25px -33.25px -21.25px;
  pointer-events: none;
}

/* Sign up: Back on the left and the Vigly V (purple arrow, purple glow) centered
   on one line above SIGN UP, Back vertically centered on the V. */
.signup-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.signup-top .back {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  float: none;
  margin: 0;
}

.signup-mark {
  display: block;
  width: 84px;
  height: 78.1px;
  margin: -24.9px;
}

.pitch {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pitch span {
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pitch-sub {
  margin: 6px 0 20px;
  color: #a1a1aa;
  font-size: 16px;
}

/* Home: the four Vigly tools in one row under the pitch, icon over label, no boxes. */
.minis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin: 4px 0 26px;
}

.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mini svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

@media (max-width: 420px) {
  .mini { font-size: 10px; letter-spacing: 0; }
}

@media (max-width: 360px) {
  .mini { font-size: 9px; }
}

/* Vigly's own purple, for the button that goes to Vigly. */
.buy.access {
  background: linear-gradient(180deg, var(--vigly-light), var(--vigly-dark));
  box-shadow: 0 0 28px rgba(124, 111, 240, 0.35);
}

/* Vigly's sign-up page (served at vigly.betleveling.com/signup): white title
   (same size as the Vigly home title on phones), trial line, one plan card,
   purple checks and focus ring. */
.card h1.vigly {
  margin-bottom: 6px;
  font-size: clamp(34px, 9vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.card .trial {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.card .trial span {
  background: linear-gradient(180deg, var(--vigly-light), var(--vigly-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--vigly-dark);
  border-radius: 12px;
  background: var(--nav);
  text-align: left;
}

.plan p {
  margin: 0;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan .perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.vigly-card .perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.5;
}

.vigly-card .perks li::before {
  content: none;
}

.vigly-card .perks svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--vigly-light);
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
}

.plan-price {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
}

.plan-price span {
  margin-left: 2px;
  color: #8e8e95;
  font-size: 16px;
  font-weight: 600;
}

.vigly-card input:focus {
  border-color: var(--vigly-dark);
}

.vigly-card .buy {
  color: var(--bg);
  font-weight: 800;
}

.vigly-card .fine a,
.vigly-card .msg a {
  color: var(--vigly-light);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: left;
  margin: 0 0 16px -4px;
  color: #8e8e95;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.back:hover {
  color: #fff;
}

.back svg {
  width: 18px;
  height: 18px;
}

.back + h1 {
  clear: both;
}

.main.top {
  align-items: flex-start;
  padding-top: 40px;
}

/* Pages with the footer: the footer sits at the bottom of the screen, or
   below the content when it is longer. */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page > .main {
  flex: 1;
  min-height: 0;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--nav);
  text-align: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #b9b9be;
}

.socials a:hover {
  background: var(--line);
  color: #fff;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
}

.legal a {
  color: #b9b9be;
  text-decoration: none;
}

.legal a:hover {
  color: #fff;
}

.copy {
  margin: 0;
  color: #6c6c72;
  font-size: 13px;
}

/* Terms, Privacy and Refund Policy. */
.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  color: #c9c9ce;
  line-height: 1.65;
}

.doc h1 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.doc .updated {
  margin: 0 0 24px;
  color: #7c7c82;
  font-size: 14px;
}

.doc h2,
.doc h3 {
  margin: 32px 0 8px;
  color: #fff;
  font-size: 19px;
}

/* A product's name over its own sections, like VIGLY on the Refund Policy. */
.doc h2.product {
  margin-bottom: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--vigly-light);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* White Vigly V (purple arrow) sized to the VIGLY capitals. */
.doc h2.product img {
  display: block;
  height: 0.78em;
  width: auto;
}

.doc h2.product + h3 {
  margin-top: 20px;
}

.doc p,
.doc ul {
  margin: 0 0 12px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: #fff;
}

.doc a {
  color: var(--accent-light);
  text-decoration: none;
}
