/* bbs.ventrist.com: the five-version chooser. Self-hosted Montserrat, no third parties. */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #6136C7;
  --purple-deep: #3E1F8F;
  --purple-ink: #2A1566;
  --lilac: #8A61EA;
  --blue: #2149AC;
  --yellow: #FBE401;
  --sky: #56CDF5;
  --ink: #1B1530;
  --ink-soft: #4A4560;
  --paper: #F6F3FD;
  --card: #FFFFFF;
  --rule: #E2DAF7;
  --radius: 18px;
  --gutter: 16px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
main :focus-visible { outline-color: var(--blue); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -10000px; top: 12px; z-index: 10; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

/* ---- hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(86, 205, 245, 0.28) 0%, rgba(86, 205, 245, 0) 55%),
    linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 70%, var(--purple-ink) 100%);
  padding: 28px 0 32px;
}
.hero__mark { display: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__logo { width: 190px; margin-bottom: 36px; }
.hero__kicker { margin: 0 0 10px; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.hero h1 { font-size: clamp(2rem, 7.4vw, 4.25rem); font-weight: 800; max-width: 15ch; }
.hero__lede { margin: 18px 0 0; max-width: 40rem; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: #EFEAFD; }
.hero--small { padding-bottom: 40px; }
.hero--small h1 { font-size: clamp(2rem, 6vw, 3rem); }

.jump { display: none; margin-top: 28px; }
.jump ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.jump a:hover { background: rgba(255, 255, 255, 0.22); }
.jump__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; }

/* ---- intro ------------------------------------------------------------------- */
.intro { display: grid; gap: 16px; margin-top: 28px; }
.intro > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px; }
.intro h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.intro p { margin: 0 0 10px; color: var(--ink-soft); }
.intro__note { border-left: 4px solid var(--yellow); padding-left: 12px; color: var(--ink) !important; font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 2px solid var(--lilac); color: var(--purple); font-weight: 800; font-size: 0.875rem;
}

/* ---- versions ---------------------------------------------------------------- */
.versions { display: grid; gap: 28px; margin: 36px auto 56px; }
.versions:focus { outline: none; }
.version {
  display: grid; gap: 24px; align-items: center;
  background: var(--card); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 6px);
  padding: 18px 16px 24px; scroll-margin-top: 16px;
  box-shadow: 0 1px 2px rgba(42, 21, 102, 0.06), 0 12px 40px -24px rgba(42, 21, 102, 0.35);
}

/* the preview: a browser window with the phone in front of it */
.preview { position: relative; display: block; padding: 0 0 22px 0; margin-right: 10px; text-decoration: none; border-radius: 14px; }
.browser {
  display: block; overflow: hidden; border-radius: 12px; background: #fff;
  border: 1px solid #D6CDEE; box-shadow: 0 18px 40px -20px rgba(42, 21, 102, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.browser__bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #EEEAF8; border-bottom: 1px solid #DDD5F2; }
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #C9BEE8; }
.browser__dots i:first-child { background: #F08A7E; }
.browser__dots i:nth-child(2) { background: #F3CD5C; }
.browser__dots i:nth-child(3) { background: #7CCB86; }
.browser__url {
  flex: 1; max-width: 260px; margin: 0 auto; height: 20px; line-height: 20px; border-radius: 6px; background: #fff;
  font-size: 0.6875rem; font-weight: 600; color: var(--ink-soft); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: -10px; bottom: 0; width: 27%; max-width: 150px; min-width: 92px;
  padding: 5px; border-radius: 22px; background: #15102A;
  box-shadow: 0 22px 40px -16px rgba(21, 16, 42, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.35s ease;
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 17px; }
.preview:hover .browser { transform: translateY(-3px); box-shadow: 0 26px 48px -22px rgba(42, 21, 102, 0.6); }
.preview:hover .phone { transform: translateY(-6px); }
.preview--missing { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 2px dashed var(--rule); border-radius: 12px; color: var(--ink-soft); }

.version__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple); }
.version__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 1.25rem; letter-spacing: 0; }
.version__host { flex-basis: 100%; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-soft); font-size: 0.875rem; padding-left: 54px; margin-top: -8px; }
.version h2 { font-size: clamp(1.625rem, 4.6vw, 2.375rem); font-weight: 800; margin-bottom: 12px; }
.version__text > p:not(.version__eyebrow):not(.actions) { margin: 0 0 8px; font-size: 1.0625rem; color: var(--ink-soft); max-width: 34rem; }

.tags { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.tag--film { background: #E9F8FE; border-color: #B7E7FA; color: #0B4F66; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color 0.2s ease, transform 0.2s ease;
}
.button--primary { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.button--primary:hover { background: #FFF04A; transform: translateY(-1px); }
.button--ghost { background: transparent; color: var(--purple); border: 2px solid var(--lilac); }
.button--ghost:hover { background: var(--paper); }
.button::after { content: "\2197"; margin-left: 8px; font-weight: 800; }

/* ---- footer ------------------------------------------------------------------ */
.footer { background: var(--purple-ink); color: #DCD3F7; padding: 28px 0 36px; font-size: 0.9375rem; }
.footer img { width: 120px; margin-bottom: 12px; }
.footer p { margin: 0; }
.notfound { padding-top: 32px; padding-bottom: 48px; font-size: 1.125rem; }

/* ---- wider screens ---------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .intro { grid-template-columns: 1fr 1fr; }
  .jump { display: block; }
  .version { padding: 24px 24px 28px; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero { padding: 36px 0 52px; }
  .hero h1 { max-width: 19ch; }
  .hero__mark { display: block; position: absolute; z-index: 0; right: max(32px, calc((100vw - 1240px) / 2 + 32px)); top: 50%; width: min(34vw, 440px); transform: translateY(-50%); opacity: 0.13; pointer-events: none; }
  .hero__logo { width: 220px; margin-bottom: 56px; }
  .intro { margin-top: 36px; gap: 20px; }
  .intro > div { padding: 28px; }
  .versions { gap: 36px; margin-top: 48px; }
  .version { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 44px; padding: 36px 40px 36px 36px; }
  .version:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); padding: 36px 36px 36px 40px; }
  .version:nth-child(even) .version__preview { order: 2; }
  .preview { margin-right: 18px; padding-bottom: 28px; }
  .phone { right: -18px; }
}
@media (min-width: 1600px) {
  .wrap { max-width: 1360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .preview:hover .browser, .preview:hover .phone, .button--primary:hover { transform: none; }
}
